Burt.K

코코아를 좋아하는 프로그래머입니다 ;)

GLEW 빌드하기

make
sudo -s
make install

install -d -m 0755 "/usr/include/GL"
install -m 0644 include/GL/wglew.h "/usr/include/GL/"
install -m 0644 include/GL/glew.h "/usr/include/GL/"
install -m 0644 include/GL/glxew.h "/usr/include/GL/"
ar cr lib/libGLEW.a tmp/darwin/default/static/glew.o
strip -x lib/libGLEW.a
sed \
		-e "s|@prefix@|/usr|g" \
		-e "s|@libdir@|/usr/lib|g" \
		-e "s|@exec_prefix@|/usr/bin|g" \
		-e "s|@includedir@|/usr/include/GL|g" \
		-e "s|@version@|1.11.0|g" \
		-e "s|@cflags@||g" \
		-e "s|@libname@|GLEW|g" \
		-e "s|@requireslib@|glu|g" \
		< glew.pc.in > glew.pc
install -d -m 0755 "/usr/lib"
install -m 0644 lib/libGLEW.1.11.0.dylib "/usr/lib/"
ln -sf libGLEW.1.11.0.dylib "/usr/lib/libGLEW.1.11.dylib"
ln -sf libGLEW.1.11.0.dylib "/usr/lib/libGLEW.dylib"
install -m 0644 lib/libGLEW.a "/usr/lib/"
install -d -m 0755 "/usr/lib"
install -d -m 0755 "/usr/lib/pkgconfig"
install -m 0644 glew.pc "/usr/lib/pkgconfig/"
← XCode 에서 GLFW 사용하기
65K 메서드 제한 해결하기 →