Comments (2)
I Installed OpenNI-MacOSX-x64-2.2.0.33 and now I get:
g++ src/OSCeleton.cpp src/viewer.cpp -O3 -Wno-write-strings -Iliblo-0.26-modified -I/usr/X11/include -I/usr/include/ni -lOpenNI -lstdc++ -L/usr/X11/lib -lGL -lGLU -lglut liblo-0.26-modified/src/.libs/*.o -o osceleton
In file included from src/OSCeleton.cpp:28:
src/common.h:5:10: error: 'GL/glut.h' file not found with <angled> include; use "quotes" instead
#include <GL/glut.h>
^~~~~~~~~~~
"GL/glut.h"
In file included from src/OSCeleton.cpp:28:
In file included from src/common.h:5:
src/GL/glut.h:137:10: fatal error: 'GL/gl.h' file not found
#include <GL/gl.h>
^
2 errors generated.
In file included from src/viewer.cpp:1:
src/common.h:5:10: error: 'GL/glut.h' file not found with <angled> include; use "quotes" instead
#include <GL/glut.h>
^~~~~~~~~~~
"GL/glut.h"
In file included from src/viewer.cpp:1:
In file included from src/common.h:5:
src/GL/glut.h:137:10: fatal error: 'GL/gl.h' file not found
#include <GL/gl.h>
^
2 errors generated.
make: *** [osceleton] Error 1
from osceleton.
I modified one line in the Makefile:
g++ src/OSCeleton.cpp src/viewer.cpp -O3 -Wno-write-strings -Iliblo-0.26-modified -I/usr/X11/include -I/usr/include/ni -lOpenNI -lstdc++ -L/usr/X11/lib -framework OpenGL -framework GLUT liblo-0.26-modified/src/.libs/*.o -o osceleton
Based on this SO answer I modified viewer.cpp:
#ifndef __MAC__
#define __MAC__ 1
#endif
#ifdef __MAC__
# include <OpenGL/glu.h>
# include <OpenGL/gl.h>
#else
#include <GL/glu.h>
# include <GL/gl.h>
#endif
$ ls /System/Library/Frameworks/GLUT.framework/headers
copy.h glsmapint.h glutf90.h intersect.h segment.h vvector.h
extrude.h glut.h glutstroke.h port.h tube.h
glsmap.h glutbitmap.h gutil.h rot.h tube_gc.h
$ ls /System/Library/Frameworks/OpenGL.framework/Headers/
CGLContext.h CGLMacro.h OpenGLAvailability.h glext.h glu.h
CGLCurrent.h CGLRenderers.h gl.h gliContext.h gluContext.h
CGLDevice.h CGLTypes.h gl3.h gliDispatch.h gluMacro.h
CGLIOSurface.h OpenGL.h gl3ext.h gltypes.h
I changed common.h to this:
#ifndef __MAC__
#define __MAC__ 1
#endif
#ifdef __MAC__
# include <GLUT/glut.h>
#else
#endif
extern int window;
#include "viewer.h"
I may have modified another file or two, but if I did, they were all errors relationg to the GL library.
from osceleton.
Related Issues (20)
- joint and orientation data mixed HOT 1
- Improper Message for Lost User HOT 1
- Initial Center of Mass Tracking broken HOT 1
- Error during install HOT 4
- Segmentation fault HOT 12
- Missing argument -lpthread in Makefile (small Issue) HOT 2
- -k mode not working HOT 2
- Why does i receive /r_foot and /r_knee only? HOT 3
- Bad CPU type with osceleton-v1.2.1_OSX
- make failed libpthread HOT 1
- error/OSCeleton/Stickmanetic
- License of application with OSCeleton
- OSCeleton
- kitchen mode not working? HOT 2
- parameter to send only new_user id
- /lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line HOT 2
- Link against liblo-modified
- Re-add windows binaries? HOT 1
- OSceleton rewrite for Nuitrack
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osceleton.