Coder Social home page Coder Social logo

libigl / libigl-examples Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 20.0 8.97 MB

This repository contains examples applications that use libigl. They only work on MacOSX and they should be converted to tutorials.

License: Mozilla Public License 2.0

Makefile 4.54% C++ 83.20% Brainfuck 0.28% PHP 0.19% C 0.95% MATLAB 0.07% CMake 10.78%

libigl-examples's Introduction

libigl-examples's People

Contributors

alecjacobson avatar danielepanozzo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

libigl-examples's Issues

For the skeleton example, it maybe miss on parameters for calling readOFF function

if(!igl::readOFF(filename,vV,vF,vN)) maybe miss one parameter for rgb color values
vector<vector >vC;
if(!igl::readOFF(filename,vV,vF,vN, vC))

I'm working on windows, I have to remove this line in skeleton/example.cpp:
glutInitDisplayString( "rgba depth double samples>=8 ");
Otherwise, I will receive 'pixel format with necessary capabilities not found'

BTW, I add glFlush() before glutSwapBuffers() to avoid a white screen window.

opengl2?

Some examples are using opengl2 directory that appears to be missing.
For example:
#include <igl/opengl2/draw_skeleton_3d.h>
#include <igl/opengl2/draw_skeleton_vector_graphics.h>

Any suggestions on where to get these files?

ERRORS running "skeleton-builder" from libigl/tutorial

I am trying to run "skeleton-builder" from libigl-examples.
1- I put the the project in libigl/tutorial and added the project as a subdirectory in tutorial CMakeLists.txt
2- created a CMakeLists.txt inside the skeleton-builder project as follows :

get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
project(${PROJECT_NAME})
set(SRCS example.cpp)
find_package(GLUT REQUIRED)

add_executable(${PROJECT_NAME}_bin ${SRCS})
target_link_libraries(${PROJECT_NAME}_bin igl::core igl::opengl igl::opengl_glfw tutorials)

3- I copied /opengl2 into libigl/include/igl/ . I found opengl2 in libigl-legacy

4- in the .h and .cpp files I use:
#include "igl_inline.h"
#include "igl/opengl/gl.h"
#include "igl/opengl2/glu.h"

instead of
#include "../igl_inline.h"
#include "gl.h"
#include "glu.h"

5- When I run make, I got loooooong list of errors that seems to appear due old functions that that no longer in use in opengl! I tried fixing one by one until I noticed this is never ending :-D .. What to do in this case? this is the first project I am trying to run from libigl-examples. Any onther tutorials can run and work wel.

see errors below:
#------------------------------------------------------------------------------------------------------------------------------------------------------------
#------------------------------------------------------------------------------------------------------------------------------------------------------------
/home/shaimaa/libigl/include/igl/draw_mesh.cpp:111:7: error: ‘glBegin’ was not declared in this scope
111 | glBegin(GL_TRIANGLES);
| ^~~~~~~
/home/shaimaa/libigl/include/igl/draw_mesh.cpp:248:11: error: ‘glTexCoord2d’ was not declared in this scope; did you mean ‘glTexCoordP2ui’?
248 | glTexCoord2d(TC(tc,0),TC(tc,1));
| ^~~~~~~~~~~~
| glTexCoordP2ui
/home/shaimaa/libigl/include/igl/draw_mesh.cpp:255:15: error: ‘glColor3dv’ was not declared in this scope; did you mean ‘glColorP3ui’?
255 | glColor3dv(color.data());
| ^~~~~~~~~~
| glColorP3ui
/home/shaimaa/libigl/include/igl/draw_mesh.cpp:258:15: error: ‘glColor4dv’ was not declared in this scope; did you mean ‘glColorP4ui’?
258 | glColor4dv(color.data());
| ^~~~~~~~~~
| glColorP4ui
/home/shaimaa/libigl/include/igl/draw_mesh.cpp:266:11: error: ‘glNormal3d’ was not declared in this scope; did you mean ‘glNormalP3ui’?
266 | glNormal3d(N(n,0),N(n,1),N(n,2));
| ^~~~~~~~~~
| glNormalP3ui
/home/shaimaa/libigl/include/igl/draw_mesh.cpp:268:9: error: ‘glVertex3d’ was not declared in this scope; did you mean ‘glVertexP3ui’?
268 | glVertex3d(V(F(i,j),0),V(F(i,j),1),V(F(i,j),2));
| ^~~~~~~~~~
| glVertexP3ui
/home/shaimaa/libigl/include/igl/draw_mesh.cpp:272:3: error: ‘glEnd’ was not declared in this scope
272 | glEnd();
| ^~~~~
make[2]: *** [CMakeFiles/igl.dir/build.make:1428: CMakeFiles/igl.dir/include/igl/draw_mesh.cpp.o] Error 1
make[2]: *** [CMakeFiles/igl.dir/build.make:1480: CMakeFiles/igl.dir/include/igl/draw_skeleton_vector_graphics.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2347: CMakeFiles/igl.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
shaimaa@shaimaa:~/libigl/build$ make -j 8
[ 1%] Built target math
[ 1%] Built target tinyxml2
[ 1%] Built target igl_stb_image
[ 2%] Built target glad
[ 3%] Built target sys
[ 4%] Built target algorithms
[ 4%] Built target simd
[ 6%] Built target CoMISo
[ 6%] Built target tasking
[ 8%] Built target glfw
[ 8%] Built target tetgen
[ 9%] Built target triangle
[ 9%] Built target predicates
[ 9%] Built target lexers
[ 10%] Built target imgui
[ 10%] Built target imguizmo
[ 16%] Built target embree
[ 17%] Building CXX object CMakeFiles/igl.dir/include/igl/draw_point.cpp.o
[ 17%] Building CXX object CMakeFiles/igl.dir/include/igl/draw_floor.cpp.o
[ 17%] Building CXX object CMakeFiles/igl.dir/include/igl/draw_mesh.cpp.o
[ 17%] Building CXX object CMakeFiles/igl.dir/include/igl/draw_skeleton_3d.cpp.o
[ 17%] Building CXX object CMakeFiles/igl.dir/include/igl/draw_rectangular_marquee.cpp.o
[ 17%] Building CXX object CMakeFiles/igl.dir/include/igl/draw_beach_ball.cpp.o
[ 17%] Building CXX object CMakeFiles/igl.dir/include/igl/draw_skeleton_vector_graphics.cpp.o
/home/shaimaa/libigl/include/igl/draw_floor.cpp: In function ‘void igl::opengl2::draw_floor(const float*, const float*, int, int)’:
/home/shaimaa/libigl/include/igl/draw_floor.cpp:19:17: error: ‘GL_LIGHTING’ was not declared in this scope; did you mean ‘GL_HIGH_INT’?
19 | glGetIntegerv(GL_LIGHTING,&old_lighting);
| ^~~~~~~~~~~
| GL_HIGH_INT
/home/shaimaa/libigl/include/igl/draw_floor.cpp:20:17: error: ‘GL_COLOR_MATERIAL’ was not declared in this scope
20 | glGetIntegerv(GL_COLOR_MATERIAL,&old_color_material);
| ^~~~~~~~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_floor.cpp:22:30: error: ‘GL_EMISSION’ was not declared in this scope
22 | glColorMaterial( GL_FRONT, GL_EMISSION);
| ^~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_floor.cpp:22:3: error: ‘glColorMaterial’ was not declared in this scope; did you mean ‘glColorMaski’?
22 | glColorMaterial( GL_FRONT, GL_EMISSION);
| ^~~~~~~~~~~~~~~
| glColorMaski
/home/shaimaa/libigl/include/igl/draw_floor.cpp:24:30: error: ‘GL_AMBIENT_AND_DIFFUSE’ was not declared in this scope
24 | glColorMaterial( GL_FRONT, GL_AMBIENT_AND_DIFFUSE);
| ^~~~~~~~~~~~~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_floor.cpp:27:26: error: ‘GL_AMBIENT’ was not declared in this scope; did you mean ‘GL_INT’?
27 | glMaterialfv(GL_FRONT, GL_AMBIENT, black);
| ^~~~~~~~~~
| GL_INT
/home/shaimaa/libigl/include/igl/draw_floor.cpp:27:3: error: ‘glMaterialfv’ was not declared in this scope
27 | glMaterialfv(GL_FRONT, GL_AMBIENT, black);
| ^~~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_floor.cpp:28:26: error: ‘GL_DIFFUSE’ was not declared in this scope; did you mean ‘GL_FALSE’?
28 | glMaterialfv(GL_FRONT, GL_DIFFUSE, black);
| ^~~~~~~~~~
| GL_FALSE
/home/shaimaa/libigl/include/igl/draw_floor.cpp:29:26: error: ‘GL_SPECULAR’ was not declared in this scope
29 | glMaterialfv(GL_FRONT, GL_SPECULAR, black);
| ^~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_floor.cpp:31:25: error: ‘GL_SHININESS’ was not declared in this scope
31 | glMaterialf(GL_FRONT, GL_SHININESS,0);
| ^~~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_floor.cpp:31:3: error: ‘glMaterialf’ was not declared in this scope
31 | glMaterialf(GL_FRONT, GL_SHININESS,0);
| ^~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_floor.cpp:42:3: error: ‘glBegin’ was not declared in this scope
42 | glBegin(GL_QUADS);
| ^~~~~~~
/home/shaimaa/libigl/include/igl/draw_floor.cpp:43:3: error: ‘glNormal3f’ was not declared in this scope; did you mean ‘glNormalP3ui’?
43 | glNormal3f(0,1,0);
| ^~~~~~~~~~
| glNormalP3ui
/home/shaimaa/libigl/include/igl/draw_floor.cpp:50:9: error: ‘glColor4fv’ was not declared in this scope; did you mean ‘glColorP4ui’?
50 | glColor4fv(colorA);
| ^~~~~~~~~~
| glColorP4ui
/home/shaimaa/libigl/include/igl/draw_floor.cpp:53:9: error: ‘glColor4fv’ was not declared in this scope; did you mean ‘glColorP4ui’?
53 | glColor4fv(colorB);
| ^~~~~~~~~~
| glColorP4ui
/home/shaimaa/libigl/include/igl/draw_floor.cpp:55:7: error: ‘glVertex3f’ was not declared in this scope; did you mean ‘glVertexP3ui’?
55 | glVertex3f( xSizeX,0,(y+1)SizeY);
| ^~~~~~~~~~
| glVertexP3ui
/home/shaimaa/libigl/include/igl/draw_floor.cpp:61:3: error: ‘glEnd’ was not declared in this scope
61 | glEnd();
| ^~~~~
/home/shaimaa/libigl/include/igl/draw_floor.cpp: In function ‘void igl::opengl2::draw_floor_outline(const float
, const float
, int, int)’:
/home/shaimaa/libigl/include/igl/draw_floor.cpp:83:17: error: ‘GL_LIGHTING’ was not declared in this scope; did you mean ‘GL_HIGH_INT’?
83 | glGetIntegerv(GL_LIGHTING,&old_lighting);
| ^~~~~~~~~~~
| GL_HIGH_INT
/home/shaimaa/libigl/include/igl/draw_floor.cpp:84:17: error: ‘GL_COLOR_MATERIAL’ was not declared in this scope
84 | glGetIntegerv(GL_COLOR_MATERIAL,&old_color_material);
| ^~~~~~~~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_floor.cpp:89:26: error: ‘GL_AMBIENT’ was not declared in this scope; did you mean ‘GL_INT’?
89 | glMaterialfv(GL_FRONT, GL_AMBIENT, black);
| ^~~~~~~~~~
| GL_INT
/home/shaimaa/libigl/include/igl/draw_floor.cpp:89:3: error: ‘glMaterialfv’ was not declared in this scope
89 | glMaterialfv(GL_FRONT, GL_AMBIENT, black);
| ^~~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_floor.cpp:90:26: error: ‘GL_DIFFUSE’ was not declared in this scope; did you mean ‘GL_FALSE’?
90 | glMaterialfv(GL_FRONT, GL_DIFFUSE, black);
| ^~~~~~~~~~
| GL_FALSE
/home/shaimaa/libigl/include/igl/draw_floor.cpp:91:26: error: ‘GL_SPECULAR’ was not declared in this scope
91 | glMaterialfv(GL_FRONT, GL_SPECULAR, black);
| ^~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_floor.cpp:92:26: error: ‘GL_EMISSION’ was not declared in this scope
92 | glMaterialfv(GL_FRONT, GL_EMISSION, black);
| ^~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_floor.cpp:93:25: error: ‘GL_SHININESS’ was not declared in this scope
93 | glMaterialf(GL_FRONT, GL_SHININESS,0);
| ^~~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_floor.cpp:93:3: error: ‘glMaterialf’ was not declared in this scope
93 | glMaterialf(GL_FRONT, GL_SHININESS,0);
| ^~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_floor.cpp:104:3: error: ‘glBegin’ was not declared in this scope
104 | glBegin(GL_LINES);
| ^~~~~~~
/home/shaimaa/libigl/include/igl/draw_floor.cpp:115:11: error: ‘glColor4fv’ was not declared in this scope; did you mean ‘glColorP4ui’?
115 | glColor4fv(colorA);
| ^~~~~~~~~~
| glColorP4ui
/home/shaimaa/libigl/include/igl/draw_floor.cpp:119:11: error: ‘glColor4fv’ was not declared in this scope; did you mean ‘glColorP4ui’?
119 | glColor4fv(colorB);
| ^~~~~~~~~~
| glColorP4ui
/home/shaimaa/libigl/include/igl/draw_floor.cpp:122:9: error: ‘glVertex3f’ was not declared in this scope; did you mean ‘glVertexP3ui’?
122 | glVertex3f((x+1)SizeX,0,ySizeY);
| ^~~~~~~~~~
| glVertexP3ui
/home/shaimaa/libigl/include/igl/draw_floor.cpp:133:11: error: ‘glColor4fv’ was not declared in this scope; did you mean ‘glColorP4ui’?
133 | glColor4fv(colorA);
| ^~~~~~~~~~
| glColorP4ui
/home/shaimaa/libigl/include/igl/draw_floor.cpp:137:11: error: ‘glColor4fv’ was not declared in this scope; did you mean ‘glColorP4ui’?
137 | glColor4fv(colorB);
| ^~~~~~~~~~
| glColorP4ui
/home/shaimaa/libigl/include/igl/draw_floor.cpp:140:9: error: ‘glVertex3f’ was not declared in this scope; did you mean ‘glVertexP3ui’?
140 | glVertex3f(xSizeX,0,(y+1)SizeY);
| ^~~~~~~~~~
| glVertexP3ui
/home/shaimaa/libigl/include/igl/draw_floor.cpp:145:3: error: ‘glEnd’ was not declared in this scope
145 | glEnd();
| ^~~~~
make[2]: *** [CMakeFiles/igl.dir/build.make:1415: CMakeFiles/igl.dir/include/igl/draw_floor.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/shaimaa/libigl/include/igl/draw_point.cpp:11:10: fatal error: gl.h: No such file or directory
11 | #include "gl.h"
| ^~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/igl.dir/build.make:1441: CMakeFiles/igl.dir/include/igl/draw_point.cpp.o] Error 1
/home/shaimaa/libigl/include/igl/draw_skeleton_3d.cpp:10:10: fatal error: ../PI.h: No such file or directory
10 | #include "../PI.h"
| ^~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/igl.dir/build.make:1467: CMakeFiles/igl.dir/include/igl/draw_skeleton_3d.cpp.o] Error 1
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp: In function ‘void igl::opengl2::draw_beach_ball()’:
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp:239:17: error: ‘GL_COLOR_MATERIAL’ was not declared in this scope; did you mean ‘GL_COLOR_RENDERABLE’?
239 | glGetIntegerv(GL_COLOR_MATERIAL,&cm);
| ^~~~~~~~~~~~~~~~~
| GL_COLOR_RENDERABLE
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp:242:37: error: ‘GL_DIFFUSE’ was not declared in this scope; did you mean ‘GL_FALSE’?
242 | glColorMaterial(GL_FRONT_AND_BACK,GL_DIFFUSE);
| ^~~~~~~~~~
| GL_FALSE
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp:242:3: error: ‘glColorMaterial’ was not declared in this scope; did you mean ‘glColorMaski’?
242 | glColorMaterial(GL_FRONT_AND_BACK,GL_DIFFUSE);
| ^~~~~~~~~~~~~~~
| glColorMaski
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp:246:35: error: ‘GL_AMBIENT’ was not declared in this scope; did you mean ‘GL_MIN’?
246 | glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, mat_ambient);
| ^~~~~~~~~~
| GL_MIN
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp:246:3: error: ‘glMaterialfv’ was not declared in this scope
246 | glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, mat_ambient);
| ^~~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp:247:35: error: ‘GL_SPECULAR’ was not declared in this scope
247 | glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, mat_specular);
| ^~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp:248:35: error: ‘GL_SHININESS’ was not declared in this scope
248 | glMaterialf( GL_FRONT_AND_BACK, GL_SHININESS, mat_shininess);
| ^~~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp:248:3: error: ‘glMaterialf’ was not declared in this scope
248 | glMaterialf( GL_FRONT_AND_BACK, GL_SHININESS, mat_shininess);
| ^~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp:250:3: error: ‘glPushMatrix’ was not declared in this scope
250 | glPushMatrix();
| ^~~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp:251:3: error: ‘glScalef’ was not declared in this scope
251 | glScalef(0.7,0.7,0.7);
| ^~~~~~~~
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp:252:12: error: ‘GL_NORMALIZE’ was not declared in this scope
252 | glEnable(GL_NORMALIZE);
| ^~~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp:253:3: error: ‘glBegin’ was not declared in this scope
253 | glBegin(GL_TRIANGLES);
| ^~~~~~~
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp:256:5: error: ‘glNormal3fv’ was not declared in this scope; did you mean ‘glNormalP3ui’?
256 | glNormal3fv(&s_SphTri[i
3]);
| ^~~~~~~~~~~
| glNormalP3ui
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp:257:5: error: ‘glColor4ub’ was not declared in this scope; did you mean ‘glColorP4ui’?
257 | glColor4ub(GLubyte(s_SphCol[i]>>16), GLubyte(s_SphCol[i]>>8), GLubyte(s_SphCol[i]), GLubyte(s_SphCol[i]>>24));
| ^~~~~~~~~~
| glColorP4ui
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp:258:5: error: ‘glVertex3fv’ was not declared in this scope; did you mean ‘glVertexP3ui’?
258 | glVertex3fv(&s_SphTri[i
3]);
| ^~~~~~~~~~~
| glVertexP3ui
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp:260:3: error: ‘glEnd’ was not declared in this scope
260 | glEnd();
| ^~~~~
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp:261:3: error: ‘glPopMatrix’ was not declared in this scope
261 | glPopMatrix();
| ^~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp:267:5: error: ‘glColor3f’ was not declared in this scope; did you mean ‘glColorP3ui’?
267 | glColor3f(k==0,k==1,k==2);
| ^~~~~~~~~
| glColorP3ui
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp:268:5: error: ‘glRotatef’ was not declared in this scope
268 | glRotatef((k==2?-1.0:1.0)90,k==0,k==2,k==1);
| ^~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp:274:9: error: ‘glNormal3fv’ was not declared in this scope; did you mean ‘glNormalP3ui’?
274 | glNormal3fv(&s_ArrowNorm[j][i]);
| ^~~~~~~~~~~
| glNormalP3ui
/home/shaimaa/libigl/include/igl/draw_beach_ball.cpp:275:9: error: ‘glVertex3fv’ was not declared in this scope; did you mean ‘glVertexP3ui’?
275 | glVertex3fv(&s_ArrowTri[j][i]);
| ^~~~~~~~~~~
| glVertexP3ui
make[2]: *** [CMakeFiles/igl.dir/build.make:1402: CMakeFiles/igl.dir/include/igl/draw_beach_ball.cpp.o] Error 1
/home/shaimaa/libigl/include/igl/draw_rectangular_marquee.cpp: In function ‘void igl::opengl2::draw_rectangular_marquee(int, int, int, int)’:
/home/shaimaa/libigl/include/igl/draw_rectangular_marquee.cpp:23:17: error: ‘GL_LIGHTING’ was not declared in this scope; did you mean ‘GL_HIGH_INT’?
23 | glGetIntegerv(GL_LIGHTING,&l);
| ^~~~~~~~~~~
| GL_HIGH_INT
/home/shaimaa/libigl/include/igl/draw_rectangular_marquee.cpp:25:17: error: ‘GL_LINE_STIPPLE’ was not declared in this scope; did you mean ‘GL_LINE_STRIP’?
25 | glGetIntegerv(GL_LINE_STIPPLE,&s);
| ^~~~~~~~~~~~~~~
| GL_LINE_STRIP
/home/shaimaa/libigl/include/igl/draw_rectangular_marquee.cpp:34:16: error: ‘GL_PROJECTION’ was not declared in this scope; did you mean ‘GL_LOCATION’?
34 | glMatrixMode(GL_PROJECTION);
| ^~~~~~~~~~~~~
| GL_LOCATION
/home/shaimaa/libigl/include/igl/draw_rectangular_marquee.cpp:34:3: error: ‘glMatrixMode’ was not declared in this scope
34 | glMatrixMode(GL_PROJECTION);
| ^~~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_rectangular_marquee.cpp:35:3: error: ‘glPushMatrix’ was not declared in this scope; did you mean ‘gluPickMatrix’?
35 | glPushMatrix();
| ^~~~~~~~~~~~
| gluPickMatrix
/home/shaimaa/libigl/include/igl/draw_rectangular_marquee.cpp:36:3: error: ‘glLoadIdentity’ was not declared in this scope
36 | glLoadIdentity();
| ^~~~~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_rectangular_marquee.cpp:38:16: error: ‘GL_MODELVIEW’ was not declared in this scope
38 | glMatrixMode(GL_MODELVIEW);
| ^~~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_rectangular_marquee.cpp:43:3: error: ‘glLineStipple’ was not declared in this scope
43 | glLineStipple(3,0xAAAA);
| ^~~~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_rectangular_marquee.cpp:45:3: error: ‘glColor4f’ was not declared in this scope; did you mean ‘glColorP4ui’?
45 | glColor4f(0.2,0.2,0.2,1);
| ^~~~~~~~~
| glColorP4ui
/home/shaimaa/libigl/include/igl/draw_rectangular_marquee.cpp:46:3: error: ‘glBegin’ was not declared in this scope
46 | glBegin(GL_LINE_STRIP);
| ^~~~~~~
/home/shaimaa/libigl/include/igl/draw_rectangular_marquee.cpp:47:3: error: ‘glVertex2d’ was not declared in this scope; did you mean ‘glVertexP2ui’?
47 | glVertex2d(from_x,from_y);
| ^~~~~~~~~~
| glVertexP2ui
/home/shaimaa/libigl/include/igl/draw_rectangular_marquee.cpp:52:3: error: ‘glEnd’ was not declared in this scope
52 | glEnd();
| ^~~~~
/home/shaimaa/libigl/include/igl/draw_rectangular_marquee.cpp:54:3: error: ‘glPopMatrix’ was not declared in this scope; did you mean ‘gluPickMatrix’?
54 | glPopMatrix();
| ^~~~~~~~~~~
| gluPickMatrix
/home/shaimaa/libigl/include/igl/draw_skeleton_vector_graphics.cpp: In function ‘void igl::opengl2::draw_skeleton_vector_graphics(const MatrixXd&, const MatrixXi&, const float
, const float*)’:
/home/shaimaa/libigl/include/igl/draw_skeleton_vector_graphics.cpp:30:17: error: ‘GL_LIGHTING’ was not declared in this scope; did you mean ‘GL_HIGH_INT’?
30 | glGetIntegerv(GL_LIGHTING,&old_lighting);
| ^~~~~~~~~~~
| GL_HIGH_INT
/home/shaimaa/libigl/include/igl/draw_skeleton_vector_graphics.cpp:33:17: error: ‘GL_COLOR_MATERIAL’ was not declared in this scope
33 | glGetIntegerv(GL_COLOR_MATERIAL,&cm);
| ^~~~~~~~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_skeleton_vector_graphics.cpp:35:13: error: ‘GL_LINE_STIPPLE’ was not declared in this scope; did you mean ‘GL_LINE_STRIP’?
35 | glDisable(GL_LINE_STIPPLE);
| ^~~~~~~~~~~~~~~
| GL_LINE_STRIP
/home/shaimaa/libigl/include/igl/draw_skeleton_vector_graphics.cpp:39:37: error: ‘GL_DIFFUSE’ was not declared in this scope; did you mean ‘GL_FALSE’?
39 | glColorMaterial(GL_FRONT_AND_BACK,GL_DIFFUSE);
| ^~~~~~~~~~
| GL_FALSE
/home/shaimaa/libigl/include/igl/draw_skeleton_vector_graphics.cpp:39:3: error: ‘glColorMaterial’ was not declared in this scope; did you mean ‘glColorMaski’?
39 | glColorMaterial(GL_FRONT_AND_BACK,GL_DIFFUSE);
| ^~~~~~~~~~~~~~~
| glColorMaski
/home/shaimaa/libigl/include/igl/draw_skeleton_vector_graphics.cpp:43:35: error: ‘GL_AMBIENT’ was not declared in this scope; did you mean ‘GL_MIN’?
43 | glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, mat_ambient);
| ^~~~~~~~~~
| GL_MIN
/home/shaimaa/libigl/include/igl/draw_skeleton_vector_graphics.cpp:43:3: error: ‘glMaterialfv’ was not declared in this scope
43 | glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, mat_ambient);
| ^~~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_skeleton_vector_graphics.cpp:45:35: error: ‘GL_SPECULAR’ was not declared in this scope
45 | glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, mat_specular);
| ^~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_skeleton_vector_graphics.cpp:46:35: error: ‘GL_SHININESS’ was not declared in this scope
46 | glMaterialf( GL_FRONT_AND_BACK, GL_SHININESS, mat_shininess);
| ^~~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_skeleton_vector_graphics.cpp:46:3: error: ‘glMaterialf’ was not declared in this scope
46 | glMaterialf( GL_FRONT_AND_BACK, GL_SHININESS, mat_shininess);
| ^~~~~~~~~~~
/home/shaimaa/libigl/include/igl/draw_skeleton_vector_graphics.cpp:52:15: error: ‘glColor3fv’ was not declared in this scope; did you mean ‘glColorP3ui’?
52 | case 0: glColor3fv(WHITE); glLineWidth(10); break;
| ^~~~~~~~~~
| glColorP3ui
make[2]: *** [CMakeFiles/igl.dir/build.make:1454: CMakeFiles/igl.dir/include/igl/draw_rectangular_marquee.cpp.o] Error 1
/home/shaimaa/libigl/include/igl/draw_skeleton_vector_graphics.cpp:57:5: error: ‘glBegin’ was not declared in this scope
57 | glBegin(GL_LINES);
| ^~~~~~~
/home/shaimaa/libigl/include/igl/draw_skeleton_vector_graphics.cpp:62:7: error: ‘glVertex3dv’ was not declared in this scope; did you mean ‘glVertexP3ui’?
62 | glVertex3dv(tip.data());
| ^~~~~~~~~~~
| glVertexP3ui
/home/shaimaa/libigl/include/igl/draw_skeleton_vector_graphics.cpp:65:5: error: ‘glEnd’ was not declared in this scope
65 | glEnd();
| ^~~~~
/home/shaimaa/libigl/include/igl/draw_skeleton_vector_graphics.cpp:68:3: error: ‘glColor3fv’ was not declared in this scope; did you mean ‘glColorP3ui’?
68 | glColor3fv(point_color);
| ^~~~~~~~~~
| glColorP3ui
/home/shaimaa/libigl/include/igl/draw_mesh.cpp: In function ‘void igl::opengl2::draw_mesh(const MatrixXd&, const MatrixXi&, const MatrixXd&, const MatrixXi&, const MatrixXd&, const MatrixXd&, const MatrixXi&, const MatrixXd&, GLuint, const MatrixXi&, GLuint)’:
/home/shaimaa/libigl/include/igl/draw_mesh.cpp:111:7: error: ‘glBegin’ was not declared in this scope
111 | glBegin(GL_TRIANGLES);
| ^~~~~~~
/home/shaimaa/libigl/include/igl/draw_mesh.cpp:248:11: error: ‘glTexCoord2d’ was not declared in this scope; did you mean ‘glTexCoordP2ui’?
248 | glTexCoord2d(TC(tc,0),TC(tc,1));
| ^~~~~~~~~~~~
| glTexCoordP2ui
/home/shaimaa/libigl/include/igl/draw_mesh.cpp:255:15: error: ‘glColor3dv’ was not declared in this scope; did you mean ‘glColorP3ui’?
255 | glColor3dv(color.data());
| ^~~~~~~~~~
| glColorP3ui
/home/shaimaa/libigl/include/igl/draw_mesh.cpp:258:15: error: ‘glColor4dv’ was not declared in this scope; did you mean ‘glColorP4ui’?
258 | glColor4dv(color.data());
| ^~~~~~~~~~
| glColorP4ui
/home/shaimaa/libigl/include/igl/draw_mesh.cpp:266:11: error: ‘glNormal3d’ was not declared in this scope; did you mean ‘glNormalP3ui’?
266 | glNormal3d(N(n,0),N(n,1),N(n,2));
| ^~~~~~~~~~
| glNormalP3ui
/home/shaimaa/libigl/include/igl/draw_mesh.cpp:268:9: error: ‘glVertex3d’ was not declared in this scope; did you mean ‘glVertexP3ui’?
268 | glVertex3d(V(F(i,j),0),V(F(i,j),1),V(F(i,j),2));
| ^~~~~~~~~~
| glVertexP3ui
/home/shaimaa/libigl/include/igl/draw_mesh.cpp:272:3: error: ‘glEnd’ was not declared in this scope
272 | glEnd();
| ^~~~~
make[2]: *** [CMakeFiles/igl.dir/build.make:1428: CMakeFiles/igl.dir/include/igl/draw_mesh.cpp.o] Error 1
make[2]: *** [CMakeFiles/igl.dir/build.make:1480: CMakeFiles/igl.dir/include/igl/draw_skeleton_vector_graphics.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2347: CMakeFiles/igl.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
#------------------------------------------------------------------------------------------------------------------------------------------------------------
end

Get skeleton-poser compiled on Ubuntu 16.04

Hi Mr dev,
I figured that these examples are a bit of out-dated, but still I need to compile the skeleton-poser on Ubuntu. I tried to modify the Makefile.conf, but no help. Considering the fact that I had succeeded compiling the libigl/tutorial on Visual Studio 2015, I tried to compile skeleton-poser on Visual Studio 2015, but there were still errors. Could you please help me with this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.