Skip to content

Commit

Permalink
fix build issue on device
Browse files Browse the repository at this point in the history
  • Loading branch information
deanlee committed Oct 15, 2024
1 parent dab3cbd commit 5ded054
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion selfdrive/ui/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,13 @@ if arch in ['x86_64', 'aarch64', 'Darwin'] or GetOption('extras'):
# raylib env
raylib_env = env.Clone()
raylib_lib = env.Library("raylib_lib", ['raylib/util.cc'], LIBS='raylib')
raylib_libs = ['raylib', raylib_lib]
raylib_libs = ['raylib', raylib_lib, common]
raylib_env['LIBPATH'] += [f'#third_party/raylib/{arch}/']
raylib_frameworks = []
if arch == "Darwin":
raylib_frameworks += ['OpenCL', 'CoreVideo', 'Cocoa', 'GLUT', 'CoreFoundation', 'OpenGL', 'IOKit']
elif arch == 'larch64':
raylib_libs += []
else:
raylib_libs.append('OpenCL')
raylib_env.Program("_spinner", ["raylib/spinner.cc"], LIBS=raylib_libs, FRAMEWORKS=raylib_frameworks)
2 changes: 1 addition & 1 deletion selfdrive/ui/raylib/util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Texture2D LoadTextureResized(const char *fileName, int size) {
void initApp(const char *title, int fps) {
Hardware::set_display_power(true);
Hardware::set_brightness(65);
SetTraceLogLevel(LOG_NONE);
// SetTraceLogLevel(LOG_NONE);
InitWindow(0, 0, title);
SetTargetFPS(fps);
}

0 comments on commit 5ded054

Please sign in to comment.