This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/TMDSSK3358: error: gnu/stubs-soft.h: No such file or directory when building Lab2 on http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Hands_on_with_QT

Part Number: TMDSSK3358


Tool/software: Linux

Hi,

     I use the  Processro -sdk-linux-am335x ver :03.02.00.05 and Qt Creator ver:4.2.1 on TMDSSK3358,and I followed  the lab2 on 

http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Hands_on_with_QT   

    I meet a error:

/home/jack/tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/gnu/stubs.h:7: error: gnu/stubs-soft.h: No such file or directory
# include <gnu/stubs-soft.h>
^

   

Thanks !

Jianhua Yuan

  • Hello Jianhua,

    This error is a result of improper Qt creator build environment configuration. But I am wondering what error you will get next if you workaround this with the touch /home/jack/tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/gnu/stubs-soft.h command. Can you try?

    Best regards,
    Kemal

  • Hi,

      Thanks for your reply. It still has errors. I found that  there are two warnings on Issues widows:

    1: warning: "/usr/bin/gcc" is used by qmake, but "/home/jack/tisdk3.02.00.05/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc" is configured in the kit.
    Please update your kit or choose a mkspec for qmake that matches your target environment better.

    1: warning: "/usr/bin/g++" is used by qmake, but "/home/jack/tisdk3.02.00.05/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-g++" is configured in the kit.
    Please update your kit or choose a mkspec for qmake that matches your target environment better.

    on the compile output wndows:

    17:14:29: Running steps for project termnal...

    17:14:29: Starting: "/usr/bin/make" clean

    rm -f moc_terminal.cpp

    rm -f ui_terminal.h

    rm -f main.o terminal.o moc_terminal.o

    rm -f *~ core *.core

    17:14:29: The process "/usr/bin/make" exited normally.

    17:14:29: Configuration unchanged, skipping qmake step.

    17:14:29: Starting: "/usr/bin/make"

    /home/jack/tisdk3.02.00.05/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/qt5//uic ../termnal/terminal.ui -o ui_terminal.h

    g++ -c -pipe -g -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../termnal -I. -I../../tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5 -I../../tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets -I../../tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtGui -I../../tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore -I. -I. -I../../tisdk3.02.00.05/linux-devkit/sysroots/x86_64-arago-linux/mkspecs/linux-g++ -o main.o ../termnal/main.cpp

    g++ -c -pipe -g -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../termnal -I. -I../../tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5 -I../../tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets -I../../tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtGui -I../../tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore -I. -I. -I../../tisdk3.02.00.05/linux-devkit/sysroots/x86_64-arago-linux/mkspecs/linux-g++ -o terminal.o ../termnal/terminal.cpp

    /home/jack/tisdk3.02.00.05/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/qt5//moc -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/home/jack/tisdk3.02.00.05/linux-devkit/sysroots/x86_64-arago-linux/mkspecs/linux-g++ -I/home/jack/testqt/termnal -I/home/jack/tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5 -I/home/jack/tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets -I/home/jack/tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtGui -I/home/jack/tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore -I. -I/home/gtbldadm/tools/linaro-2016.02/arm-linux-gnueabihf/include -I/home/gtbldadm/tools/linaro-2016.02/arm-linux-gnueabihf/include/c++/5.3.1 -I/home/gtbldadm/tools/linaro-2016.02/arm-linux-gnueabihf/include/c++/5.3.1/arm-linux-gnueabihf -I/home/gtbldadm/tools/linaro-2016.02/arm-linux-gnueabihf/include/c++/5.3.1/backward -I/home/gtbldadm/tools/linaro-2016.02/lib/gcc/arm-linux-gnueabihf/5.3.1/include -I/home/gtbldadm/tools/linaro-2016.02/lib/gcc/arm-linux-gnueabihf/5.3.1/include-fixed -I/usr/include ../termnal/terminal.h -o moc_terminal.cpp

    g++ -c -pipe -g -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../termnal -I. -I../../tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5 -I../../tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtWidgets -I../../tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtGui -I../../tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/include/qt5/QtCore -I. -I. -I../../tisdk3.02.00.05/linux-devkit/sysroots/x86_64-arago-linux/mkspecs/linux-g++ -o moc_terminal.o moc_terminal.cpp

    g++ -o termnal main.o terminal.o moc_terminal.o -L/home/jack/tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGLESv2 -lpthread

    /usr/bin/ld: skipping incompatible /home/jack/tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/libQt5Widgets.so when searching for -lQt5Widgets

    /usr/bin/ld: cannot find -lQt5Widgets

    /usr/bin/ld: skipping incompatible /home/jack/tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/libQt5Gui.so when searching for -lQt5Gui

    /usr/bin/ld: cannot find -lQt5Gui

    /usr/bin/ld: skipping incompatible /home/jack/tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/libQt5Core.so when searching for -lQt5Core

    /usr/bin/ld: cannot find -lQt5Core

    /usr/bin/ld: skipping incompatible /home/jack/tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/libGLESv2.so when searching for -lGLESv2

    /usr/bin/ld: cannot find -lGLESv2

    /usr/bin/ld: skipping incompatible /home/jack/tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/libpthread.so when searching for -lpthread

    /usr/bin/ld: skipping incompatible /home/jack/tisdk3.02.00.05/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/libpthread.a when searching for -lpthread

    collect2: error: ld returned 1 exit status

    make: *** [termnal] Error 1

    17:14:34: The process "/usr/bin/make" exited with code 2.

    Error while building/deploying project termnal (kit: AM335X EVM)

    When executing step "Make"

    17:14:34: Elapsed time: 00:05.

        Thank you!

    Jianhua Yuan

  • Please, select the proper cross-compiler from this menu and enter “linux-oe-g++” to the “Qt mkspec” text box.

  • Hi,

        Thank you for your reply. I checked all the settings,it still occurs the errors  as above  after I have touch the file /../../stubs-soft.h.

       So I change the processor SDK to ver 03.00.00.04, Qt ver 4.2.1. When compiling, it has the following error:

    Cannot read /home/jack/ti-sdk03.00.00.04/linux-devkit/sysroots/cortexa8hf-neon-linux-gnueabi/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory

        then I touch /home/jack/ti-sdk03.00.00.04/linux-devkit/sysroots/cortexa8hf-neon-linux-gnueabi/usr/lib/qt5/mkspecs/oe-device-extra.pri.

        Now everything is OK,it works. 

        

     Thanks

    Jianhua Yuan