Wow, a reply from the developers themselves! Awesome!
I don't have Qt, Sphinx or SWIG installed on my PC (they ARE only used for the examples and the bindings, are they not?) so CMake said Build examples, Build tests and Build bindings were OFF. Even so I tried just now turning off examples, tests and bindings and VC++ still told me the projects were targeting .NET 4.0.
Here, look at CMake's log. It provides some weird information, particularly where it says that it found Doxygen (which I have installed) and says that API docs building is enabled, but in the summary says Build manual is OFF. I don't get it.
Quote:
The C compiler identification is MSVC 16.0.40219.1
The CXX compiler identification is MSVC 16.0.40219.1
Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 10
Check for working CXX compiler using: Visual Studio 10 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Found Doxygen: C:/Program Files (x86)/doxygen/bin/doxygen.exe (found version "1.7.5.1")
Could NOT find Qt4 (missing: QT_QMAKE_EXECUTABLE QT_MOC_EXECUTABLE QT_RCC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_INCLUDE_DIR QT_QTCORE_LIBRARY QT_QTGUI_INCLUDE_DIR QT_QTGUI_LIBRARY QT_QTOPENGL_INCLUDE_DIR QT_QTOPENGL_LIBRARY QT_QTTEST_INCLUDE_DIR QT_QTTEST_LIBRARY QT_UIC_EXECUTABLE)
Qt QTOPENGL library not found.
Qt QTGUI library not found.
Qt QTTEST library not found.
Qt QTCORE library not found.
Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR)
Found PythonLibs: C:/Python/Python32/libs/python32.lib (found version "3.2.2")
`sphinx-build` was not found. Try setting SPHINXBUILD_EXECUTABLE to its location.
`qhelpgenerator` was not found. Try setting QT_QCOLLECTIONGENERATOR_EXECUTABLE to its location.
-- The following features have been enabled:
* API docs , HTML documentation of the API
-- The following OPTIONAL packages have been found:
* Doxygen , API documentation generator , <http://www.doxygen.org>
Building the API documentation
* PythonLibs , Programming language , <http://www.python.org>
-- The following features have been disabled:
* Examples , Examples of PolyVox usage
* Tests , Unit tests
* Bindings , SWIG bindings
* Qt Help , API docs in Qt Help format
* Manual , HTML user's manual
-- The following OPTIONAL packages have not been found:
* SWIG , Bindings generator , <http://www.swig.org>
-- The following RECOMMENDED packages have not been found:
* Qt4 , C++ framework , <http://qt-project.org>
Building the examples
Building the tests
Summary
-------
Library type: STATIC
Build examples: OFF
Build tests: OFF
Build bindings: OFF
API Docs available: YES
- Qt Help bundling: OFF
Build manual: OFF
Configuring done
Plus, I have LIBRARY_TYPE set to dynamic, yet in the summary it says STATIC. What does all this mean?
I opened the generated VC++ 2010 project files in Notepad to see if I could find any reference to .NET 4.0. The ALL_BUILD project contains this line:
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">I don't know if that means anything, but I see the word "target" and a "4.0" in there.
The Summary in the CMake log never changes no matter what settings I change in the CMake gui, even after clicking Configure again.
I just tried modifying that line with "4.0" in it and changing the 4.0 to a 2.0 and now VC++ no longer complains of needing .NET 4.0 for the ALL_BUILDS project, but fails to load, saying this:
C:\Program Files (x86)\PolyVox\volumesoffun-polyvox-95f0aa22c12d\build\ALL_BUILD.vcxproj : error : The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. C:\Program Files (x86)\PolyVox\volumesoffun-polyvox-95f0aa22c12d\build\ALL_BUILD.vcxprojOh, I forgot to say: I'm using the latest version directly from BitBucket. Actually I forgot I was using it altogether. I'll try using 0.2.1....nope, does exactly the same thing.
Exactly the same.
It's all very annoying. Nothings seems to do what I expect it to do. I'll try to download .NET 4.0 tonight just in case, but I may not be able to and if PolyVox isn't meant to require it I'd like to figure out what's wrong.
Clonkex