Skip to content

Instantly share code, notes, and snippets.

@alesegdia
Created September 24, 2014 21:23
Show Gist options
  • Save alesegdia/256b3bdb941ed1c4bed9 to your computer and use it in GitHub Desktop.
Save alesegdia/256b3bdb941ed1c4bed9 to your computer and use it in GitHub Desktop.
vala workarounds
# Example file (GTK3 VERSION): https://wiki.gnome.org/Projects/Vala/CairoSample#Shaped_Window_Example
# My system had no default -lm addition with valac, options are:
# 1. Directly compiling with valac passing compiler linker flags:
valac -X -lm --pkg gtk+-3.0 --pkg cairo --pkg gdk-3.0 cairo-shaped.vala
# 2. Using valac to generate .c and compile
valac -C --pkg gtk+-3.0 --pkg cairo --pkg gdk-3.0 cairo-shaped.vala
gcc cairo-shaped.vala `pkg-config glib-2.0 --cflags --libs` `pkg-config gtk+-3.0 --cflags --libs` `pkg-config gdk-3.0 --cflags --libs` -lm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment