Comments (5)
It is not easy for me to test this, as uninstalling the system zlib on most linux distributions would cripple many things. It seems like the CMake TARGET_LINK_LIBRARIES including ${ZLIB_LIBRARIES} at the end is supposed to handle this.
Can you put a 'message("ZLIB_LIBRARIES: " ${ZLIB_LIBRARIES}' into the Desktop/CMakeLists.txt to see what it is set to? If it points to the right location, are the arguments you mention adding to the link command currently missing, or just misplaced?
from workbench.
I think I misunderstood, and you have system and non-system zlib installed. In that case, both can be found, and I don't know how to tell CMake to get the compiler and linker to ignore one that exists in a location where it needs to find other libraries.
from workbench.
After some reading on the linker, it seems that having -L/path/to/zlib anywhere in the link command before an -lz should allow -lz to get the custom zlib instead of the system one - is it installed somewhere other than /chimerahomes/phi/lib? I'm again curious what 'message("ZLIB_LIBRARIES: " ${ZLIB_LIBRARIES})' says.
from workbench.
Thank you for prompt reply.
I tried it and it indeed found the non-system zlib.
You are right about the linker, just put the path before -lz would work.
I seems more like a CMake bug.
For the moment I just modified the following variable in CMakeCache.txt.
CMAKE_EXE_LINKER_FLAGS:STRING=-L<my_custom_libdir>
This is preferred lib location for my system anyway.
Thank you.
from workbench.
Closing for now, as a workaround exists, and it is unclear how to fix it in the CMakeLists.txt file (may be CMake bug).
from workbench.
Related Issues (20)
- wb_view on Mac is quite blurry HOT 11
- How can I draw a flaten brain map image HOT 2
- workbench-linux64-v1.5.0.zip has too-generous permissions for files and directories HOT 3
- "-surface-resample" cannot resample an input surface that is very-high resolution HOT 8
- clang fails to compile workbench: error: non-constant-expression cannot be narrowed from type 'int64_t' (aka 'long') to 'int' in initializer list [-Wc++11-narrowing] HOT 2
- Fails to find QuaZip package
- Doesn't print the message about QuaZip correctly HOT 1
- Fails to find QuaZip headers
- error: use of undeclared identifier 'glGenBuffers' HOT 9
- configure allows qwt5 while later you use qwt_series_data.h that is only installed by qwt6 HOT 2
- Incomplete types
- ENABLE_TESTING() should be made conditional on cmake's standard variable BUILD_TESTING HOT 1
- Fails to find Qt and Qwt libraries HOT 5
- draw ROIs around vertices with MNI152 coordinates HOT 1
- Identify two brain coordinates in two different colors HOT 2
- cannot find -lgobject-2.0: No such file or directory HOT 4
- How can I create my custom CIFTI label file, with particular ROIs, from another CIFTI label file? HOT 1
- PLEASE READ FIRST: FAQ, Tutorial, "How do I do X?" questions
- Invalid path for ffmpeg HOT 1
- wb_view in Linux can't find OpenGL HOT 2
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 workbench.