Hello all,

With the help from Bill Hoffman, the problem has been solved. I'd like to share the solution with you.

You may already find articles on the net, talking about free command-line c++ complier from within microsoft's .Net Framework SDK and win32 libs from within Platform SDK. I installed both and successfully compiled all the examples from the "OpenGL RedBook", and mistakenly thought I got the free comipler work.

Then, error occurred when I tried to build VTK --- CMake failed to compile/link a simple c++ program during configuring VTK because libcpmt.lib could not be found. In fact, all the c++ standard libs are NOT shipped with either Framework SDK or Platform SDK.

The right way is using Microsoft Visual C++ 2005 Express Edition, which is free of charge. You can download it from http://msdn.microsoft.com/vstudio/express/visualc/. You need to uninstall .NetFramework SDK if you already install it, and make sure you set environmental variables correctly --- path, include, lib ...

Good luck!

Weiguang

--
========================================================
Weiguang Guan, Research Engineer
RHPCS, McMaster University
========================================================

On Wed, 6 Dec 2006, Weiguang Guan wrote:

Hi,

I wanted to make use of the free C/C++ command line compiler that comes with microsoft's .net framework SDK 2.0 (platform SDK is installed as well). When I was using CMake to configure VTK5.0 on a x86 machine, I chose "NMake Makefile". But the C compiler failed to compile a simple test program, complaining "fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'X64'. I have no idea why it considered my computer to be x64, and it didn't help at all even if I changed /machine:x64 to /machine:/x86 in CMAKE_EXE_LINKER_FLAGS. Anybody had similar experience or had suggestion to this situation? Thanks.

Weiguang

_______________________________________________
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

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to