[vtkusers] [VTK 5.0.3, CMake 2.4 P7, Parallels 3.0 emul. XP Pro 2002 SP2, cl cmplr furnished w/ MSVC++ XprssEd. 8.0] missing user32.lib

David.Goldsmith David.L.Goldsmith at noaa.gov
Wed Oct 24 02:30:40 EDT 2007


That got me past that stumbling block, thanks!

DG

Shekhar Chandra wrote:
> Hi David
>
> I assume you've done step 4 in 
> <http://msdn2.microsoft.com/en-us/express/aa700755.aspx>
>
> I find it best to run cmake from the Visual Studio Command Prompt 
> which needs to be setup with the Lib path etc. You can set it up by 
> editing the batch file it calls. Check the properties of the link in 
> Start menu. I would tell you the exact file, but I don't have a 
> windows machine where I'm atm.
>
> It'll have bits like:
>
> set INCLUDE=C:\Program Files\Microsoft
> SDKs\Windows\v6.0\Include;C:\Program Files\Microsoft
> SDKs\Windows\v6.0\VC\INCLUDE;%INCLUDE%
> set LIB=C:\Program Files\Microsoft SDKs\Windows\v6.0\VC\LIB;C:\Program
> Files\Microsoft SDKs\Windows\v6.0\Lib;%LIB%
> set LIBPATH=C:\Program Files\Microsoft SDKs\Windows\v6.0
>
> Note the LIB and INCLUDE will be very different in your case. 
> C:\Program Files\Microsoft SDKs\Windows\v6.0 is what the Vista SDK 
> installs to, replace it with the R2 SDK path. And also place the 
> compiler (VC) include and lib paths.
>
> Hope that helps.
> Cheers
> Shakes
>
> David.Goldsmith wrote:
>> OK, I installed the Platform SDK, and verified that it has user32.lib 
>> (in three different places, actually: "Microsoft Platform SDK for 
>> Windows Server 2003 R2\Lib", "Microsoft Platform SDK for Windows 
>> Server 2003 R2\Lib\AMD64", and "Microsoft Platform SDK for Windows 
>> Server 2003 R2\Lib\IA64").  I tried CMake again, same complaint, 
>> cannot open user32.lib.  I tried adding /LIBPATH:"Microsoft Platform 
>> SDK for Windows Server 2003 R2\Lib" (since I don't have an AMD chip 
>> nor, I'm pretty sure, a 64bit chip) to CMAKE_EXE_LINKER_FLAGS, 
>> CMAKE_MODULE_LINKER_FLAGS, and just for good measure ('cause I'm 
>> trying to build a static, not a dynamic library) to 
>> CMAKE_SHARED_LINKER_FLAGS, same complaint cannot open user32.lib.
>>
>> DG
>>
>> Andreas Freudling wrote:
>>> Hi David,
>>>
>>> did you also install the Platform SDK? If not get a closer look on 
>>> the following website 
>>> http://msdn2.microsoft.com/de-de/express/aa700755.aspx.
>>>
>>> Andy
>>>
>>>
>>> David.L.Goldsmith at noaa.gov schrieb:
>>>> Hi!  I'm trying to build VTK 5.0.3 in Parallels 3.0 emulating XP Pro
>>>> '02 SP2 in Mac OS 10.4.10.  I'm using the compiler/linker furnished 
>>>> with
>>>> VC++ 2005 Express Edition Version 8.0 w/ .NET Framework version
>>>> 2.0.50727.  I downloaded and apparently successfully installed 
>>>> CMake 2.4
>>>> Patch 7.  I tried to use it to build VTK and received the following
>>>> error message:
>>>>
>>>> "CMake Error: the C compiler 'cl' is not able to compile a simple test
>>>> program.  It fails with the following output:
>>>>
>>>> ...
>>>>
>>>> Linking...
>>>> LINK: fatal error LNK1104: cannot open file 'user32.lib'"
>>>>
>>>> I used Windows' search on my C drive - sure enough, no user32.lib 
>>>> to be
>>>> found.  What is this file, where am I supposed to have
>>>> obtained it from, and why would I not have it when VTK/CMake is
>>>> expecting me to?  Thanks!
>>>>
>>>> DG
>>>> _______________________________________________
>>>> This is the private VTK discussion list. Please keep messages 
>>>> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>>   
>>>
>>>
>>
>> _______________________________________________
>> This is the private VTK discussion list. Please keep messages 
>> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>




More information about the vtkusers mailing list