Comments (7)
So appears to be having issues assigning untyped number C.G_SOURCE_REMOVE
to your convenience alias SOURCE_REMOVE
.
from gobbi.
I feel silly, thought the gobbi
file in the root was a mistakenly committed binary and not a build shell script. Using this custom methodology is a bit confusing. Maybe calling it build or something other than the name of the parent folder would make it less confusing.
from gobbi.
Nm still can't build: FAIL github.com/pekim/gobbi/internal/test/gtk 0.146s
from gobbi.
You shouldn't need to run the gobbi
script to generate the library. The generated code is already committed. So if you have previously run the script with a build
argument, you'll probably want to discard any local changes that might have been generated.
A good first step would be to run an example.
https://pekim.github.io/gobbi/getting-started/
git clone https://github.com/pekim/gobbi.git
cd gobbi
./gobbi example simple_window
I've just noticed that there's a typo on that page. simple_window
should be window_simple
.
All that ./gobbi example window_simple
ends up doing is the equivalent of something like this.
go run \
-tags " \
cairo_1.12 \
gobject_2.26 \
glib_2.48 \
gdk_3.4 \
gdkpixbuf_2.32 \
gio_2.36 \
gtk_3.18 \
pango_1.38 \
pangocairo_1.22
" \
example/window_simple/main.go
I hope that helps.
from gobbi.
I confess that I didn't read the issue's title properly. I now see that the original problem that you were having was with the custom-drawing
example.
Do other examples, such as window_simple
work?
from gobbi.
SOURCE_REMOVE
is defined here.
gobbi/lib/glib/constant-2.32.go
Line 16 in aef82e7
I would speculate that one of the following is the reason for your problem.
- you were using a build tag of
glib_2.xx
, wherexx
is less that32
- you were not using a glib build tag
So it would appear that https://github.com/pekim/gobbi/blob/master/lib/glib/main_event_loop.go requires a minimum glib version of 2.32. Therefore it could benefit from the addition of this build tag comment to enforce the restriction.
// +build glib_2.32 glib_2.34 glib_2.36 glib_2.38 glib_2.40 glib_2.44 glib_2.46 glib_2.48 glib_2.50 glib_2.52 glib_2.54 glib_2.56
I should be able to look in to sorting that out at the weekend.
from gobbi.
I have removed an unnecessary dependency on glib 2.32 or later by glib.IdleAddOnce
.
d42a7bc
from gobbi.
Related Issues (17)
- could not determine kind of name for C.g_networking_init HOT 2
- Support connecting signals for a Builder HOT 1
- code generation error HOT 3
- callback function signatures changed HOT 3
- Feature request: libhandy support HOT 4
- Use pkg-config to automatically generate build tags HOT 6
- Incompatible with gobject 2.62.4 HOT 7
- nullable string parameters HOT 3
- redundant code generation HOT 1
- How to extract element from GList HOT 1
- missing api gtk_text_buffer_create_tag() HOT 4
- Use girepository to invoke library functions HOT 1
- godoc missing api gtk.HeaderBarNew() HOT 2
- showcase applications built using gobbi HOT 2
- go modules: missing gtksource HOT 2
- Can not run go get github.com/pekim/gobbi/lib/gtk HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gobbi.