How to connect Qt program with other program at runtime in Raspberry Pi?
-
An motor driver that is written in C ++ but cannot be connected to the Qt. We also talked to the manufacturer, but to no avail. But the Library works in Raspberry Pi and has example. Is there a way for the Qt program to connect and exchange data with the program running the engine library at the same time?Qt program also is running.
-
Hi,
Something is not clear, you are talking about both a program and a library. Which one is it ?
If there's a library, in which language is the library built ? -
@SGaist Hi,
The motor driver is a library. But I do not know it is written in C or C++. The library does not have the ability to connect to Qt. But the company has put together a sample program that works well with Raspberry Pi with the library. I have a program in Qt and another program in a other environment that runtime to manipulate the parameters of the motor driver(get and send float, int value ). -
@Saeed_Nowroozi You can use that library in your Qt application.
See here for more details: https://doc.qt.io/qt-5/third-party-libraries.html -
@jsulm Hi, Thank you, saved name of drivers are libEposCmd.so.6.6.2.0 and libftd2xx.so.1.4.8 that when I want to add to my project, Qt can not find these libs. When I change them to libEposCmd.so and libftd2xx.so, Qt find them. In exampe https://doc.qt.io/qt-5/third-party-libraries.html The saved extension is *.s.
-
@Saeed_Nowroozi said in How to connect Qt program with other program at runtime in Raspberry Pi?:
When I change them to libEposCmd.so and libftd2xx.so
So, does it work now (I mean: can you use the libs?)? Instead of renaming the libs you can also create symbolic links:
libEposCmd.so --> libEposCmd.so.6.6.2.0
-
@jsulm Just find but do not work. How create me symbolic links(libEposCmd.so --> libEposCmd.so.6.6.2.0)?
-
@Saeed_Nowroozi said in How to connect Qt program with other program at runtime in Raspberry Pi?:
How create me symbolic links
Like any other symbolic link (man ln):
ln -s libEposCmd.so.6.6.2.0 libEposCmd.so