mono / SkiaSharp

SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
MIT License
4.4k stars 535 forks source link

[QUESTION] How to compile a debug version #2435

Open emveepee opened 1 year ago

emveepee commented 1 year ago

Is there are way to compile a debug version on Linux? I have tried with cflags and the compile of libSkiaSharp 2.88.3 works but there are no symbols

./bin/gn gen 'out/linux/x64' --args='
    is_official_build=true skia_enable_tools=false
    target_os="linux" target_cpu="x64"
    skia_use_icu=false skia_use_sfntly=false skia_use_piex=true
    skia_use_system_expat=false skia_use_system_freetype2=false skia_use_system_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false
    skia_enable_gpu=true
    extra_cflags=[ "-DSKIA_C_DLL", "-DDEBUG", "-g" "-gdwarf-2" ]
    linux_soname_version="60.1.0"'

I'd like to see some if there is information in the back trace.

emveepee commented 1 year ago

Turns out it compiles but it looks like the error is

/opt/nextpvr/system/runtimes/linux-x64/native/libSkiaSharp.so: error: symbol lookup error: undefined symbol: z_verbose (fatal)

so another library was being loaded.

Can this be avoided?