Error while Compiling the ARGoS example

Discussions regarding ARGoS bugs. Report bugs here.
Ryan
Posts: 42
Joined: Wed Oct 23, 2019 3:26 am

Error while Compiling the ARGoS example

Postby Ryan » Sat Nov 16, 2019 5:17 am

Hey,
I want to build argos3-example, but there seems to be an issue when I 'make' it:

dong@dong-pc:~/argos3-examples/build$ make
[ 1%] Automatic moc for target footbot_diffusion
[ 1%] Built target footbot_diffusion_automoc
[ 4%] Built target footbot_diffusion
[ 5%] Automatic moc for target footbot_synchronization
[ 5%] Built target footbot_synchronization_automoc
[ 9%] Built target footbot_synchronization
[ 10%] Automatic moc for target footbot_flocking
[ 10%] Built target footbot_flocking_automoc
[ 13%] Built target footbot_flocking
[ 14%] Automatic moc for target footbot_gripping
[ 14%] Built target footbot_gripping_automoc
[ 18%] Built target footbot_gripping
[ 19%] Automatic moc for target footbot_foraging
[ 19%] Built target footbot_foraging_automoc
[ 22%] Built target footbot_foraging
[ 24%] Automatic moc for target footbot_manualcontrol
[ 24%] Built target footbot_manualcontrol_automoc
[ 27%] Built target footbot_manualcontrol
[ 28%] Automatic moc for target footbot_nn
[ 28%] Built target footbot_nn_automoc
[ 35%] Built target footbot_nn
[ 36%] Automatic moc for target eyebot_circle
[ 36%] Built target eyebot_circle_automoc
[ 41%] Built target eyebot_circle
[ 42%] Automatic moc for target eyebot_flocking
[ 42%] Built target eyebot_flocking_automoc
[ 45%] Built target eyebot_flocking
[ 47%] Automatic moc for target epuck_obstacleavoidance
[ 47%] Built target epuck_obstacleavoidance_automoc
[ 50%] Built target epuck_obstacleavoidance
[ 51%] Automatic moc for target foraging_loop_functions
[ 51%] Built target foraging_loop_functions_automoc
[ 56%] Built target foraging_loop_functions
[ 57%] Automatic moc for target mpga_phototaxis_loop_functions
[ 57%] Built target mpga_phototaxis_loop_functions_automoc
[ 58%] Automatic moc for target mpga
[ 58%] Built target mpga_automoc
[ 63%] Built target mpga
[ 66%] Built target mpga_phototaxis_loop_functions
[ 67%] Automatic moc for target custom_distributions_loop_functions
[ 67%] Built target custom_distributions_loop_functions_automoc
[ 71%] Built target custom_distributions_loop_functions
[ 72%] Automatic moc for target trajectory_loop_functions
[ 72%] Built target trajectory_loop_functions_automoc
[ 77%] Built target trajectory_loop_functions
[ 78%] Automatic moc for target id_loop_functions
[ 78%] Built target id_loop_functions_automoc
[ 81%] Built target id_loop_functions
[ 82%] Automatic moc for target manualcontrol_loop_functions
[ 82%] Built target manualcontrol_loop_functions_automoc
[ 86%] Built target manualcontrol_loop_functions
[ 87%] Automatic moc for target galib_phototaxis_loop_functions
[ 87%] Built target galib_phototaxis_loop_functions_automoc
[ 88%] Building CXX object loop_functions/galib_phototaxis_loop_functions/CMakeFiles/galib_phototaxis_loop_functions.dir/galib_phototaxis_loop_functions.cpp.o
In file included from /home/dong/argos3-examples/loop_functions/galib_phototaxis_loop_functions/galib_phototaxis_loop_functions.cpp:1:0:
/home/dong/argos3-examples/loop_functions/galib_phototaxis_loop_functions/galib_phototaxis_loop_functions.h:14:19: fatal error: ga/ga.h: No such file or directory
compilation terminated.
loop_functions/galib_phototaxis_loop_functions/CMakeFiles/galib_phototaxis_loop_functions.dir/build.make:62: recipe for target 'loop_functions/galib_phototaxis_loop_functions/CMakeFiles/galib_phototaxis_loop_functions.dir/galib_phototaxis_loop_functions.cpp.o' failed
make[2]: *** [loop_functions/galib_phototaxis_loop_functions/CMakeFiles/galib_phototaxis_loop_functions.dir/galib_phototaxis_loop_functions.cpp.o] Error 1
CMakeFiles/Makefile2:1652: recipe for target 'loop_functions/galib_phototaxis_loop_functions/CMakeFiles/galib_phototaxis_loop_functions.dir/all' failed
make[1]: *** [loop_functions/galib_phototaxis_loop_functions/CMakeFiles/galib_phototaxis_loop_functions.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

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

Re: Error while Compiling the ARGoS example

Postby pincy » Sat Nov 16, 2019 6:05 am

If you don't need to use a genetic algorithm, remove libga. If you need libga, I need more info on your system to understand how to reproduce the issue.
I made ARGoS.

Ryan
Posts: 42
Joined: Wed Oct 23, 2019 3:26 am

Re: Error while Compiling the ARGoS example

Postby Ryan » Sat Nov 16, 2019 10:26 pm

Thanks


Return to “Bugs”



cron