Closed aking7 closed 1 year ago
Hi,
I'm building the MSVC project using CMake, but the linker cannot find the symbols __imp___tls_index_ and __imp___tls_offset_.
__imp___tls_index_
__imp___tls_offset_
[main] Building folder: rave_vst [build] Starting build [proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --build c:/Users/alex/git/rave_vst/build --config Release --target rave-vst_Standalone -j 18 -- [build] MSBuild version 17.4.0+18d5aef85 for .NET Framework [build] Checking File Globs [build] Generating juce_binarydata_rave-vst-Images/JuceLibraryCode/BinaryData1.cpp, juce_binarydata_rave-vst-Images/JuceLibraryCode/BinaryData2.cpp, juce_binarydata_rave-vst-Images/JuceLibraryCode/BinaryData3.cpp, juce_binarydata_rave-vst-Images/JuceLibraryCode/BinaryData.h [build] rave-vst-Images.vcxproj -> C:\Users\alex\git\rave_vst\build\Release\rave-vst-Images.lib [build] rave-vst.vcxproj -> C:\Users\alex\git\rave_vst\build\rave-vst_artefacts\Release\RAVE_SharedCode.lib [build] Creating library C:/Users/alex/git/rave_vst/build/rave-vst_artefacts/Release/Standalone/RAVE.lib and object C:/Users/alex/git/rave_vst/build/rave-vst_artefacts/Release/Standalone/RAVE.exp [build] Generating code [build] C:\Users\alex\git\rave_vst\build\torch\libtorch\include\c10\util\Optional.h(760): warning C4702: unreachable code [C:\Users\alex\git\rave_vst\build\rave-vst_Standalone.vcxproj] [build] Finished generating code [build] RAVE_SharedCode.lib(PluginProcessor.obj) : error LNK2001: unresolved external symbol __imp___tls_index_?init@?1??lazy_init_num_threads@internal@at@@YAXXZ@4_NA [C:\Users\alex\git\rave_vst\build\rave-vst_Standalone.vcxproj] [build] RAVE_SharedCode.lib(PluginProcessor.obj) : error LNK2001: unresolved external symbol __imp___tls_offset_?init@?1??lazy_init_num_threads@internal@at@@YAXXZ@4_NA [C:\Users\alex\git\rave_vst\build\rave-vst_Standalone.vcxproj] [build] C:\Users\alex\git\rave_vst\build\rave-vst_artefacts\Release\Standalone\RAVE.exe : fatal error LNK1120: 2 unresolved externals [C:\Users\alex\git\rave_vst\build\rave-vst_Standalone.vcxproj] [proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" --build c:/Users/alex/git/rave_vst/build --config Release --target rave-vst_Standalone -j 18 -- exited with code: 1 and signal: null [build] Build finished with exit code 1
This seems to be the same issue as @acids-ircam/nn_tilde.
Thanks, Alex
Seems like an issue with libtorch. I was able to complete the build using the workaround here: https://stackoverflow.com/a/74437172/8232122.
Hi,
I'm building the MSVC project using CMake, but the linker cannot find the symbols
__imp___tls_index_
and__imp___tls_offset_
.This seems to be the same issue as @acids-ircam/nn_tilde.
Thanks, Alex