How to get ECW support on QGIS 2.16 - Ubuntu 16.04?Unable to install ECW support on lubuntu 14.04How to force...

Why is Shelob considered evil?

Coworker asking me to not bring cakes due to self control issue. What should I do?

Is the fingering of thirds flexible or do I have to follow the rules?

How do you get out of your own psychology to write characters?

When using Volatility with a memory image, what is the Kernel version?

Why does this relation fail symmetry and transitivity properties?

Other than edits for international editions, did Harry Potter and the Philosopher's Stone receive errata?

Is there a way to pause a running process on Linux systems and resume later?

How to fly a direct entry holding pattern when approaching from an awkward angle?

How can I prevent an oracle who can see into the past from knowing everything that has happened?

How do I narratively explain how in-game circumstances do not mechanically allow a PC to instantly kill an NPC?

Buying a "Used" Router

Identical projects by students at two different colleges: still plagiarism?

If I tried and failed to start my own business, how do I apply for a job without job experience?

Is it possible to detect 100% of SQLi with a simple regex?

How to not let the Identify spell spoil everything?

How to deal with an underperforming subordinate?

How can find the 2D Voronoi cell area distribution?

How can guns be countered by melee combat without raw-ability or exceptional explanations?

What's the reason that we have a different number of days each month?

Players preemptively rolling, even though their rolls are useless or are checking the wrong skills

Taking an academic pseudonym?

What is a good way to explain how a character can produce flames from their body?

How do dictionaries source attestation?



How to get ECW support on QGIS 2.16 - Ubuntu 16.04?


Unable to install ECW support on lubuntu 14.04How to force QGIS to use GDAL version?Enabling ECW for QGIS on Linux Mint 16?Problem with gdal algorithm processCan't install support for ECW in QGIS 3.6 / 3.4 on Ubuntu 18.04Ubuntu Linux | Unable to configure ECW extenion in Geoserver 2.14.1 (war file)Installing ECW for QGIS in Ubuntu 12.04?Uninstall ERDAS ECW/JP2 SDK Version 5.0 (Ubuntu)ECW support for QGIS 2.8 (Wien) and Ubuntu 14.10 (Utopic Unicorn)ECW support on ubuntu 14.04 - QGIS 2.8.1How to compile QGIS from source with Grass?QGIS update from 2.14 to 2.16 failed on Ubuntu 14.04ECW support on QGIS version 2.14.4-Essen (Ubuntu 14.04)Error Compiling GDAL with ESRI FileGeodatabase Support On Ubuntu 16.04QGIS installation fails under Ubuntu 16.04Setting up QGIS ECW support on Linux Arch / Manjaro?













2















after several attempts I am still not able to enable ECW support on QGIS on Ubuntu Xenial.



Before updating to latest version of Ubuntu, solution proposed here worked for me on the same machine, but now it fails to complete the



gdal-ecw-build


command.



I tried several version of ecw sdk, but it always ends with a series of errors, where the last one is:



make: *** [ecwdataset.o] Errore 1


I also tried to change the gdal-ecw-build script adding a flag as suggested here, but without any effects.



Some info about my setup:




  • GCC version: 5.4

  • GDAL version: 2.1

  • QGIS version: 2.16.2










share|improve this question





























    2















    after several attempts I am still not able to enable ECW support on QGIS on Ubuntu Xenial.



    Before updating to latest version of Ubuntu, solution proposed here worked for me on the same machine, but now it fails to complete the



    gdal-ecw-build


    command.



    I tried several version of ecw sdk, but it always ends with a series of errors, where the last one is:



    make: *** [ecwdataset.o] Errore 1


    I also tried to change the gdal-ecw-build script adding a flag as suggested here, but without any effects.



    Some info about my setup:




    • GCC version: 5.4

    • GDAL version: 2.1

    • QGIS version: 2.16.2










    share|improve this question



























      2












      2








      2


      1






      after several attempts I am still not able to enable ECW support on QGIS on Ubuntu Xenial.



      Before updating to latest version of Ubuntu, solution proposed here worked for me on the same machine, but now it fails to complete the



      gdal-ecw-build


      command.



      I tried several version of ecw sdk, but it always ends with a series of errors, where the last one is:



      make: *** [ecwdataset.o] Errore 1


      I also tried to change the gdal-ecw-build script adding a flag as suggested here, but without any effects.



      Some info about my setup:




      • GCC version: 5.4

      • GDAL version: 2.1

      • QGIS version: 2.16.2










      share|improve this question
















      after several attempts I am still not able to enable ECW support on QGIS on Ubuntu Xenial.



      Before updating to latest version of Ubuntu, solution proposed here worked for me on the same machine, but now it fails to complete the



      gdal-ecw-build


      command.



      I tried several version of ecw sdk, but it always ends with a series of errors, where the last one is:



      make: *** [ecwdataset.o] Errore 1


      I also tried to change the gdal-ecw-build script adding a flag as suggested here, but without any effects.



      Some info about my setup:




      • GCC version: 5.4

      • GDAL version: 2.1

      • QGIS version: 2.16.2







      qgis gdal ubuntu ecw






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 15 at 15:09









      AndreJ

      68.5k561124




      68.5k561124










      asked Sep 1 '16 at 10:49









      mmicottimmicotti

      9125




      9125






















          4 Answers
          4






          active

          oldest

          votes


















          2














          As I noted in the updated answer to the linked question, there is NO pre-packaged solution for newer versions of Ubuntu. The libgdal-ecw-src package had been developed for GDAL 1.10, and will not work out-of-the-box with newer GDAL versions, and you will get no GDAL 1.10 for newer Ubuntu versions.



          Unless you are able to review the code (supposed you know exactly what it is doing), the only workaround is installing a virtual box with Ubuntu precise (12.04) and GDAL 1.10 just for converting ecw files.



          A better way is to self-compile GDAL with ECW support, as described in https://gist.github.com/1papaya/568c4580b1909071696c1cb119101823 and Can't install support for ECW in QGIS 3.6 / 3.4 on Ubuntu 18.04



          Or put Windows in a virtual box, if you have a license for that.






          share|improve this answer


























          • Thanks for the hint: I was finally able to convert my ecw files into geotiff using a docker instance of ubuntu 12.04. Not too easy to setup, but quicker than virtualbox, now that is running properly.

            – mmicotti
            Sep 15 '16 at 16:11





















          1














          I have enabled ECW support on QGIS 2.18-ltr on Ubuntu Bionic and it works perfectly.
          You have to follow instruction from this link up to the command export LD_LIBRARY_PATH=/usr/local/lib not necessary.
          After installation of libecwj2-3.3-2006-09-06 and then of the gdal (same version of QGIS) own builted library, because of QGIS installs library in /usr/lib but your compiled library will be here /usr/local/lib, you have to do backup the n.3 files in /usr/lib starting with libgdal.so* and then create a soft link to those with the same name in /usr/local/lib. Restart QGIS and it will work.






          share|improve this answer































            0














            Couldn't you build it from source?
            If so, referring to a working PKGBUILD on arch, you have to build gdal with the correct LDFLAG (in configure): --with-ecw=/usr.



            Extract:



            build() {
            cd "${srcdir}"/$pkgname-$pkgver
            export CFLAGS="$CFLAGS -fno-strict-aliasing"

            # bug #23654
            export LDFLAGS="$LDFLAGS -Wl,--as-needed"

            ./configure --prefix=/usr --with-netcdf --with-libtiff --with-sqlite3 --with-geotiff
            --with-mysql --with-python=/usr/bin/python2 --with-curl --with-hdf5 --with-perl --with-geos
            --with-png --with-poppler --with-spatialite --with-openjpeg --with-libkml
            --with-ecw=/usr

            # workaround for bug #13646
            sed -i 's/PY_HAVE_SETUPTOOLS=1/PY_HAVE_SETUPTOOLS=/g' ./GDALmake.opt
            sed -i 's/EXE_DEP_LIBS/KILL_EXE_DEP_LIBS/' apps/GNUmakefile

            make -j3


            And also make sure that libecwj2 is properly installed.

            Cheers,






            share|improve this answer































              0














              You can try it:
              http://wiki.openstreetmap.org/wiki/ECW



              It's working fine for me on debian (not ubuntu).



              Bye.






              share|improve this answer























                Your Answer








                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "79"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                autoActivateHeartbeat: false,
                convertImagesToLinks: false,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: null,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                draft saved

                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f209179%2fhow-to-get-ecw-support-on-qgis-2-16-ubuntu-16-04%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                4 Answers
                4






                active

                oldest

                votes








                4 Answers
                4






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                2














                As I noted in the updated answer to the linked question, there is NO pre-packaged solution for newer versions of Ubuntu. The libgdal-ecw-src package had been developed for GDAL 1.10, and will not work out-of-the-box with newer GDAL versions, and you will get no GDAL 1.10 for newer Ubuntu versions.



                Unless you are able to review the code (supposed you know exactly what it is doing), the only workaround is installing a virtual box with Ubuntu precise (12.04) and GDAL 1.10 just for converting ecw files.



                A better way is to self-compile GDAL with ECW support, as described in https://gist.github.com/1papaya/568c4580b1909071696c1cb119101823 and Can't install support for ECW in QGIS 3.6 / 3.4 on Ubuntu 18.04



                Or put Windows in a virtual box, if you have a license for that.






                share|improve this answer


























                • Thanks for the hint: I was finally able to convert my ecw files into geotiff using a docker instance of ubuntu 12.04. Not too easy to setup, but quicker than virtualbox, now that is running properly.

                  – mmicotti
                  Sep 15 '16 at 16:11


















                2














                As I noted in the updated answer to the linked question, there is NO pre-packaged solution for newer versions of Ubuntu. The libgdal-ecw-src package had been developed for GDAL 1.10, and will not work out-of-the-box with newer GDAL versions, and you will get no GDAL 1.10 for newer Ubuntu versions.



                Unless you are able to review the code (supposed you know exactly what it is doing), the only workaround is installing a virtual box with Ubuntu precise (12.04) and GDAL 1.10 just for converting ecw files.



                A better way is to self-compile GDAL with ECW support, as described in https://gist.github.com/1papaya/568c4580b1909071696c1cb119101823 and Can't install support for ECW in QGIS 3.6 / 3.4 on Ubuntu 18.04



                Or put Windows in a virtual box, if you have a license for that.






                share|improve this answer


























                • Thanks for the hint: I was finally able to convert my ecw files into geotiff using a docker instance of ubuntu 12.04. Not too easy to setup, but quicker than virtualbox, now that is running properly.

                  – mmicotti
                  Sep 15 '16 at 16:11
















                2












                2








                2







                As I noted in the updated answer to the linked question, there is NO pre-packaged solution for newer versions of Ubuntu. The libgdal-ecw-src package had been developed for GDAL 1.10, and will not work out-of-the-box with newer GDAL versions, and you will get no GDAL 1.10 for newer Ubuntu versions.



                Unless you are able to review the code (supposed you know exactly what it is doing), the only workaround is installing a virtual box with Ubuntu precise (12.04) and GDAL 1.10 just for converting ecw files.



                A better way is to self-compile GDAL with ECW support, as described in https://gist.github.com/1papaya/568c4580b1909071696c1cb119101823 and Can't install support for ECW in QGIS 3.6 / 3.4 on Ubuntu 18.04



                Or put Windows in a virtual box, if you have a license for that.






                share|improve this answer















                As I noted in the updated answer to the linked question, there is NO pre-packaged solution for newer versions of Ubuntu. The libgdal-ecw-src package had been developed for GDAL 1.10, and will not work out-of-the-box with newer GDAL versions, and you will get no GDAL 1.10 for newer Ubuntu versions.



                Unless you are able to review the code (supposed you know exactly what it is doing), the only workaround is installing a virtual box with Ubuntu precise (12.04) and GDAL 1.10 just for converting ecw files.



                A better way is to self-compile GDAL with ECW support, as described in https://gist.github.com/1papaya/568c4580b1909071696c1cb119101823 and Can't install support for ECW in QGIS 3.6 / 3.4 on Ubuntu 18.04



                Or put Windows in a virtual box, if you have a license for that.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 18 mins ago

























                answered Sep 1 '16 at 11:52









                AndreJAndreJ

                68.5k561124




                68.5k561124













                • Thanks for the hint: I was finally able to convert my ecw files into geotiff using a docker instance of ubuntu 12.04. Not too easy to setup, but quicker than virtualbox, now that is running properly.

                  – mmicotti
                  Sep 15 '16 at 16:11





















                • Thanks for the hint: I was finally able to convert my ecw files into geotiff using a docker instance of ubuntu 12.04. Not too easy to setup, but quicker than virtualbox, now that is running properly.

                  – mmicotti
                  Sep 15 '16 at 16:11



















                Thanks for the hint: I was finally able to convert my ecw files into geotiff using a docker instance of ubuntu 12.04. Not too easy to setup, but quicker than virtualbox, now that is running properly.

                – mmicotti
                Sep 15 '16 at 16:11







                Thanks for the hint: I was finally able to convert my ecw files into geotiff using a docker instance of ubuntu 12.04. Not too easy to setup, but quicker than virtualbox, now that is running properly.

                – mmicotti
                Sep 15 '16 at 16:11















                1














                I have enabled ECW support on QGIS 2.18-ltr on Ubuntu Bionic and it works perfectly.
                You have to follow instruction from this link up to the command export LD_LIBRARY_PATH=/usr/local/lib not necessary.
                After installation of libecwj2-3.3-2006-09-06 and then of the gdal (same version of QGIS) own builted library, because of QGIS installs library in /usr/lib but your compiled library will be here /usr/local/lib, you have to do backup the n.3 files in /usr/lib starting with libgdal.so* and then create a soft link to those with the same name in /usr/local/lib. Restart QGIS and it will work.






                share|improve this answer




























                  1














                  I have enabled ECW support on QGIS 2.18-ltr on Ubuntu Bionic and it works perfectly.
                  You have to follow instruction from this link up to the command export LD_LIBRARY_PATH=/usr/local/lib not necessary.
                  After installation of libecwj2-3.3-2006-09-06 and then of the gdal (same version of QGIS) own builted library, because of QGIS installs library in /usr/lib but your compiled library will be here /usr/local/lib, you have to do backup the n.3 files in /usr/lib starting with libgdal.so* and then create a soft link to those with the same name in /usr/local/lib. Restart QGIS and it will work.






                  share|improve this answer


























                    1












                    1








                    1







                    I have enabled ECW support on QGIS 2.18-ltr on Ubuntu Bionic and it works perfectly.
                    You have to follow instruction from this link up to the command export LD_LIBRARY_PATH=/usr/local/lib not necessary.
                    After installation of libecwj2-3.3-2006-09-06 and then of the gdal (same version of QGIS) own builted library, because of QGIS installs library in /usr/lib but your compiled library will be here /usr/local/lib, you have to do backup the n.3 files in /usr/lib starting with libgdal.so* and then create a soft link to those with the same name in /usr/local/lib. Restart QGIS and it will work.






                    share|improve this answer













                    I have enabled ECW support on QGIS 2.18-ltr on Ubuntu Bionic and it works perfectly.
                    You have to follow instruction from this link up to the command export LD_LIBRARY_PATH=/usr/local/lib not necessary.
                    After installation of libecwj2-3.3-2006-09-06 and then of the gdal (same version of QGIS) own builted library, because of QGIS installs library in /usr/lib but your compiled library will be here /usr/local/lib, you have to do backup the n.3 files in /usr/lib starting with libgdal.so* and then create a soft link to those with the same name in /usr/local/lib. Restart QGIS and it will work.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered May 17 '18 at 12:03









                    CaMaCaMa

                    1136




                    1136























                        0














                        Couldn't you build it from source?
                        If so, referring to a working PKGBUILD on arch, you have to build gdal with the correct LDFLAG (in configure): --with-ecw=/usr.



                        Extract:



                        build() {
                        cd "${srcdir}"/$pkgname-$pkgver
                        export CFLAGS="$CFLAGS -fno-strict-aliasing"

                        # bug #23654
                        export LDFLAGS="$LDFLAGS -Wl,--as-needed"

                        ./configure --prefix=/usr --with-netcdf --with-libtiff --with-sqlite3 --with-geotiff
                        --with-mysql --with-python=/usr/bin/python2 --with-curl --with-hdf5 --with-perl --with-geos
                        --with-png --with-poppler --with-spatialite --with-openjpeg --with-libkml
                        --with-ecw=/usr

                        # workaround for bug #13646
                        sed -i 's/PY_HAVE_SETUPTOOLS=1/PY_HAVE_SETUPTOOLS=/g' ./GDALmake.opt
                        sed -i 's/EXE_DEP_LIBS/KILL_EXE_DEP_LIBS/' apps/GNUmakefile

                        make -j3


                        And also make sure that libecwj2 is properly installed.

                        Cheers,






                        share|improve this answer




























                          0














                          Couldn't you build it from source?
                          If so, referring to a working PKGBUILD on arch, you have to build gdal with the correct LDFLAG (in configure): --with-ecw=/usr.



                          Extract:



                          build() {
                          cd "${srcdir}"/$pkgname-$pkgver
                          export CFLAGS="$CFLAGS -fno-strict-aliasing"

                          # bug #23654
                          export LDFLAGS="$LDFLAGS -Wl,--as-needed"

                          ./configure --prefix=/usr --with-netcdf --with-libtiff --with-sqlite3 --with-geotiff
                          --with-mysql --with-python=/usr/bin/python2 --with-curl --with-hdf5 --with-perl --with-geos
                          --with-png --with-poppler --with-spatialite --with-openjpeg --with-libkml
                          --with-ecw=/usr

                          # workaround for bug #13646
                          sed -i 's/PY_HAVE_SETUPTOOLS=1/PY_HAVE_SETUPTOOLS=/g' ./GDALmake.opt
                          sed -i 's/EXE_DEP_LIBS/KILL_EXE_DEP_LIBS/' apps/GNUmakefile

                          make -j3


                          And also make sure that libecwj2 is properly installed.

                          Cheers,






                          share|improve this answer


























                            0












                            0








                            0







                            Couldn't you build it from source?
                            If so, referring to a working PKGBUILD on arch, you have to build gdal with the correct LDFLAG (in configure): --with-ecw=/usr.



                            Extract:



                            build() {
                            cd "${srcdir}"/$pkgname-$pkgver
                            export CFLAGS="$CFLAGS -fno-strict-aliasing"

                            # bug #23654
                            export LDFLAGS="$LDFLAGS -Wl,--as-needed"

                            ./configure --prefix=/usr --with-netcdf --with-libtiff --with-sqlite3 --with-geotiff
                            --with-mysql --with-python=/usr/bin/python2 --with-curl --with-hdf5 --with-perl --with-geos
                            --with-png --with-poppler --with-spatialite --with-openjpeg --with-libkml
                            --with-ecw=/usr

                            # workaround for bug #13646
                            sed -i 's/PY_HAVE_SETUPTOOLS=1/PY_HAVE_SETUPTOOLS=/g' ./GDALmake.opt
                            sed -i 's/EXE_DEP_LIBS/KILL_EXE_DEP_LIBS/' apps/GNUmakefile

                            make -j3


                            And also make sure that libecwj2 is properly installed.

                            Cheers,






                            share|improve this answer













                            Couldn't you build it from source?
                            If so, referring to a working PKGBUILD on arch, you have to build gdal with the correct LDFLAG (in configure): --with-ecw=/usr.



                            Extract:



                            build() {
                            cd "${srcdir}"/$pkgname-$pkgver
                            export CFLAGS="$CFLAGS -fno-strict-aliasing"

                            # bug #23654
                            export LDFLAGS="$LDFLAGS -Wl,--as-needed"

                            ./configure --prefix=/usr --with-netcdf --with-libtiff --with-sqlite3 --with-geotiff
                            --with-mysql --with-python=/usr/bin/python2 --with-curl --with-hdf5 --with-perl --with-geos
                            --with-png --with-poppler --with-spatialite --with-openjpeg --with-libkml
                            --with-ecw=/usr

                            # workaround for bug #13646
                            sed -i 's/PY_HAVE_SETUPTOOLS=1/PY_HAVE_SETUPTOOLS=/g' ./GDALmake.opt
                            sed -i 's/EXE_DEP_LIBS/KILL_EXE_DEP_LIBS/' apps/GNUmakefile

                            make -j3


                            And also make sure that libecwj2 is properly installed.

                            Cheers,







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Sep 2 '16 at 13:48









                            VictorVictor

                            1,445715




                            1,445715























                                0














                                You can try it:
                                http://wiki.openstreetmap.org/wiki/ECW



                                It's working fine for me on debian (not ubuntu).



                                Bye.






                                share|improve this answer




























                                  0














                                  You can try it:
                                  http://wiki.openstreetmap.org/wiki/ECW



                                  It's working fine for me on debian (not ubuntu).



                                  Bye.






                                  share|improve this answer


























                                    0












                                    0








                                    0







                                    You can try it:
                                    http://wiki.openstreetmap.org/wiki/ECW



                                    It's working fine for me on debian (not ubuntu).



                                    Bye.






                                    share|improve this answer













                                    You can try it:
                                    http://wiki.openstreetmap.org/wiki/ECW



                                    It's working fine for me on debian (not ubuntu).



                                    Bye.







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Sep 30 '16 at 12:03









                                    Mathieu DMathieu D

                                    386




                                    386






























                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        To learn more, see our tips on writing great answers.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f209179%2fhow-to-get-ecw-support-on-qgis-2-16-ubuntu-16-04%23new-answer', 'question_page');
                                        }
                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        Щит и меч (фильм) Содержание Названия серий | Сюжет |...

                                        is 'sed' thread safeWhat should someone know about using Python scripts in the shell?Nexenta bash script uses...

                                        Meter-Bus Содержание Параметры шины | Стандартизация |...