Make dies
Closed this issue · 1 comments
On Ubuntu 16.04 x64 everything in building apparently works, and make
dies with
CMakeFiles/testSOM.dir/TestSom.cpp.o: In function
test_SOM_demo()': TestSom.cpp:(.text+0xb2e): undefined reference to
somcluster'
TestSom.cpp:(.text+0x1090): undefined reference toclusterdistance' TestSom.cpp:(.text+0x14e0): undefined reference to
clusterdistance'
CMakeFiles/testSOM.dir/TestSom.cpp.o: In functiontest_org()': TestSom.cpp:(.text+0x298f): undefined reference to
somcluster'
CMakeFiles/testSOM.dir/TestSom.cpp.o: In functionClusterSom::distance(float*, float*)': TestSom.cpp:(.text._ZN10ClusterSom8distanceEPfS0_[_ZN10ClusterSom8distanceEPfS0_]+0x3a4): undefined reference to
clusterdistance'
CMakeFiles/testSOM.dir/TestSom.cpp.o: In functionClusterSom::train(int)': TestSom.cpp:(.text._ZN10ClusterSom5trainEi[_ZN10ClusterSom5trainEi]+0x60): undefined reference to
somcluster'
CMakeFiles/testSOM.dir/TestSom.cpp.o: In functionClusterSom::findBestMatchingUnit(float*)': TestSom.cpp:(.text._ZN10ClusterSom20findBestMatchingUnitEPf[_ZN10ClusterSom20findBestMatchingUnitEPf]+0x281): undefined reference to
clusterdistance'
CMakeFiles/testSOM.dir/TestSom.cpp.o: In functionClusterSom::distance_coords(int, int, int, int)': TestSom.cpp:(.text._ZN10ClusterSom15distance_coordsEiiii[_ZN10ClusterSom15distance_coordsEiiii]+0x80): undefined reference to
clusterdistance'
CMakeFiles/testSOM.dir/TestSom.cpp.o: In functionSomPresentor::showSimularityMap(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int, int, int)': TestSom.cpp:(.text._ZN12SomPresentor17showSimularityMapENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjii[_ZN12SomPresentor17showSimularityMapENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjii]+0x26e): undefined reference to
clusterdistance'
collect2: error: ld returned 1 exit status
SOM/CMakeFiles/testSOM.dir/build.make:113: recipe for target 'SOM/testSOM' failed
make[2]: *** [SOM/testSOM] Error 1
CMakeFiles/Makefile2:864: recipe for target 'SOM/CMakeFiles/testSOM.dir/all' failed
make[1]: *** [SOM/CMakeFiles/testSOM.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 71%] Building CXX object Common/CMakeFiles/common.dir/VideoWriter.cpp.o
[ 72%] Building CXX object Common/CMakeFiles/common.dir/DestinTreeManager.cpp.o
[ 74%] Linking C executable test/test
[ 74%] Built target test
[ 76%] Linking CXX shared library libcommon.so
[ 76%] Built target common
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Before that, cmake .
outputs
-- Configuring done
CMake Error at SOM/CMakeLists.txt:3 (add_library):
Cannot find source file:cluster/src/cluster
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx-- Generating done
I'm using cmake 3.5.1
and gcc 5.4.0
What am I doing wrong?
Okay, I cloned the whole cluster
directory to my SOM
, which helped. I have no idea why it didn't get cloned there in the first place.