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. make: *** [Makefile:51: sub-src-make_first] Error 2

make: *** [Makefile:51: sub-src-make_first] Error 2

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
8 Posts 3 Posters 5.8k Views
  • 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.
  • B Offline
    B Offline
    Buket
    wrote on last edited by Buket
    #1

    Hello everyone, I'm new to qt embedded and I have problem with make command.

    I have an ARM-based (Rockchip RK3288, ARM Cortex-A17 CPU, Mali-T760 MP4 (T764) GPU)motherboard and I want to cross-compile using it. I use Debian 9 as the operating system on this card, and I use Ubuntu 21.04 on the host PC.

    I used this commands:

    ./configure -static -release -opengl es2 -device linux-jetway-arm-g++ -device-option CROSS_COMPILE=~/linaro/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -no-eglfs -sysroot ~/linaro/sysroot -opensource -confirm-license -prefix /usr/local/qt5li -extprefix ~/linaro/qt5li -hostprefix ~/linaro/qt5 -opensource -confirm-license -skip qtscript -skip qtwayland -skip qtlocation -no-gbm -nomake examples -nomake tests -make libs -pkg-config -no-use-gold-linker -v
    

    My configure command works and I get no errors. Then when I run the make -j4 command I get the following error.

    make[2]: Leaving directory '/home/buket/linaro/qt-everywhere-src-5.12.2/qtbase/src/gui'
    make[1]: Leaving directory '/home/buket/linaro/qt-everywhere-src-5.12.2/qtbase/src'
    make: *** [Makefile:51: sub-src-make_first] Error 2
    

    Edit 1:

    /home/buket/linaro/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include/c++/7.5.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
     #include_next <stdlib.h>
                   ^~~~~~~~~~
    compilation terminated.
    make[2]: *** [Makefile:1677: .pch/Qt5Core.gch/c++] Error 1
    make[2]: *** Waiting for unfinished jobs....
    make[2]: Leaving directory '/home/buket/linaro/qtbase/src/corelib'
    make[1]: *** [Makefile:227: sub-corelib-make_first] Error 2
    make[1]: Leaving directory '/home/buket/linaro/qtbase/src'
    make: *** [Makefile:51: sub-src-make_first] Error 2
    

    I also ran the make install command because I thought it wouldn't cause any problems and this time I got the errors below.

    make[2]: *** [Makefile:28838: .obj/qsslsocket_opensslpre11.o] Error 1
    make[2]: Leaving directory '/home/buket/linaro/qt-everywhere-src-5.12.2/qtbase/src/network'
    make[1]: *** [Makefile:289: sub-network-install_subtargets] Error 2
    make[1]: Leaving directory '/home/buket/linaro/qt-everywhere-src-5.12.2/qtbase/src'
    make: *** [Makefile:63: sub-src-install_subtargets] Error 2
    

    My qmake.conf file:

    #
    # Generic qmake configuration for building with g++ on arm devices.
    #
    # A minimal configure line could look something like this:
    # ./configure -device arm-generic-g++ -device-option CROSS_COMPILE=arm-linux-gnueabi-
    
    include(../common/linux_device_pre.conf)
    QMAKE_INCDIR_POST += \
    	$$[QT_SYSROOT]/usr/include \
    	$$[QT_SYSROOT]/usr/include/arm-linux-gnueabihf
    	
    QMAKE_LIBDIR_POST += \
    	$$[QT_SYSROOT]/usr/lib \
    	$$[QT_SYSROOT]/lib/arm-linux-gnueabihf
    	$$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf
    	
    QMAKE_RPATHLINKDIR_POST += \
    	$$[QT_SYSROOT]/usr/lib \
    	$$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf \
    	$$[QT_SYSROOT]/lib/arm-linux-gnueabihf
    	
    QMAKE_INCDIR_EGL = $$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf/qt5/plugins/egldeviceintegrations
    
    
    
    DISTRO_OPTS     		+= hard-float
    COMPILER_FLAGS			+= -mtune=cortex-a17 -march=armv7-a -mfpu=vfpv3-d16 
    
    EGLFS_DEVICE_INTEGRATION = none
    
    
    include(../common/linux_arm_device_post.conf)
    load(qt_config)
    

    I think there is a problem with my qmake.conf file as I had to edit it myself. Although I made changes in my configure command, the result did not change and since the motherboard I use is not a common card, I can only research according to its processor. How can I run the make command without getting an error?

    jsulmJ 1 Reply Last reply
    0
    • B Buket

      Hello everyone, I'm new to qt embedded and I have problem with make command.

      I have an ARM-based (Rockchip RK3288, ARM Cortex-A17 CPU, Mali-T760 MP4 (T764) GPU)motherboard and I want to cross-compile using it. I use Debian 9 as the operating system on this card, and I use Ubuntu 21.04 on the host PC.

      I used this commands:

      ./configure -static -release -opengl es2 -device linux-jetway-arm-g++ -device-option CROSS_COMPILE=~/linaro/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -no-eglfs -sysroot ~/linaro/sysroot -opensource -confirm-license -prefix /usr/local/qt5li -extprefix ~/linaro/qt5li -hostprefix ~/linaro/qt5 -opensource -confirm-license -skip qtscript -skip qtwayland -skip qtlocation -no-gbm -nomake examples -nomake tests -make libs -pkg-config -no-use-gold-linker -v
      

      My configure command works and I get no errors. Then when I run the make -j4 command I get the following error.

      make[2]: Leaving directory '/home/buket/linaro/qt-everywhere-src-5.12.2/qtbase/src/gui'
      make[1]: Leaving directory '/home/buket/linaro/qt-everywhere-src-5.12.2/qtbase/src'
      make: *** [Makefile:51: sub-src-make_first] Error 2
      

      Edit 1:

      /home/buket/linaro/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include/c++/7.5.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
       #include_next <stdlib.h>
                     ^~~~~~~~~~
      compilation terminated.
      make[2]: *** [Makefile:1677: .pch/Qt5Core.gch/c++] Error 1
      make[2]: *** Waiting for unfinished jobs....
      make[2]: Leaving directory '/home/buket/linaro/qtbase/src/corelib'
      make[1]: *** [Makefile:227: sub-corelib-make_first] Error 2
      make[1]: Leaving directory '/home/buket/linaro/qtbase/src'
      make: *** [Makefile:51: sub-src-make_first] Error 2
      

      I also ran the make install command because I thought it wouldn't cause any problems and this time I got the errors below.

      make[2]: *** [Makefile:28838: .obj/qsslsocket_opensslpre11.o] Error 1
      make[2]: Leaving directory '/home/buket/linaro/qt-everywhere-src-5.12.2/qtbase/src/network'
      make[1]: *** [Makefile:289: sub-network-install_subtargets] Error 2
      make[1]: Leaving directory '/home/buket/linaro/qt-everywhere-src-5.12.2/qtbase/src'
      make: *** [Makefile:63: sub-src-install_subtargets] Error 2
      

      My qmake.conf file:

      #
      # Generic qmake configuration for building with g++ on arm devices.
      #
      # A minimal configure line could look something like this:
      # ./configure -device arm-generic-g++ -device-option CROSS_COMPILE=arm-linux-gnueabi-
      
      include(../common/linux_device_pre.conf)
      QMAKE_INCDIR_POST += \
      	$$[QT_SYSROOT]/usr/include \
      	$$[QT_SYSROOT]/usr/include/arm-linux-gnueabihf
      	
      QMAKE_LIBDIR_POST += \
      	$$[QT_SYSROOT]/usr/lib \
      	$$[QT_SYSROOT]/lib/arm-linux-gnueabihf
      	$$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf
      	
      QMAKE_RPATHLINKDIR_POST += \
      	$$[QT_SYSROOT]/usr/lib \
      	$$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf \
      	$$[QT_SYSROOT]/lib/arm-linux-gnueabihf
      	
      QMAKE_INCDIR_EGL = $$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf/qt5/plugins/egldeviceintegrations
      
      
      
      DISTRO_OPTS     		+= hard-float
      COMPILER_FLAGS			+= -mtune=cortex-a17 -march=armv7-a -mfpu=vfpv3-d16 
      
      EGLFS_DEVICE_INTEGRATION = none
      
      
      include(../common/linux_arm_device_post.conf)
      load(qt_config)
      

      I think there is a problem with my qmake.conf file as I had to edit it myself. Although I made changes in my configure command, the result did not change and since the motherboard I use is not a common card, I can only research according to its processor. How can I run the make command without getting an error?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Buket said in make: *** [Makefile:51: sub-src-make_first] Error 2:

      make: *** [Makefile:51: sub-src-make_first] Error 2

      Please post the actual error, which should be above this line.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      B 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Buket said in make: *** [Makefile:51: sub-src-make_first] Error 2:

        make: *** [Makefile:51: sub-src-make_first] Error 2

        Please post the actual error, which should be above this line.

        B Offline
        B Offline
        Buket
        wrote on last edited by
        #3

        @jsulm I edited.

        jsulmJ 1 Reply Last reply
        0
        • B Buket

          @jsulm I edited.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by jsulm
          #4

          @Buket I still don't see the actual error message. Do you?
          If in doubt post whole build log...

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          B 1 Reply Last reply
          0
          • jsulmJ jsulm

            @Buket I still don't see the actual error message. Do you?
            If in doubt post whole build log...

            B Offline
            B Offline
            Buket
            wrote on last edited by
            #5

            @jsulm

            The problem just looks like this. I think this is the real error.

            Ekran görüntüsü 2021-10-22 17-32-23.png

            jsulmJ 1 Reply Last reply
            0
            • B Buket

              @jsulm

              The problem just looks like this. I think this is the real error.

              Ekran görüntüsü 2021-10-22 17-32-23.png

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Buket said in make: *** [Makefile:51: sub-src-make_first] Error 2:

              I think this is the real error

              No
              Please post whole build log, but as TEXT. Then others can find the actual error.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              B 1 Reply Last reply
              0
              • jsulmJ jsulm

                @Buket said in make: *** [Makefile:51: sub-src-make_first] Error 2:

                I think this is the real error

                No
                Please post whole build log, but as TEXT. Then others can find the actual error.

                B Offline
                B Offline
                Buket
                wrote on last edited by Buket
                #7

                @jsulm I would really like to do this, but it's impossible for me to post such long code here.

                1 Reply Last reply
                0
                • E Offline
                  E Offline
                  ethanvijay
                  wrote on last edited by
                  #8

                  Was this error ever resolved @Buket ?

                  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