linkage error when trying to run argos3

Requests regarding how to set up experiments in ARGoS.
pincy
Site Admin
Posts: 632
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: linkage error when trying to run argos3

Postby pincy » Thu Jan 06, 2022 7:58 am

You still have something wrong, as shown in the output you report.

What is the output of

Code: Select all

echo $LD_LIBRARY_PATH
?
I made ARGoS.

YonTan
Posts: 14
Joined: Wed Jan 05, 2022 11:11 am

Re: linkage error when trying to run argos3

Postby YonTan » Thu Jan 06, 2022 8:09 am

Thank you very much for answering!
This is the output I got:

Code: Select all

$ echo $LD_LIBRARY_PATH /usr/local/lib/

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

Re: linkage error when trying to run argos3

Postby pincy » Thu Jan 06, 2022 8:32 am

You should then try with

Code: Select all

unset LD_LIBRARY_PATH unset ARGOS_PLUGIN_PATH argos3 -q all
It would help me trouble shoot if you told me how you set all these variables.
I made ARGoS.

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

Re: linkage error when trying to run argos3

Postby pincy » Thu Jan 06, 2022 8:39 am

BTW, You don't seem to have ARGoS uninstalled correctly, because CMake says:

Code: Select all

Found ARGoS: /usr/local/lib/argos3/libargos3core_simulator.so
This should read:

Code: Select all

Found ARGoS: /usr/lib/argos3/libargos3core_simulator.so
So there's still stuff in /usr/local that shouldn't be there.
I made ARGoS.

YonTan
Posts: 14
Joined: Wed Jan 05, 2022 11:11 am

Re: linkage error when trying to run argos3

Postby YonTan » Thu Jan 06, 2022 8:39 am

It looks ok, but still cmake fails

Code: Select all

$ unset LD_LIBRARY_PATH $ unset ARGOS_PLUGIN_PATH $ argos3 -q all [INFO] Loaded library "/usr/lib/argos3/libargos3core_simulator.so" [INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_qtopengl.so" [INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_eyebot.so" [INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_spiri.so" [INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_dynamics2d.so" [INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_footbot.so" [INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_pointmass3d.so" [INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_genericrobot.so" [INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_dynamics3d.so" [INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_entities.so" [INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_prototype.so" [INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_epuck.so" [INFO] Loaded library "/usr/lib/argos3/libargos3plugin_simulator_media.so" AVAILABLE ACTUATORS [ differential_steering (default) ] The differential steering actuator. [ directional_leds (default) ] The directional LEDs actuator. [ footbot_distance_scanner (default) ] The foot-bot distance scanner actuator. [ footbot_gripper (default) ] The footbot gripper actuator. [ footbot_turret (default) ] The foot-bot turret actuator. [ gripper (default) ] The Gripper actuator. [ joints (default) ] The prototype joints actuator: controls a prototype entity's joints. [ leds (default) ] The LEDs actuator. [ magnets (default) ] The (electro)magnet actuator. [ quadrotor_position (default) ] The quadrotor position actuator. [ quadrotor_speed (default) ] The quadrotor speed actuator. [ radios (default) ] A generic radio actuator to send messages to nearby radios. [ range_and_bearing (default) ] The range and bearing actuator. [ tags (default) ] The tags actuator. AVAILABLE SENSORS [ battery (default) ] A generic battery level sensor. [ cameras (default) ] A generic multi-camera sensor capable of running various algorithms [ colored_blob_omnidirectional_camera (rot_z_only) ] A generic omnidirectional camera sensor to detect colored blobs. [ colored_blob_perspective_camera (default) ] A generic perspective camera sensor to detect colored blobs. [ differential_steering (default) ] A generic differential steering sensor. [ epuck_proximity (default) ] The E-Puck proximity sensor. [ eyebot_light (rot_z_only) ] The eye-bot light sensor (optimized for 2D). [ eyebot_proximity (default) ] The eye-bot proximity sensor. [ footbot_base_ground (rot_z_only) ] The foot-bot base ground sensor. [ footbot_distance_scanner (rot_z_only) ] The foot-bot distance scanner sensor (optimized for 2D). [ footbot_light (rot_z_only) ] The foot-bot light sensor (optimized for 2D). [ footbot_motor_ground (rot_z_only) ] The foot-bot motor ground sensor. [ footbot_proximity (default) ] The foot-bot proximity sensor. [ footbot_turret_encoder (default) ] The foot-bot turret encoder sensor. [ ground (rot_z_only) ] A generic ground sensor (optimized for 2D). [ joints (default) ] The prototype joints sensor: monitors a prototype entity's joints. [ light (default) ] A generic light sensor. [ positioning (default) ] A generic positioning sensor. [ proximity (default) ] A generic proximity sensor. [ radios (default) ] A generic radio sensor to receive messages from nearby radios. [ range_and_bearing (medium) ] The range-and-bearing sensor. AVAILABLE PHYSICS ENGINES [ dynamics2d ] A 2D dynamics physics engine. [ dynamics3d ] A 3D dynamics physics engine [ pointmass3d ] A 3D point-mass physics engine. AVAILABLE MEDIA [ directional_led ] Manages directional LED entities. [ led ] Manages the LEDs. [ radio ] Enables communication between a radio actuator and radio sensor. [ range_and_bearing ] It simulates the communication across range-and-bearing-equipped robots. [ tag ] Manages tag entities. AVAILABLE VISUALIZATIONS [ qt-opengl ] An interactive graphical renderer based on Qt and OpenGL. AVAILABLE ENTITIES [ box ] A stretchable 3D box. [ cylinder ] A stretchable cylinder. [ e-puck ] The e-puck robot. [ eye-bot ] The eye-bot robot, developed in the Swarmanoid project. [ floor ] It contains the properties of the arena floor. [ foot-bot ] The foot-bot robot, developed in the Swarmanoid project. [ light ] A colored light. [ prototype ] A generic and configurable entity [ spiri ] The spiri robot, developed by Pleiades Robotics. $ cd argos3-examples $ rm -rf build $ mkdir build $ cd build $ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_MODULE_PATH=/usr/share/argos3/cmake .. -- Found ARGoS: /usr/local/lib/argos3/libargos3core_simulator.so CMake Error at /usr/share/argos3/cmake/ARGoSConfig.cmake:109 (include): include could not find load file: ARGoSSettings Call Stack (most recent call first): CMakeLists.txt:22 (find_package) -- Configuring incomplete, errors occurred! See also "/home/ubuntu/argos3-examples/CMakeFiles/CMakeOutput.log".

YonTan
Posts: 14
Joined: Wed Jan 05, 2022 11:11 am

Re: linkage error when trying to run argos3

Postby YonTan » Thu Jan 06, 2022 8:47 am

and regarding /usr/local/lib/argos3/ - this folder does not exist. I don't know why it says that..

Code: Select all

$ ls /usr/local/lib/argos3/ ls: cannot access '/usr/local/lib/argos3/': No such file or directory

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

Re: linkage error when trying to run argos3

Postby pincy » Thu Jan 06, 2022 9:00 am

It looks better now, at least ARGoS runs correctly.

Are you sure the examples you downloaded are the most recent?
I made ARGoS.

YonTan
Posts: 14
Joined: Wed Jan 05, 2022 11:11 am

Re: linkage error when trying to run argos3

Postby YonTan » Thu Jan 06, 2022 9:14 am

Yes, from a few days ago.

Anyway, deleted the folder and tried again from scratch and it works!! :D :D :D

Thank you very much for your help!!

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

Re: linkage error when trying to run argos3

Postby pincy » Thu Jan 06, 2022 9:45 am

Great! Then you probably had old stuff in the build folder from previous attempts.
I made ARGoS.


Return to “How to... ?”