2012-05-30 114 views
1

我正在尝试为ARM cortex-8板构建QT。Qt配置freetype错误

我成功安装主机配置为每个给出的指令:http://qt-project.org/wiki/Building_Qt_for_Embedded_Linux

在ARM板目标构建配置的时候,我已经创建了自己的mkspec文件 Linux的TIarmv7-G ++具有配置如下:

> # 
> # qmake configuration for building with arm-linux-g++ 
> # 
> 
> include(../../common/gcc-base-unix.conf) 
> include(../../common/g++-unix.conf) include(../../common/linux.conf) 
> include(../../common/qws.conf) 
> 
> # modifications to g++.conf 
> #Toolchain 
> 
> 
> #Compiler Flags to take advantage of the ARM architecture QMAKE_CFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon 
> -mfloat-abi=softfp QMAKE_CXXFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp QMAKE_CC    = arm-none-linux-gnueabi-gcc QMAKE_CXX    = arm-none-linux-gnueabi-g++ QMAKE_LINK    = 
> arm-none-linux-gnueabi-g++ QMAKE_LINK_SHLIB  = 
> arm-none-linux-gnueabi-g++ 
> 
> # modifications to linux.conf QMAKE_AR = arm-none-linux-gnueabi-ar cqs QMAKE_OBJCOPY = arm-none-linux-gnueabi-objcopy QMAKE_STRIP = 
> arm-none-linux-gnueabi-strip 
> 
> QMAKE_INCDIR += $$TSLIB_INCDIR QMAKE_LIBDIR += $$TSLIB_LIBDIR 
> QMAKE_LIBS += -lts 
> 
> load(qt_config) 

我已经安装了CodeSourcery的工具链,我的环境是Ubuntu的12.04的64位操作系统和目标板ARM-cortex8

我configurat离子如下:

./configure -prefix/usr/local/qt-embedded -embedded arm -platform qws/linux-x86_64 -g ++ -xplatform qws/linux-TIarmv7 -g ++ -depths 16,24,32 -no-mmx -no-3dnow -no-sse -no-sse2 -no-glib -no-cups -no-largefile -no -accessibility -no-openssl -no-gtkstyle -qt-mouse-pc -qt-mouse -linuxtp -qt-鼠标linuxinput -plugin-鼠标linuxtp -plugin鼠标-PC -fast -Confirm许可-v

执行冗长后,我得到以下错误:相关的FreeType库

> m-none-linux-gnueabi/bin/ld: cannot find -lts collect2: ld returned 1 
> exit status make: *** [sound] Error 1 sound disabled. FreeType 
> auto-detection...() arm-none-linux-gnueabi-g++ -c -pipe -O3 
> -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -Wall -W -I../../../mkspecs/qws/linux-TIarmv7-g++ -I. -o freetype.o freetype.cpp freetype.cpp:42:22: fatal error: ft2build.h: No such file 
> or directory compilation terminated. make: *** [freetype.o] Error 1 
> FreeType disabled. Determining machine byte-order... 
> (/home/rootx/qt-everywhere-opensource-src-4.8.1/mkspecs/qws/linux-TIarmv7-g++ 
> yes /home/rootx/qt-everywhere-opensource-src-4.8.1 
> /home/rootx/qt-everywhere-opensource-src-4.8.1) 
> arm-none-linux-gnueabi-g++ -Wl,-O1 -o endiantest endiantest.o  -lts 
> /home/rootx/toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/bin/ld: 
> cannot find -lts collect2: ld returned 1 exit status make: *** 
> [endiantest] Error 1 Unknown byte order! 
> 
> The target system byte order could not be detected! 

如何解决这个错误?

回答

0

似乎没有安装freetype开发库。

是否sudo apt-get install libfreetype6-dev解​​决你的问题?

+0

它已经安装 – user1426143

+0

好吧,坚持两件事:它看起来像你正在运行make -j4或类似的东西。你可以不用线程运行make吗?通过这种方式,我们仔细检查确定这是事情失败的路线,而不是更早或更晚。另外,你可以做'updatedb &&'找到'ft2build.h',这样我们就可以知道ft2build.h在哪里,并且它是否在包含路径中? – MrFox

+0

我只给了'make'命令。 /rootx/freetype-2.4.9/devel/ft2build.h /home/rootx/freetype-2.4.9/include/ft2build.h /home/rootx/qt-everywhere-opensource-src-4.8.1/src /3rdparty/freetype/devel/ft2build.h /home/rootx/qt-everywhere-opensource-src-4.8.1/src/3rdparty/freetype/include/ft2build.h /usr/include/ft2build.h – user1426143