Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. compile issue on qt
QtWS25 Last Chance

compile issue on qt

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 1.2k 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.
  • V Offline
    V Offline
    victor wang
    wrote on last edited by
    #1

    HI,
    i'm using Qt5.5 on my computor.
    I'm using arm-poky-linux-gnueabi-gcc and arm-poky-linux-gnueabi-g++ to build my file.
    This is what my Makefile do.

    QMAKE_TARGET  = test
    DESTDIR       = #avoid trailing-slash linebreak
    TARGET        = test
    
    
    first: all
    ####### Implicit rules
    
    .SUFFIXES: .o .c .cpp .cc .cxx .C
    
    .cpp.o:
        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
    
    .cc.o:
        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
    
    .cxx.o:
        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
    
    .C.o:
        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
    
    .c.o:
        $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
    
    

    The version of the arm-poky-linux-gnueabi-gcc is 5.2.0 and so does g++.

    But when i make it will shows the errors here.

    arm-poky-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5 -I../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtWidgets -I../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtGui -I../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtCore -I. -I. -I../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/devices/linux-imx6-g++ -o main.o main.cpp
    In file included from ../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtGui/qwindowdefs.h:37:0,
                     from ../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtWidgets/qwidget.h:37,
                     from ../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtWidgets/qmainwindow.h:37,
                     from ../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtWidgets/QMainWindow:1,
                     from mainwindow.h:4,
                     from main.cpp:1:
    ../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtCore/qglobal.h:39:21: fatal error: cstddef: No such file or directory
    compilation terminated.
    make: *** [main.o] Error 1
    
    

    How to fix this one?
    Please Help!

    E 1 Reply Last reply
    0
    • V victor wang

      HI,
      i'm using Qt5.5 on my computor.
      I'm using arm-poky-linux-gnueabi-gcc and arm-poky-linux-gnueabi-g++ to build my file.
      This is what my Makefile do.

      QMAKE_TARGET  = test
      DESTDIR       = #avoid trailing-slash linebreak
      TARGET        = test
      
      
      first: all
      ####### Implicit rules
      
      .SUFFIXES: .o .c .cpp .cc .cxx .C
      
      .cpp.o:
          $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
      
      .cc.o:
          $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
      
      .cxx.o:
          $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
      
      .C.o:
          $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
      
      .c.o:
          $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
      
      

      The version of the arm-poky-linux-gnueabi-gcc is 5.2.0 and so does g++.

      But when i make it will shows the errors here.

      arm-poky-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5 -I../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtWidgets -I../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtGui -I../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtCore -I. -I. -I../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/devices/linux-imx6-g++ -o main.o main.cpp
      In file included from ../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtGui/qwindowdefs.h:37:0,
                       from ../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtWidgets/qwidget.h:37,
                       from ../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtWidgets/qmainwindow.h:37,
                       from ../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtWidgets/QMainWindow:1,
                       from mainwindow.h:4,
                       from main.cpp:1:
      ../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtCore/qglobal.h:39:21: fatal error: cstddef: No such file or directory
      compilation terminated.
      make: *** [main.o] Error 1
      
      

      How to fix this one?
      Please Help!

      E Offline
      E Offline
      Eeli K
      wrote on last edited by
      #2

      @victor-wang http://en.cppreference.com/w/cpp/header/cstddef isn't found, you probably haven't all necessary packages installed. Another option is that the include path is wrong. What's you OS? Can you compile a Qt application with the regular g++ (not cross-compile)?

      V 1 Reply Last reply
      0
      • E Eeli K

        @victor-wang http://en.cppreference.com/w/cpp/header/cstddef isn't found, you probably haven't all necessary packages installed. Another option is that the include path is wrong. What's you OS? Can you compile a Qt application with the regular g++ (not cross-compile)?

        V Offline
        V Offline
        victor wang
        wrote on last edited by
        #3

        @Eeli-K
        1.i'm on the Ubuntu 14.04.
        2.I can compile without using cross compiler.

        And now i'm trying to reinstall the meta-toolchain-qt5 and the whole packages.
        But somehow in my the other computeer same is base on Ubuntu 14.04 will get the error like this.

        arm-poky-linux-gnueabi-g++ -c -pipe -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1 -mfloat-abi=softfp -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5 -I../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtWidgets -I../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtGui -I../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtCore -I. -I. -I../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/qt5/mkspecs/devices/linux-imx6-g++ -o main.o main.cpp
        In file included from ../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtGui/qwindowdefs.h:37:0,
                         from ../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtWidgets/qwidget.h:37,
                         from ../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtWidgets/qmainwindow.h:37,
                         from ../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtWidgets/QMainWindow:1,
                         from mainwindow.h:4,
                         from main.cpp:1:
        ../../sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/qt5/QtCore/qglobal.h:39:21: fatal error: cstddef: No such file or directory
        compilation terminated.
        make: *** [main.o] Error 1
        
        

        What should i do ?

        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