swoogan / ziggtk Goto Github PK
View Code? Open in Web Editor NEWSample GTK+ applications in the zig programming language
Sample GTK+ applications in the zig programming language
I've been spending the last 15 minutes trying to figure out why I can't compile, to no avail:
/home/sph/Sandbox/ziggtk/src/manual.zig:3:19: error: use of undeclared identifier 'GtkApplication'
fn activate(app: *GtkApplication, user_data: gpointer) void {
^
/home/sph/Sandbox/ziggtk/src/manual.zig:22:15: error: use of undeclared identifier 'gtk_application_new'
var app = gtk_application_new("org.gtk.example", .G_APPLICATION_FLAGS_NONE);
^
manual...The following command exited with error code 1:
/usr/bin/zig build-exe /home/sph/Sandbox/ziggtk/src/manual.zig -lc -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 --cache-dir /home/sph/Sandbox/ziggtk/zig-cache --global-cache-dir /home/sph/.cache/zig --name manual -I /usr/include/gtk-3.0 -I /usr/include/pango-1.0 -I /usr/include/glib-2.0 -I /usr/lib64/glib-2.0/include -I /usr/include/sysprof-4 -I /usr/include/harfbuzz -I /usr/include/freetype2 -I /usr/include/libpng16 -I /usr/include/libmount -I /usr/include/blkid -I /usr/include/fribidi -I /usr/include/libxml2 -I /usr/include/cairo -I /usr/include/pixman-1 -I /usr/include/gdk-pixbuf-2.0 -I /usr/include/gio-unix-2.0 -I /usr/include/cloudproviders -I /usr/include/atk-1.0 -I /usr/include/at-spi2-atk/2.0 -I /usr/include/dbus-1.0 -I /usr/lib64/dbus-1.0/include -I /usr/include/at-spi-2.0 --enable-cache
Libraries are installed, in fact I can compile src/main.c
using gcc, but I have no idea why zig isn't importing the gtk include file correctly.
EDIT: works with 0.8.1, so I guess I have to read the 0.9.1 release notes to figure out if they've changed some core semantics...
EDIT 2: yeah, this is why: ziglang/zig#9629 โ now all gtk identifiers would need to be qualified.
I'm having trouble getting to run. I removed the c strings, but I'm running into other errors. Super new to zig, love your project here!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.