minimal-cmake-emscripten-project
minimal-cmake-emscripten-project copied to clipboard
Linker Error with JavaScript Files
Thank you for providing this repo. I think I'm getting close but I have a linker error. Any troubleshooting ideas?
[100%] Linking CXX executable ../build.emscripten/client.js
"/Users/myusr/Library/Application Support/JetBrains/Toolbox/apps/CLion/ch-0/191.7479.33/CLion.app/Contents/bin/cmake/mac/bin/cmake" -E cmake_link_script CMakeFiles/client.dir/link.txt --verbose=1
/Users/myusr/repos/emsdk/fastcomp/emscripten/em++ -s DEMANGLE_SUPPORT=1 --preload-file /Users/myusr/Desktop/minimal-cmake-emscripten-project/assets --bind @CMakeFiles/client.dir/objects1.rsp -o ../build.emscripten/client.js @CMakeFiles/client.dir/linklibs.rsp
error: undefined symbol: _ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4findEcj
warning: To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0`
error: undefined symbol: _ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5rfindEcj
error: undefined symbol: _ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareEPKc
error: undefined symbol: _ZNKSt3__120__vector_base_commonILb1EE20__throw_length_errorEv
error: undefined symbol: _ZNKSt3__121__basic_string_commonILb1EE20__throw_length_errorEv
error: undefined symbol: _ZNKSt3__16locale9use_facetERNS0_2idE
error: undefined symbol: _ZNKSt3__18ios_base6getlocEv
error: undefined symbol: _ZNSt11logic_errorC2ERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE
error: undefined symbol: _ZNSt13runtime_errorC2ERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE
error: undefined symbol: _ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5eraseEjj
error: undefined symbol: _ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj
error: undefined symbol: _ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcjj
error: undefined symbol: _ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEjc
error: undefined symbol: _ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc
error: undefined symbol: _ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcj
error: undefined symbol: _ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc
error: undefined symbol: _ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6resizeEjc
error: undefined symbol: _ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc
error: undefined symbol: _ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_
error: undefined symbol: _ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_jjRKS4_
error: undefined symbol: _ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED1Ev
error: undefined symbol: _ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_
error: undefined symbol: _ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryC1ERS3_
error: undefined symbol: _ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryD1Ev
error: undefined symbol: _ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEED0Ev
error: undefined symbol: _ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEED1Ev
error: undefined symbol: _ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEED2Ev
error: undefined symbol: _ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEElsEd
error: undefined symbol: _ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEElsEf
error: undefined symbol: _ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEElsEj
error: undefined symbol: _ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE4syncEv
error: undefined symbol: _ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE5imbueERKNS_6localeE
error: undefined symbol: _ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE5uflowEv
error: undefined symbol: _ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE6setbufEPci
error: undefined symbol: _ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE6xsgetnEPci
error: undefined symbol: _ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE6xsputnEPKci
error: undefined symbol: _ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE9showmanycEv
error: undefined symbol: _ZNSt3__115basic_streambufIcNS_11char_traitsIcEEEC2Ev
error: undefined symbol: _ZNSt3__115basic_streambufIcNS_11char_traitsIcEEED2Ev
error: undefined symbol: _ZNSt3__16localeD1Ev
error: undefined symbol: _ZNSt3__18ios_base4initEPv
error: undefined symbol: _ZNSt3__18ios_base5clearEj
error: undefined symbol: _ZNSt3__19basic_iosIcNS_11char_traitsIcEEED2Ev
error: undefined symbol: _ZTv0_n12_NSt3__113basic_ostreamIcNS_11char_traitsIcEEED0Ev
error: undefined symbol: _ZTv0_n12_NSt3__113basic_ostreamIcNS_11char_traitsIcEEED1Ev
error: undefined symbol: _Znaj
error: undefined symbol: _Znwj
error: undefined symbol: _ZNSt3__15ctypeIcE2idE
error: undefined symbol: _ZTINSt3__113basic_ostreamIcNS_11char_traitsIcEEEE
error: undefined symbol: _ZTINSt3__115basic_streambufIcNS_11char_traitsIcEEEE
error: undefined symbol: _ZTVNSt3__18ios_baseE
error: undefined symbol: _ZTVNSt3__19basic_iosIcNS_11char_traitsIcEEEE
Error: Aborting compilation due to previous errors
shared:ERROR: '/Users/myusr/repos/emsdk/node/8.9.1_64bit/bin/node /Users/myusr/repos/emsdk/fastcomp/emscripten/src/compiler.js /tmp/tmp83nrir8g.txt /Users/myusr/repos/emsdk/fastcomp/emscripten/src/embind/emval.js /Users/myusr/repos/emsdk/fastcomp/emscripten/src/embind/embind.js /Users/myusr/repos/emsdk/fastcomp/emscripten/src/library_pthread_stub.js' failed (1)
make[3]: *** [../build.emscripten/client.js] Error 1
make[2]: *** [CMakeFiles/client.dir/all] Error 2
make[1]: *** [CMakeFiles/client.dir/rule] Error 2
make: *** [client] Error 2
Disregard. Still having trouble but the above error was from accidentally not configuring cmake.
Actually, all of my efforts are ending in this failure.