Open qiangyt opened 2 years ago
I do not have a mac m1, would you built a glfw-mac-arm.a for me ? If any problem please contact me when build, digitalgust@163.com
@digitalgust , I cannot find glfw-mac-arm.a after miniJVM is built, what I found only is desktop/glfw_gui/c/deps/lib/mac/libglfw3.a
Or do you ask I to get a separated copy of glfw and build it? If yes, which version, and any customized build instructions?
I've commited the GLFW library for mac m1 (miniJVM/desktop/glfw_gui/c/deps/lib/mac_arm64/libglfw3.a) ,that file is download from glfw github, and changed the build script , but I can't test the script work for m1, could you help me to test it. run script path : binary/build_mac_linux.sh
@digitalgust ,
I got below error:
ld: warning: directory not found for option '-L../desktop/glfw_gui/c/deps/lib/mac_arm'
ld: library not found for -lglfw3
clang: error: linker command failed with exit code 1 (use -v to see invocation)
mv: rename libgui.dylib to mac_arm64/libgui.dylib: No such file or directory
So I changed build_mac_linux.sh line 14 from LIBDIR="mac_arm"
to LIBDIR="mac_arm64"
, it works:
1) got libgui.dylib in binary/mac_arm64
2) test.sh can successfully launch the ui example.
thanks for your work , I 've fix the script.
Got 2 kinds of errors/warnings: