Skip to content

Installation and Deployment

Your Qt just doesn't want to build? Your compiler can't find the libs? Here's where you find comfort and understanding. And help.
9.7k Topics 50.8k Posts
QtWS25 Last Chance
  • Solved

    7
    0 Votes
    7 Posts
    2k Views
    T
    [quote author="Tobias Hunger" date="1340792406"]Tucnak: Rereading your statement again (after being nudged by Mirko:) it most likely was not meant to be rude. Please accept my apology for being rude myself.[/quote] We are all people. We are making mistakes... It's a life)).
  • Qt build include dirs - QtSDK comparison

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Qtsdk-error

    3
    0 Votes
    3 Posts
    1k Views
    sierdzioS
    Or even just the build deps: @ sudo apt-get build-dep libqt4-dev @
  • Using << ostream to a QDataStream, is it possible ?

    9
    0 Votes
    9 Posts
    9k Views
    K
    [quote author="devlikeme" date="1340723379"]Thanks to your advice, I began to see how to do ... My understanding is the following, I have a friend ostream& operator<<() in a class. I use a QdataStream << operator in my Qt Application. So I need a buffer for my ostream to send that buffer to the QDataStream. My first problem being buffering my ostream, thanks to google, i think but i'm not sure that rdbuf is my solution. My second problem is what can I do with my buffer, again with no certainty, i believe that using streambuf::sgetc I might be able to create a QDataStream using the QDataStream & operator<< ( const char * s ) Google lost me my friend :( I really need a "how to" on this one because i'm lost between the documentations of C++ reference and Qt. They are sometimes hard to understand. I'm going to try what i explainded. I'll post my code if I succeed :) [/quote] No, you do not have to make so complicated. Your ostream & operator<< can be used directly with an ostringstream. E.g. @ #include <sstream> // required for ostringstream void foo () { std :: ostringstream ostr; int nr = 10; ostr << nr; // streams 10 to ostr; string str = ostr.str(); // copies the ostringstream to a string } @
  • QT an QTcpSocket

    2
    0 Votes
    2 Posts
    2k Views
    V
    QTcpSocket has asynchronious model of work. Send data after connection will be established.
  • Debugger does not work on Windows 7/64 with SDK 1.2

    5
    0 Votes
    5 Posts
    3k Views
    F
    I had the exact same problem, thanks for solution!
  • I need help to create .exe or .msi file of my project .

    8
    0 Votes
    8 Posts
    4k Views
    A
    [quote author="AcerExtensa" date="1340184734"]Maybe to ask this question about mac project deployment in separate thread in "Installation and Deployment" forum section will be a better idea.[/quote] I have just moved this thread to that forum.
  • 0 Votes
    7 Posts
    6k Views
    H
    there is a constructor and the object is created/deleted the common way (see my initial post, i added some lines of ComponentManager.cpp). when using a library that contains the dynamically linked qt sources all goes fine, the application can be compiled/linked and executed.
  • Building Qt 4.8.2 with clang and libc++

    3
    0 Votes
    3 Posts
    5k Views
    N
    Here is some additional info: Linux system: Ubuntu 11.04 Clang 3.1 release platform unsupported/linux-clang used to configure Here is what I had to do to get it compiling with clang and libc++: I had to disable QtScript and translations (-nomake translations -no-script) Change corelib/tools/qiterator.h to disable forward-declaration: +// Forward declaration causes problem when compiling with libc++ +#if 0 namespace std { struct bidirectional_iterator_tag; struct random_access_iterator_tag; } +#endif +#include <iterator> Ofcourse this is assuming that you have compiled and created the softlinks mentioned on libc++ website. HTH
  • Building static libraries

    11
    0 Votes
    11 Posts
    14k Views
    R
    the installer you used is the one i used too...it builds dynamically linking Qt libs... to link statically you need to build static version of qt(instructions for which are given in the many links provided in earlier posts)
  • Compile error on Mac OS X Lion, Qt 4.8.1, 64 bits

    4
    0 Votes
    4 Posts
    4k Views
    S
    I got past this same link error by using the OR operator || instead of |: @isEmpty(QMAKE_MAC_SDK) || contains(QMAKE_MAC_SDK, "/Developer/SDKs/MacOSX10.[67].sdk") {@
  • [Solved]Qt Installation with MSVC or MinGW

    3
    0 Votes
    3 Posts
    7k Views
    R
    I had tried it, but not worked. Since my system is windows XP, I couldn't find a MSVC debugger. So please let me know how to configure MinGW tool chain (including debugger). Do I need to install Qt libraries 4.8.2 for Windows (minGW 4.4, 318 MB) and Qt Creator 2.5.0 for Windows (30 MB) (Now installed MinGW using Offline installer - 1.7 GB) from the page http://qt.nokia.com/downloads
  • How to install qt application in /opt

    6
    0 Votes
    6 Posts
    5k Views
    D
    after update here is my pro file is it ok: @#------------------------------------------------- Project created by QtCreator 2012-05-30T18:47:13 #------------------------------------------------- QT += core gui webkit sql TARGET = letssee TEMPLATE = app documentation.path = /opt documentation.files = docs/* INSTALLS+=documentation SOURCES += main.cpp mainwindow.cpp webview.cpp cuteurl.cpp tabwidget.cpp searchbar.cpp searchenginebox.cpp historymanager/historymanager.cpp HEADERS += mainwindow.h webview.h cuteurl.h tabwidget.h searchbar.h searchenginebox.h historymanager/historymanager.h FORMS += mainwindow.ui @
  • Help to create .dmg file for MAC of my qt c++ project...

    5
    0 Votes
    5 Posts
    7k Views
    sierdzioS
    See Volker's docnote at the bottom of this page: "link":http://qt-project.org/doc/qt-4.8/deployment-mac.html.
  • Qt4 with X11 on Mac OSX Lion/Snow Leopard

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Building Qt for Tegra 2

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Qt installation in Linux

    4
    0 Votes
    4 Posts
    3k Views
    T
    Thanks for the replies. The Qt version I am trying to install is 4.8. the gcc version on my system is 4.2.4. The linux version info is: SUSE Linux Enterprise Server 10 (x86_64) VERSION = 10 PATCHLEVEL = 3 LSB_VERSION="core-2.0-noarch:core-3.0-noarch:core-2.0-x86_64:core-3.0-x86_64". Can you please tell me which Qt version will be OK with my system configuration? Tomma: How can I install  Qt from my linux distribution? I have the installer but it gives me the glic error.
  • Qt Release configure options

    3
    0 Votes
    3 Posts
    2k Views
    L
    You do not need to compile Qt itself just to compile the MySQL plugin; just follow "How to Build the QMYSQL Plugin on Windows":http://qt-project.org/doc/qt-4.8/sql-driver.html#how-to-build-the-qmysql-plugin-on-windows. If you want to build Qt anyways you'll get the default options but just calling <code>configure</code>.
  • Build stops at qdoc3

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Q: Connecting through WLAN

    3
    0 Votes
    3 Posts
    2k Views
    ?
    Like I said, I set it up already and I tested the connection in 'Tools - Linux Devices - "Test"' - and it gives me no errors at all. But when I try to deploy, run or build the application to the phone, it gives me an error which I mentioned in my previous post.