Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. error adding symbols: File format not recognized while cross compiling
Forum Updated to NodeBB v4.3 + New Features

error adding symbols: File format not recognized while cross compiling

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 988 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SYigitK
    wrote on last edited by
    #1
    j/moc_qmimetype.o  -lpthread -lm /home/sincap/raspi/qt-everywhere-src-5.12.12/qtbase/lib/libqtpcre2.a   
    /home/sincap/raspi/qt-everywhere-src-5.12.12/qtbase/lib/libqtpcre2.a: error adding symbols: File format not recognized
    collect2: error: ld returned 1 exit status
    make[3]: *** [Makefile:1303: /home/sincap/raspi/qt-everywhere-src-5.12.12/lib/libQt5Core.so.5.12.12] Error 1
    make[3]: Leaving directory '/home/sincap/raspi/qt-everywhere-src-5.12.12/qtbase/src/corelib'
    make[2]: *** [Makefile:227: sub-corelib-make_first] Error 2
    make[2]: Leaving directory '/home/sincap/raspi/qt-everywhere-src-5.12.12/qtbase/src'
    make[1]: *** [Makefile:51: sub-src-make_first] Error 2
    make[1]: Leaving directory '/home/sincap/raspi/qt-everywhere-src-5.12.12/qtbase'
    make: *** [Makefile:82: module-qtbase-make_first] Error 2
    
    

    I'm trying to compile qt for raspberry pi but ended up with this error(the code above is just the last few lines of making process). I used the configuration below.

    ./configure -release -no-opengl -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/raspi/linaro/bin/arm-linux-gnueabihf- -opensource -skip qtwayland -skip qtlocation -skip qtscript -make libs -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt-everywhere-src-5.12.12 -no-use-gold-linker -v -no-gbm -skip webengine
    

    how can I solve this errors?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved