Problem compiling ARGoS from source

Requests regarding how to set up experiments in ARGoS.
jamesbut
Posts: 8
Joined: Wed Jul 12, 2017 2:44 pm

Problem compiling ARGoS from source

Postby jamesbut » Wed Sep 27, 2017 1:18 pm

I have previously compiled ARGoS from source on my laptop and everything worked fine however I am now trying to do it on the servers in the lab (with a bit more processing power) and it isn't working.

Below is the output of my terminal, any advice would be greatly appreciated
problem.png
problem.png (187.83 KiB) Viewed 10459 times
Best Wishes
James

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

Re: Problem compiling ARGoS from source

Postby pincy » Wed Sep 27, 2017 2:17 pm

That's strange.
  1. Can you give me more details on the type of system you're running on - the OS, distribution, and version of GCC
  2. Can you show me the output of make VERBOSE=1 ? Better if not in a screenshot but in text only.
  3. In theory there should be a symbolic link in src/ that points to the current directory. Can you show me the output of 'ls -l src' ?
I made ARGoS.

jamesbut
Posts: 8
Joined: Wed Jul 12, 2017 2:44 pm

Re: Problem compiling ARGoS from source

Postby jamesbut » Wed Sep 27, 2017 2:37 pm

1
Ubuntu 14.04.5 LTS
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4

2
make VERBOSE=1
/usr/bin/cmake -H/home/james/argos3/src -B/home/james/argos3/build_simulator --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/james/argos3/build_simulator/CMakeFiles /home/james/argos3/build_simulator/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/james/argos3/build_simulator'
make -f core/CMakeFiles/argos3core_simulator.dir/build.make core/CMakeFiles/argos3core_simulator.dir/depend
make[2]: Entering directory `/home/james/argos3/build_simulator'
cd /home/james/argos3/build_simulator && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/james/argos3/src /home/james/argos3/src/core /home/james/argos3/build_simulator /home/james/argos3/build_simulator/core /home/james/argos3/build_simulator/core/CMakeFiles/argos3core_simulator.dir/DependInfo.cmake --color=
make[2]: Leaving directory `/home/james/argos3/build_simulator'
make -f core/CMakeFiles/argos3core_simulator.dir/build.make core/CMakeFiles/argos3core_simulator.dir/build
make[2]: Entering directory `/home/james/argos3/build_simulator'
/usr/bin/cmake -E cmake_progress_report /home/james/argos3/build_simulator/CMakeFiles
[ 0%] Building CXX object core/CMakeFiles/argos3core_simulator.dir/utility/signal_processing.cpp.o
cd /home/james/argos3/build_simulator/core && /usr/bin/c++ -DARGOS_simulator_BUILD -DHAVE_PTHREAD_H -Dargos3core_simulator_EXPORTS -Wall -fPIC -I/home/james/argos3/src -I/home/james/argos3/build_simulator -I/usr/include/lua5.2 -Wno-unknown-pragmas -o CMakeFiles/argos3core_simulator.dir/utility/signal_processing.cpp.o -c /home/james/argos3/src/core/utility/signal_processing.cpp
In file included from /home/james/argos3/src/core/utility/signal_processing.cpp:1:0:
/home/james/argos3/src/core/utility/signal_processing.h:4:46: fatal error: argos3/core/utility/math/general.h: No such file or directory
#include <argos3/core/utility/math/general.h>
^
compilation terminated.
make[2]: *** [core/CMakeFiles/argos3core_simulator.dir/utility/signal_processing.cpp.o] Error 1
make[2]: Leaving directory `/home/james/argos3/build_simulator'
make[1]: *** [core/CMakeFiles/argos3core_simulator.dir/all] Error 2
make[1]: Leaving directory `/home/james/argos3/build_simulator'
make: *** [all] Error 2

3
ls -l src
total 36
drwxrwxr-x 2 james james 4096 Sep 27 13:42 cmake
-rw-rw-r-- 1 james james 2825 Jul 12 13:19 CMakeLists.txt
drwxrwxr-x 6 james james 4096 Sep 27 13:42 core
drwxrwxr-x 4 james james 4096 Sep 27 13:42 plugins
-rw-rw-r-- 1 james james 1103 Jul 12 13:19 README.asciidoc
drwxrwxr-x 3 james james 4096 Jul 12 13:19 scripts
-rwxrwxr-x 1 james james 5631 Jul 12 13:19 source_task
drwxrwxr-x 5 james james 4096 Sep 27 13:42 testing

jamesbut
Posts: 8
Joined: Wed Jul 12, 2017 2:44 pm

Re: Problem compiling ARGoS from source

Postby jamesbut » Wed Sep 27, 2017 2:40 pm

It seems there is no symbolic link

I ran ls -l on my laptop that works and got this

lrwxrwxrwx 1 james james 1 Jul 12 13:19 argos3 -> .
drwxrwxr-x 2 james james 4096 Jul 12 13:19 cmake
-rw-rw-r-- 1 james james 2825 Jul 12 13:19 CMakeLists.txt
drwxrwxr-x 6 james james 4096 Jul 12 13:19 core
drwxrwxr-x 4 james james 4096 Jul 12 13:19 plugins
-rw-rw-r-- 1 james james 1103 Jul 12 13:19 README.asciidoc
drwxrwxr-x 3 james james 4096 Jul 12 13:19 scripts
-rwxrwxr-x 1 james james 5631 Jul 12 13:19 source_task
drwxrwxr-x 5 james james 4096 Jul 12 13:19 testing

How do I get the symbolic link into my server directory?

jamesbut
Posts: 8
Joined: Wed Jul 12, 2017 2:44 pm

Re: Problem compiling ARGoS from source

Postby jamesbut » Wed Sep 27, 2017 2:47 pm

I managed to create a symbolic link (it wasn't too difficult haha) and it has now compiled.

Thanks a lot for your help!

Best Wishes
James


Return to “How to... ?”