[CMake] Problem with Linking CXX shared module

nazia zaman nazia.zaman11 at gmail.com
Sat May 30 02:39:47 EDT 2009


This time I'm using "NMake Makefiles" and my attempt to run nmake failed
> with the following errors:



> Scanning dependencies of target hello
> [100%] Building CXX object CMakeFiles/hello.dir/hello.cpp.obj
> hello.cpp
> Linking CXX shared module hello.dll
> LINK : fatal error LNK1104: cannot open file
> 'boost_python-vc90-mt-gd-1_39.lib'
> LINK Pass 1 failed. with 1104
> NMAKE : fatal error U1077: '"C:\Program Files\CMake 2.6\bin\cmake.exe"' :
> return
>  code '0xffffffff'
> Stop.
> NMAKE : fatal error U1077: '"F:\Visual Studio\VC\BIN\nmake.exe"' : return
> code '
> 0x2'
> Stop.
> NMAKE : fatal error U1077: '"F:\Visual Studio\VC\BIN\nmake.exe"' : return
> code '
> 0x2'
> Stop.


   I'm getting frustrated. Does anyone have any idea? I need your help guys.

   Nazia

>
>
> Message: 1
> Date: Fri, 29 May 2009 22:25:25 +0600
> From: nazia zaman <nazia.zaman11 at gmail.com>
> Subject: Re: [CMake] Problem with Linking CXX shared module
> To: cmake at cmake.org
> Message-ID:
>        <b0000b50905290925y39f72e10pa690819a6b42eec6 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> I made a mistake. My boost python library is made for Visual C++ 9 and
> I think I should have compiled it with 'cmake -G Visual Studio 9
> 2008'. This command creates a Visual Project. But I don't know how to
> create a *.dll file from this project so that I can use it as a
> library for python. Can anyone please help me?
>
> Nazia
>
> > Message: 2
> > Date: Thu, 28 May 2009 09:37:17 +0200
> > From: Andreas Pakulat <apaku at gmx.de>
> > Subject: Re: [CMake] Problem with Linking CXX shared module
> > To: cmake at cmake.org
> > Message-ID: <20090528073717.GA20841 at trinity.apaku.dnsalias.org>
> > Content-Type: text/plain; charset=us-ascii
> >
> > On 28.05.09 11:27:45, nazia zaman wrote:
> >
> >> # Find library locations using convenient cmake search functions
> >> include (FindBoost)
> >> include (FindPythonLibs)
> >
> > This is wrong, these modules shouldn't be include()'ed. You need to use
> > find_package(Boost) and find_package(PythonLibs). See also the cmake
> > manual. Additionally you need to supply the components for Boost that
> > you later want to link against (i.e. the boost libraries) as explained
> > in the cmake manual. Else Boost_LIBRARIES will be empty.
> >
> > Andreas
> >
> > --
> > You will be married within a year, and divorced within two.
> >
> >
> > ------------------------------
> >
> > _______________________________________________
> > CMake mailing list
> > CMake at cmake.org
> > http://www.cmake.org/mailman/listinfo/cmake
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090530/be195dd8/attachment.htm>


More information about the CMake mailing list