Hi, everyone!
First, I'd like to preface this bug report with the caveat that my level of coding experience is minimal-- so it might be the case that there's no bug here and I've just set up my development environment incorrectly.
Some background info on my setup:
Windows 7 Professional SP1 (64-bit)
Visual Studio 2010 Express Edition
CMake 2.8
Latest versions of Qt, Doxygen, and Cygwin (with the "make" package installed)
PolyVox downloaded from Git (Friday, Jan 27, 2012)
Following the "Building PolyVox" guide, I run the following command (from within PolyVox's "build" directory):
Code:
cmake "Visual Studio 10" ..
The command executes with no errors.
But, when I try to run "make" in any of the following ways...
Code:
make
make install
make test
...I encounter the following error:
Code:
Makefile:26: *** missing separator. Stop.
Opening up build\Makefile in Notepad, here's what it looks like around line 26 (line numbers added by me just for this post, for clarity):
Code:
19: # A target that is always out of date.
20: cmake_force:
21: .PHONY : cmake_force
22:
23: #=============================================================================
24: # Set environment variables for the build.
25:
26: !IF "$(OS)" == "Windows_NT"
27: NULL=
28: !ELSE
29: NULL=nul
30: !ENDIF
31: SHELL = cmd.exe
Now, I am able to circumvent the error by editing this makefile (despite the warning issued within the makefile that it is generated by cmake and should not be edited). I comment out the following lines, like so:
Code:
24: # Set environment variables for the build.
25:
26: #!IF "$(OS)" == "Windows_NT"
27: #NULL=
28: #!ELSE
29: #NULL=nul
30: #!ENDIF
31: SHELL = cmd.exe
This is perhaps a little reckless on my part, since I have no idea how the makefile works, but... after saving these changes and running the "make" command again (or "make install", or "make test"), the VC++ project files, solutions, etc appear and everything appears to be okay... however, there are no executable examples yet... I'm not sure if that is normal behavior?
Next, I open the PolyVox Visual Studio Solution ("PolyVox.sln") with Visual C++. I hit "F7" to build everything. After that is finished, executables appear in build\examples\<example name>\Debug... for example:
Code:
build\examples\Basic\Debug\BasicExample.exe
The executables run okay, and from this point it seems that the build is finished.
Next, I ran through the same steps with the latest stable snapshot, PolyVox-GIT-2e4bf67.zip (11th December 2011). Behavior is exactly the same.
Summary: The main point of concern here is the Makefile (or maybe the make command, technically) is reporting an error. It's possible I've set up CMake incorrectly or that I'm using the wrong "make" command (Note that I'm using the "make" package downloadable through Cygwin's "setup.exe" application). It appears that I've kludged my way around it for now, but I thought I'd post this issue to the forums just in case it's a bug or in case anyone else has run up against the same problem I did.
Lastly, thanks to the PolyVox developers for your hard work on this library! The potential is has as both a learning tool for me, not to mention as a platform for some awesome-looking games, is amazing. Much appreciation!
-DM