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

Error building #45

Open
GPeaky opened this issue May 24, 2024 · 1 comment
Open

Error building #45

GPeaky opened this issue May 24, 2024 · 1 comment

Comments

@GPeaky
Copy link

GPeaky commented May 24, 2024

I tried to do the example but i get this error:

i using windows 11, zig 0.12.0 release version

info: include 'C:\Users\Gerard\Desktop\fps\raylib\raylib\src' to fps
info: include 'C:\Users\Gerard\Desktop\fps\raylib' to fps
info: include 'C:\Users\Gerard\Desktop\fps\raylib\raylib\src' to raylib.zig
info: include 'C:\Users\Gerard\Desktop\fps\raylib' to raylib.zig
thread 130412 panic: file paths added with 'addCSourceFiles' must be relative, found absolute path 'C:\Users\Gerard\Desktop\fps\raylib\raylib\src/rcore.c'
C:\Program Files\zig-windows-x86_64-0.12.0\lib\std\Build\Module.zig:466:28: 0x789781 in addCSourceFiles (build.exe.obj)
            std.debug.panic(
                           ^
C:\Program Files\zig-windows-x86_64-0.12.0\lib\std\Build\Step\Compile.zig:785:37: 0x74e851 in addCSourceFiles (build.exe.obj)
    self.root_module.addCSourceFiles(options);
                                    ^
C:\Users\Gerard\Desktop\fps\raylib\raylib\src\build.zig:253:28: 0x72526c in addCSourceFilesVersioned (build.exe.obj)
        exe.addCSourceFiles(.{
                           ^
C:\Users\Gerard\Desktop\fps\raylib\raylib\src\build.zig:51:29: 0x723c23 in addRaylib__anon_14415 (build.exe.obj)
    addCSourceFilesVersioned(raylib, &.{
                            ^
C:\Users\Gerard\Desktop\fps\raylib\build.zig:108:46: 0x6feb4f in addTo (build.exe.obj)
    const lib_raylib = raylib_build.addRaylib(b, b.resolveTargetQuery(target), optimize, raylibOptions) catch |err| std.debug.panic("addRaylib: {any}", .{err});     
                                             ^
C:\Users\Gerard\Desktop\fps\build.zig:28:17: 0x6b4d0a in build (build.exe.obj)
    raylib.addTo(b, exe, target.query, optimize, .{});
                ^
C:\Program Files\zig-windows-x86_64-0.12.0\lib\std\Build.zig:2079:33: 0x69d8b5 in runBuild__anon_8933 (build.exe.obj)
        .Void => build_zig.build(b),
                                ^
C:\Program Files\zig-windows-x86_64-0.12.0\lib\compiler\build_runner.zig:300:29: 0x699034 in main (build.exe.obj)
        try builder.runBuild(root);
                            ^
C:\Program Files\zig-windows-x86_64-0.12.0\lib\std\start.zig:350:53: 0x69f8dc in WinStartup (build.exe.obj)
    std.os.windows.ntdll.RtlExitUserProcess(callMain());
                                                    ^
???:?:?: 0x7ff939ea257c in ??? (KERNEL32.DLL)
???:?:?: 0x7ff93a8eaa47 in ??? (ntdll.dll)
error: unable to read results of configure phase from 'C:\Users\Gerard\Desktop\fps\zig-cache\tmp\105681b96ba8d059': FileNotFound```
@ziontee113
Copy link

You might wanna try out #41 (comment)

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

No branches or pull requests

2 participants