SDK:在 Windows 7 上运行的 Qt Creator 2.4.1(Qt 4.7.4(32 位))
软件:libqxt
最终目标平台:Harmattan(诺基亚 N9)
我正在开发一个假设使用 qt-Brisa 的应用程序,而后者又使用 libqxt,所以我正在尝试安装 libqxt。
最后我正在做一个诺基亚 N9 (Harmattan) 应用程序所以我需要 libqxt 的静态库
但是,如果我尝试使用命令提示符或使用 Qt Creator 安装 libqxt,则会遇到问题。
什么是正确的方法,我认为使用 Qt Creator 是构建它的正确方法?
试试 1
使用命令提示符方法(根据http://dev.libqxt.org/libqxt/wiki/user_guide)
C:\QtSDK\Desktop\Qt\4.8.1\msvc2010\bin
configure.bat -static -no-db -debug_and_release
Testing for qmake...
Testing for mingw32-make...
Testing for nmake...
Testing for GNU make...
Using GNU make.
Testing for optional external libraries.
If tests fail, some features will not be available.
Testing for Zero Conf...
Zero Conf disabled.
Configuration successful.
Generating makefiles...
Project MESSAGE: building docs
Project MESSAGE: building core module
Project MESSAGE: building widgets module
Project MESSAGE: building network module
Project MESSAGE: building sql module
Project MESSAGE: building web module
Reading C:/temp/Project/libqxt/libqxt/tools/3rdparty/qdoc3/qdoc3.pro
Reading C:/temp/Project/libqxt/libqxt/src/core/core.pro
Reading C:/temp/Project/libqxt/libqxt/src/widgets/widgets.pro
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Reading C:/temp/Project/libqxt/libqxt/src/designer/designer.pro
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Reading C:/temp/Project/libqxt/libqxt/src/network/network.pro
Reading C:/temp/Project/libqxt/libqxt/tools/jsonrpcclient/jsonrpcclient.pro
Reading C:/temp/Project/libqxt/libqxt/src/sql/sql.pro
Reading C:/temp/Project/libqxt/libqxt/src/web/web.pro
Makefiles generated. Run make now.
make
Makefile:280: *** multiple target patterns. Stop.
为什么它使用 GNU make 而不是 qmake 或者我做错了什么?
试试 2
使用 Qt 创建者
我还尝试将 libqxt 项目加载到 Creator(我更喜欢),但编译输出窗口显示以下内容
11:05:50: Running build steps for project libqxt...
11:05:50: Starting: "c:\qtsdk\desktop\qt\4.8.1\msvc2010\bin\qmake.exe"
C:\temp\Project\libqxt\libqxt\libqxt.pro -r -spec win32-msvc2010 "CONFIG+=declarative_debug"
WARNING: features.path is not defined: install target not created
11:05:50: The process "c:\qtsdk\desktop\qt\4.8.1\msvc2010\bin\qmake.exe" exited normally.
11:05:50: Starting: "C:\QtSDK\QtCreator\bin\jom.exe"
jom 1.0.6 - empower your cores
11:05:51: The process "C:\QtSDK\QtCreator\bin\jom.exe" exited normally.
但这也没有编译
(警告:未定义 features.path:未创建安装目标)
当它编译时,我如何将 libqxt“添加”到 Qt 环境的其余部分,以便另一个项目可以“看到”libqxt 库,是通过“全部部署”吗?
问候斯特凡