Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all 2113 articles
Browse latest View live

Qt 5.3 (5.4) static build for Mac OS 10.9 with static QtWebkit or QtWebEngine?

$
0
0
Is subj technically possible? MacOS Webkit (or at least WebEngine) must be built static as well. P.S. For Qt4 that was possible

Where is Qt Quick Compiler (for enterpise edition src)?

$
0
0
I downloaded the evaluation version of Qt 5.3.2 Enterprise edition and the binary installed version of Qt Quick Compiler works (verified with debug message) and Qt5QuickCompilerRuntime.dll exists. Now I want to build Qt from src for static linking but after building there is no Qt5QuickCompilerRuntime and I cannot find any source code that would build this component? I tried manually copying the installed binary to the static build Qt but it didn’t work. Does Digia not include Src for Enterprise Add-ons? btw my goal is to create the fastest starting QML app so my plan is to: – use qt quick compiler (I assume only in enterprise edition) – static link Qt/QML (so have to build from src) – remove un-needed large Qt components (icu, webkit etc.)

webkit2 build fails

$
0
0
Build Qt5.3 from sources, follow all steps from build 5.3 doc. Qt5.3 build success. Switch to qtwebkit and trying build webkit2 Tools/Scripts/build-webkit —qt —qmakearg=“CONFIG+=webkit2” —no-webkit1 Build fails for JavaScriptCore library link : g++ Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-as-needed -fdebug-types-section -Wl,-O1 -Wl,-rpath,/home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib -o ../../bin/jsc .obj/jsc.o -L/home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib -lJavaScriptCore -lWTF -licui18n -licuuc -licudata -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lQt5Core -lpthread undefined reference to `llint_op_create_activation’ /home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: undefined reference to `llint_op_put_scoped_var’ /home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: undefined reference to `llint_op_typeof’ /home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: undefined reference to `llint_op_resolve_scoped_var’ /home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: undefined reference to `llint_op_end’ /home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: undefined reference to `llint_op_is_boolean’ /home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: undefined reference to `llint_op_get_by_id_getter_chain’ /home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: undefined reference to `llint_op_resolve_base_to_scope_with_top_scope_check’ /home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: undefined reference to `llint_begin’ /home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: undefined reference to `llint_op_put_by_id_transition_normal’ /home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: undefined reference to `llint_op_mod’ /home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: undefined reference to `llint_op_lesseq’ /home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: undefined reference to `llint_op_is_undefined’ /home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: undefined reference to `llint_op_resolve_scoped_var_on_top_scope’ /home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: undefined reference to `llint_op_nstricteq’ /home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: undefined reference to `llint_op_create_this’ /home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: undefined reference to `llint_op_debug’ /home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: undefined reference to `llint_op_is_string’ /home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: undefined reference to `llint_op_switch_string’ /home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: undefined reference to `llint_op_resolve_with_this’ /home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: undefined reference to `llint_op_new_array’ /home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: undefined reference to `llint_op_/home/genisim/Sources/QT5/qt5/qtwebkit/WebKitBuild/Release/lib/libJavaScriptCore.so: ………………………… Files : Source/JavaScriptCore/llint/LowLevelInterpreter.asm Source/JavaScriptCore/llint/LowLevelInterpreter32_64.asm Source/JavaScriptCore/llint/LowLevelInterpreter64.asm exists And ruby used to generate : WebKitBuild/Release/Source/JavaScriptCore/generated/LLIntAssembly.h Build machine is Ubuntu 14.04 / 64bit What is wrong ?

The application was unable to start correctly (0xc000007b)

$
0
0
I am a total C++ n00b, but I created an app that runs successfully from Qt Creator. When I try to deploy a release version of the app, it would not run. I followed the steps here: http://qt-project.org/wiki/Deploy_an_Application_on_Windows But I am getting an error “The application was unable to start correctly (0xc000007b). Click OK to close the application.” The above link said if the steps there do not work, post in the forum, so here I am. :-) I would appreciate any help! Thank you in advance!

Qt Creator won't compile with boost

$
0
0
Hey there, I’m trying to use boost in a qt project (archives and serialization), but when i write “#include <boost/serialization>”, even if my qt creator detects the files (it displays the list of files i may include) the compiler will keep saying that there is no such file or directory. I’m using qt creator 5.3.2 with msvc 2013, and i added the lines “ INCLUDEPATH += pathtoboost” And “LIBS += -Lpathtoboost” What have i done that is not right?

Permission denied

$
0
0
Hi All, I’m attempting to setup a tool chain so I can create and debug applications on a Beaglebone Black and I’m having some troubles with Qt Creator. My host machine is Ubuntu 12.04 running on VirtualBox 4.3. I used the procedure outlined on http://embedded.von-kannen.net/ to download, configure, and build QtCreator. For the most part everything well until I got to the part were Qt was being installed into* /opt/qt-arm *and I got a permission error. It wouldn’t allow me to to make the qt-arm folder and subfolders in /opt. No problem, I just prepended “sudo make” and everything appears to have worked fine. I was able to start Qt Creator and make a simple Hello World app. The problem is, when I goto build the app. I get a “execvp: /opt/qt-arm/bin/uic: Permission denied” message. I’m not sure what to do next. Regards, Mark

When I open Visual Studio 2010,the qt-vs-addin report error:Could not connect to Appwrapper.Please make sure that TCP port 12015 is not blocked.

$
0
0
My computer configuration are as bellows: Win7 64bit,Visual Studio 2010,Qt5.2.0,qt-vs-addin1.2.2 . Then I try some ways:I reinstall system,I use Visual Studio 2010,Qt5.3.2,qt-vs-addin1.2.3 ,but errors are same with the first condition: When I open Visual Studio 2010,the qt-vs-addin report error:Could not connect to Appwrapper.Please make sure that TCP port 12015 is not blocked. Then I try the third way:I reinstall system,I use Visual Studio 2012,Qt5.3.2,qt-vs-addin1.2.3,the errors are still there. How can I solve this problem? Wish good suggestion.Thank you.

Under Win7 64bit and Visual Studio 2010 condition,I use Qt5.0.1 and qt-vs-addin1.2.0 to compile MySql drivers,report errors:

$
0
0
The errors are as bellows: … qsql_mysql.obj : error LNK2019: 无法解析的外部符号 _mysql_stmt_reset@4,该符号在 函数 “protected: virtual bool __thiscall QMYSQLResult::exec(void)” (?exec@QMYSQL Result@@MAE_NXZ) 中被引用 ..\..\..\..\plugins\sqldrivers\qsqlmysql.dll : fatal error LNK1120: 50 个无法解 析的外部命令 NMAKE : fatal error U1077: ““d:\Program Files (x86)\Microsoft Visual Studio 10. 0\VC\BIN\link.EXE“”: 返回代码“0×460” Stop. NMAKE : fatal error U1077: ““d:\Program Files (x86)\Microsoft Visual Studio 10. 0\VC\BIN\nmake.exe“”: 返回代码“0×2” Stop. I trid many ways by step by step do the every compiled MySql driver step,but I can’t compile MySql driver sucessfully. Wish good ways.Thank you.

Another static library issue.

$
0
0
I followed this guide for creating and using a static library in Qt: https://qt-project.org/wiki/How_to_create_a_library_with_Qt_and_use_it_in_an_application I have a class that I would like to use in Matlab, so I would like to create a static library. I am using Qt 4.8.0, statically compiled, commercial on a Windows 7 machine. I created a project for the library: QT       +=  network TEMPLATE = lib CONFIG+= staticlib # Input INCLUDEPATH += ../common/output \                 ../common/input \                 ../common/core \                 ../common/crc   HEADERS += ../common/output/imageUdpSender.h \             ../common/input/image.h \             ../common/core/coreModule.h \             ../common/input/internalProtocol.h\             ../common/output/testState.h \             ../common/crc/crc.h   SOURCES += ../common/output/imageUdpSender.cpp \             ../common/core/coreModule.cpp \             ../common/output/testState.cpp \             ../common/crc/crc.cpp   INTF_VERSION = 2 INTF_VERSTR = '\\"$${INTF_VERSION}\\"' DEFINES += INTERFACE_VERSION=\"$${INTF_VERSTR}\"   TARGET = ../../../ShutterSoftware/build/Library   static { # everything below takes effect with CONFIG += static    TARGET = ../../../../../ShutterSoftware/build/static/Library    CONFIG += static    QTPLUGIN += qsvg qico #qpng    # image formats    DEFINES += STATIC    message("~~~ static build ~~~") # this is for information, that the static build is done    mac: TARGET = $$join(TARGET,,static,_static) #this adds an _static in the end, so you can seperate static build from non static build    win32: TARGET = $$join(TARGET,,static,s) #this adds an s in the end, so you can seperate static build from non static build } The above project creates a *.lib. However, when I tried to include it in a project, I get this error: C:\Users\IKOMED6\Documents\SVN\Software\ShutterControlGUI\Qt\ShutterSoftware\ShutterUILibrary\TestLibrary\main.cpp:2: error: C1083: Cannot open include file: 'imageUdpSender.h': No such file or directory The project file for the project trying to use the library: QT       += core gui   greaterThan(QT_MAJOR_VERSION, 4): QT += widgets   TARGET = TestLibrary TEMPLATE = app     SOURCES += main.cpp\         mainwindow.cpp   HEADERS  += mainwindow.h   FORMS += mainwindow.ui   INCLUDEPATH += $$PWD/../../build/static LIBS += -static -L$$PWD/../../build/static/ -lLibrarys.lib     TARGET = ../../../ShutterSoftware/build/TestLibrary   static { # everything below takes effect with CONFIG += static     TARGET = ../../../../../ShutterSoftware/build/static/TestLibrary     CONFIG += static     QTPLUGIN += qsvg qico #qpng    # image formats     DEFINES += STATIC     message("~~~ static build ~~~") # this is for information, that the static build is done     mac: TARGET = $$join(TARGET,,static,_static) #this adds an _static in the end, so you can seperate static build from non static build     win32: TARGET = $$join(TARGET,,static,s) #this adds an s in the end, so you can seperate static build from non static build } and the main.cpp is extremely simple (I only made this project to test the .lib): #include "mainwindow.h" #include "imageUdpSender.h"   int main(int argc, char *argv[]) {   } I’m not sure what is wrong… how do I even know if the *.lib was created properly? I’ve tried everything I’ve found online, so I’m at a loss… Thanks in advance.

Debug in MAC OsX10.9

$
0
0
Hi, I try to debug an external application. Everything is going well, compile right, macdeployqt works fine, but I have one problem… The application show me this error: QSqlDatabase: QMYSQL3 driver not loaded QSqlDatabase: available drivers: QSQLITE QODBC3 QODBC QPSQL7 QPSQL When I read forums about this problem, everybody talk about libqsqlmysql.dylib in Qt/plugins/sqldrivers, but in this folder I only have: libssqlite.dylib libqssqlobdc.dylib libqsqlpslql.dylib I use QT4.8. (Qt libraries 4.8.6 for Mac (185 MB) (Info) and debug libraries (476 MB) both installed) Also in my computer I have installed Qt 5.0.2 and I have the same libraries in its respective plugin folder. What is my error?

no member named 'addAction' in 'QWidget'

$
0
0
I downloaded Qt package including Qt Creator from the official website and started to create a simple project with mainwindow.cpp, mainwindow.h and mainwindow.ui in. Then I hit the build button. It pops out the same errors: qmenu.h:86:20: error: no member named ‘addAction’ in ‘QWidget’ This error seems to point to the file below with the error line Qt/5.3/clang_64/lib/QtWidgets.framework/Versions/5/Headers/qmenubar.h:71:20: error: no member named ‘addAction’ in ‘QWidget’ using QWidget::addAction; Could somebody tell me what is going on here? I use the cmake to do the same process, the same error pops out, is it a bug or not? PLUS: I am using Qt Creator on MAC OS Mavericks. Cheers, Gauss

Forward Declaration in a Static Library

$
0
0
Hello, I am trying to compile a static library to use with a non-Qt application. I wish to create a wrapper in this library to minimize the number of includes the final static library needs. These are the basics of the code: //libraryWrapper.h class ImageSender; //forward declaration   class LibraryWrapper{   public: LibraryWrapper(); ~LibraryWrapper();   private: ImageSender* _sender; } The library source file is: //LibraryWrapper.cpp #include "LibraryWrapper.h" #include "imagesender.h"   LibraryWrapper::LibraryWrapper(){  _sender = new ImageSender(); }   ~ImageSender(){ //delete _sender; } I successfully compile this and can link to it in my non-qt project. If I comment out _sender = new ImageSender(); (line 6 in LibraryWrapper.cpp), I do not get any errors when I compile and run the non-qt application. //LibraryWrapper.pro QT       += network QT       -= gui   TEMPLATE = lib CONFIG += staticlib   HEADERS += imageudpsenderwrapper.h \   SOURCES += imageudpsenderwrapper.cpp \   TARGET = ../../../ShutterSoftware/build/ImageUdpSenderLibrary The only thing I can think of is adding imagesender.h to the HEADERS += in the .pro file, but when I do this it asks for its dependencies, which I think defeats the purpose of the forward declaration…. Just to show the application linking to the static library: #include "stdafx.h" #include "imageudpsenderwrapper.h"   using namespace System;   int main(array<System::String ^> ^args) {  ImageUdpSenderWrapper* _sender = new ImageUdpSenderWrapper();     return 0; } Thanks!

Qt 5.x dynamically for iOS with SSL support (QSslSocket)

$
0
0
Hi, i read several threads about iOS and SSL support. I just want to clearify my understanding (or misunderstanding) about the situation concerning iOS and SSL support for Qt 5.x. The only way to use SSL with iOS until now is to use a static Qt build, right? Is something iOS / SSL related planned for the 5.4 release? If static build is the only way for iOS, is it ok to use the Indie Mobile license to use the static build Qt? Maybe there is nother way to get it running on iOS? Greetings Nando

-qt-mouse-tslib: invalid command-line switch when cross-compiling Qt5.3.2

$
0
0
I need to run Qt applications on arm board,and i tried to cross-compile Qt5.3.2 with configure options below: ./configure -qt-mouse-tslib -qt-mouse-pc -release -no-opengl -device imx6 -xplatform linux-arm-gnueabi-g++ -optimized-qmake -pch -qt-sql-sqlite -qt-libjpeg -qt-zlib -no-opengl -no-sse2 -no-openssl -no-nis -no-cups -no-glib -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-separate-debug-info -prefix /opt/Qt520141010 -no-c++11 -no-pkg-config -v and error occuors as: -qt-mouse-tslib: invalid command-line switch -qt-mouse-pc: invalid command-line switch anyone tell me why and how to fix this?

Deploy Step Failed

$
0
0
Hi All, I want to learn how to use Qt on the Beaglebone Black. I used the steps outlined on “embedded.von-kannen.net”. I created a vm using the recommended version of lubuntu and followed all of the instructions to download and build Qt Creator and install Qt on the BBB. I was having great success and able to build a simple Helloworld app. I setup the debugger and it reported that it could connect to the target( the BBB ). Then the issue. I tried to deploy the app to the target and got the following error: “The remote file system has 0 megabytes of free space, but 5 megabyte are required” . When I examine the BBB using “free -m” it reports that I have 372 megabytes of free space available. Is there some process that should be running on the BBB and if so what is it? Regards, Mark

Errors building Qt 5.4 Alpha for Linux ( error: cannot find -lQt5Multimedia ) ?

$
0
0
My goal is to build Qt 5.4 Alpha for Android. Since I failed at that, I figured I should start with something easier and build Qt 5.4 for Linux. Configure is happy after installing recommended dependencies: http://qt-project.org/doc/qt-5/linux-requirements.html make clean ./configure -v The error I get is: error: cannot find -lQt5Multimedia qtbase/lib -L/home/edward3/projects/qt5.4-alpha/qt-everywhere-opensource-src-5.4.0-alpha/qtmultimedia/lib -lQt5Multimedia -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGL -lpthread /usr/bin/ld.gold: error: cannot find -lQt5Multimedia collect2: error: ld returned 1 exit status make[5]: *** [maroon] Error 1 make[5]: Leaving directory `/home/edward3/projects/qt5.4-alpha/qt-everywhere-opensource-src-5.4.0-alpha/qtdeclarative/examples/quick/demos/maroon' make[4]: *** [sub-maroon-make_first] Error 2 make[4]: Leaving directory `/home/edward3/projects/qt5.4-alpha/qt-everywhere-opensource-src-5.4.0-alpha/qtdeclarative/examples/quick/demos' make[3]: *** [sub-demos-make_first] Error 2 make[3]: Leaving directory `/home/edward3/projects/qt5.4-alpha/qt-everywhere-opensource-src-5.4.0-alpha/qtdeclarative/examples/quick' make[2]: *** [sub-quick-make_first] Error 2 make[2]: Leaving directory `/home/edward3/projects/qt5.4-alpha/qt-everywhere-opensource-src-5.4.0-alpha/qtdeclarative/examples' make[1]: *** [sub-examples-make_first] Error 2 make[1]: Leaving directory `/home/edward3/projects/qt5.4-alpha/qt-everywhere-opensource-src-5.4.0-alpha/qtdeclarative' make: *** [module-qtdeclarative-make_first] Error 2 edward3@ubuntu-14-04-x64:~/projects/qt5.4-alpha/qt-everywhere-opensource-src-5.4. I see many Qt libs in the lib folder were successfully built but not Qt5Multimedia. I read the default configure option was to build Qt5Multimedia? Thanks in advance, -Ed

Project is using QMYSQL3 instead of QMYSQL?

$
0
0
I am having troubles retrieving results from a UNION query, it appears that someone else has had this issue in the past (http://permalink.gmane.org/gmane.comp.lib.qt.general/31200). I am not sure why it is loading QMYSQL3 but the link suggested that unions are not supported in QMYSQL3, is this true? I can substitute my query with any non-union query and it works fine, so the rest of the prepare/bind/execute code must be fine.. I have tried building from source as well as using the binary repositories, but neither fix my issue…     QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL", "connection1");     db.setHostName("-----");     db.setUserName("-----");     db.setPassword("-----");     db.setPort(3306);     db.setDatabaseName("-----");     QSqlQuery query = QSqlQuery(db);     query.prepare("*large query with 1 UNION ALL*)");     query.addBindValue(98);     query.exec();     query.size(); // == 1     query.first(); // == false     query.next(); // == false     query.lastError(); // == "QMYSQL3: Unable to fetch data"

Qt Enterprise Trial for Android not working

$
0
0
OK. Followed all the download and install directions. Downloaded the Qt Enterprise trial. Configured the Android stuff in Qt to point to the NDK and SDK locations. Connected a Nexus7 via USB. Trying to compile and run the Example: qmlqtsensors Errors during build process on cannot find stdlib.h —-Qt compile error msg /Developer/Android-NDK/android-ndk-r10b/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:72: error: stdlib.h: No such file or directory #include <stdlib.h> —- I searched for the stdlib.h and found it in a “/tr1” folder..a subdirectory to the include I searched for the stdlib.h and found it in a “/tr1” folder..a subdirectory to the include Changed the #include <stdlib.h> statement in the cstdlib file to #include <tr1/stdlib.h> No error on stdlib.h. Now I get.. —-Qt complie new error /Developer/Android-NDK/android-ndk-r10b/sources/cxx-stl/gnu-libstdc++/4.9/include/cmath:44: error: math.h: No such file or directory #include <math.h> —- In the Sources folder for the NDK I found qmath.h tclmath.h clsMath.h..but NO math.h… I used the Android SDK manager to try and install all the source packages. No Joy. Shouldn’t the example shipped with the Enterprise Trial just work..or is this expecting too much. New to Android development. Have used Qt for ~3yrs. What am I doing wrong?

QT 4.4.1 build errors on RHEL 6.3 from source

$
0
0
I am having trouble building QT 4.4.1 on RHEL 6.3 from source. I downloaded qt-x11-opensource-src-4.4.1, did the ./configure command with no options, then the make command. The make fails. I am seeing errors like ../../include/QtNetwork/../../src/network/kernel/qurlinfo.h:405: error: ‘d’ was not declared in this scope Any thoughts on why this won’t compile out of the box? gcc version is 4.4.6 I was originally trying to use qt 5.1.1, but I ran across too many errors with that runing with the version of gcc that I have. So I decided to drop back to an old version, but now I am having the issues listed above.

macdeployqt does not include thirdparty modules

$
0
0
I used Bacon2D to make a little game, the setup instructions are here: https://github.com/Bacon2D/Bacon2D But when I used “macdeployqt Game.app” to make a independent app, it didn’t include any file of Bacon2D. $ macdeployqt Game.app $ ./Game.app/Contents/MacOS/Game QQmlApplicationEngine failed to load component qrc:/main.qml:3 module "Bacon2D" is not installed main.cpp: #include <QGuiApplication> #include <QQmlApplicationEngine>   int main(int argc, char *argv[]) {     QGuiApplication app(argc, argv);       QQmlApplicationEngine engine;     engine.load(QUrl(QStringLiteral("qrc:/main.qml")));       return app.exec(); } Anyone can help?
Viewing all 2113 articles
Browse latest View live