I was able to solve the problem with cmake not finding PythonLibs > 3 and a compilation issue:
Code:
/home/pozzoe/Documents/polyvox/library/bindings/PolyVoxCore.i:4: Error: Unable to find 'Impl/TypeDef.h'
/home/pozzoe/Documents/polyvox/library/bindings/Vector.i:7: Error: Unable to find 'Vector.h'
/home/pozzoe/Documents/polyvox/library/bindings/DefaultMarchingCubesController.i:6: Error: Unable to find 'DefaultMarchingCubesController.h'
/home/pozzoe/Documents/polyvox/library/bindings/Region.i:16: Error: Unable to find 'Region.h'
/home/pozzoe/Documents/polyvox/library/bindings/Block.i:6: Error: Unable to find 'Block.h'
/home/pozzoe/Documents/polyvox/library/bindings/CompressedBlock.i:6: Error: Unable to find 'CompressedBlock.h'
/home/pozzoe/Documents/polyvox/library/bindings/UncompressedBlock.i:6: Error: Unable to find 'UncompressedBlock.h'
/home/pozzoe/Documents/polyvox/library/bindings/BlockCompressor.i:6: Error: Unable to find 'BlockCompressor.h'
/home/pozzoe/Documents/polyvox/library/bindings/Pager.i:6: Error: Unable to find 'Pager.h'
/home/pozzoe/Documents/polyvox/library/bindings/FilePager.i:6: Error: Unable to find 'FilePager.h'
/home/pozzoe/Documents/polyvox/library/bindings/MinizBlockCompressor.i:6: Error: Unable to find 'MinizBlockCompressor.h'
/home/pozzoe/Documents/polyvox/library/bindings/RLEBlockCompressor.i:6: Error: Unable to find 'RLEBlockCompressor.h'
/home/pozzoe/Documents/polyvox/library/bindings/BaseVolume.i:6: Error: Unable to find 'BaseVolume.h'
/home/pozzoe/Documents/polyvox/library/bindings/SimpleVolume.i:6: Error: Unable to find 'SimpleVolume.h'
/home/pozzoe/Documents/polyvox/library/bindings/RawVolume.i:6: Error: Unable to find 'RawVolume.h'
/home/pozzoe/Documents/polyvox/library/bindings/LargeVolume.i:6: Error: Unable to find 'LargeVolume.h'
/home/pozzoe/Documents/polyvox/library/bindings/VertexTypes.i:8: Error: Unable to find 'Impl/TypeDef.h'
/home/pozzoe/Documents/polyvox/library/bindings/VertexTypes.i:9: Error: Unable to find 'Vector.h'
/home/pozzoe/Documents/polyvox/library/bindings/VertexTypes.i:10: Error: Unable to find 'VertexTypes.h'
/home/pozzoe/Documents/polyvox/library/bindings/SurfaceMesh.i:8: Error: Unable to find 'Region.h'
/home/pozzoe/Documents/polyvox/library/bindings/SurfaceMesh.i:9: Error: Unable to find 'VertexTypes.h'
/home/pozzoe/Documents/polyvox/library/bindings/SurfaceMesh.i:10: Error: Unable to find 'SurfaceMesh.h'
/home/pozzoe/Documents/polyvox/library/bindings/MarchingCubesSurfaceExtractor.i:6: Error: Unable to find 'MarchingCubesSurfaceExtractor.h'
/home/pozzoe/Documents/polyvox/library/bindings/CubicSurfaceExtractor.i:6: Error: Unable to find 'CubicSurfaceExtractor.h'
/home/pozzoe/Documents/polyvox/library/bindings/CubicSurfaceExtractorWithNormals.i:6: Error: Unable to find 'CubicSurfaceExtractorWithNormals.h'
/home/pozzoe/Documents/polyvox/library/bindings/Raycast.i:52: Error: Unable to find 'Raycast.h'
/home/pozzoe/Documents/polyvox/library/bindings/Picking.i:6: Error: Unable to find 'Picking.h'
make[2]: *** [library/bindings/PolyVoxCoreCSHARP_wrap.cxx] Error 1
make[1]: *** [library/bindings/CMakeFiles/PolyVoxCoreCSharp.dir/all] Error 2
make: *** [all] Error 2
To do this I REMOVED libpython2.7-dev package and kept only libpython3-dev. After that, cmake is able to detect the installed version of libpython3
Code:
Found PythonLibs: /usr/lib/python3.3/config-3.3m-x86_64-linux-gnu/libpython3.3.so (Required is at least version "3")
But now I'm stucked at a different problem: PolyVox compiles, but then
Code:
Test project /home/pozzoe/Documents/polyvox/build
Start 1: PythonSurfaceExtractorTest
1/15 Test #1: PythonSurfaceExtractorTest .......***Failed 0.31 sec
Start 2: PythonRaycastTest
2/15 Test #2: PythonRaycastTest ................***Failed 0.12 sec
Start 3: TestAmbientOcclusionGenerator
...
The following tests FAILED:
1 - PythonSurfaceExtractorTest (Failed)
2 - PythonRaycastTest (Failed)
Errors while running CTest
And
Code:
pozzoe@ubuntu:~/Documents/polyvox/build/examples/Python$ ./PythonExample.py
Traceback (most recent call last):
File "./PythonExample.py", line 29, in <module>
import PolyVoxCore as pv
File "../../library/bindings/PolyVoxCore.py", line 26, in <module>
_PolyVoxCore = swig_import_helper()
File "../../library/bindings/PolyVoxCore.py", line 22, in swig_import_helper
_mod = imp.load_module('_PolyVoxCore', fp, pathname, description)
File "/usr/lib/python3.3/imp.py", line 188, in load_module
return load_dynamic(name, filename, file)
ImportError: dynamic module does not define init function (PyInit__PolyVoxCore)
Googling "ImportError: dynamic module does not define init function" shows a variety of issues that could be causing this.
Swig version is 2.0.10. I'll appreciate any help you could give me.