hdliuguanqun / openwrt-for-embedded

Automatically exported from code.google.com/p/openwrt-for-embedded
0 stars 0 forks source link

qt4和SDLPAL一起编译的时候,SDL_ttf编译出错 #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
qt4和SDLPAL一起编译的时候,SDL_ttf编译出错:
./arm-openwrt-linux-gnueabi/bin/ld: warning: libdirectfb-1.4.so.0, needed by 
./usr/lib/libSDL.so, not found (try using -rpath or -rpath-link)
./usr/lib/libSDL.so: undefined reference to `DirectFBCreate'
./usr/lib/libSDL.so: undefined reference to `DirectFBError'
./usr/lib/libSDL.so: undefined reference to `DirectFBErrorString'
configure:2818: error: in `./SDL_ttf-2.0.11':
configure:2820: error: C compiler cannot create executables
See `config.log' for more details

原因分析:可能是因为qt4使用了libdirectfb-1.4.so.0,而我移植的
SDL_lib没有支持libdirectfb而是直接的fbcon!

Original issue reported on code.google.com by richard....@gmail.com on 5 Jun 2012 at 2:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
SDL-1.2.xx编译的时候:
自己开启了--enable-video-fbcon    use framebuffer console video driver 
[[default=yes]]
没有设置,因此默认支持--enable-video-directfb use DirectFB video 
driver [[default=yes]]

因此:
1 编译qt4时已经编译libdirectfb,
2 编译SDL-1.2.xx就会使用libdirectfb
3 而SDL_ttf并没有用-ldirectfb指定libdirectfb-1.4.so.0

因此出错,如果(1)和(2)的顺序调换下就会编译成功!(
uClibc下就编译成功过)
所要做的工作:使用packages中的sdl库!

Original comment by richard....@gmail.com on 5 Jun 2012 at 2:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
并且SDL_ttf中DEPENDS的+zlib,错写成+libz,targs/qtopia_12,05已修正

Original comment by richard....@gmail.com on 14 Jun 2012 at 7:50

GoogleCodeExporter commented 9 years ago
已经在新的qtopia中调整好,使用packages中自带的libsdl,他会使
用libdirectfb,因此不会再出现这个问题

Original comment by richard....@gmail.com on 15 Jun 2012 at 3:10