-
Notifications
You must be signed in to change notification settings - Fork 42
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
Fringe cmake can't find GDAL #9
Comments
What is the version number in
|
I would also check the cmake config output - I suspect its loading gdal.h from a different location than the lib and reporting the mismatch. |
less /usr/local/home/jlmd9g/software/minicondda3/envs/fringe/include/gdal_version.h: The relevant lines from FindGDAL.cmake:
If this is true, requiring cmake to look in the specified ENV instead of the default first should fix the problem. |
So
doesn't work? What shell are you using? |
Just as a follow-up, cmake is definitely using gdal at the default location: And yes, that command gives me the same error. Shell is bash. |
What version of cmake? |
That did it... |
It was using the cache. I'm feeling sheepish now. :) |
All is well .... these things are never documented :-P |
Thanks for the help! I'll push an update to the environment variable list at some point. |
If that is helpful! |
Go for it .. |
Building fringe using:
CXX=g++ cmake -DCMAKE_INSTALL_PREFIX=../install ../src/fringe
on "Ubuntu 18.04.4 LTS", where file structure is
Fringe
build
src
fringe
install
I get the following error message:
CMake Error at /usr/local/home/jlmd9g/software/minicondda3/envs/fringe/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
Could NOT find GDAL: Found unsuitable version "2.2.3", but required is at
least "3.0" (found
/usr/local/home/jlmd9g/software/minicondda3/envs/fringe/lib/libgdal.so)
Call Stack (most recent call first):
/usr/local/home/jlmd9g/software/minicondda3/envs/fringe/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:443 (_FPHSA_FAILURE_MESSAGE)
cmake/FindGDAL.cmake:287 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:32 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
See also "/usr/local/home/jlmd9g/software/FRiNGE/build/CMakeFiles/CMakeOutput.log".
But:
gdal-config --prefix
/usr/local/home/jlmd9g/software/minicondda3/envs/fringe
gdal-config --version
3.0.4
gdal-config --cflags
-I/usr/local/home/jlmd9g/software/minicondda3/envs/fringe/include
gdal-config --libs
-L/usr/local/home/jlmd9g/software/minicondda3/envs/fringe/lib -lgdal
I've got GDAL_DIR and GDAL_ROOT specified to the same directory:
echo $GDAL_DIR
/usr/local/home/jlmd9g/software/minicondda3/envs/fringe//lib
in which is the .so files:
ls /usr/local/home/jlmd9g/software/minicondda3/envs/fringe//lib/libgdal*
/usr/local/home/jlmd9g/software/minicondda3/envs/fringe//lib/libgdal.a
/usr/local/home/jlmd9g/software/minicondda3/envs/fringe//lib/libgdal.so
/usr/local/home/jlmd9g/software/minicondda3/envs/fringe//lib/libgdal.so.26
/usr/local/home/jlmd9g/software/minicondda3/envs/fringe//lib/libgdal.so.26.0.4
Any ideas?
The text was updated successfully, but these errors were encountered: