Open Celery030 opened 6 years ago
Thanks for sharing. My problems is with using nmake.
[ 15%] Built target flann_cpp_s [ 30%] Built target flann_cpp [ 46%] Built target flann_s [ 61%] Built target flann [ 69%] Building MEX extension C:/Users/Xueqin/Desktop/lab/MyCurrentWork/3DRecons tructCode/flann-1.8.4-src/build/src/matlab/nearest_neighbors.mexw64 Building with 'MinGW64 Compiler (C++)'. C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0xc0): undefined reference to __imp_flann_set_di stance_type' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x136): undefined reference toimp_flann_log_v erbosity' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x24d): undefined reference to __imp_flann_load_ index_float' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x283): undefined reference toimp_flannload index_double' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x2b6): undefined reference to `imp_flannload index_byte' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x2e9): undefined reference to __imp_flann_load_ index_int' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x39a): undefined reference toimp_flannsave index_float' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x3ae): undefined reference to `imp_flannsave index_double' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x3c2): undefined reference to __imp_flann_save_ index_byte' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x3d6): undefined reference toimp_flannsave index_int' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x43f): undefined reference to `imp_flannfree index_float' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x454): undefined reference to __imp_flann_free_ index_double' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x469): undefined reference toimp_flannfree index_byte' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x47e): undefined reference to `imp_flannfree index_int' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x87f): undefined reference to __imp_flann_find_ nearest_neighbors_index_float' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x8e9): undefined reference toimp_flannfind nearest_neighbors_index_double' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x94e): undefined reference to `imp_flannfind nearest_neighbors_index_byte' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x9b1): undefined reference to __imp_flann_find_ nearest_neighbors_index_int' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0xc6d): undefined reference to__imp_flannfind nearest_neighbors_float' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0xcde): undefined reference to `imp_flannfind nearest_neighbors_double' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0xd48): undefined reference to __imp_flann_find_ nearest_neighbors_byte' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0xdbb): undefined reference to__imp_flannfind nearest_neighbors_int' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x10e7): undefined reference to __imp_flann_buil d_index_float' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x1126): undefined reference toimp_flann_buil d_index_double' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x1162): undefined reference to `imp_flann_buil d_index_byte' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x119e): undefined reference to `__imp_flann_buil d_index_int' collect2.exe: error: ld returned 1 exit status
__imp_flann_set_di stance_type' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x136): undefined reference to
__imp_flann_load_ index_float' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x283): undefined reference to
__imp_flann_load_ index_int' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x39a): undefined reference to
__imp_flann_save_ index_byte' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x3d6): undefined reference to
__imp_flann_free_ index_double' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x469): undefined reference to
__imp_flann_find_ nearest_neighbors_index_float' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x8e9): undefined reference to
__imp_flann_find_ nearest_neighbors_index_int' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0xc6d): undefined reference to
__imp_flann_find_ nearest_neighbors_byte' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0xdbb): undefined reference to
__imp_flann_buil d_index_float' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x1126): undefined reference to
NMAKE : fatal error U1077: 'call' : return code '0xffffffff' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017 \Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\nmake.exe"' : return code ' 0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017 \Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\nmake.exe"' : return code ' 0x2' Stop.
I do not know why the undefined reference problem happened.
Thanks for sharing. My problems is with using nmake.
[ 15%] Built target flann_cpp_s [ 30%] Built target flann_cpp [ 46%] Built target flann_s [ 61%] Built target flann [ 69%] Building MEX extension C:/Users/Xueqin/Desktop/lab/MyCurrentWork/3DRecons tructCode/flann-1.8.4-src/build/src/matlab/nearest_neighbors.mexw64 Building with 'MinGW64 Compiler (C++)'. C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0xc0): undefined reference to
__imp_flann_set_di stance_type' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x136): undefined reference to
imp_flann_log_v erbosity' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x24d): undefined reference to__imp_flann_load_ index_float' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x283): undefined reference to
imp_flannload index_double' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x2b6): undefined reference to `imp_flannload index_byte' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x2e9): undefined reference to__imp_flann_load_ index_int' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x39a): undefined reference to
imp_flannsave index_float' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x3ae): undefined reference to `imp_flannsave index_double' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x3c2): undefined reference to__imp_flann_save_ index_byte' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x3d6): undefined reference to
imp_flannsave index_int' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x43f): undefined reference to `imp_flannfree index_float' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x454): undefined reference to__imp_flann_free_ index_double' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x469): undefined reference to
imp_flannfree index_byte' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x47e): undefined reference to `imp_flannfree index_int' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x87f): undefined reference to__imp_flann_find_ nearest_neighbors_index_float' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x8e9): undefined reference to
imp_flannfind nearest_neighbors_index_double' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x94e): undefined reference to `imp_flannfind nearest_neighbors_index_byte' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x9b1): undefined reference to__imp_flann_find_ nearest_neighbors_index_int' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0xc6d): undefined reference to
__imp_flannfind nearest_neighbors_float' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0xcde): undefined reference to `imp_flannfind nearest_neighbors_double' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0xd48): undefined reference to__imp_flann_find_ nearest_neighbors_byte' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0xdbb): undefined reference to
__imp_flannfind nearest_neighbors_int' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x10e7): undefined reference to__imp_flann_buil d_index_float' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x1126): undefined reference to
imp_flann_buil d_index_double' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x1162): undefined reference to `imp_flann_buil d_index_byte' C:\Users\Xueqin\AppData\Local\Temp\mex_277520264417744_6264\nearest_neighbors.ob j:nearest_neighbors.cpp:(.text+0x119e): undefined reference to `__imp_flann_buil d_index_int' collect2.exe: error: ld returned 1 exit statusNMAKE : fatal error U1077: 'call' : return code '0xffffffff' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017 \Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\nmake.exe"' : return code ' 0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017 \Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\nmake.exe"' : return code ' 0x2' Stop.
I do not know why the undefined reference problem happened.