Results 1 to 8 of 8

Thread: Linking fail when compileing Qt 4.7.1 with VS2010 on win 7 x64

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2010
    Posts
    145
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1
    Thanked 18 Times in 17 Posts

    Default Re: Linking fail when compileing Qt 4.7.1 with VS2010 on win 7 x64

    He isn't trying to build 64bit libs, though. He's just trying to rebuild the 32bit libs on Windows 7 x64.
    NMAKE : fatal error U1077: '"C:\Program Files --> (x86) <---\Microsoft Visual Studio 10.0
    Either way, it wouldn't make a difference.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 268 Times in 268 Posts
    Wiki edits
    20

    Default Re: Linking fail when compileing Qt 4.7.1 with VS2010 on win 7 x64

    I mean this line:
    Qt Code:
    1. LINK : fatal error LNK1104: cannot open file 'libpng.lib'
    To copy to clipboard, switch view to plain text mode 
    If he installed such a file, and the linker still can't open it, it might be because of several problems. But because I saw both 64bit and 32bit in the same post, that would have been my first guess.

  3. #3
    Join Date
    Sep 2010
    Posts
    145
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1
    Thanked 18 Times in 17 Posts

    Default Re: Linking fail when compileing Qt 4.7.1 with VS2010 on win 7 x64

    You do realize that both the x86 and x64 libs are built from the same configuration right?
    Qt Code:
    1. win32-msvc2010
    To copy to clipboard, switch view to plain text mode 
    when fed to configure can lead to x86 or x64 output.

  4. #4
    Join Date
    Dec 2009
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default Re: Linking fail when compileing Qt 4.7.1 with VS2010 on win 7 x64

    I was writing a post but I figured out the problem. In order to install Qt, I opened a console to run 'configure -platform win32-g++'. As it did not find mingw32-make i changed windows PATH variable to include NodiaQtSDK\mingw\bin. Ater changing it I tried to install several times at the same console . While I was trying to copy and paste the instalation log here I notice that the PATH variable was not including the required mingw directory yet. Closed and opened the console again and voilá!
    Decided to keep it here just in case someone as "distracted" as me is having the same problem!

    By the way, is it possible to comple the whole thing to win64, using some sort of mingw64? I will google it around but any answear here would be nice.
    Last edited by ferrabras; 7th February 2011 at 13:46.

Similar Threads

  1. Replies: 0
    Last Post: 12th April 2010, 10:21
  2. VS2010 Support
    By Dato0011 in forum Qt Tools
    Replies: 3
    Last Post: 19th February 2010, 17:57
  3. QItemSelectionModel::selectedIndexes() fail
    By Stapl in forum Qt Programming
    Replies: 1
    Last Post: 22nd October 2009, 01:54
  4. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  5. OT : QSql - connections fail after a while.
    By Harvey West in forum Qt Programming
    Replies: 6
    Last Post: 19th January 2007, 13:46

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.