Results 1 to 5 of 5

Thread: LNK1181 cannot open input file 'obj\filename.obj'

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,349
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    318
    Thanked 872 Times in 859 Posts

    Default Re: LNK1181 cannot open input file 'obj\filename.obj'

    Error LNK1104 cannot open file 'qmapcontrol0.lib' Citymap PathToQMapControl\QMapControl 0.9.7.9\QMapControl\Samples\Citymap\LINK 1
    Because you built your solution from Samples.pro, not QMapControl.pro, one directory level higher. Samples is not the top-level directory when you unzip the distribution file, QMapControl is. Try again using QMapControl.pro as input to VS. Starting there also adds the Samples projects and sets them to be dependent on QMapControl0.lib/dll, so these will be built too.

    Do I have to specify for nmake that I want to target 64bit?
    It looks like you opened a 32-bit Developer Command Prompt window. If you have only a 64-bit Qt installed, this won't work. There should be a corresponding 64-bit Developer Command Prompt option on your menu. Use that.

    Edit...

    On my MSVC 2015 install, there is a submenu for "Windows Desktop Command Prompts". Use the "VS2015 x64 Native Tools Command Prompt" from that. If you don't see it, make yourself a .bat file and put this line in it:

    Qt Code:
    1. %comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"" amd64
    To copy to clipboard, switch view to plain text mode 

    (Change the path to point to where you have MSVC installed if that isn't correct). Put a shortcut to this .bat file on your desktop and you should be able to double-click it to launch the developer window.
    Last edited by d_stranz; 18th May 2016 at 17:29.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  2. The following user says thank you to d_stranz for this useful post:

    HappenedTomatoes (19th May 2016)

  3. #2
    Join Date
    May 2016
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    1

    Default Re: LNK1181 cannot open input file 'obj\filename.obj'

    Thank you so much, building QMapControl.pro finally worked!

Similar Threads

  1. Replies: 1
    Last Post: 16th February 2016, 16:56
  2. Replies: 1
    Last Post: 6th December 2009, 14:28
  3. Replies: 7
    Last Post: 18th September 2009, 14:44
  4. Replies: 1
    Last Post: 27th March 2009, 06:22
  5. Replies: 4
    Last Post: 24th November 2007, 13:33

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.