QT交叉编译问题
我下载了 qt-everywhere-opensource-src-4.8.5 ,
执行:
./configure -prefix /root/qt-arm/ -opensource -confirm-license -release -shared -embedded arm -xplatform qws/linux-arm-g++ -depths 16,18,24 -fast -optimized-qmake -pch -qt-sql-sqlite -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -little-endian -host-little-endian -no-qt3support -no-libtiff -no-libmng -no-opengl -no-mmx -no-sse -no-sse2 -no-3dnow -no-openssl -no-webkit -no-phonon -no-nis -no-opengl -no-cups -no-glib -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-separate-debug-info -nomake examples -nomake tools -nomake docs
完成了./configure之后,
[../../lib/libQtNetwork.so.4.8.5] 错误1 我查了这个路径没这个文件,是否需要下载某个lib库么????
[sub-network-make_default-ordered] 错误2
我百度同样的问题,按下面的文件全部升级了也解决不了。
I finally completed the library. For those of you with a clean Ubuntu partition, installing the following libraries will allow this installation to work flawlessly.
build-essential
// sudo apt-get install build-essential
libglib2.0-dev (you might have to create symlinks for headers)
// sudo apt-get install libglib2.0-dev 下面命令同
libgtk2.0-dev
libgnomeui-dev (not sure about this one but I was so far into the compilation that I put it in for safety)
libSM-dev
libxrender-dev
libfontconfig1-dev
libxext-dev
libgl-dev (this is a virtual library, the libglu-dev installation takes care of this one automatically - if not, just install the relevant ones)
libglu-dev
libssl-dev
xorg-dev
libgst-dev (you might have to create symlinks for headers)
libgstreamer0.10-dev (you might have to create symlinks for headers)
libgstreamer-plugins-base0.10-dev
Depending on your luck you may or may not have to create symlinks to get rid of errors involving header files not being found. I used the following:
sudo ln -s /usr/include/gstreamer-0.10/gst /usr/include/gst
sudo ln -s /usr/include/glib-2.0/* /usr/include/
sudo ln -s /usr/lib/glib-2.0/include/* /usr/include/
sudo ln -s /usr/include/libxml2/libxml /usr/include/libxml
The idea is to allow the make file to find the header files in the erroneous locations. You can fix the errors by modifying the make file but this is a lot less stressful and easy to reverse.
All the best.