Build for Intel Mac

nobody wrote on Saturday, April 01, 2006:

Hi,

Does anyone know what mods I need to make to the makefile to get GLFW to build on an Intel mac? Using make macosx-gcc generates these errors:

make[1]: Nothing to be done for `default’.
/bin/sh MakeBundle.sh Triangle
gcc -I…/include triangle.c -L…/lib/macosx/ -lglfw -framework AGL -framework OpenGL -framework Carbon -o Triangle.app/Contents/MacOS/Triangle
/usr/bin/ld: warning …/lib/macosx//libglfw.a archive’s cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (can’t load from it)
/usr/bin/ld: Undefined symbols:
_glfwEnable
_glfwGetKey
_glfwGetMousePos
_glfwGetTime
_glfwGetWindowParam
_glfwGetWindowSize
_glfwInit
_glfwOpenWindow
_glfwSetWindowTitle
_glfwSwapBuffers
_glfwSwapInterval
_glfwTerminate
collect2: ld returned 1 exit status
make[1]: *** [Triangle.app/Contents/MacOS/GLFWApplication] Error 1
make: *** [macosx-gcc] Error 2

nobody wrote on Wednesday, April 05, 2006:

On a fresh download of the package, I ran make macosx-gcc and it worked fine

Did you copy the tree from another system where it had already been built?