recompile with -fPIC

#1

/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_icf.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_memory.o): requires dynamic R_X86_64_PC32 reloc against ‘free’ which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_resample.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_scd.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_util.o): requires dynamic R_X86_64_PC32 reloc against ‘__isnan’ which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(kiss_fftr.o): requires dynamic R_X86_64_PC32 reloc against ‘sincos’ which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(sha1.o): requires dynamic R_X86_64_PC32 reloc against ‘memcpy’ which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(sqlite3.o): requires unsupported dynamic reloc 11; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(sqlite3.o): requires unsupported dynamic reloc 11; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_algebra.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_basic.o): requires dynamic R_X86_64_PC32 reloc against ‘memcpy’ which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_cache.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(kiss_fft.o): requires dynamic R_X86_64_PC32 reloc against ‘malloc’ which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cblas_dgemm.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cblas_sgemm.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cblas_xerbla.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/sagar/Documents/of_v20190324_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(xerbla.o): requires dynamic R_X86_64_PC32 reloc against ‘__ctype_tolower_loc’ which may overflow at runtime; recompile with -fPIC
collect2: error: ld returned 1 exit status
/home/sagar/Documents/of_v20190324_linux64gcc6_release/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:397: recipe for target ‘bin/ConvnetViewer’ failed
make[1]: *** [bin/ConvnetViewer] Error 1
make[1]: Leaving directory ‘/home/sagar/Documents/of_v20190324_linux64gcc6_release/apps/myApps/ConvnetViewer’
/home/sagar/Documents/of_v20190324_linux64gcc6_release/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:124: recipe for target ‘Release’ failed
make: *** [Release] Error 2

#2

This error usually happens when you are linking against the wrong kind of static library, but may be if you state your problem in a more detailed way we’ll be able to help you better.

regards
Davide

#3

I think I have the same problem.
I am trying to get https://github.com/ml4a/ml4a-ofx to work on linux. following https://github.com/kylemcdonald/ofxCcv/blob/master/docs/build-linux64.md I compiled ccv. when I’m building https://github.com/ml4a/ml4a-ofx/tree/master/apps/ImageTSNELive in qt creator, I get the following errors:

/usr/bin/ld.gold: error: /home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_convnet.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_icf.o): requires unsupported dynamic reloc 11; recompile with -fPIC
/usr/bin/ld.gold: error: /home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_memory.o): requires unsupported dynamic reloc 11; recompile with -fPIC
/usr/bin/ld.gold: error: /home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_resample.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_scd.o): requires unsupported dynamic reloc 11; recompile with -fPIC
/usr/bin/ld.gold: error: /home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_util.o): requires unsupported dynamic reloc 11; recompile with -fPIC
/usr/bin/ld.gold: error: /home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(kiss_fftr.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(siphash24.o): requires unsupported dynamic reloc 11; recompile with -fPIC
/usr/bin/ld.gold: error: /home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(sqlite3.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_algebra.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_basic.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_cache.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/usr/bin/ld.gold: error: /home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(kiss_fft.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_convnet.o):ccv_convnet.c:function _ccv_convnet_layer_forward_propagate: error: undefined reference to '__kmpc_fork_call'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_convnet.o):ccv_convnet.c:function .omp_outlined.: error: undefined reference to '__kmpc_dispatch_init_4'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_convnet.o):ccv_convnet.c:function .omp_outlined.: error: undefined reference to '__kmpc_dispatch_next_4'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_convnet.o):ccv_convnet.c:function .omp_outlined.: error: undefined reference to '__kmpc_dispatch_next_4'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_convnet.o):ccv_convnet.c:function .omp_outlined..47: error: undefined reference to '__kmpc_dispatch_init_4'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_convnet.o):ccv_convnet.c:function .omp_outlined..47: error: undefined reference to '__kmpc_dispatch_next_4'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_convnet.o):ccv_convnet.c:function .omp_outlined..47: error: undefined reference to '__kmpc_dispatch_next_4'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_convnet.o):ccv_convnet.c:function .omp_outlined..48: error: undefined reference to '__kmpc_dispatch_init_4'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(ccv_convnet.o):ccv_convnet.c:function .omp_outlined..49: error: undefined reference to '__kmpc_dispatch_init_4'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function _cwc_kern_mute_neuron(float*, float*): error: undefined reference to '__cudaPopCallConfiguration'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function _cwc_kern_mute_neuron(float*, float*): error: undefined reference to 'cudaLaunchKernel'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_kern_relu_backward_propagate: error: undefined reference to '__cudaPopCallConfiguration'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_kern_relu_backward_propagate: error: undefined reference to 'cudaLaunchKernel'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function _cwc_kern_neuron_scan(float*, float*, int, int, int, int, int, int): error: undefined reference to '__cudaPopCallConfiguration'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function _cwc_kern_neuron_scan(float*, float*, int, int, int, int, int, int): error: undefined reference to 'cudaLaunchKernel'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function void _cwc_kern_classify<30>(float*, int*, float*, int, int, int): error: undefined reference to '__cudaPopCallConfiguration'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function void _cwc_kern_classify<30>(float*, int*, float*, int, int, int): error: undefined reference to 'cudaLaunchKernel'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function _cwc_convnet_alloc_forwards(ccv_convnet_t*, int, int, int, int, int, int, int) [clone .isra.3] [clone .constprop.21]: error: undefined reference to 'cudaMalloc'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function _cwc_convnet_alloc_forwards(ccv_convnet_t*, int, int, int, int, int, int, int) [clone .isra.3] [clone .constprop.21]: error: undefined reference to 'cudaMalloc'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function _cwc_convnet_alloc_forwards(ccv_convnet_t*, int, int, int, int, int, int, int) [clone .isra.3] [clone .constprop.21]: error: undefined reference to 'cudaMalloc'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function _cwc_convnet_alloc_forwards(ccv_convnet_t*, int, int, int, int, int, int, int) [clone .isra.3] [clone .constprop.21]: error: undefined reference to 'cudaMalloc'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_classify: error: undefined reference to 'cudaMemcpy'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_classify: error: undefined reference to 'cudaMemcpy'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_classify: error: undefined reference to 'cudaMemcpyAsync'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_classify: error: undefined reference to '__cudaPushCallConfiguration'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_classify: error: undefined reference to '__cudaPushCallConfiguration'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_classify: error: undefined reference to '__cudaPushCallConfiguration'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_classify: error: undefined reference to 'cudaMemcpyAsync'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_classify: error: undefined reference to 'cudaMemcpyAsync'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_classify: error: undefined reference to 'cudaStreamSynchronize'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_classify: error: undefined reference to 'cudaHostAlloc'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_classify: error: undefined reference to 'cudaMemcpy'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_classify: error: undefined reference to 'cudaFreeHost'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_classify: error: undefined reference to 'cudaHostAlloc'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_classify: error: undefined reference to 'cudaHostAlloc'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_classify: error: undefined reference to 'cudaHostAlloc'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_classify: error: undefined reference to 'cudaStreamCreate'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_classify: error: undefined reference to 'cublasCreate_v2'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_classify: error: undefined reference to 'cublasSetStream_v2'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_classify: error: undefined reference to 'cudaEventCreate'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_classify: error: undefined reference to 'cudaEventCreate'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_classify: error: undefined reference to 'cudaMemcpy'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_compact: error: undefined reference to 'cudaSetDevice'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_compact: error: undefined reference to 'cudaFree'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_compact: error: undefined reference to 'cudaFree'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_compact: error: undefined reference to 'cudaSetDevice'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_compact: error: undefined reference to 'cudaFreeHost'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_compact: error: undefined reference to 'cudaFree'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_compact: error: undefined reference to 'cudaFreeHost'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_compact: error: undefined reference to 'cudaFree'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_compact: error: undefined reference to 'cudaFreeHost'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_compact: error: undefined reference to 'cudaEventDestroy'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_compact: error: undefined reference to 'cublasDestroy_v2'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_compact: error: undefined reference to 'cudaStreamDestroy'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_compact: error: undefined reference to 'cudaEventDestroy'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_compact: error: undefined reference to 'cublasDestroy_v2'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_compact: error: undefined reference to 'cudaStreamDestroy'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_compact: error: undefined reference to 'cudaEventDestroy'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_compact: error: undefined reference to 'cudaEventDestroy'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_compact: error: undefined reference to 'cudaSetDevice'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function cwc_convnet_compact: error: undefined reference to 'cudaSetDevice'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function __cudaUnregisterBinaryUtil(): error: undefined reference to '__cudaUnregisterFatBinary'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function __sti____cudaRegisterAll(): error: undefined reference to '__cudaRegisterFatBinary'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function __sti____cudaRegisterAll(): error: undefined reference to '__cudaRegisterFunction'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function __sti____cudaRegisterAll(): error: undefined reference to '__cudaRegisterFunction'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function __sti____cudaRegisterAll(): error: undefined reference to '__cudaRegisterFunction'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet.o):tmpxft_00005573_00000000-5_cwc_convnet.cudafe1.cpp:function __sti____cudaRegisterAll(): error: undefined reference to '__cudaRegisterFunction'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_pool.o):tmpxft_000055ac_00000000-5_cwc_convnet_pool.cudafe1.cpp:function cwc_convnet_max_pool_forward_propagate: error: undefined reference to '__cudaPushCallConfiguration'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_pool.o):tmpxft_000055ac_00000000-5_cwc_convnet_pool.cudafe1.cpp:function __cudaUnregisterBinaryUtil(): error: undefined reference to '__cudaUnregisterFatBinary'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_pool.o):tmpxft_000055ac_00000000-5_cwc_convnet_pool.cudafe1.cpp:function __sti____cudaRegisterAll(): error: undefined reference to '__cudaRegisterFatBinary'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_rnorm.o):tmpxft_00005595_00000000-5_cwc_convnet_rnorm.cudafe1.cpp:function cwc_convnet_rnorm_forward_propagate: error: undefined reference to 'cudaFuncSetCacheConfig'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_rnorm.o):tmpxft_00005595_00000000-5_cwc_convnet_rnorm.cudafe1.cpp:function cwc_convnet_rnorm_forward_propagate: error: undefined reference to 'cudaFuncSetCacheConfig'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_rnorm.o):tmpxft_00005595_00000000-5_cwc_convnet_rnorm.cudafe1.cpp:function cwc_convnet_rnorm_backward_propagate: error: undefined reference to 'cudaFuncSetCacheConfig'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_rnorm.o):tmpxft_00005595_00000000-5_cwc_convnet_rnorm.cudafe1.cpp:function cwc_convnet_rnorm_backward_propagate: error: undefined reference to 'cudaFuncSetCacheConfig'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_rnorm.o):tmpxft_00005595_00000000-5_cwc_convnet_rnorm.cudafe1.cpp:function __cudaUnregisterBinaryUtil(): error: undefined reference to '__cudaUnregisterFatBinary'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_rnorm.o):tmpxft_00005595_00000000-5_cwc_convnet_rnorm.cudafe1.cpp:function __sti____cudaRegisterAll(): error: undefined reference to '__cudaRegisterFatBinary'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function _cwc_convnet_convolutional_backward_propagate_error_vary(ccv_convnet_layer_t*, int, float*, float*, float*, float*, ccv_convnet_layer_t*, float*, float*, CUstream_st* const&, cublasContext* const&, int, int, int) [clone .isra.833]: error: undefined reference to 'cudaGetLastError'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function _cwc_convnet_convolutional_backward_propagate_coefficient_rows_vary(ccv_convnet_layer_t*, int, float*, float*, float*, float*, ccv_convnet_layer_t*, float*, float*, CUstream_st* const&, cublasContext* const&, int, int, int) [clone .isra.204]: error: undefined reference to 'cudaGetLastError'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function _cwc_convnet_convolutional_forward_propagate_vary(ccv_convnet_layer_t*, int, int, int, float*, float*, CUstream_st* const&, int, int, int): error: undefined reference to 'cudaGetLastError'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function _cwc_convnet_convolutional_backward_propagate_coefficient_default_vary(ccv_convnet_layer_t*, int, float*, float*, float*, float*, ccv_convnet_layer_t*, float*, float*, CUstream_st* const&, cublasContext* const&, int, int, int) [clone .isra.351]: error: undefined reference to 'cudaGetLastError'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function cwc_convnet_convolutional_forward_propagate: error: undefined reference to 'cudaEventCreate'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function cwc_convnet_convolutional_forward_propagate: error: undefined reference to 'cudaEventCreate'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function cwc_convnet_convolutional_forward_propagate: error: undefined reference to 'cudaEventRecord'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function cwc_convnet_convolutional_forward_propagate: error: undefined reference to 'cudaEventRecord'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function cwc_convnet_convolutional_forward_propagate: error: undefined reference to 'cudaEventSynchronize'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function cwc_convnet_convolutional_forward_propagate: error: undefined reference to 'cudaEventElapsedTime'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function cwc_convnet_convolutional_forward_propagate: error: undefined reference to 'cudaEventRecord'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function cwc_convnet_convolutional_forward_propagate: error: undefined reference to 'cudaEventRecord'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function cwc_convnet_convolutional_forward_propagate: error: undefined reference to 'cudaEventSynchronize'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function cwc_convnet_convolutional_forward_propagate: error: undefined reference to 'cudaEventElapsedTime'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function cwc_convnet_convolutional_backward_propagate: error: undefined reference to 'cublasSgemv_v2'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function cwc_convnet_convolutional_backward_propagate: error: undefined reference to 'cublasSgemv_v2'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function cwc_convnet_convolutional_backward_propagate: error: undefined reference to 'cudaEventSynchronize'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function cwc_convnet_convolutional_backward_propagate: error: undefined reference to 'cudaEventElapsedTime'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function cwc_convnet_convolutional_backward_propagate: error: undefined reference to 'cudaEventSynchronize'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function cwc_convnet_convolutional_backward_propagate: error: undefined reference to 'cudaEventElapsedTime'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function __cudaUnregisterBinaryUtil(): error: undefined reference to '__cudaUnregisterFatBinary'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_convolutional.o):tmpxft_00005589_00000000-5_cwc_convnet_convolutional.cudafe1.cpp:function __sti____cudaRegisterAll(): error: undefined reference to '__cudaRegisterFatBinary'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_full_connect.o):tmpxft_000055c3_00000000-5_cwc_convnet_full_connect.cudafe1.cpp:function cwc_convnet_full_connect_forward_propagate: error: undefined reference to 'cublasSgemm_v2'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_full_connect.o):tmpxft_000055c3_00000000-5_cwc_convnet_full_connect.cudafe1.cpp:function cwc_convnet_full_connect_forward_propagate: error: undefined reference to 'cublasSgemm_v2'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_full_connect.o):tmpxft_000055c3_00000000-5_cwc_convnet_full_connect.cudafe1.cpp:function cwc_convnet_full_connect_backward_propagate: error: undefined reference to 'cublasSgemm_v2'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(cwc_convnet_full_connect.o):tmpxft_000055c3_00000000-5_cwc_convnet_full_connect.cudafe1.cpp:function cwc_convnet_full_connect_backward_propagate: error: undefined reference to 'cublasSgemm_v2'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(kiss_fft.o):kiss_fft.c:function kf_work: error: undefined reference to '__kmpc_fork_call'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(kiss_fft.o):kiss_fft.c:function .omp_outlined.: error: undefined reference to '__kmpc_for_static_init_4'
/home/lollinger/Downloads/of_v0.10.1_linux64gcc6_release/addons/ofxCcv/libs/ccv/lib/linux64/libccv.a(kiss_fft.o):kiss_fft.c:function .omp_outlined.: error: undefined reference to '__kmpc_for_static_fini'
collect2: error: ld returned 1 exit status
Process failed with exit code 1.
The following products could not be built for configuration Debug:
ImageTSNELive
Error while building/deploying project ImageTSNELive (kit: Desktop)
When executing step "Qbs Build"

now I’m not sure how to proceed.

(obviously there is also a CUDA-related problem…)