Closed ChristianF88 closed 11 months ago
Looks like you're missing some OpenGL development libraries. Try installing libgl-dev
.
CAMotics will not work well on the RPi, even if you do get it to compile there. The RPi does not have enough power to run the simulations effectively.
Running the i386
arch on the RPi, if it even works, would be extremely slow because it would have to be emulated. The RPi has an ARM processor which is incompatible with i386.
Thanks! Now I got a bit further! But still not all the way...
git clone https://github.com/CauldronDevelopmentLLC/cbang.git
scons -C cbang
export CBANG_HOME=$PWD/cbang
git clone https://github.com/CauldronDevelopmentLLC/CAMotics.git
cd CAMotics
scons
scons package
scons: warning: QT5DIR variable is not defined, using moc executable as a hint (QT5DIR=/usr)
File "/home/pi/CAMotics/config/qt5/__init__.py", line 439, indetect
scons: Reading SConscript files ...
Compiler: gcc (gnu)
Platform: posix
Mode: gnu
Arch: x86
Jobs: 4
Checking for C library pthread... (cached) yes
Checking for C header file zlib.h... (cached) yes
Checking for C library z... (cached) yes
Checking for C header file bzlib.h... (cached) yes
Checking for C library bz2... (cached) yes
Checking for C header file expat.h... (cached) yes
Checking for C library expat... (cached) yes
Checking for C header file pthread.h... (cached) yes
Checking for C library pthread... (cached) yes
Checking for C library dl... (cached) yes
Checking for C library sqlite3... (cached) yes
Checking for C header file sqlite3.h... (cached) yes
Checking for C function sqlite3_backup_init()... (cached) yes
Checking for C header file event.h... (cached) yes
Checking for C library event... (cached) yes
Checking for C++ header file re2/re2.h... (cached) yes
Checking for C library re2... (cached) yes
Checking for C header file yaml.h... (cached) yes
Checking for C library yaml... (cached) yes
Checking for C library leveldb... no
Checking for C header file mysql/mysql.h... no
Checking for C function clock_gettime()... (cached) yes
Checking for C library dl... (cached) yes
Checking for C header file openssl/ssl.h... (cached) yes
Checking for C library crypto... (cached) yes
Checking for C library ssl... (cached) yes
Checking for openssl version >= 1.0.0...(cached) yes
Checking for C++ header file ChakraCore.h... no
Need C++ header ChakraCore.h(cached) error: no result
Checking for C++ header file v8.h... (cached) yes
Checking for C library v8... (cached) yes
...
installing "examples/wave/wave.camotics" to "build/camotics-deb/usr/share/doc/camotics/examp$
installing "examples/wave/wave.gcode" to "build/camotics-deb/usr/share/doc/camotics/examples$
installing "examples/wave/wave.tpl" to "build/camotics-deb/usr/share/doc/camotics/examples/w$
installing "machines/LICENSE.md" to "build/camotics-deb/usr/share/doc/camotics/machines/LICE$
installing "machines/bf20.json" to "build/camotics-deb/usr/share/doc/camotics/machines/bf20.$
installing "machines/bf20.tco" to "build/camotics-deb/usr/share/doc/camotics/machines/bf20.t$
installing "machines/cobra.json" to "build/camotics-deb/usr/share/doc/camotics/machines/cobr$
installing "machines/cobra.tco" to "build/camotics-deb/usr/share/doc/camotics/machines/cobra$
installing "machines/dummy.json" to "build/camotics-deb/usr/share/doc/camotics/machines/dumm$
installing "machines/dummy.tco" to "build/camotics-deb/usr/share/doc/camotics/machines/dummy$
installing "machines/milly.json" to "build/camotics-deb/usr/share/doc/camotics/machines/mill$
installing "machines/milly.tco" to "build/camotics-deb/usr/share/doc/camotics/machines/milly$
installing "machines/miss_marple.json" to "build/camotics-deb/usr/share/doc/camotics/machine$
installing "machines/miss_marple.tco" to "build/camotics-deb/usr/share/doc/camotics/machines$
installing "machines/shapeoko_2.json" to "build/camotics-deb/usr/share/doc/camotics/machines$
installing "machines/shapeoko_2.tco" to "build/camotics-deb/usr/share/doc/camotics/machines/$
installing "machines/shapeoko_3.json" to "build/camotics-deb/usr/share/doc/camotics/machines$
installing "machines/shapeoko_3.tco" to "build/camotics-deb/usr/share/doc/camotics/machines/$
installing "machines/sprite.json" to "build/camotics-deb/usr/share/doc/camotics/machines/spr$
installing "machines/sprite.tco" to "build/camotics-deb/usr/share/doc/camotics/machines/spri$
installing "machines/taig.json" to "build/camotics-deb/usr/share/doc/camotics/machines/taig.$
installing "machines/taig.tco" to "build/camotics-deb/usr/share/doc/camotics/machines/taig.t$
installing "machines/x-carve.json" to "build/camotics-deb/usr/share/doc/camotics/machines/x-$
installing "machines/x-carve.tco" to "build/camotics-deb/usr/share/doc/camotics/machines/x-c$
installing "machines/yohudi.json" to "build/camotics-deb/usr/share/doc/camotics/machines/yoh$
installing "machines/yohudi.tco" to "build/camotics-deb/usr/share/doc/camotics/machines/yohu$
installing "gcodetool" to "build/camotics-deb/usr/bin/gcodetool"
installing "camsim" to "build/camotics-deb/usr/bin/camsim"
scons: *** [camotics_1.2.0_armhf.deb] camsim: No such file or directory
scons: building terminated because of errors.
Any further suggestions?
Thanks a bunch! :)
The scons
build did not complete. You cannot run scons package
until scons
works.
Also True! The error occurs even earlier, sorry I didnt notice before.
scons -C cbang strict=0 > mysconscbanglog.txt
console output:
src/boost/libs/filesystem/src/operations.cpp: In function ‘int {anonymous}::readdir_r_simulator(DIR*, dirent*, dirent**)’:
src/boost/libs/filesystem/src/operations.cpp:2089:18: warning: ‘int readdir_r(DIR*, dirent*, dirent**)’ is deprecated [-Wdeprecated-declarations]
{ return ::readdir_r(dirp, entry, result); }
^~~~~~~~~
In file included from /usr/include/features.h:364:0,
from /usr/include/arm-linux-gnueabihf/c++/6/bits/os_defines.h:39,
from /usr/include/arm-linux-gnueabihf/c++/6/bits/c++config.h:507,
from /usr/include/c++/6/cstddef:49,
from src/boost/boost/config/compiler/gcc.hpp:165,
from src/boost/boost/config.hpp:39,
from src/boost/boost/filesystem/operations.hpp:18,
from src/boost/libs/filesystem/src/operations.cpp:44:
/usr/include/dirent.h:189:12: note: declared here
extern int __REDIRECT (readdir_r,
^
src/boost/libs/filesystem/src/operations.cpp:2089:47: warning: ‘int readdir_r(DIR*, dirent*, dirent**)’ is deprecated [-Wdeprecated-declarations]
{ return ::readdir_r(dirp, entry, result); }
^
In file included from /usr/include/features.h:364:0,
from /usr/include/arm-linux-gnueabihf/c++/6/bits/os_defines.h:39,
from /usr/include/arm-linux-gnueabihf/c++/6/bits/c++config.h:507,
from /usr/include/c++/6/cstddef:49,
from src/boost/boost/config/compiler/gcc.hpp:165,
from src/boost/boost/config.hpp:39,
from src/boost/boost/filesystem/operations.hpp:18,
from src/boost/libs/filesystem/src/operations.cpp:44:
/usr/include/dirent.h:189:12: note: declared here
extern int __REDIRECT (readdir_r,
^
In file included from /usr/include/c++/6/vector:69:0,
from src/cbang/debug/StackTrace.h:37,
from src/cbang/Exception.h:39,
from src/cbang/config/Constraint.h:35,
from src/cbang/config/Option.h:36,
from src/cbang/config/Option.cpp:33:
/usr/include/c++/6/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_insert_aux(std::vector<_Tp, _Alloc>::iterator, const _Tp&) [with _Tp = long long int; _Alloc = std::allocator<long long int>]’:
/usr/include/c++/6/bits/vector.tcc:326:5: note: parameter passing for argument of type ‘std::vector<long long int>::iterator {aka __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >}’ will change in GCC 7.1
vector<_Tp, _Alloc>::
^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/6/vector:64:0,
from src/cbang/debug/StackTrace.h:37,
from src/cbang/Exception.h:39,
from src/cbang/config/Constraint.h:35,
from src/cbang/config/Option.h:36,
from src/cbang/config/Option.cpp:33:
/usr/include/c++/6/bits/stl_vector.h: In static member function ‘static cb::Option::integers_t cb::Option::parseIntegers(const string&, const string&)’:
/usr/include/c++/6/bits/stl_vector.h:926:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’ will change in GCC 7.1
_M_insert_aux(end(), __x);
^~~~~~~~~~~~~
In file included from /usr/include/c++/6/vector:69:0,
from src/cbang/debug/StackTrace.h:37,
from src/cbang/Exception.h:39,
from src/cbang/config/Constraint.h:35,
from src/cbang/config/Option.h:36,
from src/cbang/config/Option.cpp:33:
/usr/include/c++/6/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::_M_insert_aux(std::vector<_Tp, _Alloc>::iterator, const _Tp&) [with _Tp = double; _Alloc = std::allocator<double>]’:
/usr/include/c++/6/bits/vector.tcc:326:5: note: parameter passing for argument of type ‘std::vector<double>::iterator {aka __gnu_cxx::__normal_iterator<double*, std::vector<double> >}’ will change in GCC 7.1
vector<_Tp, _Alloc>::
^~~~~~~~~~~~~~~~~~~
/usr/include/c++/6/bits/vector.tcc:326:5: note: parameter passing for argument of type ‘std::vector<double>::iterator {aka __gnu_cxx::__normal_iterator<double*, std::vector<double> >}’ will change in GCC 7.1
In file included from /usr/include/c++/6/vector:64:0,
from src/cbang/debug/StackTrace.h:37,
from src/cbang/Exception.h:39,
from src/cbang/config/Constraint.h:35,
from src/cbang/config/Option.h:36,
from src/cbang/config/Option.cpp:33:
/usr/include/c++/6/bits/stl_vector.h: In static member function ‘static cb::Option::doubles_t cb::Option::parseDoubles(const string&, const string&)’:
/usr/include/c++/6/bits/stl_vector.h:926:4: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<double*, std::vector<double> >’ will change in GCC 7.1
_M_insert_aux(end(), __x);
^~~~~~~~~~~~~
The rest is in the attatched file.
Thanks!
cbang is compiling correctly. CAMotics would build because your Qt library is incompatible. It's missing QOpenGLFunctions_2_1::versionProfile()
.
Ok, so that means I need to cross compile Qt for the Raspberry pi, since I cannot find any suitable libraries... right? and then try again?
Thank you for your help!
That could work. Make sure you compile it with OpenGL support.
Hi, I'm trying to install the software on a raspberry pi running Raspbian. I tried install the 32 bit Linux version. After adding the i386 architecture I now get the following error.
I also tried building from source and I got the error:
Do you have any suggestions? :)
Thanks a bunch!