Tags:

อยากถามว่า ผมสามารถ เขียนโปรเเกรม C++ ในQT บนwindows ไปทำงาน บน Raspberry pi ที่ลง QT
ได้หรือป่าวครับ

Get latest news from Blognone
By: kswisit
ContributoriPhoneAndroidIn Love
on 23 October 2014 - 09:27 #756340

ต้อง cross compile ครับ

compile บน windows แล้วไปรันใน rpi ไม่ได้ cpu คนละสถาปัตยกรรมกัน

หรือไม่ก็เขียนบน windows แล้ว compile บน rpi เลย แบบนี้จะช้าหน่อยเพราะ cpu rpi มันช้า

http://qt-project.org/wiki/RaspberryPi_Beginners_guide

แต่ผมใช้ตัวนี้อยู่ http://visualgdb.com/

Cross-compiling Raspberry Pi Qt Apps with Visual Studio


^
^
that's just my two cents.

By: deaw on 23 October 2014 - 14:40 #756431
deaw's picture

Beginner’s guide to cross-compile Qt5 on RaspberryPi

อันบนนี้ใช้โฮต์เป็น linux หรือ osx
แต่ถ้าทำใน windows ถ้าเอาง่าย ก็ ตามเม้นบน ใช้ visualgdb แต่ถ้าอยากสนุก ก็ใช้เทคนิค VM
ลง vagrant ใช้ image ubuntu แล้ว ssh x-forwarding รัน qtcreator เอา

หรือ ลง linux ใช้แบบ native ไปเลยจะสนุกสุด