Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Error when building MongoDB from source on Windows 7 64 LNK1104: cannot open file 'libboost_thread-vc100-mt-gd-1_42.lib'
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Therefore  
View profile  
 More options Aug 22 2012, 8:44 pm
From: Therefore <thereforena...@gmail.com>
Date: Wed, 22 Aug 2012 17:44:48 -0700 (PDT)
Local: Wed, Aug 22 2012 8:44 pm
Subject: Error when building MongoDB from source on Windows 7 64 LNK1104: cannot open file 'libboost_thread-vc100-mt-gd-1_42.lib'

Windows 7 64 SP1
MongoDB 2.0.7
Boost 1.42
MS VS 2010 Ultimate

Trying to build MongoDB from source.

I downloaded 2.0.7 with Git. Then:

      scons --64

Errors out with:

            LINK : fatal error LNK1104: cannot open file
'libboost_thread-vc100-mt-gd-1_42.lib'

This exits in C:\boost\stage\lib.

I had previously built boost with:

           bjam --build-type=complete msvc stage          

I didn't see any mention of this file in config.log. One of the last lines
was:

link /nologo /NODEFAULTLIB:MSVCPRT /NODEFAULTLIB:MSVCRT
/OUT:.sconf_temp\conftest_6.exe /LIBPATH:C:\boost\Lib "/LIBPATH:C:\Program
Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\x64" /LIBPATH:C:\winpcap\Lib
ws2_32.lib kernel32.lib advapi32.lib Psapi.lib wpcap.lib
.sconf_temp\conftest_6.obj
LINK : fatal error LNK1181: cannot open input file 'wpcap.lib'
scons: Configure: no      

Thoughts?

Mark


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Milkie  
View profile   Translate to Translated (View Original)
 More options Aug 22 2012, 9:35 pm
From: Eric Milkie <mil...@10gen.com>
Date: Wed, 22 Aug 2012 21:35:51 -0400
Local: Wed, Aug 22 2012 9:35 pm
Subject: Re: [mongodb-dev] Error when building MongoDB from source on Windows 7 64 LNK1104: cannot open file 'libboost_thread-vc100-mt-gd-1_42.lib'

Hi Mark.
C:\boost\stage\lib is not provided as a LIBPATH on the linker command line. See http://www.mongodb.org/display/DOCS/Boost+and+Windows
For version 2.0.7 and below, you must put your Boost libraries in C:\boost\lib; this is where the MongoDB SConstruct is configured to look for it.

You can also try using version 2.2.0rc2; Boost is included in the distribution and you don't have to build it yourself.
-Eric

On Aug 22, 2012, at 8:44 PM, Therefore <thereforena...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Therefore  
View profile  
 More options Aug 23 2012, 3:06 am
From: Therefore <thereforena...@gmail.com>
Date: Thu, 23 Aug 2012 00:06:23 -0700 (PDT)
Local: Thurs, Aug 23 2012 3:06 am
Subject: Re: [mongodb-dev] Error when building MongoDB from source on Windows 7 64 LNK1104: cannot open file 'libboost_thread-vc100-mt-gd-1_42.lib'

Thank you Eric -- moving lib to the boost root worked.

However, apparently I'm just not getting how to build boost. Now my scon
--64 gives me this:

libboost_filesystem-vc100-mt-gd-1_42.lib(operations.obj) : fatal error
LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
scons: building terminated because of errors.

I'm inferring that this means my boost library was built for x86 whereas
I'm trying to build an x64 mongoDB.

Should I create another thread for this new issue?

Thanks,

Mark


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Milkie  
View profile   Translate to Translated (View Original)
 More options Aug 23 2012, 9:40 am
From: Eric Milkie <mil...@10gen.com>
Date: Thu, 23 Aug 2012 09:40:29 -0400
Local: Thurs, Aug 23 2012 9:40 am
Subject: Re: [mongodb-dev] Error when building MongoDB from source on Windows 7 64 LNK1104: cannot open file 'libboost_thread-vc100-mt-gd-1_42.lib'

I use the prebuilt boost libraries available on the MongoDB website and it works for me in 64-bit mode.  Offhand I'm not sure how to build a boost library from scratch that's correct.
-Eric

On Aug 23, 2012, at 3:06 AM, Therefore wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pedro Larroy  
View profile  
 More options Sep 13 2012, 2:18 pm
From: Pedro Larroy <pedro.larroy.li...@gmail.com>
Date: Thu, 13 Sep 2012 20:18:25 +0200
Local: Thurs, Sep 13 2012 2:18 pm
Subject: Re: [mongodb-dev] Error when building MongoDB from source on Windows 7 64 LNK1104: cannot open file 'libboost_thread-vc100-mt-gd-1_42.lib'
You can build boost from scratch by putting the following in a bat
file in boost root:

CALL "c:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\vcvarsall.bat" amd64
CALL bootstrap.bat
set BASE=%CD%
b2 -j8 --toolset=msvc --build-type=complete address-model=64
--with-serialization --with-thread --with-date_time
--with-program_options --with-graph --with-filesystem --with-iostreams
--with-chrono --with-test define=arch:SSE2 link=static threading=multi
--stagedir="%BASE%"

Pedro.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic