不能在Windows从源代码编译的Qt,Perl的安装,但是仍然找不到头 [英] Can't build Qt in Windows from source, Perl installed but still can't find headers
问题描述
我使用Cygwin在Windows 7中,64位。我下载了4.8.3。来源和按照说明这里,把<&QTDIR GT; / bin中
PATH中的路径选择我一起编译。配置立即失败,
$的./configure
创建的qmake。请
稍候... G ++ -c -o makefile.o哌-DQMAKE_OPENSOURCE_EDITION -g -I。
-Igenerators -Igenerators / UNIX -Igenerators / win32的-Igenerators / MAC -Igenerators /塞班-Igenerators /完整性-I / cygdrive / C / QT / 4.8.3 /包括-I / cygdrive / C / QT / 4.8.3 /包括/ QtCore -I / cygdrive / C / QT / 4.8.3 / src目录/ corelib的/全球-I / cygdrive / C / QT / 4.8.3 / src目录/ corelib的/ XML -I / cygdrive / C / QT / 4.8.3 /工具/共享-DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQT_NO_TEXT codeC -DQT_NO_UNI codeTABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COM $ p $干燥综合征-I / cygdrive / C / QT / 4.8.3 / mkspecs / Cygwin的-g ++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DE preCATED发电机/ makefile.cpp
在文件从./option.h:45:0包括,
从发电机/ makefile.h:45,
从发电机/ makefile.cpp:42:./project.h:45:25:致命错误:qstringlist.h:没有这样的文件或目录编译
终止。令: * 的[makefile.o]错误1
块引用>这里和<一个href=\"http://stackoverflow.com/questions/2084766/how-to-build-latest-qt-from-git-repository-on-windows\">here找出问题,因为用Perl是;然而,Perl是我的系统上和路径上。可以肯定我去和下载/安装的ActivePerl,之后我加入
Perl64 /斌
的路径。同样的结果。将非常AP preciate一些帮助了这一点。修改,完整性:
$ whereis perl的
的Perl:/bin/perl.exe /usr/bin/perl.exe的/ usr /共享/ perl的
/cygdrive/c/Perl64/bin/perl.exe /cygdrive/c/Perl64/bin/perl516.dll
$回声$ PATH
/ cygdrive / C / Perl64 /斌:/ cygdrive / C / GCC /斌:/ bin中:...
/cygdrive/c/Qt/4.8.3/bin
块引用>修改:失败的行是:
的#include&LT; qstringlist.h&GT;
此特定错误消失,如果我使用绝对路径替换。 (当然,许多其他错误,然后出现。)然而,
$ whereis qstringlist.h
QStringList中:
/cygdrive/c/Qt/4.8.3/include/QtCore/qstringlist.h
块引用>这是明确的
-I
包含在G ++命令,FWIW$回声$ PATH... /cygdrive/c/Qt/4.8.3/include/QtCore
块引用>编辑:添加
-I / cygdrive / C / QT / 4.8.3 /有/ QtCore
作为一个明确的选项,./配置
什么都不做。说真的,什么是怎么回事...更新:这个问题是现在有效价值250代表,看到的这里。
解决方案请,看看到的支持,有你有支持的编译器指令,这可以给你提示你的问题的平台。
据我看,在最近的窗口你需要MSVC,我没有看到任何的cygwin
I'm using Cygwin on Windows 7, 64-bit. I downloaded the 4.8.3. source and followed the instructions here, putting
<qtdir>/bin
in PATH along with the path to my chosen compiler. Configure fails immediately,$ ./configure
Creating qmake. Please wait... g++ -c -o makefile.o -pipe -DQMAKE_OPENSOURCE_EDITION -g -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -Igenerators/integrity -I/cygdrive/c/Qt/4.8.3/include -I/cygdrive/c/Qt/4.8.3/include/QtCore -I/cygdrive/c/Qt/4.8.3/src/corelib/global -I/cygdrive/c/Qt/4.8.3/src/corelib/xml -I/cygdrive/c/Qt/4.8.3/tools/shared -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/cygdrive/c/Qt/4.8.3/mkspecs/cygwin-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DEPRECATED generators/makefile.cpp
In file included from ./option.h:45:0, from generators/makefile.h:45, from generators/makefile.cpp:42: ./project.h:45:25: fatal error: qstringlist.h: No such file or directory compilation terminated. make: * [makefile.o] Error 1
Discussions here and here identify the problem as being with Perl; however Perl is on my system and on the path. To be sure I went and downloaded/installed ActivePerl, after which I added
Perl64/bin
to the path. Same result. Would very much appreciate some help out with this.Edit, for completeness:
$ whereis perl
perl: /bin/perl.exe /usr/bin/perl.exe /usr/share/perl /cygdrive/c/Perl64/bin/perl.exe /cygdrive/c/Perl64/bin/perl516.dll
$ echo $PATH
/cygdrive/c/Perl64/bin:/cygdrive/c/gcc/bin:/bin: ... /cygdrive/c/Qt/4.8.3/bin
Edit: The line that fails is:
#include <qstringlist.h>
This specific error goes away if I replace with an absolute path. (Of course, numerous other errors then arise.) Yet
$whereis qstringlist.h
qstringlist: /cygdrive/c/Qt/4.8.3/include/QtCore/qstringlist.h
which is explicitly
-I
included in the g++ command, and FWIW$echo $PATH ... /cygdrive/c/Qt/4.8.3/include/QtCore
Edit: Adding
-I/cygdrive/c/Qt/4.8.3/include/QtCore
as an explicit option to./configure
does nothing. Seriously, what is going on here...Update: This question is now effectively worth 250 rep., see here.
解决方案Please, take a look to supported platforms, there you have instructions on supported compilers, which could give you hints on your problem.
As far as i read, in recent windows you need MSVC, and I don't see anything about cygwin.
这篇关于不能在Windows从源代码编译的Qt,Perl的安装,但是仍然找不到头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!