Results 1 to 3 of 3

Thread: qt application using cURL compiled in Visual Studio 2010

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2011
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default qt application using cURL compiled in Visual Studio 2010

    Hello everyone!,

    i am developing an application in which i am using cURL for getting source code of webpages. Now I need GUI a I choose Qt...
    But I have problem with linking cURL with Qt ..
    I am really confused, this is first time where I am linking multiple different libraries in windows.

    What I need:
    - it would be great if will be application portable. No install, just copy.
    - as small size of application as possible.

    I downloaded source code of Qt 4.7.4 and compiled with Visual Studio 2010, but without param -static. Then installed add-in/VS 2010, and write some code for GUI, then added cURL. But problem is, that my cUrl is compilided asstatic library, and now I have some problems with linking.

    I suppose that I must use cURL compiled as dynamic library, if I want use my actually compiled Qt.

    What would be better for my needs? Qt compiled as dynamic with cURL as dynamic, or all as static?
    Can somebody explain me, or give me some links where it is described?

    Thanks.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: qt application using cURL compiled in Visual Studio 2010

    You can use a static libcurl and a dynamic Qt without a problem. Since you don't tell us what the "I have some problems with linking" are so we cannot provide any specific help. You probably have incorrect or missing LIBS entries in your pro file.

Similar Threads

  1. Qt 4.7 and Visual Studio 2010 - cannot launch compiled Qt Applications
    By Schreihals in forum Installation and Deployment
    Replies: 1
    Last Post: 31st January 2011, 12:28
  2. Qt and Visual Studio 2010
    By SixDegrees in forum Qt Programming
    Replies: 6
    Last Post: 15th November 2010, 20:56
  3. Visual Studio Plugin (1.1.6) crashes Visual Studio (2010)
    By mboeni in forum Installation and Deployment
    Replies: 0
    Last Post: 11th October 2010, 17:46
  4. How to Qt4.7 Source with Visual Studio 2010
    By Aenima1981 in forum Installation and Deployment
    Replies: 0
    Last Post: 1st October 2010, 15:00
  5. Plan for Visual Studio 2010 (MSVC 2010)?
    By Vinzz in forum Qt Programming
    Replies: 1
    Last Post: 18th April 2010, 18:42

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.