xcode を使用して Mac で glfw 2.7.5 を使用しようとしていますが、次のエラーが発生します。
Undefined symbols for architecture i386:
"_glfwGetKey", referenced from:
Game::run() in Game.o
RedScene::update(float, bool) in main.o
"_glfwGetWindowParam", referenced from:
Game::run() in Game.o
"_glfwInit", referenced from:
Window::Window() in Window.o
"_glfwOpenWindow", referenced from:
createWindow(int, int, int, int, int, int, int, int) in Window.o
"_glfwOpenWindowHint", referenced from:
Window::Window() in Window.o
"_glfwPollEvents", referenced from:
Game::run() in Game.o
"_glfwSetKeyCallback", referenced from:
createWindow(int, int, int, int, int, int, int, int) in Window.o
"_glfwSetMouseButtonCallback", referenced from:
createWindow(int, int, int, int, int, int, int, int) in Window.o
"_glfwSetMousePosCallback", referenced from:
createWindow(int, int, int, int, int, int, int, int) in Window.o
"_glfwSetMouseWheelCallback", referenced from:
createWindow(int, int, int, int, int, int, int, int) in Window.o
"_glfwSetWindowTitle", referenced from:
Window::setCaption(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in Window.o
"_glfwSwapBuffers", referenced from:
RedScene::update(float, bool) in main.o
"_glfwSwapInterval", referenced from:
createWindow(int, int, int, int, int, int, int, int) in Window.o
"_glfwTerminate", referenced from:
Window::~Window() in Window.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
このProblems using GLFW and XCode : won't compileおよびインターネット上の他のいくつかのリンクを読みましたが、解決策が見つかりません。
Cocoa フレームワーク、OpenGL フレームワーク、および libglfw.a (「sudo make cocoa-install」を使用してコンパイル) をリンカー フラグに設定し、-lgflw を設定し、32 ビット Intel 用にビルドしています。最初は 64 ビット用にビルドしていましたが、GLFW は Mac ではまだサポートしていないと思います (ジョイスティック ファイル エラーが発生していました)。32 ビット用にコンパイルするとエラーが変化し、関数が見つかりません。使っています。これを修正するために何ができるか考えていますか?