Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M2, MacOS - yaksha with raylib build fails in latest version #90

Open
JaDogg opened this issue May 31, 2024 · 1 comment
Open

M2, MacOS - yaksha with raylib build fails in latest version #90

JaDogg opened this issue May 31, 2024 · 1 comment
Assignees
Labels

Comments

@JaDogg
Copy link
Collaborator

JaDogg commented May 31, 2024

No description provided.

@JaDogg JaDogg added the bug Something isn't working label May 31, 2024
@JaDogg JaDogg self-assigned this May 31, 2024
@DeanHnter
Copy link

DeanHnter commented May 31, 2024

Hi, Thanks for checking this out. It seems like it could be loosely similar to this issue raised on zigs repo even if the macos version im having issues with is more new:

ziglang/zig#10478

Note: If i upgrade my system version of Zig to 0.12.0 i receive new errors :

/Users/user/Downloads/yaksha_macos-aarch64/runtime/raylib/src/external/glfw/src/cocoa_init.m:78:5: error: use of undeclared identifier 'NSString' 78 | NSString* appName = nil; | ^ /Users/user/Downloads/yaksha_macos-aarch64/runtime/raylib/src/external/glfw/src/cocoa_init.m:78:15: error: use of undeclared identifier 'appName' 78 | NSString* appName = nil; | ^ /Users/user/Downloads/yaksha_macos-aarch64/runtime/raylib/src/external/glfw/src/cocoa_init.m:79:5: error: use of undeclared identifier 'NSDictionary' 79 | NSDictionary* bundleInfo = [[NSBundle mainBundle] infoDictionary]; | ^ /Users/user/Downloads/yaksha_macos-aarch64/runtime/raylib/src/external/glfw/src/cocoa_init.m:79:19: error: use of undeclared identifier 'bundleInfo' 79 | NSDictionary* bundleInfo = [[NSBundle mainBundle] infoDictionary]; | ^ /Users/user/Downloads/yaksha_macos-aarch64/runtime/raylib/src/external/glfw/src/cocoa_init.m:79:32: error: expected expression 79 | NSDictionary* bundleInfo = [[NSBundle mainBundle] infoDictionary]; | ^ /Users/user/Downloads/yaksha_macos-aarch64/runtime/raylib/src/external/glfw/src/cocoa_init.m:80:5: error: use of undeclared identifier 'NSString' 80 | NSString* nameKeys[] = | ^ /Users/user/Downloads/yaksha_macos-aarch64/runtime/raylib/src/external/glfw/src/cocoa_init.m:80:15: error: use of undeclared identifier 'nameKeys' 80 | NSString* nameKeys[] = | ^ /Users/user/Downloads/yaksha_macos-aarch64/runtime/raylib/src/external/glfw/src/cocoa_init.m:80:24: error: expected expression 80 | NSString* nameKeys[] = | ^ /Users/user/Downloads/yaksha_macos-aarch64/runtime/raylib/src/external/glfw/src/cocoa_init.m:81:5: error: expected expression 81 | { | ^ /Users/user/Downloads/yaksha_macos-aarch64/runtime/raylib/src/external/glfw/src/cocoa_init.m:89:36: error: use of undeclared identifier 'nameKeys' 89 | for (size_t i = 0; i < sizeof(nameKeys) / sizeof(nameKeys[0]); i++) | ^ /Users/user/Downloads/yaksha_macos-aarch64/runtime/raylib/src/external/glfw/src/cocoa_init.m:89:55: error: use of undeclared identifier 'nameKeys' 89 | for (size_t i = 0; i < sizeof(nameKeys) / sizeof(nameKeys[0]); i++) | ^ /Users/user/Downloads/yaksha_macos-aarch64/runtime/raylib/src/external/glfw/src/cocoa_init.m:91:19: error: use of undeclared identifier 'bundleInfo' 91 | id name = bundleInfo[nameKeys[i]]; | ^ /Users/user/Downloads/yaksha_macos-aarch64/runtime/raylib/src/external/glfw/src/cocoa_init.m:91:30: error: use of undeclared identifier 'nameKeys' 91 | id name = bundleInfo[nameKeys[i]]; | ^ /Users/user/Downloads/yaksha_macos-aarch64/runtime/raylib/src/external/glfw/src/cocoa_init.m:93:13: error: expected expression 93 | [name isKindOfClass:[NSString class]] && | ^ /Users/user/Downloads/yaksha_macos-aarch64/runtime/raylib/src/external/glfw/src/cocoa_init.m:96:13: error: use of undeclared identifier 'appName' 96 | appName = name; | ^ /Users/user/Downloads/yaksha_macos-aarch64/runtime/raylib/src/external/glfw/src/cocoa_init.m:101:10: error: use of undeclared identifier 'appName' 101 | if (!appName) | ^ /Users/user/Downloads/yaksha_macos-aarch64/runtime/raylib/src/external/glfw/src/cocoa_init.m:105:13: error: use of undeclared identifier 'appName' 105 | appName = @(*progname); | ^ /Users/user/Downloads/yaksha_macos-aarch64/runtime/raylib/src/external/glfw/src/cocoa_init.m:105:23: error: expected expression 105 | appName = @(*progname); | ^ /Users/user/Downloads/yaksha_macos-aarch64/runtime/raylib/src/external/glfw/src/cocoa_init.m:107:13: error: use of undeclared identifier 'appName' 107 | appName = @"GLFW Application"; | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. error: unable to find framework 'Foundation'. searched paths: none error: unable to find framework 'OpenGL'. searched paths: none error: unable to find framework 'OpenAL'. searched paths: none error: unable to find framework 'IOKit'. searched paths: none error: unable to find framework 'CoreVideo'. searched paths: none error: unable to find framework 'Cocoa'. searched paths: none

if i try with the following flag, instead of just -NRr:

./yaksha build -NRr -r test.yak

i get instead an error :

error: unable to find or provide libc for target 'aarch64-macos.11.7.1...14.1-gnu' info: zig can provide libc for related target aarch64-macos.11-none error: unable to find or provide libc for target 'aarch64-macos.11.7.1...14.1-gnu' info: zig can provide libc for related target aarch64-macos.11-none

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants