How would you design a real time application for cnc control in c / c++ ???

More
5 years 11 months ago #190336 by Grotius
Hi Arciera,

This one you can dowload :
pre-release-0.0.15

Open the readme in the skynet.zip. This will tell you what to do and how to install it.

Please Log in to join the conversation.

More
5 years 11 months ago #190343 by Aciera
Thanks!

Open the readme in the skynet.zip.


Where do I find the readme?

Attachment not found

Please Log in to join the conversation.

More
5 years 11 months ago #190347 by Grotius
Hi Arciera,

Excuse me. I forgot to include the readme.txt file.

It's pointing to line 114 - 133 of the Skynet.pro file.

Please Log in to join the conversation.

More
5 years 11 months ago #190405 by Aciera
Ok, I've done a fresh install using your ISO.

- I have installed orocos_kdl without error.
- making the pybind11 I get an error :/home/user/pybind/include/pybind11/detail/common.h:124:10: fatal error: Python.h: No such file or directory
Code:
user@linuxcnc:~$ git clone git://github.com/pybind/pybind11 pybind Cloning into 'pybind'... remote: Enumerating objects: 36, done. remote: Counting objects: 100% (36/36), done. remote: Compressing objects: 100% (32/32), done. remote: Total 13933 (delta 10), reused 12 (delta 1), pack-reused 13897 Receiving objects: 100% (13933/13933), 5.45 MiB | 4.68 MiB/s, done. Resolving deltas: 100% (9471/9471), done. user@linuxcnc:~$ git submodule update --init fatal: not a git repository (or any of the parent directories): .git user@linuxcnc:~$ cd pybind/ user@linuxcnc:~/pybind$ git submodule update --init user@linuxcnc:~/pybind$ mkdir build user@linuxcnc:~/pybind$ cd build user@linuxcnc:~/pybind/build$ cmake Usage cmake [options] <path-to-source> cmake [options] <path-to-existing-build> cmake [options] -S <path-to-source> -B <path-to-build> Specify a source directory to (re-)generate a build system for it in the current working directory. Specify an existing build directory to re-generate its build system. Run 'cmake --help' for more information. user@linuxcnc:~/pybind/build$ cmake .. -- The CXX compiler identification is GNU 8.3.0 -- 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 -- pybind11 v2.6.2 dev1 -- CMake 3.13.4 -- Found PythonInterp: /usr/bin/python3.7 (found version "3.7.3") -- Found PythonLibs: python3.7m -- PYTHON 3.7.3 -- Performing Test HAS_FLTO -- Performing Test HAS_FLTO - Success -- pybind11::lto enabled -- pybind11::thin_lto enabled -- Setting tests build type to MinSizeRel as none was specified -- Building tests with Eigen v3.3.7 -- Could NOT find Boost CMake Warning at tools/pybind11Common.cmake:248 (message): Missing: pytest 3.1 Try: /usr/bin/python3.7 -m pip install pytest Call Stack (most recent call first): tests/CMakeLists.txt:357 (pybind11_find_import) -- Catch not detected. Interpreter tests will be skipped. Install Catch headers manually or use `cmake -DDOWNLOAD_CATCH=ON` to fetch them automatically. -- Configuring done -- Generating done -- Build files have been written to: /home/user/pybind/build user@linuxcnc:~/pybind/build$ make Scanning dependencies of target pybind11_cross_module_tests [ 2%] Building CXX object tests/CMakeFiles/pybind11_cross_module_tests.dir/pybind11_cross_module_tests.cpp.o In file included from /home/user/pybind/include/pybind11/pytypes.h:12, from /home/user/pybind/include/pybind11/cast.h:13, from /home/user/pybind/include/pybind11/attr.h:13, from /home/user/pybind/include/pybind11/pybind11.h:45, from /home/user/pybind/tests/pybind11_tests.h:2, from /home/user/pybind/tests/pybind11_cross_module_tests.cpp:10: /home/user/pybind/include/pybind11/detail/common.h:124:10: fatal error: Python.h: No such file or directory #include <Python.h> ^~~~~~~~~~ compilation terminated. make[2]: *** [tests/CMakeFiles/pybind11_cross_module_tests.dir/build.make:63: tests/CMakeFiles/pybind11_cross_module_tests.dir/pybind11_cross_module_tests.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:134: tests/CMakeFiles/pybind11_cross_module_tests.dir/all] Error 2 make: *** [Makefile:130: all] Error 2 user@linuxcnc:~/pybind/build$

[edit]

The other problem is with qt : I noticed your ISO was missing "qt creator" in the menu. So I made an account and ran the online installer choosing "Default desktop installation" and it seems to install fine but it doesn't launch qt creator with the box checked and there still is no menu entry "qt creator"

I noticed this in the InstallationLog.txt. Don't really understand what that means.
Code:
[1009010] Installation finished! [1041917] run application as detached process: "/home/user/Qt/Tools/QtCreator/bin/qtcreator" () "/home/user"

So, I run
Code:
user@linuxcnc:~$ /home/user/Qt/Tools/QtCreator/bin/qtcreator qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb. Aborted user@linuxcnc:~$

Please Log in to join the conversation.

More
5 years 11 months ago #190411 by Grotius
Hi,

The other problem is with qt : I noticed your ISO was missing "qt creator" in the menu.
Hi, yes the qt c++ creator is not in the iso. I am looking to include this in the future.

If qt install was succesfull normally you would have the launcher icon in application menu / development / qtcreator
If not you could search the launcher in :
"/home/ **yourname** /Qt/Tools/QtCreator/bin/qtcreator"

So I made an account and ran the online installer choosing "Default desktop installation" and it seems to install fine but it doesn't launch qt creator with the box checked and there still is no menu entry "qt creator"
Oke try the above, if it's not present we have to focus on this.

- making the pybind11 I get an error :/home/user/pybind/include/pybind11/detail/common.h:124:10: fatal error: Python.h: No such file or directory
At wich install step is this? Is it during the install of the opencascade library?
If so and you did :
$ git clone github.com/grotius-cnc/orocos_kinematics_dynamics.git
$ sudo apt-get install assimp*

Mention : git clone git://github.com/pybind/pybind11 pybind
I did not clone pybind11. If there is something beside kdl and opencascade it has to be an easy install with sudo apt get install *

Ok if you have any questions, no problemo. If it's really a problem to get things going on, i will make also a fresh install on a hard drive and will document the steps i made. But it would be nice if you succeed without that.

Please Log in to join the conversation.

More
5 years 11 months ago #190418 by Aciera
There is no icon but a script that produces the mentioned error:
Code:
user@linuxcnc:~/Qt/Tools/QtCreator/bin$ ./qtcreator.sh qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb. Aborted

So I tried: sudo apt-get install qtcreator
and now there is the launch icon and I can start Creator but if I try to compile Skynet.pro I get the error:
Code:
/usr/include/c++/8/cstdlib:75: error: stdlib.h: No such file or directory #include_next <stdlib.h> ^~~~~~~~~~

So I deleted the /home/Qt folder and ran the qt online installer again using the "default desktop installation".
Same outcome: no icon and running qtcreator.sh gives :
Code:
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb. Aborted

Please Log in to join the conversation.

More
5 years 11 months ago #190420 by Aciera
Trying a bunch of possible fixes I found on the net I guess I got the debug mode switched on so no I get this:
Code:
user@linuxcnc:~$ export QT_DEBUG_PLUGINS=1 user@linuxcnc:~$ export QT_DEBUG_PLUGINS user@linuxcnc:~$ bash ./Qt/Tools/QtCreator/bin/qtcreator.sh QFactoryLoader::QFactoryLoader() checking directory path "/home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms" ... QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqeglfs.so" Found metadata in lib /home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqeglfs.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "eglfs" ] }, "archreq": 0, "className": "QEglFSIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("eglfs") QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqlinuxfb.so" Found metadata in lib /home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqlinuxfb.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "linuxfb" ] }, "archreq": 0, "className": "QLinuxFbIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("linuxfb") QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimal.so" Found metadata in lib /home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimal.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "minimal" ] }, "archreq": 0, "className": "QMinimalIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("minimal") QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimalegl.so" Found metadata in lib /home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqminimalegl.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "minimalegl" ] }, "archreq": 0, "className": "QMinimalEglIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("minimalegl") QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqoffscreen.so" Found metadata in lib /home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqoffscreen.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "offscreen" ] }, "archreq": 0, "className": "QOffscreenIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("offscreen") QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqvnc.so" Found metadata in lib /home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqvnc.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "vnc" ] }, "archreq": 0, "className": "QVncIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("vnc") QFactoryLoader::QFactoryLoader() looking at "/home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" Found metadata in lib /home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "xcb" ] }, "archreq": 0, "className": "QXcbIntegrationPlugin", "debug": false, "version": 331520 } Got keys from plugin meta data ("xcb") QFactoryLoader::QFactoryLoader() checking directory path "/home/user/Qt/Tools/QtCreator/bin/platforms" ... Cannot load library /home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No such file or directory) QLibraryPrivate::loadPlugin failed on "/home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No such file or directory)" qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb. Aborted

So it seems that this might be the issue:
Cannot load library /home/user/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No such file or directory)

Will explore that later.

Please Log in to join the conversation.

More
5 years 11 months ago #190425 by Grotius
Hi Arciera,

There is a difference between qtcreator and qtcreator.
If you do a install trough command line, you get the qtcreator wich can be used for lcnc python etc.
You need the qtcreator enterprise. This is the c++ version.

This is the online installer for download.
www.qt.io/download-thank-you?hsLang=en

The filename is : /home/ **yourname** /Downloads/qt-unified-linux-x64-4.0.0-online.run
Then make it executable.

Oke this are the steps for install QT.

Attachment not found


Attachment not found


Attachment not found


Attachment not found



Let me know how it goes..

Please Log in to join the conversation.

More
5 years 11 months ago #190438 by Aciera
Same error unfortunately.

I tried:

sudo apt-get install libxcb-util0-dev

and also
sudo apt-get update --fix-missing
sudo apt-get install -f


Without success.

Please Log in to join the conversation.

More
5 years 11 months ago #190439 by Aciera
Ok, I fixed it:

Seems that libxcb-util1 is missing in the repository after adding this I can start creator:

software.opensuse.org//download.html?pro...package=libxcb-util1

Next Problem is that I still can't compile Skynet:

Attachment not found

Please Log in to join the conversation.

Time to create page: 0.168 seconds
Powered by Kunena Forum