RI-SE/ATOS

Fail to build, missing build directory

Closed this issue · 1 comments

The build directory in ScenarioControl seems to be missing. Maybe add a creating of that directory if does not exist. The error presented below is what you get when you run the buildMaestro.sh

viktorjo@astaZero:~/repos/Maestro$ ./buildMaestro.sh 
Submodule path 'util': checked out '7d1da8dd2ab935a97063091a08064035ae3e8941'
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/viktorjo/repos/Maestro/util/C
Scanning dependencies of target MaestroTime
[ 25%] Building C object CMakeFiles/MaestroTime.dir/time/maestroTime.c.o
[ 50%] Linking C shared library libMaestroTime.so
[ 50%] Built target MaestroTime
Scanning dependencies of target MaestroLogging
[ 75%] Building C object CMakeFiles/MaestroLogging.dir/logging/logging.c.o
[100%] Linking C shared library libMaestroLogging.so
[100%] Built target MaestroLogging
mkdir: cannot create directory ‘build’: File exists
-- Configuring done
-- Generating done
-- Build files have been written to: /home/viktorjo/repos/Maestro/server/build
mkdir: cannot create directory ‘traj’: File exists
Scanning dependencies of target objctrl
[  5%] Building C object CMakeFiles/objctrl.dir/src/objectcontrol.c.o
[ 11%] Linking C static library libobjctrl.a
[ 11%] Built target objctrl
Scanning dependencies of target MaestroTime
[ 16%] Building C object CMakeFiles/MaestroTime.dir/home/viktorjo/repos/Maestro/util/C/time/maestroTime.c.o
[ 22%] Linking C static library libMaestroTime.a
[ 22%] Built target MaestroTime
Scanning dependencies of target MaestroLogging
[ 27%] Building C object CMakeFiles/MaestroLogging.dir/home/viktorjo/repos/Maestro/util/C/logging/logging.c.o
[ 33%] Linking C static library libMaestroLogging.a
[ 33%] Built target MaestroLogging
Scanning dependencies of target MQBus
[ 38%] Building C object CMakeFiles/MQBus.dir/home/viktorjo/repos/Maestro/util/C/MQBus/mqbus.c.o
[ 44%] Linking C static library libMQBus.a
[ 44%] Built target MQBus
Scanning dependencies of target util
[ 50%] Building C object CMakeFiles/util.dir/src/util.c.o
[ 55%] Linking C static library libutil.a
[ 55%] Built target util
Scanning dependencies of target TEServer
[ 61%] Building C object CMakeFiles/TEServer.dir/src/main.c.o
[ 66%] Building C object CMakeFiles/TEServer.dir/src/logger.c.o
[ 72%] Building C object CMakeFiles/TEServer.dir/src/objectcontrol.c.o
[ 77%] Building C object CMakeFiles/TEServer.dir/src/supervision.c.o
[ 83%] Building C object CMakeFiles/TEServer.dir/src/systemcontrol.c.o
[ 88%] Building C object CMakeFiles/TEServer.dir/src/timecontrol.c.o
[ 94%] Building C object CMakeFiles/TEServer.dir/src/datadictionary.c.o
[100%] Linking C executable TEServer
[100%] Built target TEServer
./buildMaestro.sh: 17: cd: can't cd to /home/viktorjo/repos/Maestro/modules/ScenarioControl/build
CMake Error: The source directory "/home/viktorjo/repos" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No targets specified and no makefile found.  Stop.

Created a pull request addressing this