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

Installation of QT4.7.2 with Visual Studio 2012?

$
0
0
Hi all, After installation of Visual Studio 2012 and QT4.7.2, qt-ws-addin-1.1.11 gives an error that “The installer could not find an Installation of Visual Studio 200x”. Could any tell me whether I should install Visual Studio 2010 ?

Build problem

$
0
0
Hello everyone, I’m new using Qt5, and now I need your help. Maybe in a few weeks I could help someone ;). I was trying to build a project what is already working, and I found this error: ‘cl’ is not recognized as an internal or external command, operable program or batch file. jom: C:\Users\YYYYYY\Desktop\build-XXXXXX-Desktop_Qt_5_3_MSVC2013_64bit-Debug\ZZZZZZ\Makefile.Debug [windows\hid.obj] Error 1 jom: C:\Users\YYYYYY\Desktop\build-XXXXXX-Desktop_Qt_5_3_MSVC2013_64bit-Debug\ZZZZZZ\Makefile [debug] Error 2 jom: C:\Users\YYYYYY\Desktop\build-XXXXXX-Desktop_Qt_5_3_MSVC2013_64bit-Debug\Makefile [sub-ZZZZZZ-make_first-ordered] Error 2 11:57:38: The process “C:\Qt\Tools\QtCreator\bin\jom.exe” exited with code 2. Error while building/deploying project XXXXXX (kit: Desktop Qt 5.3 MSVC2013 64bit) When executing step ‘Make’ I copied the ‘cl’ application from Visual Studio folder to “C:\Qt\Tools\QtCreator\bin” but now I’ve the same problem except the first line “‘cl’ is not recognized as an internal or external command, operable program or batch file.” Regards Windows 8.1 Visual Studio Express 2013 Qt 5.3.1 EDIT: I was reading the README file and I found this “This project was built and tested with the Qt 5.0.2 for Windows 32-bit (using the MinGW 4.7 compiler)”. Could be that the problem?

Convert Windows Project to Linux, problem linking to Shared Library

$
0
0
Hello Qt Community, I’m working with Qt for some time now, solving all my problems with this forum and API. Thanks for that! But now I’m stuck porting my project to linux. I’m developing some custom GUIs for a third party software. Working with Visual Studio I managed to create a shared library myserver.dll. Linking from all my clients (custom GUIs) to myserver.dll with myserver.lib and myserver.h works fine! For Windos only… …porting this to linux gives me headache. I have no experience in linux, except what I read the last days. Since this is only a linux problem I suppose my source code is fine. (I followed Qt Tutorials SharedLibrary [qt-project.org]) server.h #ifndef _H_CWNCPLCSERVER_INCLDUED #define _H_CWNCPLCSERVER_INCLUDED   #include <QtCore/QObject> #include <QtCore/QList> #include <QtCore/QVariant>   class QSettings;   #ifdef CWNCPLCSERVER_EXPORTS  #define CWNCPLCSERVER_API Q_DECL_EXPORT #else  #define CWNCPLCSERVER_API Q_DECL_IMPORT #endif   class CWNCPLCSERVER_API CWNcPlcServer : public QObject {  Q_OBJECT };   #endif //_H_CWNCPLCSERVER_INCLDUED dummyclient.cpp #include "cwdummyclientdialog.h" #include "cwncplcserver.h"   CWDummyClientdialog::CWDummyClientdialog(QObject* pParent , const QString& rsName ) {  //Name des Clients  m_myName = "DummyClient";    //Verbindung zu Server wird erstellt  m_myServer = CWNcPlcServer::connectToServer(m_myName, this); }   CWDummyClientdialog::~CWDummyClientdialog (void) {  //Verbindung zu Server wird getrennt  CWNcPlcServer::disconnectFromServer(m_myName); } dummyclient.pro TEMPLATE  = lib CONFIG  += qt warn_on thread plugin ${BUILDMODE} PROJECT   = CWDummyClient TARGET   = $(BUILDMODE)/output/appl/cwdummyclient LANGUAGE  = C++   UI_DIR    = .ui MOC_DIR   = .moc OBJECTS_DIR  = .obj   INCLUDEPATH += /user/oapack/gui/include  \          /user/oapack/include   \          /user/oapack/linux/ace/embedded/${BUILDMODE}   #für Qt/embedded unix:LIBS   += -L/user/oapack/bin/${BUILDMODE} unix:LIBS   += -L${QTDIR}/lib \                -l${LIBQT_CORE} \                -l${LIBQT_GUI} \                -l${LIBQT_XML}       unix:!mac{   QMAKE_LFLAGS += -Wl,-rpath=\\\$\$ORIGIN   QMAKE_RPATH= }   LIBS        += -lcwncplcserver -lslgfw -lslgfwwidget -lslcap -lsltrc -lslmd -lsltrp -lslhmiutilitieslib -lslaesvcadapter -lslfsfilesvcadapter -lsltraceadapter -lslarchiveadapter LIBS  += -L/mnt/windows/workspace/ -lcwncplcserver   SOURCES += cwdummyclientdialog.cpp   HEADERS += cwdummyclientdialog.h \       cwncplcserver.h \       resource.h server.pro TEMPLATE  = lib CONFIG  += qt warn_on thread plugin ${BUILDMODE} PROJECT   = CWNcPlcServer TARGET   = $(BUILDMODE)/output/appl/cwncplcserver LANGUAGE  = C++   UI_DIR    = .ui MOC_DIR   = .moc OBJECTS_DIR  = .obj   INCLUDEPATH += /user/oapack/gui/include  \          /user/oapack/include   \          /user/oapack/linux/ace/embedded/${BUILDMODE}   DEFINES  += CWNCPLCSERVER_EXPORTS   #für Qt/embedded unix:LIBS   += -L/user/oapack/bin/${BUILDMODE} unix:LIBS   += -L${QTDIR}/lib \                -l${LIBQT_CORE} \                -l${LIBQT_GUI} \                -l${LIBQT_XML} \                -l${LIBQT_NETWORK}   LIBS        += -lsltmutilities -lsltmserviceadapter -lslgfw -lslgfwwidget -lslcap -lsltrc -lslmd -lsltrp -lslhmiutilitieslib -lslaesvcadapter -lslfsfilesvcadapter -lsltraceadapter -lslarchiveadapter     SOURCES += cwhotlink.cpp \       cwlog.cpp \       cwncplcserver.cpp   HEADERS += cwhotlink.h \       cwlog.h \       cwncplcserver.h \       cwglobalconstants.h \       cwncplcsignals.h \       resource.h I’m not sure where to look first. Is there something similar to .lib files for linux? Or do I have to use the same cwncplcserver.so file to compile my client and to run my client (that’s what i’ve done so far)? There are no compile errors. The client on its own is running fine on linux. But when I try to access the server library it crashes, library not found/compatible. I set “DEFINES += CWNCPLCSERVER_EXPORTS “ in cwncplcserver.pro file. I included path to lib “LIBS += -L/mnt/windows/workspace/ -lcwncplcserver” in client.pro file for linking to library. Also I added following to client.pro, because client.so and server.so are in the same directory and linux isn’t searching in run path on it’s own: unix:!mac{   QMAKE_LFLAGS += -Wl,-rpath=\\\$\$ORIGIN   QMAKE_RPATH= } I’ve read about QLibrary, but I thought it’s a better way to link to the shared library. Can anyone give me a hint what I could have missed or what I could try next? Thank you! TheCreator

Environment variables?

$
0
0
I’m not sure exactly which environment variables I need to add (or if my problem is something else). I installed QT Creator 5 today for the first time. When I try to build I always get an error (Error while building/deploying project (kit: Desktop Qt 5.3 MSVC2012 OpenGL 32bit). If I click on design I get the error QML Emulation Layer (QML Puppet) Building was Unsuccessful or sometimes I get that it is doing something for the first time on this install and gets stuck at exactly 5% each time and QT becomes unresponsive (fairly sure it won’t recover as have left it around 15 minutes and the task manager suggests QT is not doing anything). I installed QT 5.3 and accepted the default settings. I’m using Windows 8.1 64 bit with Visual Studio 2013 Express installed. Also installed MinGW with QT. I’ve tried running as Administrator.

static configuration failing on ubuntu

$
0
0
I first did a standard installation using 64 bit .run file on my ubuntu. Then since I wanted to deploy on server environments without qt, I wanted to build a static framework too. I downloaded the tar.gz file but on tar -xvf it fails with errors. Has anyone previously noticed this? It takes about 6 hours to download in the first place hence my question before I restart a download. Is there a faster way out there for qt downloads?

[Solved] Qt problem with query in SQLite database in Qt

$
0
0
Hi, I am facing this problem: QString name, passwd;     name=ui->nom->text();     passwd=ui->motdepasse->text();     if(!mydb.isOpen())     {        ui->label_2->setText("pas de connexion");        //qDebug()<<"Failed to open my database";        //return;     }     QSqlQuery qry;     if(qry.exec("SELECT * FROM emploi WHERE ref='"+passwd+"' AND entreprise='"+name+"'"))     {         int count=0;         while(qry.next())         {             count++;         }         if(count==1)              ui->label_2->setText("username and passwd are correct");           else if(count>1)              ui->label_2->setText("duplication");           else              ui->label_2->setText("this count does not exist");         }     else ui->label_2->setText("errors"); } When running I get the message “errors” that mean the query exec return false. Also when I replace the previous query with  if(qry.exec("SELECT * FROM emploi WHERE ref=0 AND entreprise='alcatel'")) the program run correctly and poster this message “username and passwd are correct”(I have it in my table emploi). Can someone help me and thank you.

sudo make install fails on my mac

$
0
0
Tried the release version from github, failed to install with an error so I figured it was a minor bug and so I cleaned everything and switched to 5.4. It built fine but when I tried to do make install, I got the following warning and error In file included from ../../3rdparty/assimp/code/DXFLoader.cpp:46: In file included from ../../3rdparty/assimp/code/AssimpPCH.h:144: ../../3rdparty/assimp/code/StringComparison.h:157:5: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]     register int i = (int)b.length()-(int)a.length();     ^~~~~~~~~ ../../3rdparty/assimp/code/DXFLoader.cpp:87:71: error: cannot initialize a member subobject of type 'Assimp::DXFImporter::LayerInfo *'       with an rvalue of type 'bool' DXFImporter::DXFImporter() : buffer(0), groupCode(0), bRepeat(false), mDefaultLayer(false)                                                                       ^             ~~~~~ 1 warning and 1 error generated. make[4]: *** [.obj/debug/DXFLoader.o] Error 1 make[3]: *** [debug-install] Error 2 make[2]: *** [sub-threed-install_subtargets-ordered] Error 2 make[1]: *** [sub-src-install_subtargets] Error 2 make: *** [module-qt3d-install_subtargets] Error 2 [andreyc EDIT] Added @ around code.

[Solved] Qt Creator: Linux host, Android target - no compiler can produce code for this Qt version.

$
0
0
I cloned the qt repository and built it for android following the wiki. In Qt Creator, I tried to choose the newly built Qt version and got “No compiler can produce…”. But I have been using Qt Creator to build an android app with a binary installed version of Qt 5.3.1 for android, so I think the correct compiler is visible: Android GCC (arm 4.8). When I choose the installed ‘Qt 5.3 for Android armv7’, the details show ABI ‘arm-linux-android-elf-32bit’, but when I choose the Qt that I built ‘Qt 5.3.2 (qt5)’ it shows ABI ‘arm-linux-generic-elf-32bit’. Is that the problem? I interpret that to mean it is built for ‘generic linux’ on ARM eabi instead of for ‘android hack of linux’ on the ARM eabi. To build Qt 5.3.2 I used this command: ./configure -xplatform android-g++ -nomake tests -nomake examples -android-ndk /home/bootch/android-ndk-r10 -android-sdk /home/bootch/android-sdk-linux -android-ndk-host linux-x86 -android-toolchain-version 4.8 -android-ndk-platform android-19 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -skip qtdeclarative -skip qtmultimedia -no-warnings-are-errors -v Do I need ‘-developer-build’? I also tried ‘-android-ndk-platform android-10’ (thinking that should be the ndk release number) but I think the configure script reported that as invalid. I also futzed around in Qt Creator trying to add a kit, with similar problems. This is on Ubuntu 14.04 using Qt Creator 3.1.2. (My real goal is to harness plugins/platforms/android/androidjnimain.cpp with log stmts to logcat so I might find why my hello_android app is quietly dying on Android. )

Licensing question - is my attribution to Qt enough?

$
0
0
Hi, I just finished my software and it’s available online https://maximumtrainer.com/ Before installing my software, you have to sign a license where I mention about Qt: _- MaximumTrainer is build with Qt (https://qt-project.org/) The license used to build MaximumTrainer with Qt is LGPL v2.1_ I just want to make sure it’s ok ? I’m using Qt with .dll linked with the .exe P.S: If you want to try the beta of my app, send me a PM! Thank you

Importing project with various files

$
0
0
I am trying to import a makefile project in order to use qt creator as a text editor without intending to compile or debug the code, the problem is – when I actually import the project qtcreator only “see’s” cpp and .h files, its not possible to open the makefile or perl files which the project also consists of. Is it possible to somehow force it to show all the .pm, .pl, makefile etc. files ?

CMake cannot find QT5

$
0
0
Hi I whant to build OSG with QT5. With qt4 it works fine but with QT5 I get the following message from CMake CMake Warning at C:/Program Files (x86)/CMake/share/cmake-3.0/Modules/FindQt4.cmake:616 (message): c:/Qt/Qt5.3.0/5.3/msvc2013_opengl/bin/qmake.exe reported QT_INSTALL_LIBS as “C:/Qt/Qt5.3.0/5.3/msvc2013_opengl/lib” but QtCore could not be found there. Qt is NOT installed correctly for the target build environment. Please advise

Deploy Statically on Linux

$
0
0
I’m following this Document. Using Qt 5.3 http://qt-project.org/doc/qt-5/linux-deployment.html process sucessfull till this command qmake -config release (nothing happens) as qmake usage suggest i execute these commands qmake -project   <this created a .pro file qmake -makefile  <this created new Makefile make  <nothing happens terminal reply was "make: Nothing to be done for `first'." any help? thanks!

Project ERROR: Unknown module(s) in Qt: quick

$
0
0
I want to install Qt5.2.1 and when I do “make” I have the next error: Project ERROR: Unknown module(s) in Qt: quick

Qt 5.3.1 static build on OSX 10.9

$
0
0
Hi all, I’ve been struggling for a few days trying to get a static build of Qt created with all the appropriate symbols defined. The overall goal is to create a small static library that can read/validate some XML files, nothing too fancy. Using the following configure line: ./configure -static -no-framework -nomake examples -nomake tests make -j4 Results int he build succeeding. However, when linking to create the library, I get a host of linker errors with undefined symbols. An example: Undefined symbols for architecture x86_64: “QArrayData::deallocate(QArrayData*, unsigned long, unsigned long)”, referenced from: EGIXML::EGIXMLFileReader::validate(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libEGIXML.a(EGIXMLFileReader.cpp.o) Upon further inspection: $ nm /usr/local/Qt-5.3.1/lib/libQt5Core.a | grep QArrayData | grep deallocate ALL symbols matching the greps are tagged as undefined. If I do the same thing in a shared library build, I get no undefined symbols. Am I just missing something super obvious that I just forgot somewhere? I have verified (using the verbose build flags) that things are being build with -fPIC Thanks in advance.

Deploying a dylib file on mac

$
0
0
Hello. I have created a mac plugin, which is basically a dylib file. The plugin includes a couple of boost libraries, and no qt libs. Now I am trying to deploy it and, understandably, receive a dependancy error: Get the following error in the Log.txt: dlerror:dlopen(/Users/igorland/X-Plane 10/Resources/plugins/MyPlugin/mac.xpl, 6): Library not loaded: /usr/local/lib/libboost_system.dylib   Referenced from: /Users/igorland/X-Plane 10/Resources/plugins/MyPlugin/mac.xpl   Reason: image not found So, I try to link the boost_system library. First like this:     LIBS += \       -L/usr/local/Cellar/boost/1.55.0_2/lib \       -lboost_system Then like this: LIBS += \       -L/usr/local/Cellar/boost/1.55.0_2/lib/libboost_system.a Then, I select the project file and add an external library through the menu, which adds the following: win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../../../usr/local/Cellar/boost/1.55.0_2/lib/release/ -lboost_system else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../../../usr/local/Cellar/boost/1.55.0_2/lib/debug/ -lboost_system else:unix: LIBS += -L$$PWD/../../../../../../usr/local/Cellar/boost/1.55.0_2/lib/ -lboost_system   INCLUDEPATH += $$PWD/../../../../../../usr/local/Cellar/boost/1.55.0_2/lib DEPENDPATH += $$PWD/../../../../../../usr/local/Cellar/boost/1.55.0_2/lib   win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../../../../../usr/local/Cellar/boost/1.55.0_2/lib/release/libboost_system.a else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../../../../../usr/local/Cellar/boost/1.55.0_2/lib/debug/libboost_system.a else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../../../../../usr/local/Cellar/boost/1.55.0_2/lib/release/boost_system.lib else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../../../../../usr/local/Cellar/boost/1.55.0_2/lib/debug/boost_system.lib else:unix: PRE_TARGETDEPS += $$PWD/../../../../../../usr/local/Cellar/boost/1.55.0_2/lib/libboost_system.a In all cases, I still have the same issue with the file. When I did my first Qt application on Mac, I had to use the Qt Mac Deployment Tool to link the libraries. However, my understanding is that since it is not an app bundle but a dll, sorry dylib, I cannot do it. What is the proper way to link statically libraries in a dylib (this and a couple of others like libc++.) Thanks a lot in advance.

Deploying release configuration of application still looking for debug versions of QT dll's

$
0
0
Good Afternoon, I’m in the process of trying to deploy an application that a 3rd party developed using the QT framework for the front end and I’m running into a problem which is I’m getting the following error message: Activation context generation failed for “E:\PJMAVC\QtCore4d.dll”. Dependant assembly Microsoft.VC90.CRT,processorArchitecture=“x86”… could not be found. I built the solution in release mode and included the non-release versions of the QT dll’s but if I don’t include the QtCore4d.dll in the deployment then I can’t even launch the application because it’s missing however when I do include it I get the above error message. This is my first exposure to this framework so any and all assistance is greatly appreciated. -Bill Youngman

Integrating OpenCV libraries in QtCreator on Windows

$
0
0
Hi Guys, I have a certain problem concerning the integration of OpenCV libraries in Qt creator: I’ve downloaded the opencv-249.exe, extracted it and tried to include the libraries by adding to the .pro file the following:  LIBS += "C:\\OpenCV\\opencv_bin\\install\\bin\\*.dll" LIBS += "C:\\OpenCV\\opencv_bin\\install\\lib\\*.dll*" Unfortunaley I always got Linking errors like “ unresolved extern symbol…” After that I tried to compile the libraries myself by creating a make-file with cmake adding the “WITH QT” option and compiling it with the mingw32-compiler. Unfortunaley I got errors during the compilation. After that I tried to compile an older version of OpenCV (I think 2.4.0) and it worked:) But if I try to include them in the following test program I always get the error :-1: Error: LNK1104: Cannot open file “libopencv_highgui231d.lib” #include "opencv2/opencv.hpp"   using namespace std;   int main (int argc, char *argv[]){           cout << "Hello World!" << endl;           cv::Mat mat;         mat = cv::imread("BM_Logo.JPG");         cvNamedWindow("hello");         cv::imshow("hello",mat);           cvWaitKey(0);           return 0;   } Also I tried to add the libraries by clicking through the menu of qt, and I tried to write each library seperatly but still the error is the same. I hope there is anybody around here who can help me with this Problem because I am getting crazy around here

New to Qt, want to cross-compile for raspberry pi

$
0
0
I’ve recently downloaded Qt Creator and need help moving forward. What I want to do is develop applications using Qt Creator installed on a Win7 laptop. I’ve completed and tested the application on the Win7 platform, now I want to compile it for a raspberry Pi running the raspbian OS. The Qt Creator doesn’t seem to have the correct compiler, etc., to get this done. What do I need to do to setup Qt Creator to cross compile for the raspberry Pi? Thanks.

Installing Phonon in VS 2012 Premium to use with Qt5 add-in?

$
0
0
I have Qt5 add-in installed in VS 2012 Premium and it works well. I want to use Phonon, but when I see the Qt5 modules, Phonon is greyed out – http://imgur.com/TRGgrs4 . How do I get this working?

Error after installing Qt [Solved]

$
0
0
I have just installed Qt 5.3 in /opt and started a simple “Qt application with widgets” with QtCreator. Compilation fails with cannot find -lGL Do I have th libGL library : yes #locate libGL.so /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/mesa/libGL.so.1.2.0 /usr/lib/nvidia-331/libGL.so /usr/lib/nvidia-331/libGL.so.1 /usr/lib/nvidia-331/libGL.so.331.38 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0 /usr/lib32/nvidia-331/libGL.so /usr/lib32/nvidia-331/libGL.so.1 /usr/lib32/nvidia-331/libGL.so.331.38 /usr/lib/x86_64-linux-gnu/mesa/ was not in the search path of ld so I added /usr/lib/x86_64-linux-gnu/mesa/ to /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf now /usr/lib/x86_64-linux-gnu/mesa is in the ld search path : #ldconfig -v 2>/dev/null | grep -v ^$’\t’ /usr/lib/x86_64-linux-gnu/libfakeroot: /lib/i386-linux-gnu: /usr/lib/i386-linux-gnu: /usr/local/lib: /lib/x86_64-linux-gnu: /usr/lib/x86_64-linux-gnu: /usr/lib/x86_64-linux-gnu/mesa-egl: /usr/lib/nvidia-331: /usr/lib32/nvidia-331: /usr/lib/x86_64-linux-gnu/mesa: /lib32: /usr/lib32: /lib: /usr/lib: /usr/lib/i386-linux-gnu/sse2: (hwcap: 0×0000000004000000) /usr/lib/nvidia-331/tls: (hwcap: 0×8000000000000000) /usr/lib32/nvidia-331/tls: (hwcap: 0×8000000000000000) but still can’t link. Any advice ? TIA Alain
Viewing all 2113 articles
Browse latest View live