Galil Controller + Beaglebone + Qt 5.5.1
-
Hello everyone,
I want to develop an application to send motion commands using the Galil libraries (http://www.galil.com/sw/pub/all/doc/gclib/html/index.html) but I have no experience.
I have cross-compiled QT for Beaglebone Black successfully, but I do not know how to install the Galil libraries to work with Qt and the Beaglebone.Can you help me?
regards
-
@Dario This may help. http://www.galil.com/sw/pub/all/doc/gclib/html/pi.html. It shows how to do it for a Pi. You could also just compile it yourself for the bb.
As for usage, just like any other library. Just include the header and link to the library.
-
Thanks @ambershark , I will try it, but Do I need to add the libraries in some folder of the desktop computer and also in Beaglebone?
regards -
@Dario Do you mean to deploy your app? Yes, you will need to provide that library together with your app (put it in the same directory as your executable, see http://doc.qt.io/qt-5/linux-deployment.html).
-
@ambershark I understand that I am using qmake and yes, the libraries are arm for BBB
-
@Dario Ok so for qmake you would do something like:
LIBS += -L/path/to/libs -lwhatever
You can add multiple
-Lpath
and multiple-llib
items. Keep in mind if a library name is something likelibmylibrary.so
then the corresponding -l command is-lmylibrary
, you do not add the lib prefix or the .so suffix. Likewise if it waslibsomething.a
it would be-lsomething
.