vanfanel / SDL12-kms-dispmanx

libSDL 1.2.15 with KMS and Dispmanx (Raspberry Pi VC) backends, with working double buffer + vsync
GNU Lesser General Public License v2.1
14 stars 5 forks source link

/opt/vc/include/interface/vmcs_host/vcgencmd.h:33:27: fatal error: vchost_config.h: No such file or directory #2

Open jumph4x opened 11 years ago

jumph4x commented 11 years ago

Hey fellas,

My setup:

My steps

got clone x
cd x
./MAC_ConfigureDISPMANX.sh
make && sudo make install

My problem:

/bin/bash ./libtool --mode=compile gcc -g -O2  -I./include -D_GNU_SOURCE=1 -fvisibility=hidden  -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -ftree-vectorize -pipe -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -Wno-psabi -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -D_REENTRANT -DHAVE_LINUX_VERSION_H -Wall -c ./src/video/dispmanx/SDL_fbevents.c  -o build/SDL_fbevents.lo
libtool: compile:  gcc -g -O2 -I./include -D_GNU_SOURCE=1 -fvisibility=hidden -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -Wall -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -ftree-vectorize -pipe -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -Wno-psabi -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -D_REENTRANT -DHAVE_LINUX_VERSION_H -Wall -c ./src/video/dispmanx/SDL_fbevents.c  -fPIC -DPIC -o build/.libs/SDL_fbevents.o
In file included from /opt/vc/include/bcm_host.h:50:0,
                 from ./src/video/dispmanx/SDL_fbvideo.h:18,
                 from ./src/video/dispmanx/SDL_fbevents.c:35:
/opt/vc/include/interface/vmcs_host/vcgencmd.h:33:27: fatal error: vchost_config.h: No such file or directory
compilation terminated.
make: *** [build/SDL_fbevents.lo] Error 1
jumph4x commented 11 years ago

The solution is here: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=78&t=25146&start=25

export CFLAGS="-I/opt/vc/include/interface/vmcs_host/linux"
AndrewFromMelbourne commented 11 years ago

Hi I have created a pull request to update 'configure' with the extra include path.