gerwindehaan / osgswig

Python bindings for OpenSceneGraph (auto-export from code.google.com/p/osgswig)
Other
1 stars 1 forks source link

Ubuntu 11.04 build issues #56

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

hg clone https://code.google.com/p/osgswig/
cd osgsiw 
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make

What is the expected output? What do you see instead?

Expected: A successful build. Received: after 1% I get an "'Extension' is not 
defined in this scope" error and several others. See dump below.

What version of the product are you using? On what operating system?

* osgswig revision 9b34a591986c
* OSG 3.0.0 compiled from source with -DCMAKE_BUILD_TYPE=Debug or 
-DCMAKE_BUILD_TYPE=Release
* Python 2.7
* Ubuntu 11.04

Please provide any additional information below.

siem@ubuntu:~/Downloads/osgswig/build$ make
/usr/bin/cmake -H/home/siem/Downloads/osgswig 
-B/home/siem/Downloads/osgswig/build --check-build-system 
CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start 
/home/siem/Downloads/osgswig/build/CMakeFiles 
/home/siem/Downloads/osgswig/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/siem/Downloads/osgswig/build'
make -f src/python/CMakeFiles/_osg.dir/build.make 
src/python/CMakeFiles/_osg.dir/depend
make[2]: Entering directory `/home/siem/Downloads/osgswig/build'
cd /home/siem/Downloads/osgswig/build && /usr/bin/cmake -E cmake_depends "Unix 
Makefiles" /home/siem/Downloads/osgswig /home/siem/Downloads/osgswig/src/python 
/home/siem/Downloads/osgswig/build 
/home/siem/Downloads/osgswig/build/src/python 
/home/siem/Downloads/osgswig/build/src/python/CMakeFiles/_osg.dir/DependInfo.cma
ke --color=
make[2]: Leaving directory `/home/siem/Downloads/osgswig/build'
make -f src/python/CMakeFiles/_osg.dir/build.make 
src/python/CMakeFiles/_osg.dir/build
make[2]: Entering directory `/home/siem/Downloads/osgswig/build'
/usr/bin/cmake -E cmake_progress_report 
/home/siem/Downloads/osgswig/build/CMakeFiles 1
[  1%] Building CXX object src/python/CMakeFiles/_osg.dir/osgPYTHON_wrap.cxx.o
cd /home/siem/Downloads/osgswig/build/src/python && /usr/bin/c++   
-D_osg_EXPORTS -O2 -fPIC -I/usr/local/include 
-I/home/siem/Downloads/osgswig/include -I/usr/include/python2.7   -o 
CMakeFiles/_osg.dir/osgPYTHON_wrap.cxx.o -c 
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx: In function 
‘PyObject* _wrap_ClampColor_getExtensions(PyObject*, PyObject*)’:
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:107969:3: 
error: ‘Extensions’ was not declared in this scope
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:107969:15: 
error: ‘result’ was not declared in this scope
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:107982:25: 
error: expected primary-expression before ‘)’ token
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx: In function 
‘PyObject* _wrap_ClampColor_setExtensions(PyObject*, PyObject*)’:
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:107994:3: 
error: ‘Extensions’ was not declared in this scope
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:107994:15: 
error: ‘arg2’ was not declared in this scope
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:107994:35: 
error: expected primary-expression before ‘)’ token
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:107994:37: 
error: expected ‘;’ before numeric constant
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:108012:28: 
error: expected type-specifier before ‘Extensions’
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:108012:28: 
error: expected ‘>’ before ‘Extensions’
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:108012:28: 
error: expected ‘(’ before ‘Extensions’
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:108012:41: 
error: expected primary-expression before ‘>’ token
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:108012:49: 
error: expected ‘)’ before ‘;’ token
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx: In function 
‘PyObject* _wrap_GroupRef_getParents(PyObject*, PyObject*)’:
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:242705:59: 
warning: taking address of temporary
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx: In function 
‘PyObject* _wrap_NodeRef_getParents(PyObject*, PyObject*)’:
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:246195:59: 
warning: taking address of temporary
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx: In function 
‘PyObject* _wrap_TransformRef_getParents(PyObject*, PyObject*)’:
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:250977:59: 
warning: taking address of temporary
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx: In function 
‘PyObject* _wrap_GeodeRef_getParents(PyObject*, PyObject*)’:
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:255185:59: 
warning: taking address of temporary
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx: In function 
‘PyObject* _wrap_BillboardRef_getParents(PyObject*, PyObject*)’:
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:259896:59: 
warning: taking address of temporary
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx: In function 
‘PyObject* _wrap_SwitchRef_getParents(PyObject*, PyObject*)’:
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:264675:59: 
warning: taking address of temporary
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx: In function 
‘PyObject* _wrap_LODRef_getParents(PyObject*, PyObject*)’:
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:269539:59: 
warning: taking address of temporary
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx: In function 
‘PyObject* _wrap_PagedLODRef_getParents(PyObject*, PyObject*)’:
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:275694:59: 
warning: taking address of temporary
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx: In function 
‘PyObject* _wrap_ProxyNodeRef_getParents(PyObject*, PyObject*)’:
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:280634:59: 
warning: taking address of temporary
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx: In function 
‘PyObject* _wrap_ProjectionRef_getParents(PyObject*, PyObject*)’:
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:285003:59: 
warning: taking address of temporary
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx: In function 
‘PyObject* _wrap_MatrixTransformRef_getParents(PyObject*, PyObject*)’:
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:292445:59: 
warning: taking address of temporary
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx: In function 
‘PyObject* _wrap_AutoTransformRef_getParents(PyObject*, PyObject*)’:
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:297825:59: 
warning: taking address of temporary
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx: In function 
‘PyObject* _wrap_CameraViewRef_getParents(PyObject*, PyObject*)’:
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:302976:59: 
warning: taking address of temporary
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx: In function 
‘PyObject* _wrap_CameraRef_getParents(PyObject*, PyObject*)’:
/home/siem/Downloads/osgswig/build/src/python/osgPYTHON_wrap.cxx:312889:59: 
warning: taking address of temporary
make[2]: *** [src/python/CMakeFiles/_osg.dir/osgPYTHON_wrap.cxx.o] Error 1
make[2]: Leaving directory `/home/siem/Downloads/osgswig/build'
make[1]: *** [src/python/CMakeFiles/_osg.dir/all] Error 2
make[1]: Leaving directory `/home/siem/Downloads/osgswig/build'
make: *** [all] Error 2

Original issue reported on code.google.com by sbned...@gmail.com on 26 Sep 2011 at 1:24

GoogleCodeExporter commented 9 years ago
Hmmm, haven't encountered this on a similar configuration. Are you sure the 
build process includes the correct osg 3.0.0 (manually built install), and not 
accidentally a system-wide install (say, osg 2.9.x included in stock ubuntu). 
Could you post your CMakeCache file if uncertain? 

Original comment by gerwinde...@gmail.com on 27 Sep 2011 at 8:39

GoogleCodeExporter commented 9 years ago
Yep, I'm sure. It's a fresh machine. 

There are some NOTFOUND's in the CMakeCache.txt but they don't look critical. 

Thanks for your effort! 

Original comment by sbned...@gmail.com on 27 Sep 2011 at 8:48

Attachments:

GoogleCodeExporter commented 9 years ago
Update: the configuration that does work is OpenSceneGraph-3.0.0 revision 12566 
together with osgswig revision cec78deea20d. To get there: 

svn co 
http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/openSceneGraph-3.0.0
cd OpenSceneGraph-3.0.0
svn merge -r <latest_rev>:12566 ./

hg clone https://code.google.com/p/osgswig/
cd osgswig
hg update --rev cec78eea20d

Original comment by sbned...@gmail.com on 7 Oct 2011 at 4:07

GoogleCodeExporter commented 9 years ago
I now see that I've made a mistake in the osgswig revision. The correct 
revision is cec78deea20d. 

Also, the last o of the svn co http://... line should be capitalized. 

Original comment by sbned...@gmail.com on 25 Nov 2011 at 10:09

GoogleCodeExporter commented 9 years ago
This looks to be caused by the inclusion of osg/ClampColor in osg.i (~line 767) 
in revision 9b34a591986c.  By adding:

    %ignore osg::ClampColor::getExtensions;
    %ignore osg::ClampColor::setExtensions;

before the %include the build succeeds.

Original comment by midgl...@janelia.hhmi.org on 29 Dec 2011 at 3:59

GoogleCodeExporter commented 9 years ago
added the new ignores, fixed in version r07405b7a7573   

Original comment by gerwinde...@gmail.com on 27 Mar 2012 at 11:28