[CMake] Are u using mingw32 gcc / with Cmake?

Bram Kouwenberg kouwenberg.bram at gmail.com
Sat Jan 7 12:16:44 EST 2012


I'm looking for someone with a mingw32 install next to Cmake. I have a
problem compiling probably because of mingw32 --look below if you want.

shout out if you have mingw32


---------- Forwarded message ----------
From: Jean-Christophe Fillion-Robin <jchris.fillionr at kitware.com>
Date: Tue, Jan 3, 2012 at 3:24 PM
Subject: Re: [CMake] compiling problem cmake
To: Bram Kouwenberg <kouwenberg.bram at gmail.com>
Cc: cmake at cmake.org


Hi,

On Ubuntu, compiling python 2.5.6 following the instruction listed here [1]
works.
[1]
http://www.vtk.org/Wiki/BuildingPythonWithCMake#Building_Python_for_Linux_or_Windows

Somebody with mingw will have to check what's wrong.

Step by step:

wget http://www.python.org/ftp/python/2.5.6/Python-2.5.6.tgz
tar -xzvf Python-2.5.6.tgz
cd Python-2.5.6
cvs -d :pserver:anoncvs at www.paraview.org:/cvsroot/ParaView3 login
cvs -d :pserver:anoncvs at www.paraview.org:/cvsroot/ParaView3 co -d
CMakeBuildForPython -r Python-2_5_1-BRANCH
ParaView3/Utilities/CMakeBuildForPython
cp -r CMakeBuildForPython/* .
cmake .
make

[...]
[ 99%] Building C object CMakeFiles/pythonLib.dir/Modules/xxsubtype.o
[100%] Building C object CMakeFiles/pythonLib.dir/Modules/_weakref.o
Linking C static library libpython2.5.a
[100%] Built target pythonLib
Scanning dependencies of target python
[100%] Building C object CMakeFiles/python.dir/Modules/python.o
Linking C executable python
/usr/bin/ld: libpython2.5.a(posixmodule.o): in function
posix_tempnam:posixmodule.c(.text+0x4c23): warning: the use of `tempnam' is
dangerous, better use `mkstemp'
/usr/bin/ld: libpython2.5.a(posixmodule.o): in function
posix_tmpnam:posixmodule.c(.text+0x4ced): warning: the use of `tmpnam_r' is
dangerous, better use `mkstemp'
[100%] Built target python

Hth
Jc



On Mon, Jan 2, 2012 at 9:07 PM, Bram Kouwenberg
<kouwenberg.bram at gmail.com>wrote:

> here s the same message with the screenie as a png
>
> ---------- Forwarded message ----------
> From: Bram Kouwenberg <kouwenberg.bram at gmail.com>
> Date: Tue, Jan 3, 2012 at 2:43 AM
> Subject: Re: [CMake] compiling problem cmake
> To: Jean-Christophe Fillion-Robin <jchris.fillionr at kitware.com>
> Cc: cmake at cmake.org
>
>
> the python source i got from http://python.org/ftp/python/2.5.6/
>
> the directions I followed were mainly from
> http://www.vtk.org/Wiki/BuildingPythonWithCMake#Building_Python_for_Linux_or_Windows were
> I took the 251 snapshot and changed the patch number to 6. Then during
> configuring I had to manually indicate some modules and env variables, up
> until this error appeared. let me know if you need know more
>
> On Tue, Jan 3, 2012 at 12:53 AM, Jean-Christophe Fillion-Robin <
> jchris.fillionr at kitware.com> wrote:
>
>> Hi Bram,
>>
>> In order to reproduce and understand the problem, would also be great to
>> point us to a repository or place to download the sources.
>>
>> Additionally, could you also mention which version of CMake and which
>> generator you were using ?
>>
>> Hth
>> Jc
>>
>> On Mon, Jan 2, 2012 at 6:30 PM, Bram Kouwenberg <
>> kouwenberg.bram at gmail.com> wrote:
>>
>>> Hi, i want to compile an old python version from source with cmake on
>>> win 7 but during this process things go wrong with compiling a test
>>> already; below is the error text: there's a proble creating a folder '/cmTryCompileExec/fast'
>>> in CmakeTmp. I don't now why. the only strange thing is in explorer I see
>>> the following tree:
>>>
>>>
>>> C:\python256\CMakeFiles\CMakeTmp\CMakeFiles\cmTryCompileExec.dir
>>>
>>>
>>> it seems the config process creates another Cmakefiles folder. I have no
>>> clue why since I'm not familiar with configuring/compiling, but it might
>>> explain why this TryCompilefast folder cannot be created.
>>>
>>>
>>> Anybody see what the problem is here?
>>>
>>>
>>> tnx
>>>
>>>
>>>
>>> The C compiler identification is GNU
>>>
>>> The CXX compiler identification is GNU
>>>
>>> Found Eclipse version 4.1 ()
>>>
>>> Check for working C compiler: C:/MinGW32/bin/gcc.exe
>>>
>>> Check for working C compiler: C:/MinGW32/bin/gcc.exe -- broken
>>>
>>> CMake Error at C:/Program Files/CMake
>>> 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
>>>
>>> The C compiler "C:/MinGW32/bin/gcc.exe" is not able to compile a simple
>>>
>>> test program.
>>>
>>>  It fails with the following output:
>>>
>>>  Change Dir: C:/python256/CMakeFiles/CMakeTmp
>>>
>>>   Run Build Command:C:/PROGRA~1/CMAKE2~1.8/bin/cmake.exe
>>>
>>> "cmTryCompileExec/fast"
>>>
>>>  CMake Error: The source directory
>>>
>>> "C:/python256/CMakeFiles/CMakeTmp/cmTryCompileExec/fast" does not exist.
>>>
>>>  Specify --help for usage, or press the help button on the CMake GUI.
>>>
>>>     CMake will not be able to correctly generate this project.
>>>
>>> Call Stack (most recent call first):
>>>
>>> CMakeLists.txt:3 (project)
>>>
>>>  Configuring incomplete, errors occurred!
>>>
>>> --
>>>
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the CMake FAQ at:
>>> http://www.cmake.org/Wiki/CMake_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.cmake.org/mailman/listinfo/cmake
>>>
>>
>>
>>
>> --
>> +1 919 869 8849
>>
>>
>
>


-- 
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120107/9ae1a54e/attachment.htm>


More information about the CMake mailing list