Qt Creator: /root/work2/buildroot/output/host/usr/bin/arm-buildroot-linux-gnueabi-g++: Permission denied



  • Qt Creator 3.5.1

    Build & Run / Compilers
    Name: Rail GCC
    Compiler path: /home/jbarnes/rail/rail-buildtools32/CodeSourcery/Sourcery_G++_Lite/bin/arm-linux-g++

    Build & Run / Qt Versions
    Version name: RailQmake
    qmake location: /home/jbarnes/rail/rail/linux/host/usr/bin/qmake
    Qt version 4.8.6 for Embedded Linux
    Helpers: None available

    Build & Run / Kits
    Name: RailGcc
    File system name:
    Device type: Generic Linux Device
    Device: RAIL device (I tested connection, works)
    Sysroot: /mnt/device-disk (An ext2 filesystem image I built for the device)
    Compiler: Rail GCC
    Environment: No changes to apply
    Debugger: System GDB at /usr/bin/gdb (Not planning to use this)
    Qt version: RailQmake
    Qt mkspec:
    CMake Tool:

    I did a clean, qmake and build from Qt Creator. The build fails with the following.

    12:32:58: Running steps for project athena...
    12:32:58: Configuration unchanged, skipping qmake step.
    12:32:58: Starting: "/usr/bin/make"
    Makefile:1503: warning: overriding commands for target install_target' Makefile:1494: warning: ignoring old commands for targetinstall_target'
    Makefile:1507: warning: overriding commands for target uninstall_target' Makefile:1498: warning: ignoring old commands for targetuninstall_target'
    make: execvp: /root/work2/buildroot/output/host/usr/bin/arm-buildroot-linux-gnueabi-g++: Permission denied
    make: *** [main.o] Error 127
    /root/work2/buildroot/output/host/usr/bin/arm-buildroot-linux-gnueabi-g++ -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -Os -g -D_REENTRANT -Wall -W -DQSSLSOCKET_DEBUG -DQT_DECLARATIVE_LIB -DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_DECLARATIVE_DEBUG -DQT_SHARED -I../../linux/host/usr/mkspecs/qws/linux-arm-g++ -I../athena -I../../projects/bcm589x/build-output/secuapp/BCM95892/qt-4.8.6/include/QtCore -I../../projects/bcm589x/build-output/secuapp/BCM95892/qt-4.8.6/include/QtNetwork -I../../projects/bcm589x/build-output/secuapp/BCM95892/qt-4.8.6/include/QtGui -I../../projects/bcm589x/build-output/secuapp/BCM95892/qt-4.8.6/include/QtScript -I../../projects/bcm589x/build-output/secuapp/BCM95892/qt-4.8.6/include/QtDeclarative -I../../projects/bcm589x/build-output/secuapp/BCM95892/qt-4.8.6/include -I../athena/qtquick1applicationviewer -I../athena/lib/openssl-1.0.2f/include -I../Drivers -I. -I../athena -I. -o main.o ../athena/main.cpp
    12:32:58: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project athena (kit: RailGcc)
    When executing step "Make"
    12:32:58: Elapsed time: 00:00.

    This builds from the command line using the same toolchain and mkspec.

    I have no idea why qmake generated CXX as /root/work2/buildroot/output/host/usr/bin/arm-buildroot-linux-gnueabi-g++. Doesn't correspond to the configured toolchain.

    Any help appreciated.



  • Also, I added the following to my .pro.

    target.path = /nvdata
    INSTALLS += target



  • I solved this by editing my qmake.conf. Pretty obvious what changes were needed. It would be interesting to know why I needed to provide a compiler path, if it is redefined in the qmake.conf.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.