Thanks for your answer! It turned out that my problems are cmake
related: Yesterday I used the cmake.exe from cygwin. This version
assumes that an X11 environment exists. Today I switched to
cmakeSetup.exe from the cmake Windows binary distribution. This is a lot
better, but still problems exist: Checking for the existance of include
files is done with this command:
Building object file CheckIncludeFile.o...
c++.exe -o CheckIncludeFile.o -c
>> but it should be:
c++.exe -mno-cygwin -o CheckIncludeFile.o -c
Otherwise the include dir /usr/include and not /usr/include/mingw will
To avoid this problem cmake should use the CXX compiler command with
I had to manually edit the CMakeCache.txt:
VXL_HAS_PTHREAD_H:INTERNAL=1 changed to VXL_HAS_PTHREAD_H:INTERNAL=
The same with srand48 and drand48
After these manual modifications it compiled and linked!
Did someone perform the same modifications on your dashboard?
Wheeler, Frederick W (Research) schrieb:
>I have a Cygwin/MinGW build on the VXL dashboard. It has been working for a couple of years, through several cygwin tool upgrades. Take a look at the build notes (the icon next to the Build Name on the dashboard) to see the CMakeCache settings I used and the various tool versions. It's basically an up-to-date Cygwin installation. You wrote "CXX_FLAGS and CC_FLAGS". Do you mean "CXX_FLAGS and C_FLAGS" -- with "C" instead of "CC"? Maybe your config got messed up because .c files were not compiled with -mno-cygwin? For CMake I set
>CMAKE_C_FLAGS:STRING=-mno-cygwin -Wall -O2 -g
>CMAKE_CXX_FLAGS:STRING=-mno-cygwin -Wall -O2 -g
>I have not compiled VXL in the MinGW environment, just in Cygwin with -mno-cygwin.
>The build notes ...
>>[mailto:vxl-users-admin@... Behalf Of Stefan v.
>>Sent: Wednesday, October 19, 2005 2:25 PM
>>Cc: Stefan v. Wachter
>>Subject: [Vxl-users] Cygwin / mingw build problems
>>What is the recommended procedure to compile vxl (1.3.0) on Windows
>>using the cygwin (without need for the cygwin1.dll) or mingw tools?
>>I started with cygwin and the -mno-cygwin flag in CXX_FLAGS and
>>CC_FLAGS. This brought me to some errors e.g.:
>>`srand48' undeclared (first use this function)
>>I think this is because there are different stdlib.h files in
>>/usr/include and /usr/include/mingw . It looks like cmake doesn't use
>>The were other problems with pthread.h not found.
>>Then I switched to a pure mingw environment. But there I
>>cmake. Using the cygwin ccmake brought an error with
>>strstream.h not found.
>>Please tell me what configurations are working for you.
>>Thanks a lot,
>>Stefan v. Wachter
>>ALPHA-OMEGA digital GmbH
>>This SF.Net email is sponsored by:
>>Power Architecture Resource Center: Free content, downloads,
>>and more. http://solutions.newsforge.com/ibmarch.tmpl
>>Vxl-users mailing list