Meta-toolchain-qt5 SDK: "make: c: Command not found make"



  • I have 2 versions of SDK for Qt Creator: Compiled from Open Source and Compiled from Yocto bitbake.

    The Open Source SDK is working fine, but the bitbake one is having trouble recognizing the compiler. I have added the g++ compiler to build & Run and source environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabias well.

    make: c: Command not found make: [moc_utils.o] Error 127 (ignored)
    
    make:
    Wl,-rpath-link,/opt/poky/charles/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib:
    
    Command not found make: [quicknanobrowser] Error 127 (ignored)
    

    Here is the error one Compiler Log:

    14:27:55: Running steps for project quicknanobrowser... 
    
    14:27:55:
    Starting:
    "/opt/poky/charles/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/qmake"
    /home/hbulab/Qt5.5.1/Examples/Qt-5.5/webengine/quicknanobrowser/quicknanobrowser.pro
    -r -spec linux-oe-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug 
    14:27:55: The process
    "/opt/poky/charles/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/qmake"
    exited normally.
    
    14:27:55: Starting: "/usr/bin/make"  
    c -pipe  -g
    -DLINUX=1 -DEGL_API_FB=1 -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WEBENGINE_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB DQT_CORE_LIB -I. 
    
    

    and here is the one without error, we could see that the make could not find the g++ compiler. How do I fix it?

    14:29:08: Running steps for project quicknanobrowser... 
    14:29:08: Starting: "/opt/hio-imx6dl-board/opt/Qt5daisy/bin/qmake"
     /home/hbulab/Qt5.5.1/Examples/Qt-5.5/webengine/quicknanobrowser/quicknanobrowser.pro
     -r -spec devices/linux-imx6-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug 
    14:29:09: The process
     "/opt/hio-imx6dl-board/opt/Qt5daisy/bin/qmake" exited normally.
    
    14:29:09: Starting: "/usr/bin/make" 
     /opt/poky/1.6.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++
     -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=hard -g -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WEBENGINE_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I.
    

    And here is the Environment Setup file

    export SDKTARGETSYSROOT=/opt/poky/charles/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi
    export PATH=/opt/poky/charles/sysroots/x86_64-pokysdk-linux/usr/bin:/opt/poky/charles/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi:$PATH
    export PKG_CONFIG_SYSROOT_DIR=$SDKTARGETSYSROOT
    export PKG_CONFIG_PATH=$SDKTARGETSYSROOT/usr/lib/pkgconfig
    export CONFIG_SITE=/opt/poky/charles/site-config-cortexa9hf-vfp-neon-poky-linux-gnueabi
    export OECORE_NATIVE_SYSROOT="/opt/poky/charles/sysroots/x86_64-pokysdk-linux"
    export OECORE_TARGET_SYSROOT="$SDKTARGETSYSROOT"
    export OECORE_ACLOCAL_OPTS="-I /opt/poky/charles/sysroots/x86_64-pokysdk-linux/usr/share/aclocal"
    export PYTHONHOME=/opt/poky/charles/sysroots/x86_64-pokysdk-linux/usr
    export CC="arm-poky-linux-gnueabi-gcc  -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=$SDKTARGETSYSROOT"
    export CXX="arm-poky-linux-gnueabi-g++  -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=$SDKTARGETSYSROOT"
    export CPP="arm-poky-linux-gnueabi-gcc -E  -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=$SDKTARGETSYSROOT"
    export AS="arm-poky-linux-gnueabi-as "
    export LD="arm-poky-linux-gnueabi-ld  --sysroot=$SDKTARGETSYSROOT"
    export GDB=arm-poky-linux-gnueabi-gdb
    export STRIP=arm-poky-linux-gnueabi-strip
    export RANLIB=arm-poky-linux-gnueabi-ranlib
    export OBJCOPY=arm-poky-linux-gnueabi-objcopy
    export OBJDUMP=arm-poky-linux-gnueabi-objdump
    export AR=arm-poky-linux-gnueabi-ar
    export NM=arm-poky-linux-gnueabi-nm
    export M4=m4
    export TARGET_PREFIX=arm-poky-linux-gnueabi-
    export CONFIGURE_FLAGS="--target=arm-poky-linux-gnueabi --host=arm-poky-linux-gnueabi --build=x86_64-linux --with-libtool-sysroot=$SDKTARGETSYSROOT"
    export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
    export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
    export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
    export CPPFLAGS=""
    export OECORE_DISTRO_VERSION="1.6.1"
    export OECORE_SDK_VERSION="1.6.1"
    export ARCH=arm
    export CROSS_COMPILE=arm-poky-linux-gnueabi-
    


  • Hi,

    Have you find a solution for this problem?

    THanks in adavnce.


Log in to reply
 

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