Qt... configure: error: Qt (>= Qt 2.2.2) (headers…

转载:http://blog.chinaunix.net/uid-23733724-id-290980.html
 
 
昨天开始在自己的fedora12下装qt~
但是按照教程在/opt/EmbedSky/Qte目录下输入./x86-qtopia-2.2.0-konqueror_build
开始编译qt~
可是,没多久就报错了:
[root@localhost LG]# cd /opt/EmbedSky/
[root@localhost EmbedSky]# ls
4.3.3  crosstools_3.4.5_softfloat  Qte
[root@localhost EmbedSky]# cd Qte/
[root@localhost Qte]# ls
arm-qtopia-2.2.0_build            setX86_QpeEnv
arm-qtopia-2.2.0-konqueror_build  test_x86
EmbedSky_apps.tar.bz2             tslib-1.4.1.tar.bz2
konqueror.tar.bz2                 x86-qtopia-2.2.0
qtopia-2.2.0.tar.bz2              x86-qtopia-2.2.0_build
setARM_QpeEnv                     x86-qtopia-2.2.0-konqueror_build
[root@localhost Qte]# ./x86-qtopia-2.2.0-konqueror_build
Build x86-qtopia-2.2.0 , please wait ...
 
the x86-qtopia-2.2.0 directory is already !
Build x86-qtopia-2.2.0 , please wait ...
 
This is the Qtopia Free Edition.
You are licensed to use this software under the terms of
the Qtopia Free Edition License.
Type '?' to view the Qtopia Free Edition License.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.
Do you accept the terms of the Qtopia Free Edition License?
Using the following configurations:
QPE_CFG="'-edition' 'pda' '-displaysize' '320x240' '-fontfamilies' 'helvetica fixed micro smallsmooth smoothtimes unifont' -no-qtopiadesktop -release -platform 'linux-g++' -xplatform 'linux-generic-g++'"
QTE_CFG="'-embedded' '-no-xft' '-qconfig' 'qpe' '-depths' '16,32' '-system-jpeg' '-gif' -release -platform 'linux-g++' -xplatform 'linux-generic-g++'"
QT2_CFG="'-no-opengl' '-no-xft' -platform 'linux-g++'"
DQT_CFG="'-no-xft' '-thread' -platform 'linux-g++'"
Qtopia is now configured.
Type "make"              to build the qtopia bundle (and the tools, if required).
Type "make install"      to install Qtopia.
Type "make cleaninstall" to install Qtopia after removing the image first (avoid stale files in the image).
Type "make clean"        to clean the qtopia bundle.
Type "make tools"        to build the tools bundle.
Type "make cleantools"   to clean the tools bundle.
To manually build a particular component (eg. because it failed to build)
source the set...Env script. eg. . ./setQpeEnv; cd $QPEDIR; make
/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/scripts/buildQtopia
Qtopia Tools exist.
 
***********************************
********* Build Qt/Embedded *******
***********************************
QTE_CFG="'-embedded' '-no-xft' '-qconfig' 'qpe' '-depths' '16,32' '-system-jpeg' '-gif' -release -platform 'linux-g++' -xplatform 'linux-generic-g++'"
 
This is the Qt/Embedded Free Edition.
You are licensed to use this software under the terms of
the GNU General Public License (GPL).
Type 'G' to view the GNU General Public License.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.
Do you accept the terms of the license?
Enable Qt Virtual Framebuffer support for development on X11 (default yes)
symlink created for src/tools/qconfig-qpe.h
        This target is using the GNU C++ compiler (linux-g++).
        Recent versions of this compiler automatically include
        code for exceptions, which increase both the size of
        the Qt library and the amount of memory taken by your
        applications.
        You may elect to re-run ./configure with the -no-g++-exceptions
        option to compile Qt without exceptions.  This is
        completely binary compatible, and existing
        applications will continue to work (like KDE 2).

Building on:   linux-g++-shared
Building for:  linux-generic-g++-shared
Thread support..................... no
Configuration...................... qconfig-qpe.h
Creating makefiles...
Qt is now configured for building. Just run make.
To reconfigure, run make clean and configure.
make[1]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/src'
 
***********************************
********* Build Qtopia ************
***********************************
QPE_CFG="'-edition' 'pda' '-displaysize' '320x240' '-fontfamilies' 'helvetica fixed micro smallsmooth smoothtimes unifont' -no-qtopiadesktop -release -platform 'linux-g++' -xplatform 'linux-generic-g++'"
 
wThe following configuration values have been guessed or autodetected:
    -arch generic
    -fontsizes all
    -fontstyles 50 50i 75 75i
    -languages en_US
    -qvfb
Symlinking header files to include directory
wCreating qmake...No makedepend available
make[1]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/qmake'
.make[1]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/qmake'
Creating pngscale...make[1]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/util/pngscale'
...make[1]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/util/pngscale'
Generating makefiles................................................................................................................
make[1]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia'
make[2]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src'
make[3]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src'
cd qt && make -f Makefile
make[4]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/qt'
make[5]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/qt'
make[5]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/qt'
make[4]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/qt'
cd libraries/qtopia && make -f Makefile
make[4]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/libraries/qtopia'
make[5]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/libraries/qtopia'
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os -fPIC  -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"qpe\" -DQTOPIA_TRTARGET=\"libqpe\" -DQT_NO_DEBUG -I/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/mkspecs/qws/linux-generic-g++ -I. -I../../../include/qtopia/private -I../../../pics/qpe -I../../../include -I/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include -I../../../include/qtopia/private/ -I.moc/release-shared/ -o .obj/release-shared/vobject.o backend/vobject.cpp
backend/vobject.cpp: In function ‘VObject* addGroup(VObject*, const char*)’:
backend/vobject.cpp:419: 错误:从类型‘const char*’到类型‘char*’的转换无效
backend/vobject.cpp: In function ‘void writeEncString(OFile*, const char*, bool)’:
backend/vobject.cpp:1111: 警告:建议在‘||’的操作数中出现的‘&&’前后加上括号
backend/vobject.cpp: In function ‘bool includesUnprintable(VObject*, bool)’:
backend/vobject.cpp:1168: 警告:建议在‘||’的操作数中出现的‘&&’前后加上括号
backend/vobject.cpp:1169: 警告:建议在‘||’的操作数中出现的‘&&’前后加上括号
make[5]: *** [.obj/release-shared/vobject.o] 错误 1
make[5]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/libraries/qtopia'
make[4]: *** [all] 错误 2
make[4]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/libraries/qtopia'
make[3]: *** [sub-libraries-qtopia] 错误 2
make[3]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src'
make[2]: *** [all] 错误 2
make[2]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia'
 
***********************************************************************

*                  ERROR: Building Qtopia has failed.

* Please search the make output for any error messages.

* Hint: If the configuration has changed since the last successfull
* build consider using make clean to ensure that all binaries
* are rebuilt using the new configuration.

* For more information about the build process please use a browser
* and go to the getting started section in:
*     /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/doc/html/index.html

***********************************************************************
/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/scripts/buildQtopia -build qpe install
Qtopia Tools exist.
 
***********************************
********* Build Qtopia ************
***********************************
QPE_CFG="'-edition' 'pda' '-displaysize' '320x240' '-fontfamilies' 'helvetica fixed micro smallsmooth smoothtimes unifont' -no-qtopiadesktop -release -platform 'linux-g++' -xplatform 'linux-generic-g++'"
 
make[1]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia'
make[2]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src'
make[3]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src'
cd qt && make -f Makefile
make[4]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/qt'
make[5]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/qt'
make[5]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/qt'
make[4]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/qt'
cd libraries/qtopia && make -f Makefile
make[4]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/libraries/qtopia'
make[5]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/libraries/qtopia'
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os -fPIC  -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"qpe\" -DQTOPIA_TRTARGET=\"libqpe\" -DQT_NO_DEBUG -I/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/mkspecs/qws/linux-generic-g++ -I. -I../../../include/qtopia/private -I../../../pics/qpe -I../../../include -I/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include -I../../../include/qtopia/private/ -I.moc/release-shared/ -o .obj/release-shared/vobject.o backend/vobject.cpp
backend/vobject.cpp: In function ‘VObject* addGroup(VObject*, const char*)’:
backend/vobject.cpp:419: 错误:从类型‘const char*’到类型‘char*’的转换无效
backend/vobject.cpp: In function ‘void writeEncString(OFile*, const char*, bool)’:
backend/vobject.cpp:1111: 警告:建议在‘||’的操作数中出现的‘&&’前后加上括号
backend/vobject.cpp: In function ‘bool includesUnprintable(VObject*, bool)’:
backend/vobject.cpp:1168: 警告:建议在‘||’的操作数中出现的‘&&’前后加上括号
backend/vobject.cpp:1169: 警告:建议在‘||’的操作数中出现的‘&&’前后加上括号
make[5]: *** [.obj/release-shared/vobject.o] 错误 1
make[5]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/libraries/qtopia'
make[4]: *** [all] 错误 2
make[4]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/libraries/qtopia'
make[3]: *** [sub-libraries-qtopia] 错误 2
make[3]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src'
make[2]: *** [install] 错误 2
make[2]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src'
make[1]: *** [install] 错误 2
make[1]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia'
 done !
cp: 无法创建普通文件"qtopia/image/opt/Qtopia/lib/fonts/": 没有那个文件或目录
 done !
the konqueror directory is already !
Build konqueror , please wait ...
 
./x86-qtopia-2.2.0-konqueror_build: line 26: .: setQpeEnv: file not found
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether g++ supports -Wundef... yes
checking whether g++ supports -Wno-long-long... yes
checking whether g++ supports -Wnon-virtual-dtor... yes
checking whether g++ supports -fno-exceptions... yes
checking whether g++ supports -fno-check-new... yes
checking whether g++ supports -fexceptions... yes
checking how to run the C++ preprocessor... g++ -E
checking whether g++ supports -frepo... yes
not using lib directory suffix
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output...
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... no
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... no
checking if g++ supports -c -o file.o... no
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
appending configuration tag "GCJ" to libtool
checking if gcj supports -fno-rtti -fno-exceptions... (cached) no
checking for gcj option to produce PIC... -fPIC
checking if gcj PIC flag -fPIC works... no
checking if gcj supports -c -o file.o... no
checking whether the gcj linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for main in -lutil... yes
checking for main in -lcompat... no
checking for crypt in -lcrypt... yes
checking for socklen_t... socklen_t
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for inet_ntoa... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking crt_externs.h usability... no
checking crt_externs.h presence... no
checking for crt_externs.h... no
checking for _NSGetEnviron... no
checking for sys/types.h... (cached) yes
checking for stdint.h... (cached) yes
checking for poll in -lpoll... no
checking CoreAudio/CoreAudio.h usability... no
checking CoreAudio/CoreAudio.h presence... no
checking for CoreAudio/CoreAudio.h... no
checking for res_init... yes
checking if res_init needs custom prototype... no
checking for killpg in -lucb... no
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for char *... yes
checking size of char *... 4
checking for char... yes
checking size of char... 1
checking for dlopen in -ldl... yes
checking for shl_unload in -ldld... no
checking for vsnprintf... yes
checking for snprintf... yes
checking for pthread_create in -lpthread... yes
checking for extra includes... no
checking for extra libs... added
checking for libz... -lz
checking for libpng... -lpng -lz -lm
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for Qt... configure: error: Qt (>= Qt 2.2.2) (headers and libraries) not found. Please
 
上网搜罗了一大堆,很多情况,见大家都是按照自己的情况分析,我也就慢慢来看自己是怎么一个情况:查到第一个错误:backend/vobject.cpp:419: 错误:从类型‘const char*’到类型‘char*’的转换无效
找到vobject.cpp文件的419行:
DLLEXPORT(VObject*) addGroup(VObject *o, const char *g)
{
    /*
 a.b.c
 -->
 prop(c)
     prop(VCGrouping=b)
  prop(VCGrouping=a)
     */
    char *dot = strrchr((char*)g,'.');     #419
    if (dot) {
 VObject *p, *t;
 char *gs, *n = dot+1;
 gs = dupStr(g,0); /* so we can write to it. */
……
 
 
对g进行了强制转换,我是菜鸟,这么改没有思路的,只是看到哪里就试到哪里,有高手路过别笑话我,指点一下哦!
 
保存~~再编译,之前的错误没有出现,编译顺利进行,只是偶尔出现一些警告,略过!
第二个错误出现,相同错误:
make[5]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/plugins/codecs/wavplugin'
make[6]: Entering directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/plugins/codecs/wavplugin'
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os -fPIC  -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"wavplugin\" -DQTOPIA_TRTARGET=\"libwavplugin\" -DQT_NO_DEBUG -I/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/mkspecs/qws/linux-generic-g++ -I. -I../../../3rdparty/libraries/gsm -I../../../../include -I/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include -I.ui/release-shared/ -I.moc/release-shared/ -o .obj/release-shared/wavplugin.o wavplugin.cpp
wavplugin.cpp: In member function ‘virtual bool WavPlugin::isFileSupported(const QString&)’:
wavplugin.cpp:435: 错误:从类型‘const char*’到类型‘char*’的转换无效
make[6]: *** [.obj/release-shared/wavplugin.o] 错误 1
make[6]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/plugins/codecs/wavplugin'
make[5]: *** [all] 错误 2
make[5]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/plugins/codecs/wavplugin'
make[4]: *** [sub-plugins-codecs-wavplugin] 错误 2
make[4]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src'
make[3]: *** [sub-src-components_pro] 错误 2
make[3]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src'
make[2]: *** [install] 错误 2
make[2]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src'
make[1]: *** [install] 错误 2
make[1]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia'
 done !
cp: 无法创建普通文件"qtopia/image/opt/Qtopia/lib/fonts/": 没有那个文件或目录
 done !
the konqueror directory is already !
Build konqueror , please wait ...
 
./x86-qtopia-2.2.0-konqueror_build: line 26: .: setQpeEnv: file not found
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether g++ supports -Wundef... yes
checking whether g++ supports -Wno-long-long... yes
checking whether g++ supports -Wnon-virtual-dtor... yes
checking whether g++ supports -fno-exceptions... yes
checking whether g++ supports -fno-check-new... yes
checking whether g++ supports -fexceptions... yes
checking how to run the C++ preprocessor... g++ -E
checking whether g++ supports -frepo... yes
not using lib directory suffix
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output...
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... no
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... no
checking if g++ supports -c -o file.o... no
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
appending configuration tag "GCJ" to libtool
checking if gcj supports -fno-rtti -fno-exceptions... (cached) no
checking for gcj option to produce PIC... -fPIC
checking if gcj PIC flag -fPIC works... no
checking if gcj supports -c -o file.o... no
checking whether the gcj linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for main in -lutil... yes
checking for main in -lcompat... no
checking for crypt in -lcrypt... yes
checking for socklen_t... socklen_t
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for inet_ntoa... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking crt_externs.h usability... no
checking crt_externs.h presence... no
checking for crt_externs.h... no
checking for _NSGetEnviron... no
checking for sys/types.h... (cached) yes
checking for stdint.h... (cached) yes
checking for poll in -lpoll... no
checking CoreAudio/CoreAudio.h usability... no
checking CoreAudio/CoreAudio.h presence... no
checking for CoreAudio/CoreAudio.h... no
checking for res_init... yes
checking if res_init needs custom prototype... no
checking for killpg in -lucb... no
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for char *... yes
checking size of char *... 4
checking for char... yes
checking size of char... 1
checking for dlopen in -ldl... yes
checking for shl_unload in -ldld... no
checking for vsnprintf... yes
checking for snprintf... yes
checking for pthread_create in -lpthread... yes
checking for extra includes... no
checking for extra libs... added
checking for libz... -lz
checking for libpng... -lpng -lz -lm
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for Qt... configure: error: Qt (>= Qt 2.2.2) (headers and libraries) not found. Please check your installat
 
对wavplugin.cpp里面的错误再用了一次强制转换,这里就不贴了,保存,继续编译,错误继续没有~或许后面的错误就是这么被我屏蔽出来的,目前还没有试验成功,高手的指教,和我一样的先别和我这么改,等成功了再整理一个方法出来!
 
第三个错误出现:
......
ask_forward.png
install -c /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/pics/mediaplayer/skins/techno/video_mask_loop.png /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/image/opt/Qtopia/pics/mediaplayer/skins/techno/video_mask_loop.png
install -c /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/pics/mediaplayer/skins/techno/video_mask_next.png /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/image/opt/Qtopia/pics/mediaplayer/skins/techno/video_mask_next.png
install -c /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/pics/mediaplayer/skins/techno/video_mask_play.png /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/image/opt/Qtopia/pics/mediaplayer/skins/techno/video_mask_play.png
install -c /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/pics/mediaplayer/skins/techno/video_mask_previous.png /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/image/opt/Qtopia/pics/mediaplayer/skins/techno/video_mask_previous.png
install -c /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/pics/mediaplayer/skins/techno/video_up.png /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/image/opt/Qtopia/pics/mediaplayer/skins/techno/video_up.png
make[8]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/etc/themes/mediaplayer/techno'
make[7]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/etc/themes/mediaplayer/techno'
make[6]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/etc/themes'
make[5]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/etc/themes'
make[4]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src'
make[3]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src'
make[2]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src'
make[1]: Leaving directory `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia'
 done !
 done !
the konqueror directory is already !
Build konqueror , please wait ...
 
./x86-qtopia-2.2.0-konqueror_build: line 26: .: setQpeEnv: file not found
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
查看了一下./x86-qtopia-2.2.0-konqueror_build的26行:.setQpeEnv
我真的是菜鸟,不知道这个点文件名是怎么回事,查看了文件夹,这个文件时存在的,会不会是:./setQpeEnv呢?试试看,修改,编译,这 个错误不再报错,可是下面的无法继续编译,还是出现如题目所示的:checking for Qt... configure: error: Qt (>= Qt 2.2.2) (headers and libraries) not found. Please……
报告如下:[root@localhost Qte]# ./x86-qtopia-2.2.0-konqueror_build
the qpe program is already !
the konqueror directory is already !
Build konqueror , please wait ...
 
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether g++ supports -Wundef... yes
checking whether g++ supports -Wno-long-long... yes
checking whether g++ supports -Wnon-virtual-dtor... yes
checking whether g++ supports -fno-exceptions... yes
checking whether g++ supports -fno-check-new... yes
checking whether g++ supports -fexceptions... yes
checking how to run the C++ preprocessor... g++ -E
checking whether g++ supports -frepo... yes
not using lib directory suffix
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output...
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... no
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... no
checking if g++ supports -c -o file.o... no
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
appending configuration tag "GCJ" to libtool
checking if gcj supports -fno-rtti -fno-exceptions... (cached) no
checking for gcj option to produce PIC... -fPIC
checking if gcj PIC flag -fPIC works... no
checking if gcj supports -c -o file.o... no
checking whether the gcj linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for main in -lutil... yes
checking for main in -lcompat... no
checking for crypt in -lcrypt... yes
checking for socklen_t... socklen_t
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for inet_ntoa... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking crt_externs.h usability... no
checking crt_externs.h presence... no
checking for crt_externs.h... no
checking for _NSGetEnviron... no
checking for sys/types.h... (cached) yes
checking for stdint.h... (cached) yes
checking for poll in -lpoll... no
checking CoreAudio/CoreAudio.h usability... no
checking CoreAudio/CoreAudio.h presence... no
checking for CoreAudio/CoreAudio.h... no
checking for res_init... yes
checking if res_init needs custom prototype... no
checking for killpg in -lucb... no
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for char *... yes
checking size of char *... 4
checking for char... yes
checking size of char... 1
checking for dlopen in -ldl... yes
checking for shl_unload in -ldld... no
checking for vsnprintf... yes
checking for snprintf... yes
checking for pthread_create in -lpthread... yes
checking for extra includes... no
checking for extra libs... added
checking for libz... -lz
checking for libpng... -lpng -lz -lm
checking for libjpeg6b... no
checking for libjpeg... -ljpeg
checking for Qt... configure: error: Qt (>= Qt 2.2.2) (headers and libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
到这里就纠结了,上网看了下,别人说是头文件和库的路径不对,我看了一下/usr/lib/里面有两个与qt有关的文件夹,一个是qt-3.3,另外一个是qt4,这两个是fedora12一装就有的,我自己没有装过,另外我自己装的路径下有这些文件夹:
[root@localhost Qte]# ls
arm-qtopia-2.2.0_build            qtopia-2.2.0.tar.bz2  tslib-1.4.1.tar.bz2
arm-qtopia-2.2.0-konqueror_build  setARM_QpeEnv         x86-qtopia-2.2.0
EmbedSky_apps.tar.bz2             setX86_QpeEnv         x86-qtopia-2.2.0_build
konqueror.tar.bz2                 test_x86              x86-qtopia-2.2.0-konqueror_build
[root@localhost Qte]# cd x86-qtopia-2.2.0
[root@localhost x86-qtopia-2.2.0]# ls
config.cache   dqt          LODI         qt2          setDqtEnv  setQteEnv
config.status  konqueror    Makefile     qtopia       setQpeEnv  tmake
configure      LICENSE.GPL  Makefile.in  README.html  setQt2Env
所以我猜想,是不是它路径指错了,应该是指向这个qt2,而不是那个usr/lib里面那两个,看了config.log:
[root@localhost konqueror]# cat config.log|grep qt
  $ ./configure --enable-embedded --enable-qt-embedded --enable-qpe --with-gui=qpe --disable-debug --enable-ftp --enable-static --disable-shared --enable-largeicons --enable-fontsubs --enable-cgi --with-konq-tmp-prefix=/root/ --disable-mt --with-extra-libs=/lib --with-extra-include=/include --without-ssl --with-qt-dir=/usr/lib/qt-3.3 --with-qt-includes=/usr/lib/qt-3.3/include --with-qt-libraries=/usr/lib/qt-3.3/lib --with-qtopia-dir=
PATH: /usr/lib/qt-3.3/bin
configure: 22103: /usr/lib/qt-3.3/include/qstyle.h
configure: 22103: /usr/lib/qt-3.3/include/qstyle.h
configure: 22103: /usr/lib/qt-3.3/include/qstyle.h
configure: 22103: /usr/lib/qt-3.3/qstyle.h
configure: 22103: /usr/lib/qt2/include/qstyle.h
configure: 22103: /usr/lib/qt2/qstyle.h
configure: 22103: /usr/lib/qt/include/qstyle.h
configure: 22103: /usr/lib/qt/qstyle.h
configure: 22103: /usr/local/qt/include/qstyle.h
configure: 22103: /usr/include/qt/qstyle.h
configure: 22103: /usr/X11R6/include/X11/qt/qstyle.h
configure: 22103: /usr/X11R6/include/qt/qstyle.h
configure: 22103: /usr/X11R6/include/qt2/qstyle.h
configure:22214: rm -rf SunWS_cache; g++ -o conftest -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-rtti -INO  -DQWS -D_REENTRANT  -L/usr/lib/qt-3.3/lib   -L/lib  conftest.cc  -lqte -lpng -lz -lm -ljpeg  1>&5
ac_cv_have_qt=have_qt=no
ACLOCAL='${SHELL} /opt/EmbedSky/Qte/x86-qtopia-2.2.0/konqueror/admin/missing --run aclocal-1.7'
AMTAR='${SHELL} /opt/EmbedSky/Qte/x86-qtopia-2.2.0/konqueror/admin/missing --run tar'
AUTOCONF='${SHELL} /opt/EmbedSky/Qte/x86-qtopia-2.2.0/konqueror/admin/missing --run autoconf'
AUTOHEADER='${SHELL} /opt/EmbedSky/Qte/x86-qtopia-2.2.0/konqueror/admin/missing --run autoheader'
AUTOMAKE='${SHELL} /opt/EmbedSky/Qte/x86-qtopia-2.2.0/konqueror/admin/missing --run automake-1.7'
MAKEINFO='${SHELL} /opt/EmbedSky/Qte/x86-qtopia-2.2.0/konqueror/admin/missing --run makeinfo'
install_sh='/opt/EmbedSky/Qte/x86-qtopia-2.2.0/konqueror/admin/install-sh'
kde_qtver='2'
qt_includes=''
qt_libraries=''
看着真的好多指向变来变去的,一下子到了那个3.3的,一下子又到这个qt2的,对/opt/EmbedSky/Qte/x86-qtopia-2.2.0/konqueror
里面的configure进行修改,这个是看网上的人教的:
./configure --prefix=/opt --with-qt-dir=/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2 --with-qt-includes=/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include/ --with-qt-libraries=/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/lib
路径被我改到qt2那里,终端自己configure,提示设置成功,提示可以make,我返回上层文件,继续./x86-qtopia-2.2.0-konqueror_build
依旧出现这个错误~~看了一下,貌似路径没怎么改到,对configure里面的内容很是不了解,有高手的话指点一下是怎么了。
 
针对此,checking for Qt... configure: error: Qt (>= Qt 2.2.2) (headers and libraries) not found. Please check your installation!
由于我用的是Debian6,系统默认不支持source,而我却将
cd x86-qtopia-2.2.0/
 ./setQpeEnv
cd ../x86-qtopia-2.2.0/konqueror
改为了
cd x86-qtopia-2.2.0/
source ./setQpeEnv
cd ../x86-qtopia-2.2.0/konqueror

解决办法:
sudo dpkg-reconfigure dash ,选择NO即可。

转载于:https://www.cnblogs.com/pengdonglin137/p/3560780.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值