Code: Select all
export EXAMPLEDIR=/Users/myuser/argos3-examples
Code: Select all
export ARGOSDIR=/Users/myuser/argos3
Code: Select all
cp -a $ARGOSDIR/src/plugins/robots/e-puck $EXAMPLEDIR/myepuck
Code: Select all
rm -f $EXAMPLEDIR/myepuck/simulator/*physx*
Code: Select all
echo 'add_subdirectory(myepuck)' >> $EXAMPLEDIR/CMakeLists.txt
Code: Select all
find $EXAMPLEDIR/myepuck \( -name '*.h' -o -name '*.cpp' \) -print0 | xargs -0 -I{} sed -i.old -e 's/EPuck/MyEPuck/g' -e 's/e-puck/my_e-puck/g' -e 's/epuck/myepuck/g' -e 's/EPUCK/MYEPUCK/g' -e 's|argos3/plugins/robots/my_e-puck|myepuck|g' {}
Code: Select all
find $EXAMPLEDIR/myepuck -name '*.old' -exec rm {} \;
Code: Select all
for F in `find $EXAMPLEDIR/myepuck \( -name '*.h' -o -name '*.cpp' \)`; do G=`basename $F | sed 's/epuck/myepuck/g'`; mv $F `dirname $F`/$G; done
Code: Select all
cat <<EOF > $EXAMPLEDIR/myepuck/CMakeLists.txt
add_library(argos3plugin_simulator_myepuck SHARED
simulator/dynamics2d_myepuck_model.cpp
simulator/dynamics2d_myepuck_model.h
simulator/myepuck_entity.cpp
simulator/myepuck_entity.h
simulator/qtopengl_myepuck.cpp
simulator/qtopengl_myepuck.h)
target_link_libraries(argos3plugin_simulator_myepuck
argos3core_simulator
argos3plugin_simulator_dynamics2d
argos3plugin_simulator_entities
argos3plugin_simulator_genericrobot
argos3plugin_simulator_media)
if(ARGOS_COMPILE_QTOPENGL)
target_link_libraries(argos3plugin_simulator_myepuck
argos3plugin_simulator_qtopengl
\${QT_LIBRARIES} \${GLUT_LIBRARY} \${OPENGL_LIBRARY})
endif(ARGOS_COMPILE_QTOPENGL)
EOF
Code: Select all
cd $EXAMPLEDIR
Code: Select all
rm -rf build
Code: Select all
mkdir build
Code: Select all
cd build
Code: Select all
cmake -DCMAKE_BUILD_TYPE=Debug ..
Code: Select all
make
Code: Select all
export ARGOS_PLUGIN_PATH=$EXAMPLEDIR/build/myepuck
Code: Select all
argos3 -q entities
Code: Select all
echo "export ARGOS_PLUGIN_PATH=$EXAMPLEDIR/build/myepuck" >> $HOME/.bashrc
Code: Select all
cmake ..
Is there a fix for this or a way I could actually uninstall ARGoS and start again from scratch?$ cmake ..
CMake Error at CMakeLists.txt:17 (include):
include could not find load file:
ARGoSCheckQTOpenGL
-- Could NOT find GALIB (missing: GALIB_LIBRARY GALIB_INCLUDE_DIR)
CMake Error at CMakeLists.txt:29 (find_package):
By not providing "FindLua52.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Lua52", but
CMake did not find one.
Could not find a package configuration file provided by "Lua52" with any of
the following names:
Lua52Config.cmake
lua52-config.cmake
Add the installation prefix of "Lua52" to CMAKE_PREFIX_PATH or set
"Lua52_DIR" to a directory containing one of the above files. If "Lua52"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
See also "/Users/argos3-examples/build/CMakeFiles/CMakeOutput.log".
See also "/Users/argos3-examples/build/CMakeFiles/CMakeError.log".
$
Code: Select all
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Code: Select all
brew tap ilpincy/argos3
Code: Select all
brew install bash-completion qt lua argos3
Code: Select all
brew install cmake
Code: Select all
brew install gsl
Code: Select all
brew install qt
Code: Select all
cd Desktop
Code: Select all
git clone https://github.com/ilpincy/argos3-examples
Code: Select all
cd argos3-examples
Code: Select all
mkdir build
Code: Select all
cd build
Code: Select all
cmake ..
Code: Select all
make
I'll read through the installation and the user guides to see if I can find where I went wrong.Scanning dependencies of target mpga_phototaxis_loop_functions
[ 72%] Building CXX object loop_functions/mpga_loop_functions/CMakeFiles/mpga_phototaxis_loop_functions.dir/mpga_phototaxis_loop_functions.cpp.o
[ 75%] Linking CXX shared library libmpga_phototaxis_loop_functions.dylib
ld: library not found for -lfootbot_nn
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [loop_functions/mpga_loop_functions/libmpga_phototaxis_loop_functions.dylib] Error 1
make[1]: *** [loop_functions/mpga_loop_functions/CMakeFiles/mpga_phototaxis_loop_functions.dir/all] Error 2
make: *** [all] Error 2
Code: Select all
cd $EXAMPLEDIR
Code: Select all
git pull
Code: Select all
rm -rf build
Code: Select all
mkdir build
Code: Select all
cd build
Code: Select all
cmake -DCMAKE_BUILD_TYPE=Release ..
Code: Select all
make
Code: Select all
cd $EXAMPLEDIR/build
Code: Select all
rm CMakeCache.txt
Code: Select all
cmake -DCMAKE_BUILD_TYPE=Release ..
Code: Select all
make