<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><font size="5">I finally got this to build.  It was at least a
        problem at my end.  I had several versions of compilers and
        cross compilers installed.  Somehow they were getting mixed up
        with the linkers.  I reinstalled all my gcc compilers and got a
        successful build.  I had changed all the compile options to
        -no-lto from -flto etc.  I need to clean that up and add some
        more meaningful options for checkinstall.</font><br>
    </p>
    <div class="moz-cite-prefix">On 1/21/24 1:17 PM, Don Harter via
      QGIS-User wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:c452b81c-291d-4255-b8a8-9daee2de65d3@att.net">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p><font size="5">OK thank you.  I can use checkinstall to create
          a .deb package.  Perhaps with a careful choice of options and
          dependencies I could replace the ubuntugis package.  With
          wrong dependencies  my ubuntu system was broken and I had
          problems installing packages.  It wanted me to "fix" the mess,
          but I would have had to delete some packages that I wanted to
          keep.</font><br>
      </p>
      <div class="moz-cite-prefix">On 1/21/24 10:30 AM, Even Rouault
        wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:d9e76b3d-3bc1-4469-9ba5-3131409c2f7b@spatialys.com">
        <meta http-equiv="Content-Type"
          content="text/html; charset=UTF-8">
        <p>No, this won't be a .deb, and using the past .deb for mrsid
          won't work since the switch to CMake</p>
        <p>General instructions to build GDAL from source are at <a
            class="moz-txt-link-freetext"
href="https://gdal.org/development/building_from_source.html"
            moz-do-not-send="true">https://gdal.org/development/building_from_source.html</a></p>
        <p>To install it in a location where it won't mess with with
          your packaged GDAL, do for example<br>
        </p>
        <p>cmake .. -DCMAKE_INSTALL_PREFIX=/opt/gdal-3.8.3 (others
          options here such as -DMRSID_ROOT=... -DECW_ROOT=... )<br>
        </p>
        <p>(or any other installation directory of your choice)</p>
        <p>Even<br>
        </p>
        <div class="moz-cite-prefix">Le 21/01/2024 à 16:08, Don Harter a
          écrit :<br>
        </div>
        <blockquote type="cite"
          cite="mid:cfc285b4-229b-4822-b03a-bf78629a504e@att.net">
          <meta http-equiv="Content-Type"
            content="text/html; charset=UTF-8">
          <p><font size="5">OK. Thanks. Those scripts don't use .deb
              packages so nothing would be registered with dpkg.  I have
              had problems before with unregistered packages lying
              around.  I just fixed such an issue with GCC.  I don't
              even see a package that is available for libecwj2. In
              what  directory is the build script run in?  I already
              have gdal installed. Will it overwrite the existing ubuntu
              locations for the gdal packages? If I were to purge those
              packages then other packages that rely on them would have
              unfulfilled dependencies. I see that script is for an
              earlier version of ubuntu.  I am running :  Ubuntu 22.04.3
              LTS. And my gcc </font><font size="5">(gcc (GCC) 12.3.1
              20230626) </font><font size="5">is newer so I have 
              downloaded  the other/newer mrsid file. <br>
            </font></p>
          <p><font size="5">So if I download the source for the .deb
              packages and replace the scripts in them with those 2 that
              you located for me, will that work?<br>
            </font></p>
          <div class="moz-cite-prefix">On 1/21/24 8:51 AM, Even Rouault
            wrote:<br>
          </div>
          <blockquote type="cite"
cite="mid:ca417a9e-c371-4cd1-a8fb-0ded832343e4@spatialys.com">
            <meta http-equiv="Content-Type"
              content="text/html; charset=UTF-8">
            <p>Hi,</p>
            <p>cf <a class="moz-txt-link-freetext"
href="https://github.com/OSGeo/gdal/blob/master/.github/workflows/ubuntu_20.04/Dockerfile.ci#L144"
                moz-do-not-send="true">https://github.com/OSGeo/gdal/blob/master/.github/workflows/ubuntu_20.04/Dockerfile.ci#L144</a>
              and <a class="moz-txt-link-freetext"
href="https://github.com/OSGeo/gdal/blob/master/.github/workflows/ubuntu_20.04/build.sh#L15"
                moz-do-not-send="true">https://github.com/OSGeo/gdal/blob/master/.github/workflows/ubuntu_20.04/build.sh#L15</a>
              for a build recipee to build GDAL >= 3.5 with MrSID
              support</p>
            <p>Even<br>
            </p>
            <div class="moz-cite-prefix">Le 21/01/2024 à 03:10, Don
              Harter via QGIS-User a écrit :<br>
            </div>
            <blockquote type="cite"
              cite="mid:d76e5bdd-a829-4c15-af98-f5cd141c8676@att.net">
              <meta http-equiv="Content-Type"
                content="text/html; charset=UTF-8">
              <p>I have been following this procedure to build gdal with
                mrsid capabilities.  I had done this a while back
                previously but the different dependencies between
                packages cause a mess.</p>
              <p><a class="moz-txt-link-freetext"
href="https://trac.osgeo.org/ubuntugis/wiki/TutorialMrSid"
                  moz-do-not-send="true">https://trac.osgeo.org/ubuntugis/wiki/TutorialMrSid</a></p>
              <p>I tried to run this command:</p>
              <pre class="wiki">sudo apt-get install libgdal-mrsid-src 

<font size="6">But that package is not available in the unbuntugis repository.</font>
</pre>
              <br>
              <fieldset class="moz-mime-attachment-header"></fieldset>
              <pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-User mailing list
<a class="moz-txt-link-abbreviated moz-txt-link-freetext"
              href="mailto:QGIS-User@lists.osgeo.org"
              moz-do-not-send="true">QGIS-User@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext"
              href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
              moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext"
              href="https://lists.osgeo.org/mailman/listinfo/qgis-user"
              moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
            </blockquote>
            <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com"
            moz-do-not-send="true">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
          </blockquote>
        </blockquote>
        <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com"
        moz-do-not-send="true">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
      </blockquote>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-User mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-User@lists.osgeo.org">QGIS-User@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
    </blockquote>
  </body>
</html>