<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
ccmake does not work under MinGW; I'm not sure why cmake -i would
hang...<br>
<br>
Launch MSYS, cd to your project's binary directory and type CMakeSetup
at the command prompt. (I'm assuming CMake is installed and available
in your PATH while under MSYS. If not, make it so.)<br>
<br>
The key to CMakeSetup working properly for MinGW is simply to be
launched in the same environment that will be used for make/compile.
Launching it from the MSYS command prompt gives it a different starting
environment in which it can find the gcc compiler, MinGW headers and
libraries. Launched from a desktop shortcut or the start menu doesn't
give it the MinGW/MSYS environment it needs to generate MinGW make
files.<br>
<br>
Then, once CMakeSetup's UI is up, verify that the source and binary
directories are correct, that "Unix Makefiles" is chosen as the
generator and then you can "configure" and "generate" as usual for any
CMakeSetup session...<br>
<br>
Then you should be back at your project's binary directory in the MSYS
prompt after CMakeSetup quits... Then just type "make".<br>
<br>
If you run into compile/link/run problems, update your VTK source code
to the CVS version for a day that has relatively clean MinGW
dashboards. Find dashboard test results here: <a
href="http://public.kitware.com/dashboard.php?name=vtk">http://public.kitware.com/dashboard.php?name=vtk</a><br>
<br>
<br>
Good luck,<br>
David<br>
<br>
<br>
Lauren Cohen wrote:
<blockquote cite="mid1117921616.42a221508b2a5@webmail.duke.edu"
type="cite">
<pre wrap="">I had been running CMakeSetup in the Windows environment, which is where I
received the error message. Following your advice, I've now attempted to run
both "ccmake" and "cmake -i" in the source code directory while in the bash
shell. The former results in an error message - "cannot execute binary file" -
while the latter causes the system to hang.
And yes, I am using release 4.4. I do have a copy of release 4.2, though, if
that would solve the above problem.
Thanks for your assistance,
Lauren
Quoting David Cole <a class="moz-txt-link-rfc2396E" href="mailto:david.cole@kitware.com"><david.cole@kitware.com></a>:
</pre>
<blockquote type="cite">
<pre wrap="">The key to CMake working properly for MinGW is to launch CMakeSetup
from the MinGW environment, and generate "Unix Makefiles". Then run
make in the MinGW environment from your project's binary directory.
Is that what you're doing? Are you using the MSYS bash shell?
And do you have the CVS source for VTK or some earlier version? I had
different problems trying to compile the 4.4 release under MinGW...
Hope this helps,
David
Lauren Cohen wrote:
When attempting a source code installation of VTK on my WinXP comp with the
MinGW port of gcc, I get the following error message:
The C compiler "gcc.exe" is not able to compile a simple test program.
It fails with the following output:
0 [main] make 1588 fhandler_base::dup dup(some disk file) failed, handle
0, Win32 error 6
Building object file testCCompiler.o...
Access violation
CMake will not be able to correctly generate this project.
What could be causing this error, and how can I fix it? Thank you for any
help
you can provide.
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>