AcademySoftwareFoundation / OpenColorIO

A color management framework for visual effects and animation.
https://opencolorio.org
BSD 3-Clause "New" or "Revised" License
1.76k stars 435 forks source link

[minizip-ng] Issue to building from sources on windows with visual studio 2022 #1819

Open ssh4net opened 1 year ago

ssh4net commented 1 year ago

Constantly have issue with minizip-ng on compilation of OCIO.

     Creating library E:/GH/OCIO-MZ/build/src/OpenColorIO/Release/OpenColorIO.lib and object E:/GH/OCIO-MZ/build/src/OpenColorIO/Release/OpenColorIO.exp
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_path_compare_wc referenced in function "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl OpenColorIO_v2_3dev::CIOPOciozArchive::getFastLutFileHash(char const *)const " (?getFastLutFileHash@
CIOPOciozArchive@OpenColorIO_v2_3dev@@UEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBD@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_os_open_dir referenced in function "void __cdecl OpenColorIO_v2_3dev::addSupportedFiles(void *,char const *,char const *)" (?addSupportedFiles@OpenColorIO_v2_3dev@@YAXPEAXPEBD1@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_os_read_dir referenced in function "void __cdecl OpenColorIO_v2_3dev::addSupportedFiles(void *,char const *,char const *)" (?addSupportedFiles@OpenColorIO_v2_3dev@@YAXPEAXPEBD1@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_os_close_dir referenced in function "void __cdecl OpenColorIO_v2_3dev::addSupportedFiles(void *,char const *,char const *)" (?addSupportedFiles@OpenColorIO_v2_3dev@@YAXPEAXPEBD1@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_os_is_dir referenced in function "void __cdecl OpenColorIO_v2_3dev::addSupportedFiles(void *,char const *,char const *)" (?addSupportedFiles@OpenColorIO_v2_3dev@@YAXPEAXPEBD1@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_stream_open referenced in function "void __cdecl OpenColorIO_v2_3dev::archiveConfig(class std::basic_ostream<char,struct std::char_traits<char> > &,class OpenColorIO_v2_3dev::Config const &,char const *)" (?archiveConfig@OpenColorIO_v2_3dev@@YAXAEAV?$b
asic_ostream@DU?$char_traits@D@std@@@std@@AEBVConfig@1@PEBD@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_stream_mem_tell referenced in function "void __cdecl OpenColorIO_v2_3dev::archiveConfig(class std::basic_ostream<char,struct std::char_traits<char> > &,class OpenColorIO_v2_3dev::Config const &,char const *)" (?archiveConfig@OpenColorIO_v2_3dev@@YAXAEA
V?$basic_ostream@DU?$char_traits@D@std@@@std@@AEBVConfig@1@PEBD@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_stream_mem_seek referenced in function "void __cdecl OpenColorIO_v2_3dev::archiveConfig(class std::basic_ostream<char,struct std::char_traits<char> > &,class OpenColorIO_v2_3dev::Config const &,char const *)" (?archiveConfig@OpenColorIO_v2_3dev@@YAXAEA
V?$basic_ostream@DU?$char_traits@D@std@@@std@@AEBVConfig@1@PEBD@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_stream_mem_close referenced in function "public: __cdecl OpenColorIO_v2_3dev::MinizipNgMemStreamGuard::~MinizipNgMemStreamGuard(void)" (??1MinizipNgMemStreamGuard@OpenColorIO_v2_3dev@@QEAA@XZ) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_stream_mem_get_buffer referenced in function "void __cdecl OpenColorIO_v2_3dev::archiveConfig(class std::basic_ostream<char,struct std::char_traits<char> > &,class OpenColorIO_v2_3dev::Config const &,char const *)" (?archiveConfig@OpenColorIO_v2_3dev@@
YAXAEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AEBVConfig@1@PEBD@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_stream_mem_set_grow_size referenced in function "void __cdecl OpenColorIO_v2_3dev::archiveConfig(class std::basic_ostream<char,struct std::char_traits<char> > &,class OpenColorIO_v2_3dev::Config const &,char const *)" (?archiveConfig@OpenColorIO_v2_3de
v@@YAXAEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AEBVConfig@1@PEBD@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_stream_mem_create referenced in function "void __cdecl OpenColorIO_v2_3dev::archiveConfig(class std::basic_ostream<char,struct std::char_traits<char> > &,class OpenColorIO_v2_3dev::Config const &,char const *)" (?archiveConfig@OpenColorIO_v2_3dev@@YAXA
EAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AEBVConfig@1@PEBD@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_stream_mem_delete referenced in function "public: __cdecl OpenColorIO_v2_3dev::MinizipNgMemStreamGuard::~MinizipNgMemStreamGuard(void)" (??1MinizipNgMemStreamGuard@OpenColorIO_v2_3dev@@QEAA@XZ) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_zip_reader_open_file referenced in function "void __cdecl OpenColorIO_v2_3dev::ExtractOCIOZArchive(char const *,char const *)" (?ExtractOCIOZArchive@OpenColorIO_v2_3dev@@YAXPEBD0@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_zip_reader_close referenced in function "void __cdecl OpenColorIO_v2_3dev::ExtractOCIOZArchive(char const *,char const *)" (?ExtractOCIOZArchive@OpenColorIO_v2_3dev@@YAXPEBD0@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_zip_reader_goto_first_entry referenced in function "void __cdecl OpenColorIO_v2_3dev::getEntriesMappingFromArchiveFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::map<class std::basic_strin
g<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_
string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > > &)" (?getEntriesMappingFromArchiveFile@OpenColorIO_v2_3dev@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAV?$map@V?$bas
ic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@3@@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_zip_reader_goto_next_entry referenced in function "void __cdecl OpenColorIO_v2_3dev::getEntriesMappingFromArchiveFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::map<class std::basic_string
<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_s
tring<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > > &)" (?getEntriesMappingFromArchiveFile@OpenColorIO_v2_3dev@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAV?$map@V?$basi
c_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@3@@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_zip_reader_entry_close referenced in function "public: __cdecl OpenColorIO_v2_3dev::MinizipNgHandlerGuard::~MinizipNgHandlerGuard(void)" (??1MinizipNgHandlerGuard@OpenColorIO_v2_3dev@@QEAA@XZ) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_zip_reader_entry_get_info referenced in function "void __cdecl OpenColorIO_v2_3dev::getEntriesMappingFromArchiveFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::map<class std::basic_string<
char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_st
ring<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > > &)" (?getEntriesMappingFromArchiveFile@OpenColorIO_v2_3dev@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAV?$map@V?$basic
_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@@3@@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_zip_reader_entry_save_buffer referenced in function "class std::vector<unsigned char,class std::allocator<unsigned char> > __cdecl OpenColorIO_v2_3dev::getFileBufferByExtension(void *,struct mz_zip_file_s &,class std::basic_string<char,struct std::char
_traits<char>,class std::allocator<char> >)" (?getFileBufferByExtension@OpenColorIO_v2_3dev@@YA?AV?$vector@EV?$allocator@E@std@@@std@@PEAXAEAUmz_zip_file_s@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_zip_reader_entry_save_buffer_length referenced in function "class std::vector<unsigned char,class std::allocator<unsigned char> > __cdecl OpenColorIO_v2_3dev::getFileBufferByExtension(void *,struct mz_zip_file_s &,class std::basic_string<char,struct st
d::char_traits<char>,class std::allocator<char> >)" (?getFileBufferByExtension@OpenColorIO_v2_3dev@@YA?AV?$vector@EV?$allocator@E@std@@@std@@PEAXAEAUmz_zip_file_s@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_zip_reader_save_all referenced in function "void __cdecl OpenColorIO_v2_3dev::ExtractOCIOZArchive(char const *,char const *)" (?ExtractOCIOZArchive@OpenColorIO_v2_3dev@@YAXPEBD0@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_zip_reader_create referenced in function "void __cdecl OpenColorIO_v2_3dev::ExtractOCIOZArchive(char const *,char const *)" (?ExtractOCIOZArchive@OpenColorIO_v2_3dev@@YAXPEBD0@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_zip_reader_delete referenced in function "public: __cdecl OpenColorIO_v2_3dev::MinizipNgHandlerGuard::~MinizipNgHandlerGuard(void)" (??1MinizipNgHandlerGuard@OpenColorIO_v2_3dev@@QEAA@XZ) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_zip_writer_open referenced in function "void __cdecl OpenColorIO_v2_3dev::archiveConfig(class std::basic_ostream<char,struct std::char_traits<char> > &,class OpenColorIO_v2_3dev::Config const &,char const *)" (?archiveConfig@OpenColorIO_v2_3dev@@YAXAEA
V?$basic_ostream@DU?$char_traits@D@std@@@std@@AEBVConfig@1@PEBD@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_zip_writer_close referenced in function "void __cdecl OpenColorIO_v2_3dev::archiveConfig(class std::basic_ostream<char,struct std::char_traits<char> > &,class OpenColorIO_v2_3dev::Config const &,char const *)" (?archiveConfig@OpenColorIO_v2_3dev@@YAXAE
AV?$basic_ostream@DU?$char_traits@D@std@@@std@@AEBVConfig@1@PEBD@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_zip_writer_entry_open referenced in function "void __cdecl OpenColorIO_v2_3dev::archiveConfig(class std::basic_ostream<char,struct std::char_traits<char> > &,class OpenColorIO_v2_3dev::Config const &,char const *)" (?archiveConfig@OpenColorIO_v2_3dev@@
YAXAEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AEBVConfig@1@PEBD@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_zip_writer_entry_close referenced in function "public: __cdecl OpenColorIO_v2_3dev::MinizipNgHandlerGuard::~MinizipNgHandlerGuard(void)" (??1MinizipNgHandlerGuard@OpenColorIO_v2_3dev@@QEAA@XZ) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_zip_writer_entry_write referenced in function "void __cdecl OpenColorIO_v2_3dev::archiveConfig(class std::basic_ostream<char,struct std::char_traits<char> > &,class OpenColorIO_v2_3dev::Config const &,char const *)" (?archiveConfig@OpenColorIO_v2_3dev@
@YAXAEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AEBVConfig@1@PEBD@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_zip_writer_add_path referenced in function "void __cdecl OpenColorIO_v2_3dev::addSupportedFiles(void *,char const *,char const *)" (?addSupportedFiles@OpenColorIO_v2_3dev@@YAXPEAXPEBD1@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_zip_writer_set_compress_method referenced in function "void __cdecl OpenColorIO_v2_3dev::archiveConfig(class std::basic_ostream<char,struct std::char_traits<char> > &,class OpenColorIO_v2_3dev::Config const &,char const *)" (?archiveConfig@OpenColorIO_
v2_3dev@@YAXAEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AEBVConfig@1@PEBD@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_zip_writer_set_compress_level referenced in function "void __cdecl OpenColorIO_v2_3dev::archiveConfig(class std::basic_ostream<char,struct std::char_traits<char> > &,class OpenColorIO_v2_3dev::Config const &,char const *)" (?archiveConfig@OpenColorIO_v
2_3dev@@YAXAEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AEBVConfig@1@PEBD@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_zip_writer_create referenced in function "void __cdecl OpenColorIO_v2_3dev::archiveConfig(class std::basic_ostream<char,struct std::char_traits<char> > &,class OpenColorIO_v2_3dev::Config const &,char const *)" (?archiveConfig@OpenColorIO_v2_3dev@@YAXA
EAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AEBVConfig@1@PEBD@Z) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
OCIOZArchive.obj : error LNK2019: unresolved external symbol mz_zip_writer_delete referenced in function "public: __cdecl OpenColorIO_v2_3dev::MinizipNgHandlerGuard::~MinizipNgHandlerGuard(void)" (??1MinizipNgHandlerGuard@OpenColorIO_v2_3dev@@QEAA@XZ) [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]
E:\GH\OCIO-MZ\build\src\OpenColorIO\Release\OpenColorIO_2_3.dll : fatal error LNK1120: 34 unresolved externals [E:\GH\OCIO-MZ\build\src\OpenColorIO\OpenColorIO.vcxproj]

minizip-ng compiled with this settings:

cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=RELEASE ^
-DZLIB_ROOT=e:/GH/zlib-ng/build/Release ^
-D BZip2_ROOT=e:/GH/bzip2/build/RELEASE ^
-D LibLZMA_ROOT=e:/GH/XZ/build/Release ^
-DMZ_FETCH_LIBS=ON .. && cmake --build . --config Release --target install -j16

OCIO compiling with this settings:

cmake -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=ON -D BUILD_STATIC_LIBS=OFF -D OCIO_VERBOSE=ON ^
-D OCIO_INSTALL_EXT_PACKAGES=NONE -D OCIO_BUILD_PYTHON=Off -D OCIO_BUILD_APPS=ON -D OCIO_BUILD_GPU_TESTS=OFF ^
-D Imath_DIR=e:/GH/Imath/build/RELEASE/lib/cmake/Imath -D Imath_ROOT=e:/GH/Imath/build/RELEASE -D Imath_LIBRARY=e:/GH/Imath/build/RELEASE/lib/Imath-3_1.lib -D Imath_INCLUDE_DIR=e:/GH/Imath/build/RELEASE/include ^
-D ZLIB_ROOT=e:/GH/zlib-ng/build/Release ^
-D GLUT_ROOT=e:/GH/vcpkg-GLUT/installed/x64-windows ^
-D GLEW_ROOT=e:/GH/vcpkg-GLEW/installed/x64-windows ^
-D yaml-cpp_ROOT=e:/GH/yaml-cpp/build/Release -D yaml-cpp_VERSION=0.7 ^
-D minizip-ng_DIR=e:/GH/minizip-ng/build/Release/lib/cmake/minizip -D minizip-ng_ROOT=e:/GH/minizip-ng/build/Release -D minizip-ng_LIBRARY=e:/GH/minizip-ng/build/Release/lib/libminizip.lib  -D minizip-ng_INCLUDE_DIR=e:/GH/minizip-ng/build/Release/include/minizip ^
-D expat_ROOT=e:/GH/libexpat/expat/build/Release -D expat_LIBRARY=e:/GH/libexpat/expat/build/Release/lib/libexpat.lib ^
-D OpenEXR_ROOT=e:/GH/OpenEXR/build/RELEASE -D OpenEXR_LIBRARY=e:/GH/OpenEXR/build/RELEASE/lib/OpenEXR-3_1.lib -D OpenEXR_INCLUDE_DIR=e:/GH/OpenEXR/build/RELEASE/include ^
-D lcms2_INCLUDE_DIR=e:/GH/Little-CMS/include -D lcms2_LIBRARY=e:/GH/Little-CMS/RELEASE/lcms2.lib ^
-D pystring_LIBRARY=e:/GH/vcpkg-pystring/installed/x64-windows/lib/pystring.lib -D pystring_INCLUDE_DIR=e:/GH/vcpkg-pystring/installed/x64-windows/include/ ^
-D CMAKE_INSTALL_PREFIX=RELEASE ..

cmake --build . --config Release --target install -j32

config correctly? understand all libs:

--
-- Checking for mandatory dependencies...
-- Found expat: E:/GH/libexpat/expat/build/Release/lib/libexpat.lib (found suitable version "2.5.0", minimum required is "2.5.0")
-- ←[32mFound expat (version "2.5.0")←[m
-- Found yaml-cpp: E:/GH/yaml-cpp/build/Release/lib/yaml-cpp.lib (found suitable version "0.7", minimum required is "0.7.0")
-- ←[32mFound yaml-cpp (version "0.7")←[m
-- Found pystring: E:/GH/vcpkg-pystring/installed/x64-windows/include (Required is at least version "1.1.3")
-- ←[32mFound pystring (no version information)←[m
-- Found Imath: E:/GH/Imath/build/RELEASE/lib/Imath-3_1.lib (found suitable version "3.1.9", minimum required is "3.1.6")
-- ←[32mFound Imath (version "3.1.9")←[m
-- Found ZLIB: E:/GH/zlib-ng/build/Release/lib/zlib.lib (found suitable version "1.2.13", minimum required is "1.2.13")
-- ←[32mFound ZLIB (version "1.2.13")←[m
-- Found minizip-ng: E:/GH/minizip-ng/build/Release/lib/libminizip.lib (found suitable version "4.0.1", minimum required is "3.0.7")
-- ←[32mFound minizip-ng (version "4.0.1")←[m
--
-- Checking for optional dependencies...
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Found ZLIB: E:/GH/zlib-ng/build/Release/lib/zlib.lib (found version "1.2.13")
-- Found Imath: E:/GH/Imath/build/RELEASE/lib/Imath-3_1.lib (found version "3.1.9")
-- Could NOT find OpenImageIO (missing: OpenImageIO_DIR)
CMake Warning at share/cmake/macros/ocio_handle_dependency.cmake:124 (find_package):

for this moment only 2.1.3 version of OCIO compiling without issues. ALl other versions that used 3 or 4 version are had same errors. Including other issue with version number that had numbers out of octal numbers.

JeanChristopheMorinPerso commented 1 year ago

Did you try to set https://github.com/zlib-ng/minizip-ng/blob/master/mz.h#L150?

ssh4net commented 1 year ago

Sorry, not so good with cmake. Where I should define this and, sorry, how?

remia commented 1 year ago

Not sure if you are still stuck on this? For reference here is how we do it in the nightly CI workflow (though it's with statically linked dependency which is probably simpler than what you are trying to achieve):

https://github.com/AcademySoftwareFoundation/OpenColorIO/blob/main/share/ci/scripts/multi/install_minizip-ng.sh https://github.com/AcademySoftwareFoundation/OpenColorIO/blob/main/.github/workflows/dependencies_latest.yml#L333