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. RaspberryPi2EGLFS cross compile Error <stdio.h> no such file or directory
QtWS25 Last Chance

RaspberryPi2EGLFS cross compile Error <stdio.h> no such file or directory

Scheduled Pinned Locked Moved Solved Installation and Deployment
eglfsstdio.hraspberrypi2raspberryraspberry eglfs
4 Posts 3 Posters 4.9k 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.
  • daywongD Offline
    daywongD Offline
    daywong
    wrote on last edited by
    #1

    Hi, I am trying to compile QT by cross-compile by follow this tutorial.
    https://wiki.qt.io/RaspberryPi2EGLFS
    Everything is good before i hit this line:

    ./configure -release -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v
    

    This is the first error i got, and bunch of errors following...

    Determining architecture... ()
    /home/daywong/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -marm -mthumb-interwork -mfpu=neon-vfpv4 -mtune=cortex-a7 -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/home/daywong/raspi/sysroot -g -Wall -W -fPIC  -I. -I../../mkspecs/devices/linux-rasp-pi2-g++ -o arch.o arch.cpp
    arch.cpp:37:19: fatal error: stdio.h: No such file or directory
     #include <stdio.h>
    compilation terminated.
    
    

    I am using Virtual box with Ubuntu 14.04 LTS as the compile machine. Any idea of what i did wrong? Thanks

    the_T 1 Reply Last reply
    0
    • daywongD daywong

      Hi, I am trying to compile QT by cross-compile by follow this tutorial.
      https://wiki.qt.io/RaspberryPi2EGLFS
      Everything is good before i hit this line:

      ./configure -release -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v
      

      This is the first error i got, and bunch of errors following...

      Determining architecture... ()
      /home/daywong/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -marm -mthumb-interwork -mfpu=neon-vfpv4 -mtune=cortex-a7 -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/home/daywong/raspi/sysroot -g -Wall -W -fPIC  -I. -I../../mkspecs/devices/linux-rasp-pi2-g++ -o arch.o arch.cpp
      arch.cpp:37:19: fatal error: stdio.h: No such file or directory
       #include <stdio.h>
      compilation terminated.
      
      

      I am using Virtual box with Ubuntu 14.04 LTS as the compile machine. Any idea of what i did wrong? Thanks

      the_T Offline
      the_T Offline
      the_
      wrote on last edited by
      #2

      @daywong

      Are the header files in the correct path?

      -- No support in PM --

      1 Reply Last reply
      0
      • sneubertS Offline
        sneubertS Offline
        sneubert
        wrote on last edited by
        #3

        Is there a stdio.h in ~/raspi/sysroot/usr/include? If not maybe the rsync wasn´t successfull.

        daywongD 1 Reply Last reply
        1
        • sneubertS sneubert

          Is there a stdio.h in ~/raspi/sysroot/usr/include? If not maybe the rsync wasn´t successfull.

          daywongD Offline
          daywongD Offline
          daywong
          wrote on last edited by
          #4

          @sneubert said:

          ~/raspi/sysroot/usr/include

          Thats correct. Tried to re-run rsync, stdio.h is there finally.

          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