Results 1 to 8 of 8

Thread: Link error when compiling Qt 5.1.0 project in Visual Studio 2010

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,332
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    317
    Thanked 871 Times in 858 Posts

    Default Re: Link error when compiling Qt 5.1.0 project in Visual Studio 2010

    Look in the property pages for your project (right click on the project in the VS Solution Explorer, select Properties). Expand the Linker section, and on the first page (General), you will see an "Additional Library Directories" property. If you click the "..." button on the right, it will display a dialog where you can enter the paths to the directories that contain non-default libraries. You can use environment variables as part of the path specification (like $(QTDIR)\lib) or relative paths (like ..\..\lib).

    If you do this, you do not have to put full path names on each individual library in the Additional Dependencies list.

    As you have no doubt noticed, the directory layout for the Qt installation changed dramatically between 4.8 and 5.x. Also be aware that when you deploy your app, things have changed there, too. The Windows dependencies are now in a DLL, and that DLL must be placed in a specific subdirectory relative to your executable and all the other Qt DLLs.
    Last edited by d_stranz; 9th January 2014 at 21:34.

  2. #2
    Join Date
    Aug 2010
    Posts
    99
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    3

    Default Re: Link error when compiling Qt 5.1.0 project in Visual Studio 2010

    Quote Originally Posted by d_stranz View Post
    Look in the property pages for your project (right click on the project in the VS Solution Explorer, select Properties). Expand the Linker section, and on the first page (General), you will see an "Additional Library Directories" property. If you click the "..." button on the right, it will display a dialog where you can enter the paths to the directories that contain non-default libraries. You can use environment variables as part of the path specification (like $(QTDIR)\lib) or relative paths (like ..\..\lib).

    If you do this, you do not have to put full path names on each individual library in the Additional Dependencies list.
    Thanks mate, that's exactly what i was looking for. I probably never noticed it before because i only had to do it once on my old computer.
    [Window Detective] - Windows UI spy utility
    [War Thunder]

Similar Threads

  1. Replies: 2
    Last Post: 29th September 2013, 07:05
  2. Replies: 0
    Last Post: 19th March 2013, 18:48
  3. Replies: 2
    Last Post: 26th November 2012, 08:09
  4. Replies: 4
    Last Post: 13th November 2012, 21:46
  5. Problem compiling QT 4,8,0 in windows 7 x64 with visual studio 2010
    By phate89 in forum Installation and Deployment
    Replies: 0
    Last Post: 11th January 2012, 17:14

Tags for this Thread

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.