简体   繁体   English

QT Creator - 无法构建HTML5应用程序

[英]QT Creator - Unable to build HTML5 application

I just installed QT Creator 2.7.0 [Based on Qt 5.0.1 (64 bit)] on my Ubuntu 13.04 end. 我刚刚在我的Ubuntu 13.04端安装了QT Creator 2.7.0 [基于Qt 5.0.1(64位)]。 I tried creating a sample HTML5 Application and when I try to run it, some issues are encountered. 我尝试创建一个示例HTML5应用程序,当我尝试运行它时,遇到了一些问题。 Here's the output of the build process. 这是构建过程的输出。

23:16:22: Starting: "/usr/bin/qmake" /home/res/Git/test/first/first.pro -r -spec linux-g++-64 CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug
23:16:22: The process "/usr/bin/qmake" exited normally.
23:16:22: Starting: "/usr/bin/make" 
make: Circular all <- first dependency dropped.
Copying application data...
g++ -m64 -o first main.o html5applicationviewer.o moc_html5applicationviewer.o   -L/usr/X11R6/lib64 -lQt5WebKitWidgets -lX11 -lxslt -lrt -lgio-2.0 -lgstapp-0.10 -lgstinterfaces-0.10 -lgstpbutils-0.10 -pthread -lgstvideo-0.10 -lgstbase-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lxml2 -lglib-2.0 -lsqlite3 -L/build/buildd/qtdeclarative-opensource-src-5.0.1/lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu/x86_64-linux-gnu/x86_64-linux-gnu -L/build/buildd/qtwebkit-opensource-src-5.0.1/lib -lQt5Sql -lQt5Quick -lQt5OpenGL -lQt5PrintSupport -lQt5WebKit -lQt5Qml -lQt5Location -lQt5Widgets -lQt5Network -lQt5Sensors -lQt5Gui -lQt5Core -lGL -lpthread 
/usr/bin/ld: cannot find -lxslt
/usr/bin/ld: cannot find -lgio-2.0
/usr/bin/ld: cannot find -lgstapp-0.10
/usr/bin/ld: cannot find -lgstinterfaces-0.10
/usr/bin/ld: cannot find -lgstpbutils-0.10
/usr/bin/ld: cannot find -lgstvideo-0.10
/usr/bin/ld: cannot find -lgstbase-0.10
/usr/bin/ld: cannot find -lgstreamer-0.10
/usr/bin/ld: cannot find -lgobject-2.0
/usr/bin/ld: cannot find -lgmodule-2.0
/usr/bin/ld: cannot find -lgthread-2.0
/usr/bin/ld: cannot find -lxml2
/usr/bin/ld: cannot find -lglib-2.0
/usr/bin/ld: cannot find -lsqlite3
collect2: error: ld returned 1 exit status
make: *** [first] Error 1
23:16:22: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project first (kit: Desktop)
When executing step 'Make'
23:16:22: Elapsed time: 00:00.

This is the first time I'm trying this HTML5 application in QT Creator. 这是我第一次在QT Creator中尝试这个HTML5应用程序。 How can this issue be solved? 如何解决这个问题?

For each library, check if you've installed appropriate *-dev package. 对于每个库,检查是否已安装适当的* -dev包。 Eg for message /usr/bin/ld: cannot find -lxslt check package libxslt1-dev 例如,对于消息/usr/bin/ld: cannot find -lxslt检查包libxslt1-dev

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM