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

Compiler error skipping incompatible libraries

$
0
0
I am trying to build the “textfinder”: http://qt-project.org/doc/qtcreator-3.2/creator-writing-program.html example : on my QT Creator running on Fedora 64 bit (Virtual box) but I am getting these errors which are shown below: 12:54:36: Running steps for project TextFinder... 12:54:36: Starting: "/home/mklepadlo/Qt5.3.1/5.3/gcc_64/bin/qmake" /home/mklepadlo/QT/TextFinder/TextFinder.pro -r -spec linux-g++-32 CONFIG+=debug 12:54:36: The process "/home/mklepadlo/Qt5.3.1/5.3/gcc_64/bin/qmake" exited normally. 12:54:36: Starting: "/usr/bin/make" g++ -m32 -Wl,-rpath,/home/mklepadlo/Qt5.3.1/5.3/gcc_64 -Wl,-rpath,/home/mklepadlo/Qt5.3.1/5.3/gcc_64/lib -o TextFinder main.o textfinder.o qrc_textfinder.o moc_textfinder.o   -L/home/mklepadlo/Qt5.3.1/5.3/gcc_64/lib/cmake/ -L/home/mklepadlo/Qt5.3.1/5.3/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread /usr/bin/ld: skipping incompatible /home/mklepadlo/Qt5.3.1/5.3/gcc_64/lib/libQt5Widgets.so when searching for -lQt5Widgets /usr/bin/ld: cannot find -lQt5Widgets /usr/bin/ld: skipping incompatible /home/mklepadlo/Qt5.3.1/5.3/gcc_64/lib/libQt5Gui.so when searching for -lQt5Gui /usr/bin/ld: cannot find -lQt5Gui /usr/bin/ld: skipping incompatible /home/mklepadlo/Qt5.3.1/5.3/gcc_64/lib/libQt5Core.so when searching for -lQt5Core /usr/bin/ld: cannot find -lQt5Core /usr/bin/ld: skipping incompatible /usr/lib64/libGL.so when searching for -lGL /usr/bin/ld: cannot find -lGL collect2: error: ld returned 1 exit status make: *** [TextFinder] Error 1 12:54:36: The process "/usr/bin/make" exited with code 2. Error while building/deploying project TextFinder (kit: Qt 5.3 GCC 64bit) When executing step 'Make' 12:54:36: Elapsed time: 00:01. Looks like a problem with gcc not finding the required libraries. Any clues on how to fix this. Thanks!

Installation error "Hash verification while downloading failed"

$
0
0
I downloaded the qt-opensource-linux-x86-1.6.0-5-online.run (32 bit) and ran it. QT Setup Wizard appeared and during installation, I am getting “Hash verification while downloading failed. it stuck when downloading the “1.6.0-5installerbase-linux-x86.7z” for component:Maintenance Tools I tried many times and I am getting the same error. Any idea on what do I need to do?

Compile with dynamic Qt libraries and static gcc libraries under Linux

$
0
0
Hi all I’m trying to compile my Qt application by using Qt libraries in dynamic mode and, in my intention, by linking statically all other gcc libraries (like, for example, libstdc++). Unfortunately I still didn’t find a way for this. Currently I made some test using the QMAKE_LFLAGS option into the Qt Creator .pro file as follow: QMAKE_LFLAGS += -static-libstdc++ but using the ldd tool I can see the libstdc++ is still linked dynamically (libstdc++.so.6). If I try the following solution: QMAKE_LFLAGS += -static The linker return error since want to have all the libraries in static format and, obviously, doesn’t find the Qt static libraries. Someone know the correct way to make such result? Thank you

Ways to attract attention to my bug report?

$
0
0
Not exactly the right forum section for this question, but I don’t see any section for discussing Qt bugs at all. My Qt bug report appears to not be receiving any attention for quite a while. I’m afraid it will not get fixed for 5.4 and there’ll be at least another half a year until I can use Qt 5 in my project (which means I won’t be able to use C++ 11 for that much longer). Is there any way I can raise attention to this bug? https://bugreports.qt-project.org/browse/QTBUG-39313

Problem with signing Qt apps on Mac OS X 10.9.5 and later

$
0
0
Dear colleagues, I have faced the problem with signing my app on Mac OS X 10.9.5, Qt 4.8.6 (LGPL). I have read about wrong Qt frameworks structure for new Mac OS X “codesign” and absent info.plist files after running macdeployqt: you can look at https://bugreports.qt-project.org/browse/QTBUG-38511 and https://developer.apple.com/library/mac/technotes/tn2206/_index.html#//apple_ref/doc/uid/DTS40007919-CH1-TNTAG205 (“Changes in OS X 10.9.5 and Yosemite Developer Preview 5”). To localize the problem, I have created the simple Qt app using QtCore and QtGui, and tried different methods suggested in forums (after running macdeployqt). The 1st method is to copy info.plist files from Qt location to the Resources folders in s-test.app/Contens/Frameworks/Qt*.framework/ (this folders are empty after macdeployqt); sign dylibs, frameworks, app – each call with —deep option. CODESIGN IS OK, BUT “spctl -a -t exec -vv” REJECTED THE APP (“obsolete resource envelope”). The 2nd method is to move Resources folders from s-test.app/Contents/Frameworks/Qt*.framework/ to s-test.app/Contents/Frameworks/Qt*.framework/Versions/4/, copy info.plist files from Qt location to these Resources folders, create symlinks “Current”, “Resources”, “Qt*”; sign dylibs, frameworks, app – each call with —deep option. CODESIGN FAILED WITH MESSAGE “unsealed contents present in the root directory of an embedded framework In subcomponent: /Developer/res-plan/bin/s-test.app/Contents/Frameworks/QtCore.framework” (Please look at the listing below) I also tried codesign without —depp – no success. Could you give me simple instruction – how to fix the problem manually and sign the app to be accepted by OS X 10.9.5 and later? Or we have to wait for an update of Qt 4.8? METHOD 1 (without fixing Frameworks structure, like in deploy.txt from https://bugreports.qt-project.org/browse/QTBUG-38511) —————————————————————————————————————— 1) cp /Library/Frameworks/QtCore.framework/Contents/Info.plist s-test.app/Contents/Frameworks/QtCore.framework/Resources/    cp /Library/Frameworks/QtGui.framework/Contents/Info.plist s-test.app/Contents/Frameworks/QtGui.framework/Resources/     2) find s-test.app/Contents -name *.dylib | xargs -I $ codesign -vvvv --force --verify --deep --verbose --sign "Developer ID Application: Alexander Ilyin" $    find s-test.app/Contents -name Qt* -type f | xargs -I $ codesign -vvvv --force --verify --deep --verbose --sign "Developer ID Application: Alexander Ilyin" $    codesign -vvvv --force --verify --deep --verbose --sign "Developer ID Application: Alexander Ilyin" s-test.app   RESULT - CODESIGN IS OK, BUT "spctl -a -t exec -vv" REJECTED THE APP:   ... (dylibs OK) s-test.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore: signed Mach-O thin (x86_64) [QtCore] s-test.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui: signed Mach-O thin (x86_64) [QtGui] s-test.app: signed bundle with Mach-O thin (x86_64) [com.yourcompany.s-test]   $ spctl -a -t exec -vv s-test.app s-test.app: rejected source=obsolete resource envelope   $ codesign --verify --deep --verbose=3 s-test.app --prepared:/Developer/res-plan/bin/s-test.app/Contents/Framework/QtCore.framework --validated:/Developer/res-plan/bin/s-test.app/Contents/Frameworks/QtCore.framework s-test.app: embedded framework contains modified or invalid version In subcomponent: /Developer/res-plan/bin/s-test.app/Contents/Frameworks/QtCore.framework   METHOD 2 (with fixing Frameworks structure) ----------------------------------------------------------------------------   1) mv /Developer/res-plan/bin/s-test.app/Contents/Frameworks/QtCore.framework/Resources s-test.app/Contents/Frameworks/QtCore.framework/Versions/4/    cp /Library/Frameworks/QtCore.framework/Contents/Info.plist s-test.app/Contents/Frameworks/QtCore.framework/Versions/4/Resources/    ln -s /Developer/res-plan/bin/s-test.app/Contents/Frameworks/QtCore.framework/Versions/4/ s-test.app/Contents/Frameworks/QtCore.framework/Versions/Current    ln -s /Developer/res-plan/bin/s-test.app/Contents/Frameworks/QtCore.framework/Versions/Current/Resources/ s-test.app/Contents/Frameworks/QtCore.framework/Resources    ln -s /Developer/res-plan/bin/s-test.app/Contents/Frameworks/QtCore.framework/Versions/Current/QtCore s-test.app/Contents/Frameworks/QtCore.framework/QtCore      ... (similar 5 instructions for QtGui)   2) find s-test.app/Contents -name *.dylib | xargs -I $ codesign -vvvv --force --verify --deep --verbose --sign "Developer ID Application: Alexander Ilyin" $    find s-test.app/Contents -name Qt* -type f | xargs -I $ codesign -vvvv --force --verify --deep --verbose --sign "Developer ID Application: Alexander Ilyin" $    codesign -vvvv --force --verify --deep --verbose --sign "Developer ID Application: Alexander Ilyin" s-test.app   RESULT - CODESIGN FAILED :   ... (dylibs OK) s-test.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore: signed bundle with Mach-O thin (x86_64) [4] s-test.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui: signed Mach-O thin (x86_64) [QtGui] s-test.app: unsealed contents present in the root directory of an embedded framework In subcomponent: /Developer/res-plan/bin/s-test.app/Contents/Frameworks/QtCore.framework —————————————————————————————————————— Thank you in advance.

how to include Curl library ?

$
0
0
I have a program that has #include <curl/curl.h> line. How can i include Curl library to my existing project? I use 64 bit OS and Qtcreator.

Unable To Find Configure Command

$
0
0
I am trying to compile QT statically. However I am unable to run the configure command as I get the following. ‘configure’ is not recognized as an internal or external program. I assume this is because I am looking in the wrong location for it. I have tried using the windows command prompt and the one included with QT. I’ve also tried reinstalling QT 5.3 without any luck.

[SOLVED] QTest an subprojects: How to link against application with "TEMPLATE = app" configuration?

$
0
0
Hi :) I’m currently trying to make Unit-Testing (QTest) work in my project. I took this [gitorious.org] project as an reference on how I could struture the whole thing. However, I’ve been trying to find a solution for a “undefined reference”-error for hours now. Anyway, let me first describe what my project looks like now: This is my current filestructure (please note that my project is a lot bigger, but these are the essential parts): MyApp | |   buildInfo.pri (A) |   libraryIncludes.pri (B) |   MyApp.pro (C) |   +---build |   +---src |   \---tests |               +---MyApp |   |   MyApp.pro (D) |   |   deployment.pri |   |   inputvectors.h (E) |   |   inputvectors.cpp (F) |   |   main.cpp |   |       \---tests     |   tests.pro (G)     \   testinputvectors.cpp (H) File A (buildInfo.pri): ROOT_DIRECTORY = $$PWD BUILD_DIRECTORY = $${ROOT_DIRECTORY}/build TESTS_DIRECTORY = $${BUILD_DIRECTORY}/tests File B (libraryIncludes.pri): INCLUDEPATH += $$PWD/MyApp DEPENDPATH += $$PWD/MyApp File C (MyApp.pro): include(buildInfo.pri)   # This variable contains the name of the template to use when generating the project. # "subdirs"-option: Creates a Makefile for building targets in subdirectories. # The subdirectories are specified using the SUBDIRS variable. For more information see: # http:#qt-project.org/doc/qt-5/qmake-variable-reference.html#template TEMPLATE = subdirs   # specify directory for target file DESTDIR = $${BUILD_DIRECTORY} # where to place intermediate object files OBJECTS_DIR = $${BUILD_DIRECTORY} # where to place intermediate moc files MOC_DIR = $${BUILD_DIRECTORY}   SUBDIRS += \     MyApp \     tests File D (MyApp.pro): include(../buildInfo.pri)   TEMPLATE = app   QT += qml \       quick \       gui \       widgets \       core   # specify directory for target file DESTDIR = $${BUILD_DIRECTORY} # where to place intermediate object files OBJECTS_DIR = $${BUILD_DIRECTORY} # where to place intermediate moc files MOC_DIR = $${BUILD_DIRECTORY}   SOURCES += main.cpp \     inputvectors.cpp \   RESOURCES += qml.qrc   # Default rules for deployment. include(deployment.pri)   HEADERS += \     inputvectors.h File E (inputvectors.h): #ifndef INPUTVECTORS_H #define INPUTVECTORS_H   #include <QList> #include <QString>   class InputVectors {   public:     InputVectors();     InputVectors(QList<QString> columnHeadings,                  QList<QList<unsigned int> > table);       QList<QString> getHeadings();     QList<QList<unsigned int> > getValues();     private:     QList<QString> columnHeadings;     QList<QList<unsigned int> > table; };   #endif // INPUTVECTORS_H File F (inputvectors.cpp): #include "inputvectors.h"   InputVectors::InputVectors(QList<QString> columnHeadings,                            QList<QList<unsigned int> > table) {     this->table = table;     this->columnHeadings = columnHeadings; }   QList<QList<unsigned int> > InputVectors::getValues() {     return this->table; }   QList<QString> InputVectors::getHeadings() {     return this->columnHeadings; } File G (tests.pro): include(../buildInfo.pri)   QT += testlib \       core   CONFIG += testcase   include(../libraryIncludes.pri)   DESTDIR = $${TESTS_DIRECTORY} OBJECTS_DIR = $${TESTS_DIRECTORY} MOC_DIR = $${TESTS_DIRECTORY}   SOURCES += \    testinputvectors.cpp       File H (testinputvectors.cpp):, #include <QtTest/QtTest>   #include "inputvectors.h"   class TestInputVectors: public QObject {     Q_OBJECT   private slots:     void openFile(); };   void TestInputVectors::openFile() {     QList<QString> columnHeadings;     columnHeadings.append("test");     QList<unsigned int> tmp;     tmp.append(2);     QList<QList<unsigned int> > table;     table.append(tmp);     InputVectors test = InputVectors(columnHeadings, table); }   QTEST_MAIN(TestInputVectors) #include "testinputvectors.moc" When I change the “TEMPLATE = app” to “TEMPLATE = lib” in the MyApp.pro (D) file and link it inside the libraryIncludes.pri, it all works as expected. However, when I write the “TEMPLATE = app”, I get an error message: testinputvectors.cpp:20: undefined reference to `InputVectors::InputVectors(QList<QString>, QList<QList<unsigned int> >)’ collect2.exe: error: ld returned 1 exit status BTW: QtCreate does not mark the #include “inputvectors.h” with a wavy underline as it would normally do if it cannot find a file. How can I access the functions to be tested from the testing-project? Thanks in advance, mozzbozz TL;DR: I have two subprojects (main and tests) on the same layer where I want to test the main “MyApp”-project with the tests placed inside the “tests”-project. However, MyApp is not “TEMPLATE = lib” but “TEMPLATE = app” and I cannot figure out how to correctly access the functions of MyApp from tests.

Qt Creator cannot detect gcc compiler

$
0
0
Hello, I recently installed the new Ubuntu version 14.04 and tried to get the Qt version 5.3.2 to work. But after installing Qt (i tried online and offline installer) i got the error message that qt creator needs a compiler to create the project. Then i saw in the kit settings that qt didn’t set a gcc compiler automatically. I knew that ubuntu brings a gcc compiler with it so i added the compiler by myself. After this, a red icon in the kit settings, between my qt version, had the following error message: The compiler “GCC”(x86-linux-generic-elf-64bit) cannot create code for Qt-version “Qt 5.3 GCC 32bit”(x86-linux-generic-elf-32bit). My compiler path is “/usr/bin/gcc”. I tried to find any solution in the internet, but couldn’t find one. I am very thankful for every answer that helps and sorry for grammar mistakes, english is not my native language. Thuum

Looking to hire a consultant on Qt - 300$

$
0
0
Hi Everyone, I am looking for somebody to help me on a project. You should have experience compiling QtMultimedia under the Rasberry Pi and should have good c++ and Linux experience. I am not looking for the candidate to do any work. Just to guide me through compilation and a hello world of QtMultimedia in very simple and layman terms. I ONLY want to use 1 class in Qt on the Rasberry Pi. That is QMediaPlayer to play audio files. Whoever is interested please email me at hadiesper@gmail.com. Any questions are welcome on this thread. The project will involve a couple skype calls and emails back and forth. My budget is 300$ for this project and payment will be made via paypal in 75$ increments upon progress. Brief about my project: I am making a TCP/IP media player that plays MP3 files from a local NAS. I have already completed the code for the entire project using IRRKLANG in C++ and under Linux x64 Ubuntu. So the purpose of working with you would be to port my project to the Rasberry Pi and replace IRRKLANG with QMEDIAPLAYER. Again, no coding will be required, I just need to be able to run this code below in a sustainable and repeatable way: player = new QMediaPlayer; connect(player, SIGNAL(positionChanged(qint64)), this, SLOT(positionChanged(qint64))); player->setMedia(QUrl::fromLocalFile("/Users/me/Music/coolsong.mp3")); player->setVolume(50); player->play(); P.S: I also need help with getting NMBLookup to work on the Rasberry Pi from the command line.

Release version act weird (qt_message_output9QtMsgTypeRK18QMessageLogContextRK7QString)

$
0
0
Hi guys, I got all the .dll needed, but when I launch my .exe release, I got this message. “No precedure point qt_message_output9QtMsgTypeRK18QMessageLogContextRK7QString founded in the lib of dynamics links.” Can someone know what does that mean and how to fix it ?

Build the project according settings in .pro.user file from shell

$
0
0
I know how to use qmake and make. I mostly develop my code in Qt Creator, but sometimes I need to build all my projects from script (for automated deployment). I’ve configured my build via build settings (like build directory, flags, etc.) in Qt Creator already. I don’t want to copy paste those settings into script by hand but to use them. I looked at the *.pro.user file and found that I cannot just extract make command and qmake command from XML, Qt Creator constructs those commands from more primitive XML values. Is there way to ask qmake or qtcreator to build the project exactly like it builds by pressing “Build” button in Qt Creator?

Installer Error : com.nokia.ndk.tools.harmattan.sysroot

$
0
0
Hello; I want to install qt sdk 1.2.1. I got an error in installation process like this : Error during installation process (com.nokia.ndk.tools.harmattan.sysroot): Execution failed(Unexpected exit code: 1): “/home/bahadir/QtSDK/Madde/postinstall/harmattan-postinstall.sh” so can you give me a solution for this error ? thanks a lot.

How to get phonon4qt5?

$
0
0
Hi, I want to use phonon4qt5 in my project but i cant find any repo or package. I found nothing on site http://api.kde.org/kdesupport-api/phonon-apidocs/phonon/html/phonon4qt5.html Can you help? I’m using Ubuntu.

Installing several editions

$
0
0
Hello I would appreciate if someone can clarify the following to me. I have a mac and I installed Qt some time ago. I think I ve installed the not commercial edition. However, for a particular reason (I am going to a seminar) I am required to have the “enterprise “ edition (trial version) I think this edition is valid for a limited number of days Can I have both editions installed? I wouldnt want to have my original Qt uninstalled so as to have this enterprise only for a limited time Thanks very much

dyld Library not loaded on Mac OSX Maverick 10.9.4

$
0
0
I am new to Qt and C++. I wrote my first Qt code today : #include <QApplication> #include <QPushButton>   int main(int argc, char *argv[]) {     QApplication app(argc, argv);       QPushButton bouton("Salut les Zéros, la forme ?");     bouton.show();       return app.exec(); } When I build this code, everything is ok. But when I try to run it I get the following error message : dyld: Library not loaded: /work/build/______________________________PADDING______________________________/lib/QtWidgets.framework/Versions/5/QtWidgets Referenced from: /Users/samueldrouin/Fichiers/Programmation/C++/Tutorial/first_gui/build-first_gui-Desktop_Qt_5_3_clang_64bit-Debug/first_gui.app/Contents/MacOS/first_gui Reason: image not found The program has unexpectedly finished. Link to the /lib folder look like they are correct. I tried to reinstall Qt. Xcode is installed. I also tried the terminal command : otool -L on Qtwidget exec but I do not really understand how to use the command.

[SOLVED] Is there a Qt 5.4 Beta build for Mac?

$
0
0
I can’t find it anywhere, only see Linux and Windows versions. Does a Mac build exist?

Problems at Deploying, Qt 5.3 with onlineInstaller - configure.bat missing?

$
0
0
Hey Guys (And Girls ofc), I started programming in Qt some Weeks ago (first Time i needed a real GUI) and I’m very pleased with my result. Now I wanted to use my Software, so i needed to deploy it (include the static linked libs). So I googled and found some Guides like http://qt-project.org/doc/qt-5/windows-deployment.html. But all Guides point me to a configure.bat missing in my Qt Dirs. Any ideas where to look for it? Greetings, Olli

Cannot run QtCreator examples on 64 bit W7 laptop

$
0
0
Hi, I’m a first timer. I have two laptops both running W7. I installed VS2013 on both as well as qt-opensource-windows-x86-msvc2013_64-5.3.1 and qt-vs-addin-1.2.3-opensource. Both PCs are 64 bit. All is well on one of the PCs (a Dell). I can run the QtCreator examples. However, on the second PC (an HP) when I try to run the examples I get the following: 13:15:19: Running steps for project tableview… 13:15:19: Starting: “C:\Qt\Qt5.3.1\5.3\msvc2013_64\bin\qmake.exe” C:\Qt\Qt5.3.1\Examples\Qt-5.3\quick\controls\tableview\tableview.pro -r -spec win32-msvc2013 “CONFIG+=debug” “CONFIG+=declarative_debug” “CONFIG+=qml_debug” 13:15:19: The process “C:\Qt\Qt5.3.1\5.3\msvc2013_64\bin\qmake.exe” exited normally. 13:15:19: Starting: “C:\Qt\Qt5.3.1\Tools\QtCreator\bin\jom.exe” C:\Qt\Qt5.3.1\Tools\QtCreator\bin\jom.exe -f Makefile.Debug cl -c -nologo -Zm200 -Zc:wchar_t -FS -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc /Fddebug\tableview.pdb -DUNICODE -DWIN32 -DWIN64 -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_QUICK_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -I”..\shared” -I“C:\Qt\Qt5.3.1\5.3\msvc2013_64\include” -I“C:\Qt\Qt5.3.1\5.3\msvc2013_64\include\QtQuick” -I“C:\Qt\Qt5.3.1\5.3\msvc2013_64\include\QtQml” -I“C:\Qt\Qt5.3.1\5.3\msvc2013_64\include\QtWidgets” -I“C:\Qt\Qt5.3.1\5.3\msvc2013_64\include\QtNetwork” -I“C:\Qt\Qt5.3.1\5.3\msvc2013_64\include\QtGui” -I“C:\Qt\Qt5.3.1\5.3\msvc2013_64\include\QtANGLE” -I“C:\Qt\Qt5.3.1\5.3\msvc2013_64\include\QtCore” -I“debug” -I”.” -I“C:\Qt\Qt5.3.1\5.3\msvc2013_64\mkspecs\win32-msvc2013” -Fodebug\ @C:\Users\Don\AppData\Local\Temp\main.obj.6176.0.jom C:\Qt\Qt5.3.1\5.3\msvc2013_64\bin\rcc.exe -name resources ..\tableview\resources.qrc -o debug\qrc_resources.cpp main.cpp jom: C:\Qt\Qt5.3.1\Examples\Qt-5.3\quick\controls\build-tableview-Desktop_Qt_5_3_MSVC2013_64bit-Debug\Makefile.Debug [debug\qrc_resources.cpp] Error 2 jom: C:\Qt\Qt5.3.1\Examples\Qt-5.3\quick\controls\build-tableview-Desktop_Qt_5_3_MSVC2013_64bit-Debug\Makefile [debug] Error 2 13:15:21: The process “C:\Qt\Qt5.3.1\Tools\QtCreator\bin\jom.exe” exited with code 2. Error while building/deploying project tableview (kit: Desktop Qt 5.3 MSVC2013 64bit) When executing step ‘Make’ 13:15:21: Elapsed time: 00:02. I’ve have searched and cannot find a solution. Any help would be appreciated. Thanks. Don

Migrating from 4.x to 5.x Problem with QHttp class addon

$
0
0
Hi everybody, I have downloaded a whole project that was created using Qt 4.4, i need to work and improve this project but im currently using the latest version of Qt. Ive read the guide http://qt-project.org/wiki/Transition_from_Qt_4.x_to_Qt5 and with its help, i was able to remove most of the errors I get while compiling. Now im stuck with one thats not mentioned in that guide, and its with the QHttp class, that according to Qt Creator, it doesnt exist. Ive been doing some research, and indeed, that class no longer exists, according to the official documentation The QFtp, QUrlInfo, QHttp classes are not public anymore. Use QNetworkAccessManager instead to avoid binary breaks in the future. Programs that require raw FTP/HTTP streams, can use the compatibility add-ons QtFtp and QtHttp which provides the QFtp and QHttp classes as they existed in Qt 4.bq. In my case, migrating to a newer class is out of the question, i need to get this project working first. So ive downloaded the add-on, but i havent found a guide on how to make it work. Im really new to this part of Qt (I just have experience working with QtCreator and making apps with it, i have never for example, ran qmake through a console, so im probably doing everything extremely bad.) Searching through the forums I found the following guidelines im trying to follow: Download the sources for the add-on from gitorious [qt.gitorious.org] Extract the sources somewhere (e.g. Qt5.x.y/Src/qtmyaddon) Open a console in that folder Run qmake Run make (or nmake or mingw32-make or whatever) Run make install (nmake install, mingw32-make install, …) In the .pro file of your project, add “QT += myaddon” (e.g. “QT += http”) Run qmake on your project Compile your project. Ok, so ive Downloaded the sources, extracted them in Src and opened the console in that folder, so far so good. I have no clue on how to “Run Qmake” so ive read the guide found in http://qt-project.org/doc/qt-4.8/qmake-tutorial.html This guide first explains how to create a .pro file. As the sources ive downloaded already have a .pro file, i skipped that part (should i?). The files I have in my main QHttp folder are: Folders: include, mkscpecs, modules, src, test Files: .qmake.conf, .tag, LGPL_EXCEPTION.txt, LICENCE.FDL, LICENCE.LGPL, LICENCE.PREVIEW.COMMERCIAL, qthttp.pro, readme.txt, sync.profile. So in my console I run qmake -o Makefile qthttp.pro A Makefile is created! So far so good, so then in the console i run nmake I get the following output //————————————————————————————————————————————————— Utilidad de mantenimiento de programas de Microsoft ® versión 10.00.40219.01 © Microsoft Corporation. Reservados todos los derechos. cd src\ && ( if not exist Makefile C:\Qt\Qt5.3.2\5.3\mingw482_32\bin\qma ke.exe C:\Qt\Qt5.3.2\5.3\Src\qhttp\src\src.pro -o Makefile ) && “C:\Program File s\Microsoft Visual Studio 10.0\VC\bin\nmake.exe” -f Makefile Utilidad de mantenimiento de programas de Microsoft ® versión 10.00.40219.01 © Microsoft Corporation. Reservados todos los derechos. cd qhttp\ && ( if not exist Makefile C:\Qt\Qt5.3.2\5.3\mingw482_32\bin\q make.exe C:\Qt\Qt5.3.2\5.3\Src\qhttp\src\qhttp\qhttp.pro -o Makefile ) && “C:\Pr ogram Files\Microsoft Visual Studio 10.0\VC\bin\nmake.exe” -f Makefile Project ERROR: Missing CMake tests. NMAKE : fatal error U1077: ‘cd’ : código devuelto ‘0×3’ Stop. NMAKE : fatal error U1077: ‘cd’ : código devuelto ‘0×2’ Stop. //———————————————————————————————————————————- So now, I am 100% lost. Navigating through the QHttp folder i find that theres other .pro file, on the following directory QtHttp >> src >> QHttp Where I find the following files qhttp.cpp qhttp.h qhttp.pro qhttpauthehticator.cpp qhttpauthenticator_p.h qringbuffer_p.h So i thought maybe this is the place where I should use the qmake etc etc, but when i try to do so and i run qmake -o Makefile qhttp.pro I get an inmediate Project ERROR: Missing CMake tests. So i guess this is even worse. Ok, im sorry for the extremelly long post, I tried to be as detailed as i could be in order to help you guys help me :D I know that Im probably making huge mistakes as i really have no clue of what im doing, please be patient with me. Could someone guide me, or point me to a guide/tutorial that could help me? I tried to investigate as much as i could do before asking for help. Thanks in advance! Edit:: Forgot to mention (dont know if its neccesary at all, but as i have already made a huge and annoying post, thought adding a few extra info wouldnt hurt) Im running Qt Creator 3.2.1 (opensource) Based on Qt 5.3.2 (MSVC 2010, 32bit) Built on Sep 12 2014 at 15:47:18
Viewing all 2113 articles
Browse latest View live