Comments (6)
I'm still facing the same problem on Ubuntu 18.04. Any ideas?
from libgeotiff.
Oookaay, here is my solution for now:
In the main CMakeLists.txt I commented out lines 179-189.
These lines checks functions in TIFF library and somehow it fails on Linux.
I will add more info if I have any problems while using this built libgeotiff library.
from libgeotiff.
I think this can be fixed by adding this line to CMakeLists.txt
:
cmake_policy(SET CMP0075 NEW)
Specifically, the CMake checks don't seem to honor the CMAKE_REQUIRED_LIBRARIES
. This causes failure when you try to link against libraries on your system.
from libgeotiff.
Another option is to pass -DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY
to cmake
.
from libgeotiff.
For me this happened because cmake was looking for libtiff using FIND_PACKAGE and found it, but only the variables TIFF_FOUND, TIFF_DIR, TIFF_VERSION were set, the variable TIFF_LIBRARIES was not, but was needed. I actually had to explicitly set the libraries in the /usr/share/cmake-3.22/Modules/CheckFunctionExists.cmake
file to circumvent the issue.
from libgeotiff.
Yes, the CMake package generated by libtiff upstream does not provide TIFF_LIBRARIES
, so nothing ends up being passed to the try_compile
for linking.in order to pass. The check needs reworked to handle this case. Something like this may be fine:
if (NOT TIFF_LIBRARIES AND TARGET TIFF::tiff)
get_property(TIFF_LIBRARIES TARGET TIFF::tiff PROPERTY LOCATION)
# request a `STATIC` library in `try_compile` as dependent libraries are not provided this way?
endif ()
from libgeotiff.
Related Issues (20)
- Fails to build with PROJ 9.3.1
- testlistgeo fails on i386
- Encoded projection using GTIFSetFromProj4 are specified as USER-DEFINED HOT 3
- testlistgeo fails with PROJ 8.0.0
- 1.6.0: test suite is failing HOT 2
- Feature request: Support TIFF tags 42112 (0xa480) and 42113 (0xa481) HOT 1
- Issue building with Visual Studio 2019 HOT 1
- Windows compilation gives error HOT 9
- #define exported in geo_config.h conflict with other packages such as GDAL
- Vulnerabilities HOT 4
- geotiff-config.cmake lacks several things
- Unable to configure using PROJ 9.0.0 HOT 3
- License cleanup? HOT 3
- Fails to build with PROJ 9.1.1 due to test failures
- Support button is not placed perfectly in the website HOT 5
- s/PROJ_INCLUDE_DIR/PROJ_INCLUDE_DIRS
- Wrong epsg number in pcs
- libgeotiff 1.7.0 - No libgeotiff.so.5 file after running make install HOT 1
- Test failures with PROJ 9.3.0 HOT 1
- appveyor cmake install trouble HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libgeotiff.