为啥各种系统库的头文件都找不到呢

root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# ls /usr/include | grep "types"
caca_types.h
inttypes.h
nl_types.h
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# ls /usr/local/include | grep "types"
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# ls
live555         Makefile     playCommon.cpp  README.md    WFDSink.hh
live555_backup  openWFD.cpp  playCommon.hh   WFDSink.cpp
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# ls /usr/local/include
BasicUsageEnvironment  gnutls  groupsock  liveMedia  taglib  UsageEnvironment
dvbpsi                 goom    libxml2    nettle     upnp
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# find /usr/include -name types.h
/usr/include/directfb/unique/types.h
/usr/include/directfb/direct/types.h
/usr/include/directfb/fusion/types.h
/usr/include/i386-linux-gnu/bits/types.h
/usr/include/i386-linux-gnu/asm/types.h
/usr/include/i386-linux-gnu/sys/types.h
/usr/include/rpc/types.h
/usr/include/dc1394/types.h
/usr/include/c++/4.6/parallel/types.h
/usr/include/linux/types.h
/usr/include/asm-generic/types.h
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# locate sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/bionic/libc/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/development/ndk/platforms/android-3/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/darwin-x86/toolchain/i686-android-linux-4.4.3/lib/gcc/i686-android-linux/4.4.3/include-fixed/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/linux-x86/toolchain/i686-android-linux-4.4.3/lib/gcc/i686-android-linux/4.4.3/include-fixed/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/ndk/android-ndk-r4/platforms/android-3/arch-arm/usr/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/ndk/android-ndk-r4/platforms/android-4/arch-arm/usr/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-arm/usr/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-x86/usr/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-arm/usr/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-x86/usr/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/ndk/android-ndk-r5/platforms/android-3/arch-arm/usr/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/ndk/android-ndk-r5/platforms/android-4/arch-arm/usr/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/ndk/android-ndk-r5/platforms/android-5/arch-arm/usr/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/ndk/android-ndk-r5/platforms/android-8/arch-arm/usr/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/ndk/android-ndk-r5/platforms/android-9/arch-arm/usr/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/ndk/android-ndk-r6/platforms/android-3/arch-arm/usr/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/ndk/android-ndk-r6/platforms/android-3/arch-x86/usr/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/ndk/android-ndk-r6/platforms/android-4/arch-arm/usr/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/ndk/android-ndk-r6/platforms/android-4/arch-x86/usr/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/ndk/android-ndk-r6/platforms/android-5/arch-arm/usr/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/ndk/android-ndk-r6/platforms/android-5/arch-x86/usr/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/ndk/android-ndk-r6/platforms/android-8/arch-arm/usr/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/ndk/android-ndk-r6/platforms/android-8/arch-x86/usr/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/ndk/android-ndk-r6/platforms/android-9/arch-arm/usr/include/sys/types.h
/home/zhangbin/Downloads/HisAndroid/HiSTBAndroidV400R001C00SPC050/software/HiSTBAndroidV400R001C00SPC050B012/prebuilt/ndk/android-ndk-r6/platforms/android-9/arch-x86 /usr/include/sys/types.h
/home/zhangbin/STM/STLinux-2.4/devkit/sh4/target/usr/include/sys/types.h
/home/zhangbin/android/android-ndk-r8e/platforms/android-14/arch-arm/usr/include/sys/types.h
/home/zhangbin/android/android-ndk-r8e/platforms/android-14/arch-mips/usr/include/sys/types.h
/home/zhangbin/android/android-ndk-r8e/platforms/android-14/arch-x86/usr/include/sys/types.h
/home/zhangbin/android/android-ndk-r8e/platforms/android-3/arch-arm/usr/include/sys/types.h
/home/zhangbin/android/android-ndk-r8e/platforms/android-4/arch-arm/usr/include/sys/types.h
/home/zhangbin/android/android-ndk-r8e/platforms/android-5/arch-arm/usr/include/sys/types.h
/home/zhangbin/android/android-ndk-r8e/platforms/android-8/arch-arm/usr/include/sys/types.h
/home/zhangbin/android/android-ndk-r8e/platforms/android-9/arch-arm/usr/include/sys/types.h
/home/zhangbin/android/android-ndk-r8e/platforms/android-9/arch-mips/usr/include/sys/types.h
/home/zhangbin/android/android-ndk-r8e/platforms/android-9/arch-x86/usr/include/sys/types.h
/home/zhangbin/codeStore/androidVLC/android/vlc/contrib/android/gnutls/gl/sys/types.h
/home/zhangbin/ffmpeg/ffmpegWin/mingw-w64-i686/i686-w64-mingw32 /include/sys/types.h
/home/zhangbin/ffmpeg/ffmpegWin/mingw-w64-x86_64/x86_64-w64-mingw32/include/sys/types.h
/home/zhangbin/ffmpeg/ffmpegWin/packages/gcc/source/gcc-4.8.0/fixincludes/tests/base/sys/types.h
/home/zhangbin/ffmpeg/ffmpegWin/source/mingw-w64-svn/trunk/mingw-w64-headers/crt/sys/types.h
/home/zhangbin/vlc/android/android/vlc/contrib/android/gnutls/gl/sys/types.h
/home/zhangbin/vlc/android/android2/android/compileAndroid/vlc/contrib/android/gnutls/gl/sys/types.h
/home/zhangbin/vlc/android/android3/android/vlc/contrib/android/gnutls/gl/sys/types.h
/home/zhangbin/vlc/android/android4/android/android/vlc/contrib/android/gnutls/gl/sys/types.h
/home/zhangbin/vlc/android/android_good_1st/vlc/contrib/android/gnutls/gl/sys/types.h
/home/zhangbin/vlc/x86/DepLIBS/gnutls-3.1.5/gl/sys/types.h
/opt/QtSDK/Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/include/sys/types.h
/usr/include/i386-linux-gnu/sys/types.h
/usr/lib/syslinux/com32/include/sys/types.h

root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# 



root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# ls /usr/include/sys/
asoundlib.h
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# 



root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# ls /usr/include/asm-generic/
auxvec.h       ioctl.h        poll.h         siginfo.h      swab.h
bitsperlong.h  ioctls.h       posix_types.h  signal-defs.h  termbits.h
errno-base.h   ipcbuf.h       resource.h     signal.h       termios.h
errno.h        mman-common.h  sembuf.h       socket.h       types.h
fcntl.h        mman.h         setup.h        sockios.h      ucontext.h
int-l64.h      msgbuf.h       shmbuf.h       statfs.h       unistd.h
int-ll64.h     param.h        shmparam.h     stat.h
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# 



root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# cp -rf  /usr/include/asm-generic/ /usr/include/asm/


root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# cp -rf  /usr/include/linux/* /usr/include/sys/
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# make
g++ -c -o openWFD.o -Ilive555/UsageEnvironment/include -Ilive555/BasicUsageEnvironment/include -Ilive555/groupsock/include -Ilive555/UsageEnvironment/include -Ilive555/liveMedia/include -g -m64 -fPIC -I. -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -DBSD=1 openWFD.cpp
In file included from /usr/include/netinet/in.h:23:0,
                 from live555/groupsock/include/NetCommon.h:95,
                 from live555/liveMedia/include/FramedSource.hh:25,
                 from live555/liveMedia/include/MediaSink.hh:25,
                 from live555/liveMedia/include/RTPSink.hh:25,
                 from live555/liveMedia/include/MultiFramedRTPSink.hh:26,
                 from live555/liveMedia/include/AudioRTPSink.hh:25,
                 from live555/liveMedia/include/MPEG1or2AudioRTPSink.hh:25,
                 from live555/liveMedia/include/liveMedia.hh:27,
                 from playCommon.hh:5,
                 from openWFD.cpp:4:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
make: *** [wfdemu] Error 1
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# 




root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# find /usr/include -name predefs.h
/usr/include/i386-linux-gnu/
bits/predefs.h
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# 



root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# find /usr/include -name predefs.h
/usr/include/i386-linux-gnu/bits/predefs.h
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# 



/usr/include/features.h:357:25: fatal error: sys/cdefs.h: No such file or directory
compilation terminated.
make: *** [wfdemu] Error 1
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# gedit Makefile
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# find cdefs.h
find: `cdefs.h': No such file or directory
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# find /usr/include -name cdefs.h
/usr/include/i386-linux-gnu/sys/cdefs.h
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# cp -rf /usr/include/i386-linux-gnu/sys .
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# make



root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# find /usr/include -name stubs.h
/usr/include/i386-linux-gnu/gnu/stubs.h
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# gedit Makefile
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# make
g++ -c -o openWFD.o -Ilive555/UsageEnvironment/include -Ilive555/BasicUsageEnvironment/include -Ilive555/groupsock/include -Ilive555/UsageEnvironment/include -Ilive555/liveMedia/include -g -m64 -fPIC -I. -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -DBSD=1 openWFD.cpp
In file included from ./sys/time.h:23:0,
                 from live555/groupsock/include/NetCommon.h:94,
                 from live555/liveMedia/include/FramedSource.hh:25,
                 from live555/liveMedia/include/MediaSink.hh:25,
                 from live555/liveMedia/include/RTPSink.hh:25,
                 from live555/liveMedia/include/MultiFramedRTPSink.hh:26,
                 from live555/liveMedia/include/AudioRTPSink.hh:25,
                 from live555/liveMedia/include/MPEG1or2AudioRTPSink.hh:25,
                 from live555/liveMedia/include/liveMedia.hh:27,
                 from playCommon.hh:5,
                 from openWFD.cpp:4:
/usr/include/features.h:389:23: fatal error: gnu/stubs.h: No such file or directory
compilation terminated.
make: *** [wfdemu] Error 1
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# 


ink.o: In function `WFDSink::handleResponseBytes(int)':
/home/zhangbin/streaming/WFD/miracast-emu/WFDSink.cpp:1897: undefined reference to `operator new[](unsigned long)'
WFDSink.o: In function `__gnu_cxx::new_allocator, std::allocator > const, std::basic_string, std::allocator > > > >::allocate(unsigned long, void const*)':
/usr/include/c++/4.6/ext/new_allocator.h:92: undefined reference to `operator new(unsigned long)'
collect2: ld returned 1 exit status
make: *** [wfdemu] Error 1



http://bbs.csdn.net/topics/370039269

http://bbs.csdn.net/topics/370042009

把m64,改成m32就好了。



root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# gedit Makefile
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# make
g++ -c -o openWFD.o -I/usr/include/i386-linux-gnu/ -Ilive555/UsageEnvironment/include -Ilive555/BasicUsageEnvironment/include -Ilive555/groupsock/include -Ilive555/UsageEnvironment/include -Ilive555/liveMedia/include -g -m32 -fPIC -I. -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -DBSD=1 openWFD.cpp
g++ -c -o playCommon.o -I/usr/include/i386-linux-gnu/ -Ilive555/UsageEnvironment/include -Ilive555/BasicUsageEnvironment/include -Ilive555/groupsock/include -Ilive555/UsageEnvironment/include -Ilive555/liveMedia/include -g -m32 -fPIC -I. -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -DBSD=1 playCommon.cpp
g++ -c -o WFDSink.o -I/usr/include/i386-linux-gnu/ -Ilive555/UsageEnvironment/include -Ilive555/BasicUsageEnvironment/include -Ilive555/groupsock/include -Ilive555/UsageEnvironment/include -Ilive555/liveMedia/include -g -m32 -fPIC -I. -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -Wall -DBSD=1 WFDSink.cpp
g++ -o wfdemu -L. playCommon.o openWFD.o WFDSink.o live555/liveMedia/libliveMedia.a live555/groupsock/libgroupsock.a live555/BasicUsageEnvironment/libBasicUsageEnvironment.a live555/UsageEnvironment/libUsageEnvironment.a
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# 



root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# ./wfdemu 
Usage: ./wfdemu [-p ] [-r|-q|-4|-i] [-a|-v] [-V] [-d ] [-D [-c] [-S ] [-n] [-O] [-t|-T ] [-u ] [-s ]|[-U ] [-z ] [-w -h ] [-f ] [-y] [-H] [-Q []] [-F ] [-b ] [-B ] [-I ] [-m] (or ./wfdemu -o [-V] )
root@Ubuntu32:/home/zhangbin/streaming/WFD/miracast-emu# 

你可能感兴趣的:(为啥各种系统库的头文件都找不到呢)