BoysTownOrg / chapro-openmha-plugin

1 stars 1 forks source link

cmake --build . --target chapro-openmha-plugin error #26

Open engineer-HA opened 5 years ago

engineer-HA commented 5 years ago

Hi guys, tried to install your plugin in my already working openmha but got stuck on this command please note that this is just the half of the errors I am getting.

$ cmake --build . --target chapro-openmha-plugin [ 38%] Built target project_openMHA [ 52%] Built target hearing-aid [ 90%] Built target project_chapro [ 95%] Linking CXX shared library chapro.so C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x35f): undefined reference to __cxa_begin_catch' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x388): undefined reference tocxa_end_catch' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x397): undefined reference to `cxa_end_catch' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x3d8): undefined reference to __cxa_allocate_exception' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x40d): undefined reference tocxa_throw' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x418): undefined reference to __cxa_free_exception' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x4f7): undefined reference tocxa_begin_catch' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x516): undefined reference to `cxa_rethrow' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x521): undefined reference to `cxa_end_catch' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x52f): undefined reference to __cxa_begin_catch' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x53d): undefined reference tocxa_end_catch' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x54c): undefined reference to `cxa_end_catch' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x5cf): undefined reference to operator delete(void*, unsigned long long)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x5dc): undefined reference tooperator delete(void, unsigned long long)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x622): undefined reference to __cxa_begin_catch' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x630): undefined reference tocxa_end_catch' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x642): undefined reference to `cxa_end_catch' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x6af): undefined reference to std::terminate()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x6bd): undefined reference tocxa_begin_catch' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x6cb): undefined reference to `cxa_end_catch' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x6da): undefined reference to __cxa_end_catch' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x7b4): undefined reference tostd::__throw_logic_error(char const)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x813): undefined reference to operator new(unsigned long long)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/chapro-openmha-plugin.dir/chapro-openmha-plugin.cpp.obj:chapro-openmha-plugin.cpp:(.text+0x839): undefined reference tooperator delete(void*)'

sbashford commented 5 years ago

Thanks for taking interest in this project.

Currently there is no windows support for this project. I am testing with the following compilers: AppleClang on macOs, gcc on Ubuntu, and arm-linux-gnueabihf-gcc on Ubuntu.

I would like to add windows support. Perhaps you could assist me? It looks like you are using msys2 on Windows with mingw, is that correct?