Closed toodemhard closed 1 month ago
Btw im using a fork with latest version of minizip https://github.com/toodemhard/11Zip. I know some other build issues were fixed previously.
What do you propose? Have you tried -D BUILD_SHARED_LIBS=OFF?
Yea setting BUILD_SHARED_LIBS=OFF fixes it. I think the reason is that I want to output all my dlls next to the exe but minizip expects the zlib dll to be somewhere else. It's probably just my bad usage of indiscriminately changing the library output dir so feel free to close this.
I managed to hack around the issue when building shared libs by using cmake to copy the dlls to next to the exe post build and instead of using install i just copy all the files to a distribution directory. I think I'm going to keep using the copy hack for distribution anyways because I cant get install() to install my libs.
Sorry I couldn't help more. I'm just not an expert at package distribution with CMake.
I can build with this normally but when setting CMAKE_LIBRARY_OUTPUT_DIRECTORY or trying to include this library as part of an install it causes a link error.
The build for this library is quite unstable and sometimes even reconfigure cmake can break it so maybe something wrong with the cmake files like some hardcoded paths?
When this error occurs the minizip.lib just has no symbols whereas it does in working build.
Causes:
CMAKE_LIBRARY_OUTPUT_DIRECTORY
variableinstall(DIRECTORY ${CMAKE_SOURCE_DIR}/data/ DESTINATION ${CMAKE_INSTALL_PREFIX}/data)