Created
September 24, 2014 21:23
-
-
Save alesegdia/256b3bdb941ed1c4bed9 to your computer and use it in GitHub Desktop.
vala workarounds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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