[英]What am I missing in my compilation / linking stage of this C++ FreeType GLFW application?
g++ -framework OpenGL GLFT_Font.cpp test.cpp -o test -Wall -pedantic -lglfw -lfreetype - pthread `freetype-config --cflags`
Undefined symbols:
"_GetEventKind", referenced from:
__glfwKeyEventHandler in libglfw.a(macosx_window.o)
__glfwMouseEventHandler in libglfw.a(macosx_window.o)
__glfwWindowEventHandler in libglfw.a(macosx_window.o)
"_ShowWindow", referenced from:
__glfwPlatformOpenWindow in libglfw.a(macosx_window.o)
"_MenuSelect", referenced from:
This is on Mac OS X. 这是在Mac OS X上。
I am trying to get GLFT_FONT to work on MacOSX with GLFW and FreeType2. 我正在尝试让GLFT_FONT在带有GLFW和FreeType2的MacOSX上工作。 This is not the standard Makefile.
这不是标准的Makefile。 I changed parts of it myself (like the "-framework OpenGL"
我自己更改了部分内容(例如“ -framework OpenGL”
I am from Linux land, a bit new to Mac. 我来自Linux领域,对Mac有点陌生。
I am on Mac OS X 10.5.8; 我在Mac OS X 10.5.8上; using XCode 3.1.3
使用XCode 3.1.3
Thanks! 谢谢!
I tink those come from the Carbon framework. 我认为这些来自Carbon框架。
LIBS += -framework Carbon
LIBS + =-框架碳
should do it then. 然后应该这样做。
You need to link against the Carbon and AGL frameworks as well, ie 您还需要链接到Carbon和AGL框架,即
-framework AGL -framework Carbon
Also note that GLFW 2.6 only works as 32-bit on Mac OS X. 另请注意,GLFW 2.6在Mac OS X上仅作为32位工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.