无法在Solaris 10上构建Qt 5.0



我目前正在Qt的一个跨平台项目上工作,我目前正在Linux (Mint x64)上开发,但需要将项目的一部分部署到Solaris 10服务器上。

我已经尝试在solaris上构建Qt5.0.1大约3天了,几乎没有成功!

我已经从这里下载了源代码并成功提取了存档。

当尝试运行configure脚本时,我首先遇到语法错误,通过将qtbase/configure脚本更改为使用/bin/bash而不是/bin/sh来修复。

我在运行configure时遇到了几个问题:

./configure -platform solaris-g++
  • Configure不能检测到架构(不是破坏失败,而是…)
  • "未启用QPA平台插件!"-我已经明确安装(使用pkgutil) libxcb和xcbutil
  • 当使用-no-qpa-platform-guard标志时,配置完成,则:
    • 当我运行gmake -j4
    • 时,我得到了各种各样的错误。

编译错误如下:

In file included from ../3rdparty/pcre/pcre16_compile.c:43:0:
../3rdparty/pcre/pcre_compile.c: In function 'compile_branch':
../3rdparty/pcre/pcre_compile.c:5193:18: error: 'int64_t' undeclared (first use in this function)
../3rdparty/pcre/pcre_compile.c:5193:18: note: each undeclared identifier is reported only once for each function it appears in
../3rdparty/pcre/pcre_compile.c:5194:36: error: expected ')' before 'length_prevgroup'
../3rdparty/pcre/pcre_compile.c:5264:32: error: expected ')' before 'repeat_max'gcc -c -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_XCB -DQT_NO_USING_NAMESPACE -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_USE_ICU -DPCRE_HAVE_CONFIG_H -DHB_EXPORT=Q_CORE_EXPORT -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I../../mkspecs/solaris-g++ -I. -I../../include -I../../include/QtCore -I../../include/QtCore/5.0.1 -I../../include/QtCore/5.0.1/QtCore -Iglobal -I../3rdparty/pcre -I../3rdparty/md5 -I../3rdparty/md4 -I.moc/release-shared -I/usr/sfw/include -o .obj/release-shared/pcre16_dfa_exec.o ../3rdparty/pcre/pcre16_dfa_exec.c
gmake[3]: *** [.obj/release-shared/pcre16_compile.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: Leaving directory `/export/home/emackenzie/Downloads/qt-everywhere-opensource-src-5.0.1/qtbase/src/corelib'
gmake[2]: *** [sub-corelib-make_first] Error 2
gmake[2]: Leaving directory `/export/home/emackenzie/Downloads/qt-everywhere-opensource-src-5.0.1/qtbase/src'
gmake[1]: *** [sub-src-make_first] Error 2
gmake[1]: Leaving directory `/export/home/emackenzie/Downloads/qt-everywhere-opensource-src-5.0.1/qtbase'
gmake: *** [module-qtbase-make_first] Error 2

任何帮助都将非常感激!

(更新)

好了,我通过注释pcre_internal.h:217,218,219,221:

解决了这个编译错误
//#if HAVE_STDINT_H
//#include <stdint.h>
//#elif HAVE_INTTYPES_H
#include <inttypes.h>
//#endif

现在我得到这个错误:

io/qtemporarydir.cpp: In member function 'void QTemporaryDirPrivate::create(const QString&)':
io/qtemporarydir.cpp:150:30: error: 'mkdtemp' was not declared in this scope
gmake[3]: *** [.obj/release-shared/qtemporarydir.o] Error 1

我已经检查了源代码和stdlib.h正在被包含(mkdtemp应该声明),它位于/usr/include

中的文件系统上

找出系统中哪个头文件在pcre_compile.c上声明了int64_t#include

相关内容

  • 没有找到相关文章

最新更新