-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling Qgis with ECW in flatpak #229
Comments
Please create a merge request with your changes so we can look into them |
Thank you very much for answering. I don't know how to do what you are telling me. I am attaching a link to the modified json file. https://drive.google.com/file/d/10lZ2FmMX-bKRvjmPyDoVlvYIdAWTuUUZ/view?usp=sharing As I have indicated before, the ECW source code and libraries, I copy them by hand inside the build file, inside the "lib" folder |
Good morning, I have found the error, it was my mistake in interpreting the error. The error is that GDAL does not find the ECW library. As I have been able to interpret, in the ./configure of GDAL, the "ECW_LIBS" parameter must be added. I have carried out several tests, with direct routes and the error continues. The hexagon directory structure is (in the release folder, that's where the libraries are):
what would be the path, to put in ECW_LIBS?
Thanks for the help |
Good morning, I haven't had much time to dedicate to this. But I have seen how to fix it. No matter how much I directed the path to where the compiled libraries were in the hexagon directory, it always gives an error. So I did a test, copy the libraries directly to the lib folder, modify the path of the libraries and it compiled perfectly. In summary In the qgis.qgis.org file, in the gdal module, we will add the following compiler parameters:
We downloaded the ECW libraries from the official Hexagon website. Of everything that is downloaded to us, we can delete all, except the folders:
Once the folders, which are useless, have been cleaned, we will have a directory called hexagon, with the three previous folders. When running the flatpak-builder command, to start the build, we headed to the folder
And we paste the hexagon folder in lib We copy all the libraries that the folder contains:
And we paste them in the folder
And now we just have to wait for the compilation. In my laptop with Intel i7-4700HQ 8 threads, it has taken me about 5 hours and has also consumed up to 10 Gb RAM at various times. Can someone with more experience with flatpak add all of the above to Qgis.
|
I leave Qgis with ECW support |
Good afternoon, I work from a linux machine and need to use QGIS with ECW support. Watch how to compile GDAL with ECW. Since I am using flatpak packages, I decided to create my own QGIS faltpak with ECW.
The first thing I did was download the org.qgis.qgis.json file, which, to compile QGIS, without ECW.
To include ECW in Gdal, inside the json file, in the Gdal module add:
"--with-ecw=/app/lib/hexagon",
Run flatpak-builder and while checking the files and downloading the different source code, add the source files by hand, which correspond to ECW and leave them in the corresponding folder.
When it comes to compile the Gdal module, initially, it does not give me any error, after spending 10 minutes compiling the module, I get the following error:
From what I interpret, it does not find the libgdal.so library, but if I check the directory, where everything is being cooked, the file does exist.
how can you solve this problem?
The text was updated successfully, but these errors were encountered: