Undefined reference to fipImage

Requests regarding how to set up experiments in ARGoS.
valatt19
Posts: 3
Joined: Wed Dec 02, 2020 9:36 pm

Undefined reference to fipImage

Postby valatt19 » Wed Dec 02, 2020 9:57 pm

Hello,

I installed argos with the binaries and I'm trying to run the examples. I followed the README to compile but when i do the instruction make, I have this error at the end :

Code: Select all

/usr/bin/ld: /usr/local/lib/argos3/libargos3core_simulator.so: undefined reference to `fipImage::save(char const*, int) const' collect2: error: ld returned 1 exit status make[2]: *** [embedding/mpga/CMakeFiles/mpga_phototaxis.dir/build.make:102: embedding/mpga/mpga_phototaxis] Error 1 make[1]: *** [CMakeFiles/Makefile2:1430: embedding/mpga/CMakeFiles/mpga_phototaxis.dir/all] Error 2 make: *** [Makefile:84: all] Error 2

Also, when I try to add an picture for the floor in a personal configuration file, I have this error :

Code: Select all

argos3: symbol lookup error: /usr/local/lib/argos3/libargos3core_sIimulator.so: undefined symbol: _ZNK8fipImage4saveEPKci

I'm on Ubuntu 20.04.1 LTS and the freeimageplus version i have is 3.18.
Thank you

pincy
Site Admin
Posts: 512
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: Undefined reference to fipImage

Postby pincy » Thu Dec 03, 2020 3:19 am

What's the output of this command?

Code: Select all

ldd /usr/local/lib/argos3/libargos3core_simulator.so
I made ARGoS.

valatt19
Posts: 3
Joined: Wed Dec 02, 2020 9:36 pm

Re: Undefined reference to fipImage

Postby valatt19 » Thu Dec 03, 2020 10:27 am

Code: Select all

linux-vdso.so.1 (0x00007ffc2a95b000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f55d0f04000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f55d0ee1000) libfreeimage.so.3 => /lib/x86_64-linux-gnu/libfreeimage.so.3 (0x00007f55d0e25000) libfreeimageplus.so.3 => /lib/x86_64-linux-gnu/libfreeimageplus.so.3 (0x00007f55d0e15000) liblua5.3.so.0 => /lib/x86_64-linux-gnu/liblua5.3.so.0 (0x00007f55d0dda000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f55d0bf9000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f55d0aa8000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f55d0a8d000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f55d089b000) /lib64/ld-linux-x86-64.so.2 (0x00007f55d11ff000) libjxrglue.so.0 => /lib/x86_64-linux-gnu/libjxrglue.so.0 (0x00007f55d067b000) libjpeg.so.8 => /lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f55d05f6000) libopenjp2.so.7 => /lib/x86_64-linux-gnu/libopenjp2.so.7 (0x00007f55d05a0000) libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f55d0566000) libraw.so.19 => /lib/x86_64-linux-gnu/libraw.so.19 (0x00007f55d0486000) libtiff.so.5 => /lib/x86_64-linux-gnu/libtiff.so.5 (0x00007f55d0405000) libwebpmux.so.3 => /lib/x86_64-linux-gnu/libwebpmux.so.3 (0x00007f55d01fb000) libwebp.so.6 => /lib/x86_64-linux-gnu/libwebp.so.6 (0x00007f55cff92000) libIlmImf-2_3.so.24 => /lib/x86_64-linux-gnu/libIlmImf-2_3.so.24 (0x00007f55cfcb4000) libHalf.so.24 => /lib/x86_64-linux-gnu/libHalf.so.24 (0x00007f55cfc6d000) libIex-2_3.so.24 => /lib/x86_64-linux-gnu/libIex-2_3.so.24 (0x00007f55cfc4c000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f55cfc30000) libjpegxr.so.0 => /lib/x86_64-linux-gnu/libjpegxr.so.0 (0x00007f55cf9fc000) liblcms2.so.2 => /lib/x86_64-linux-gnu/liblcms2.so.2 (0x00007f55cf9a1000) libgomp.so.1 => /lib/x86_64-linux-gnu/libgomp.so.1 (0x00007f55cf95d000) libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f55cf8b4000) liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f55cf88b000) libjbig.so.0 => /lib/x86_64-linux-gnu/libjbig.so.0 (0x00007f55cf67d000) libIlmThread-2_3.so.24 => /lib/x86_64-linux-gnu/libIlmThread-2_3.so.24 (0x00007f55cf673000)

pincy
Site Admin
Posts: 512
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: Undefined reference to fipImage

Postby pincy » Sat Dec 05, 2020 12:06 pm

I'm confused by why ARGoS is installed in /usr/local. Did you attempt to install ARGoS from the sources and also from the binary?
I made ARGoS.

valatt19
Posts: 3
Joined: Wed Dec 02, 2020 9:36 pm

Re: Undefined reference to fipImage

Postby valatt19 » Mon Dec 14, 2020 11:41 am

No only with the binaries and it automatically goes into local

pincy
Site Admin
Posts: 512
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: Undefined reference to fipImage

Postby pincy » Tue Dec 15, 2020 6:30 am

I'll try to install Ubuntu 20.20 on a fresh machine and see if I can reproduce the issue. I'll have the time to do it in the weekend.
I made ARGoS.


Return to “How to... ?”