deepdetect icon indicating copy to clipboard operation
deepdetect copied to clipboard

Unable to build against libcurlpp 0.7.3.6

Open Tamam-Shud opened this issue 8 years ago • 11 comments

OS : Ubuntu OS 16.04 LTS (Virtual Image) CPU only No CUDA

Log: [ 95%] Linking CXX executable dede Reaping winning child 0x1e12d60 PID 5472 Live child 0x1e12d60 (main/dede) PID 5474 ../src/libddetect.a(httpjsonapi.cc.o): In function curlpp::Info<(CURLINFO)2097154, long>::get(curlpp::Easy&)': /usr/include/curlpp/Info.inl:39: undefined reference to curlpp::InfoTypeConverter::get(curlpp::Easy&, CURLINFO, long&)' ../src/libddetect.a(caffelib.cc.o): In function curlpp::Info<(CURLINFO)2097154, long>::get(curlpp::Easy&)': /usr/include/curlpp/Info.inl:39: undefined reference to curlpp::InfoTypeConverter::get(curlpp::Easy&, CURLINFO, long&)' /usr/include/curlpp/Info.inl:39: undefined reference to `curlpp::InfoTypeConverter::get(curlpp::Easy&, CURLINFO, long&)' collect2: error: ld returned 1 exit status Reaping losing child 0x1e12d60 PID 5474 main/CMakeFiles/dede.dir/build.make:122: recipe for target 'main/dede' failed make[2]: *** [main/dede] Error 1 Removing child 0x1e12d60 PID 5474 from chain. Reaping losing child 0x1cfff60 PID 5471 CMakeFiles/Makefile2:177: recipe for target 'main/CMakeFiles/dede.dir/all' failed make[1]: *** [main/CMakeFiles/dede.dir/all] Error 2 Removing child 0x1cfff60 PID 5471 from chain. Reaping losing child 0x792390 PID 5455 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2 Removing child 0x792390 PID 5455 from chain.

Tamam-Shud avatar Feb 16 '17 02:02 Tamam-Shud

have you looked at #126 ?

beniz avatar Feb 16 '17 02:02 beniz

Attempted 02/14/2017. Re-attempted #126 following request. Same compile error.

Tamam-Shud avatar Feb 16 '17 02:02 Tamam-Shud

Are you sure that you have executed the following:

sudo apt-get remove libcurlpp0

The line /usr/include/curlpp/ is suspicious, if you had compiled and curlpp from sources it should not be in /usr/include, but in /usr/local/include instead.

beniz avatar Feb 16 '17 07:02 beniz

image

Tamam-Shud avatar Feb 16 '17 14:02 Tamam-Shud

curlpp has not changed since March 2015, and I don't remember anyone reporting the problem above. So it is very likely something is wrongly set on your system. Try to locate libcurlpp.so maybe. EDIT: I was using the wrong repo.

beniz avatar Feb 16 '17 14:02 beniz

This has happened on multiple systems. Here's a question: When you compile DeepDetect should you have Caffe and TensorFlow already on your system? Or will DeepDetect manage that? With all due respect, the documentation isn't very clear when compiling from binary.

On Thu, Feb 16, 2017, 9:20 AM Emmanuel Benazera [email protected] wrote:

curlpp has not changed since March 2015, and I don't remember anyone reporting the problem above. So it is very likely something is wrongly set on your system. Try to locate libcurlpp.so maybe.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/beniz/deepdetect/issues/263#issuecomment-280342317, or mute the thread https://github.com/notifications/unsubscribe-auth/AFlZ3qC14RuecFoKY7qhYhAIe9Yt3SZGks5rdFsogaJpZM4MCgIT .

Tamam-Shud avatar Feb 16 '17 14:02 Tamam-Shud

DD manages everything at build time.

beniz avatar Feb 16 '17 14:02 beniz

That might be the problem.

On Thu, Feb 16, 2017, 9:45 AM Emmanuel Benazera [email protected] wrote:

DD manages everything at build time.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/beniz/deepdetect/issues/263#issuecomment-280349439, or mute the thread https://github.com/notifications/unsubscribe-auth/AFlZ3lMtzPRQC2Gn1SuT8C8Ry8vUgyLPks5rdGEkgaJpZM4MCgIT .

Tamam-Shud avatar Feb 16 '17 14:02 Tamam-Shud

Rebuilt on a fresh image. Followed installation instructions, did not have Caffe or Tensorflow prior to attempted installation. Followed place holder in Issue #126. The following output:

rook@Lattice:/opt/curlpp$ cd .. rook@Lattice:/opt$ cd deepdetect/ rook@Lattice:/opt/deepdetect$ cd build rook@Lattice:/opt/deepdetect/build$ sudo cmake .. -- Boost version: 1.58.0 -- Found the following Boost libraries: -- filesystem -- thread -- system -- iostreams -- chrono -- date_time -- atomic -- regex -- OpenCV 2 (2.4.9.1) found (/usr/share/OpenCV) -- Configuring customized caffe -- Build Tests : OFF -- Configuring done -- Generating done -- Build files have been written to: /opt/deepdetect/build rook@Lattice:/opt/deepdetect/build$ sudo make [ 33%] Built target caffe_dd [ 91%] Built target ddetect [ 95%] Linking CXX executable dede ../src/libddetect.a(httpjsonapi.cc.o): In function curlpp::Info<(CURLINFO)2097154, long>::get(curlpp::Easy&)': /usr/include/curlpp/Info.inl:39: undefined reference to curlpp::InfoTypeConverter::get(curlpp::Easy&, CURLINFO, long&)' ../src/libddetect.a(caffelib.cc.o): In function curlpp::Info<(CURLINFO)2097154, long>::get(curlpp::Easy&)': /usr/include/curlpp/Info.inl:39: undefined reference to curlpp::InfoTypeConverter::get(curlpp::Easy&, CURLINFO, long&)' /usr/include/curlpp/Info.inl:39: undefined reference to `curlpp::InfoTypeConverter::get(curlpp::Easy&, CURLINFO, long&)' collect2: error: ld returned 1 exit status main/CMakeFiles/dede.dir/build.make:122: recipe for target 'main/dede' failed make[2]: *** [main/dede] Error 1 CMakeFiles/Makefile2:177: recipe for target 'main/CMakeFiles/dede.dir/all' failed make[1]: *** [main/CMakeFiles/dede.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

Tamam-Shud avatar Feb 23 '17 16:02 Tamam-Shud

How did you install cURLpp?

Last version (which isn't packaged by ubuntu) shouldn't have this problem.

jpbarrette avatar Feb 24 '17 19:02 jpbarrette

OK, I understand my mistake. For some reason, the repository I was building curlpp from was from datacritic... not yours @jpbarrette. I will test with the last version then and see whether I can reproduce this issue. EDIT: the up to date curlpp version by @jpbarrette works fine on my 16.10 laptop.

beniz avatar Feb 24 '17 19:02 beniz