Can't turn BUILD_ZLIB off in cmake 3.29.0 (even though it should be off by default) #5539
Unanswered
ThibeauSW-1951556
asked this question in
Q&A
Replies: 1 comment
-
ZLIB comes with the assimp project. It's ON by default because of it needing to be required. Just added info here, in case you were not aware, when you setup your project, you add -lassimp to your project, but will you also add -lz as well. No other externals needed if you are coding in C++ (maybe depending on your setup). If you code in C, like I do, then simply add the libraries in this order ...
If on windows, you add -lgdi32 BEFORE the -lassimp. In fact, any other library must be added BEFORE it. From my experience, there is no way around the requirement for the Zlib library. Hope this info helps. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As the title implies I have pulled the repo directly and have been trying to build a static .lib file using cmake
Checking the file options at the bottom of the install instructions page I noticed that ASSIMP_BUILD_ZLIB is supposed to be off by default but when I use Cmake GUI it is in fact on
now if I try to dissable it i get the following error
now since from what I understand this option needs to be off so that I don't need to install a separate instance of zlib
If anyone knows how I can fix this any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions