Monday, October 23, 2017

Raspbian: /opt/qt/bin/qmake: cannot execute binary file: Exec format error

If you're cross-compiling Qt for Raspberry Pi (for instance following this guide), and once everything finished and seems Ok, you may encounter the following error while running qmake:
/opt/qt/bin/qmake: cannot execute binary file: Exec format error

Please keep in mind that qmake and its friends (moc, uic, rcc, etc.) are host tools and thus they are compiled for the host you are cross-compiling on. They suppose to run from the the host and not from the RPi device itself.

No comments:

Post a Comment