neuronalmotion / qtrpi

An easy-to-use environment to cross-compile Qt applications for Raspberry Pi from your desktop.
MIT License
104 stars 40 forks source link

Need Qtserialbus #64

Open ghost opened 7 years ago

ghost commented 7 years ago

hey, i wanna use a canbus device with qtrpi, i followed your instructions like using the "full" script, but im still not able to use it in qt creator. how can i add qtserialbus?

GuillaumeLazar commented 7 years ago

Is canbus in the module qtserialport (http://code.qt.io/cgit/qt/qtserialport.git/) ?

If yes see the issue: https://github.com/neuronalmotion/qtrpi/issues/43

ghost commented 7 years ago

qtserialport and qtserialbus are different things. serialport is already implemented, yes, but serialbus isnt. and i need qtserialbus because i want to use QCanBus, which is in it there.

EDIT: i followed your instructions but in the end, everything is on my machine but not on my rpi. EDIT: i want to use this https://doc.qt.io/qt-5/qtcanbus-backends.html

EDIT2: i think i got it working. the first time i tried it there were some problems with too small hdd space(im using a VM). Just followed your steps and it worked like a charm. thanks for this amazing piece of work. Now i can use qtserialbus with qcanbus respectivly i can include it, i dont know yet if it will work, but i guess so.

GuillaumeLazar commented 7 years ago

Great!

The Pull Requests are welcome, you can submit your enhancement to the project from GitHub!

ghost commented 7 years ago

I dont know how to make a "pull request" :D I'll check it.

ghost commented 7 years ago

Ok, one more thing: today i got a chance to try it out and i think, it dont work really well. Maybe you can help me with it, as the qtforum doesnt seem so. for an really important school project i need to use qt/c++ and a canbus device so send frames via canbus. with qtserialbus i was able to include the qcanbus libs, but every canbuscode said "undefinied reference". i found a solution by adding QT += serialbus to the .pro file, now the references are there. but now i got a new problem: Qt says, that it cannot find the libs. /home/pi//QtCanCheck: error while loading shared libraries: libQt5SerialBus.so.5: cannot open shared object file: No such file or directory Application finished with exit code 127.

what can i do now? im already compiling the whole qt5.9.1 by myself. greetings

ghost commented 7 years ago

Ok, i got it. With your Kit with QT5.7 one isnt able to use QCanBus, you have to update the qmake to Qt 5.9, then it will work. Thanks anyway :)

synapticvoid commented 7 years ago

Thanks for providing so much info about your research :)