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. Raspberry guide - Unknown command line option '-hostprefix'
Forum Updated to NodeBB v4.3 + New Features

Raspberry guide - Unknown command line option '-hostprefix'

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 439 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.
  • K Offline
    K Offline
    ktmQT
    wrote on last edited by
    #1

    Hi folks,
    I'm following the Raspberry Pi Beginners Guide and I am stuck on the Compiling Qtbase step.

    the following instruction returns me the error below.

    ./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/rasp-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/qt5pi -hostprefix /usr/local/qt5pi
    

    here is the error:

    CMake Error at cmake/QtProcessConfigureArgs.cmake:270 (message):
      Unknown command line option '-hostprefix'.
    Call Stack (most recent call first):
      cmake/QtProcessConfigureArgs.cmake:655 (qtConfAddError)
    

    It seems like it does not like the -hostprefix option. Any idea how to fix it?

    Thanks!!!

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You are probably following a guide for Qt 5 but you are trying to compile Qt 6. For best chances of success, use a setup as similar to the one in the guide as possible.

      (Z(:^

      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