- This topic has 1 reply, 2 voices, and was last updated 7 years, 11 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Building SOFA › [SOLVED] glVertexAttribLPointer (-fpermissive)
Tagged: 64_bits, GCC, Linux_other, SOFA_other
Hi Hugo,
I would like to come back to the problem.
Namely, the compilation error appears after 53%
(this is the OGl version).
I use the -fpermissive, however, it does not help.
I downloaded the sofa-master yesterday, with the commit #110
I use gcc-4.8,
These are the switches:
cd build_ogl
/users/kdm/ewpostek/soffa/cmake_tmp/cmake-3.2.2-Linux-i386/bin/cmake -DCMAKE_CXX_FLAGS:STRING=’-fpermissive’ -DCMAKE_C_FLAGS:STRING=’-fpermissive’ -DCMAKE_CXX_FLAGS_DEBUG:STRING=’-fpermissive’ -DBoost_DIR:PATH=/apl/tryton/boost/gcc/1.62 -DBoost_INCLUDE_DIR:PATH=/apl/tryton/boost/gcc/1.62/include -DBoost_LIBRARY_DIR:PATH=/apl/tryton/boost/gcc/1.62/lib ../sofa-master
[ 53%] Building CXX object SofaGeneral/SofaOpenglVisual/CMakeFiles/SofaOpenglVisual.dir/OglAttribute.cpp.o
In file included from /users/kdm/ewpostek/sofa_last/sofa-master/modules/SofaOpenglVisual/OglAttribute.cpp:25:0:
/users/kdm/ewpostek/sofa_last/sofa-master/SofaGeneral/../modules/SofaOpenglVisual/OglAttribute.inl: In member function ‘void sofa::component::visualmodel::OglAttribute<size, type, DataTypes>::enable()’:
/users/kdm/ewpostek/sofa_last/sofa-master/SofaGeneral/../modules/SofaOpenglVisual/OglAttribute.inl:195:70: warning: there are no arguments to ‘glVertexAttribLPointer’ that depend on a template parameter, so a declaration of ‘glVertexAttribLPointer’ must be available [-fpermissive]
glVertexAttribLPointer(_index, size, type, 0, (char*)NULL + 0);
The linux:
The linux:
Linux version 2.6.32-504.el6.x86_64 (mockbuild@c6b9.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) ) #1 SMP Wed Oct 15 04:27:16 UTC 2014
best regards,
Elek
Hi Elek,
Are you compiling using the flag SOFA_NO_OPENGL=1?
If yes, what plugin did you activate?
Does any of those plugins have a dependency to SofaOpenglVisual (or related module)?
As you can see from the continuous integration of the PR #110, the compilation ran successfully.
Best,
Hugo
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.