You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @Grandix, You're encountering errors during MinGW (GCC) compilation due to undefined references to OpenVINO GenAI symbols. OpenVINO is primarily designed, tested, and optimized for MSVC (Microsoft Visual C++) on Windows, and the official documentation and pre-built binaries are tailored for MSVC. While MinGW may work in some cases, it is not officially supported, and you may encounter compatibility issues that require manual adjustments. For the best results and seamless integration, MSVC is the recommended and officially supported compiler for building and running OpenVINO on Windows.
Hi @Grandix, You're encountering errors during MinGW (GCC) compilation due to undefined references to OpenVINO GenAI symbols. OpenVINO is primarily designed, tested, and optimized for MSVC (Microsoft Visual C++) on Windows, and the official documentation and pre-built binaries are tailored for MSVC. While MinGW may work in some cases, it is not officially supported, and you may encounter compatibility issues that require manual adjustments. For the best results and seamless integration, MSVC is the recommended and officially supported compiler for building and running OpenVINO on Windows.
Thanks for your reply.
My application is developed and compiled on Windows using GNU. Is there any methods to integrate OpenVINO on windows?
I have some error duration compilation:
C:\Users\VAIO\code\openvino\openvino.genai\samples\cpp\build> cmake --build . --config Release [ 1%] Building CXX object common/format_reader/CMakeFiles/format_reader.dir/src/MnistUbyte.cpp.obj [ 2%] Building CXX object common/format_reader/CMakeFiles/format_reader.dir/src/bmp.cpp.obj [ 4%] Building CXX object common/format_reader/CMakeFiles/format_reader.dir/src/format_reader.cpp.obj [ 5%] Building CXX object common/format_reader/CMakeFiles/format_reader.dir/src/npy.cpp.obj [ 7%] Building CXX object common/format_reader/CMakeFiles/format_reader.dir/src/opencv_wrapper.cpp.obj [ 8%] Building CXX object common/format_reader/CMakeFiles/format_reader.dir/src/yuv_nv12.cpp.obj [ 10%] Linking CXX static library ..\..\intel64\libformat_reader.a [ 10%] Built target format_reader [ 11%] Building CXX object beam_search_causal_lm/CMakeFiles/beam_search_causal_lm.dir/beam_search_causal_lm.cpp.obj [ 12%] Linking CXX executable ..\intel64\beam_search_causal_lm.exe C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\beam_search_causal_lm.dir/objects.a(beam_search_causal_lm.cpp.obj):beam_search_causal_lm.cpp:(.text+0x276): undefined reference to
__imp__ZN2ov5genai11LLMPipelineC1ERKNSt10filesystem7__cxx114pathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt3mapISC_NS_3AnyESt4lessISC_ESaISt4pairISD_SG_EEE'C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\beam_search_causal_lm.dir/objects.a(beam_search_causal_lm.cpp.obj):beam_search_causal_lm.cpp:(.text+0x345): undefined reference to
__imp__ZN2ov5genai11LLMPipeline8generateESt7variantIJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS8_SaIS8_EEEESt8optionalINS0_16GenerationConfigEES2_IJSt8functionIFbS8_EESt10shared_ptrINS0_12StreamerBaseEESt9monostateEE' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\beam_search_causal_lm.dir/objects.a(beam_search_causal_lm.cpp.obj):beam_search_causal_lm.cpp:(.text+0x3c3): undefined reference to
__imp__ZN2ov5genai11LLMPipelineD1Ev'C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\beam_search_causal_lm.dir/objects.a(beam_search_causal_lm.cpp.obj):beam_search_causal_lm.cpp:(.text+0x562): undefined reference to
__imp__ZN2ov5genai11LLMPipelineD1Ev' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\beam_search_causal_lm.dir/objects.a(beam_search_causal_lm.cpp.obj):beam_search_causal_lm.cpp:(.text$_ZN2ov5genailsERSoRKNS0_14DecodedResultsE[_ZN2ov5genailsERSoRKNS0_14DecodedResultsE]+0x83): undefined reference to
__imp__ZN2ov9Exception11default_msgB5cxx11E'C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\beam_search_causal_lm.dir/objects.a(beam_search_causal_lm.cpp.obj):beam_search_causal_lm.cpp:(.text$_ZN2ov5genailsERSoRKNS0_14DecodedResultsE[_ZN2ov5genailsERSoRKNS0_14DecodedResultsE]+0xaf): undefined reference to
__imp__ZN2ov13AssertFailure6createEPKciS2_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\beam_search_causal_lm.dir/objects.a(beam_search_causal_lm.cpp.obj):beam_search_causal_lm.cpp:(.text$_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2ov3AnyEED1Ev[_ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN2ov3AnyEED1Ev]+0x1a): undefined reference to
__imp__ZN2ov3AnyD1Ev'collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [beam_search_causal_lm\CMakeFiles\beam_search_causal_lm.dir\build.make:104: intel64/beam_search_causal_lm.exe] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:811: beam_search_causal_lm/CMakeFiles/beam_search_causal_lm.dir/all] Error 2
mingw32-make: *** [Makefile:135: all] Error 2`
but MSVC can work well.
The text was updated successfully, but these errors were encountered: