[eq-dev] getting started: building eqHello on windows 7

21 views
Skip to first unread message

crescojeff

unread,
May 4, 2012, 12:32:08 PM5/4/12
to eq-...@equalizergraphics.com
Hi all,
Could anyone please provide me with a step by step short tutorial on how
exactly to build eqHello (hopefully scalable to the other examples) on
Windows 7? So far I'm running into a lot of strange errors just trying to
generate make files with cmake:

Attempt to use MinGW as the build toolchain (MinGW make files, MinGW GCC and
G++):

CMake Error at C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/CMakeMinGWFindMake.cmake:20 (MESSAGE):
sh.exe was found in your PATH, here:
C:/cygwin/bin/sh.exe
For MinGW make to work correctly sh.exe must NOT be in your path.
Run cmake from a shell that does not have sh.exe in your PATH.
If you want to use a UNIX shell, then use MSYS Makefiles.
Call Stack (most recent call first):
CMakeLists.txt:6 (project)
CMake Error: Error required internal CMake variable not set, cmake may be
not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Could not find cmake module
file:C:/Users/jeffreyc/Desktop/dev/graphics_code/Eyescale-Equalizer-f9ea5b3/myBin/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be
not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Could not find cmake module
file:C:/Users/jeffreyc/Desktop/dev/graphics_code/Eyescale-Equalizer-f9ea5b3/myBin/CMakeFiles/CMakeCXXCompiler.cmake
Configuring incomplete, errors occurred!

I've scoured my PATH variable and removed all possible references to sh in
the cygwin hierarchy that I could think of, but I keep seeing this error.
Also, I'm not sure if the other cmake errors are separate issues or just
cascading from the initial error... I didn't build cmake from source, I
installed the pre-built cmake for windows.

Attempt to build MSYS make files using MinGW GCC and G++:

The C compiler identification is GNU
The CXX compiler identification is GNU
Check for working C compiler: C:/MinGW/bin/gcc.exe
Check for working C compiler: C:/MinGW/bin/gcc.exe -- broken
CMake Error at C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "C:/MinGW/bin/gcc.exe" is not able to compile a simple test
program.
It fails with the following output:
Change Dir:
C:/Users/jeffreyc/Desktop/dev/graphics_code/Eyescale-Equalizer-f9ea5b3/myBin/CMakeFiles/CMakeTmp

Run Build Command:C:/cygwin/bin/make.exe "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory

`/cygdrive/c/Users/jeffreyc/Desktop/dev/graphics_code/Eyescale-Equalizer-f9ea5b3/myBin/CMakeFiles/CMakeTmp'
"/C/Program Files (x86)/CMake 2.8/bin/cmake.exe" -E cmake_progress_report

/C/Users/jeffreyc/Desktop/dev/graphics_code/Eyescale-Equalizer-f9ea5b3/myBin/CMakeFiles/CMakeTmp/CMakeFiles
1
/bin/sh: /C/Program Files (x86)/CMake 2.8/bin/cmake.exe: No such file or
directory
CMakeFiles/cmTryCompileExec.dir/build.make:57: recipe for target
`CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj' failed
make[1]: [CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj] Error
127
make[1]: Leaving directory

`/cygdrive/c/Users/jeffreyc/Desktop/dev/graphics_code/Eyescale-Equalizer-f9ea5b3/myBin/CMakeFiles/CMakeTmp'
makeMakefile:114: recipe for target `cmTryCompileExec/fast' failed
: [cmTryCompileExec/fast] Error 2


CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:6 (project)
Configuring incomplete, errors occurred!

I'm not sure what's going on here...

Attempt to build MSYS make files with Cygwin GCC and G++:

The C compiler identification is unknown
The CXX compiler identification is unknown
Check for working C compiler: C:/cygwin/bin/gcc.exe
Check for working C compiler: C:/cygwin/bin/gcc.exe -- broken
CMake Error at C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "C:/cygwin/bin/gcc.exe" is not able to compile a simple
test
program.
It fails with the following output:
Change Dir:
C:/Users/jeffreyc/Desktop/dev/graphics_code/Eyescale-Equalizer-f9ea5b3/myBin/CMakeFiles/CMakeTmp

Run Build Command:C:/cygwin/bin/make.exe "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory

`/cygdrive/c/Users/jeffreyc/Desktop/dev/graphics_code/Eyescale-Equalizer-f9ea5b3/myBin/CMakeFiles/CMakeTmp'
"/C/Program Files (x86)/CMake 2.8/bin/cmake.exe" -E cmake_progress_report

/C/Users/jeffreyc/Desktop/dev/graphics_code/Eyescale-Equalizer-f9ea5b3/myBin/CMakeFiles/CMakeTmp/CMakeFiles
1
/bin/sh: /C/Program Files (x86)/CMake 2.8/bin/cmake.exe: No such file or
directory
CMakeFiles/cmTryCompileExec.dir/build.make:57: recipe for target
`CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj' failed
make[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj] Error
127
make[1]: Leaving directory

`/cygdrive/c/Users/jeffreyc/Desktop/dev/graphics_code/Eyescale-Equalizer-f9ea5b3/myBin/CMakeFiles/CMakeTmp'
Makefile:114: recipe for target `cmTryCompileExec/fast' failed
make: *** [cmTryCompileExec/fast] Error 2


CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:6 (project)
Configuring incomplete, errors occurred!

Alternate attempt to create MSYS make files with Cygwin GCC and G++:

The C compiler identification is unknown
The CXX compiler identification is unknown
Check for working C compiler: /cygdrive/c/cygwin/bin/gcc.exe
CMake Error: your C compiler: "/cygdrive/c/cygwin/bin/gcc.exe" was not
found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
Check for working C compiler: /cygdrive/c/cygwin/bin/gcc.exe -- broken
CMake Error at C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "/cygdrive/c/cygwin/bin/gcc.exe" is not able to compile a
simple test program.
It fails with the following output:


CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:6 (project)
CMake Error: your C compiler: "/cygdrive/c/cygwin/bin/gcc.exe" was not
found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "/cygdrive/c/cygwin/bin/g++.exe" was not
found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
Configuring incomplete, errors occurred!

Any suggestions as to how I should proceed to successfully build eqHello
example program from source on Windows 7 would be welcome!

thanks, CCJ


--
View this message in context: http://software.1713.n2.nabble.com/getting-started-building-eqHello-on-windows-7-tp7527707.html
Sent from the Equalizer - Parallel Rendering mailing list archive at Nabble.com.

_______________________________________________
eq-dev mailing list
eq-...@equalizergraphics.com
http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev
http://www.equalizergraphics.com

Stefan Eilemann

unread,
May 4, 2012, 12:37:03 PM5/4/12
to Equalizer Developer List
Hi,

On 4. May 2012, at 18:32, crescojeff wrote:

> Could anyone please provide me with a step by step short tutorial on how
> exactly to build eqHello (hopefully scalable to the other examples) on
> Windows 7? So far I'm running into a lot of strange errors just trying to
> generate make files with cmake:
>
> Attempt to use MinGW as the build toolchain (MinGW make files, MinGW GCC and
> G++):

MinGW is not supported at this time. Feel free to provide a fix, or use the VS2008 generator. To build, you should clone Buildyard, configure it and then execute the ALL_BUILD target in VS.


HTH,

Stefan.
Reply all
Reply to author
Forward
0 new messages