Comments (7)
Strangely I can see those constants are defined in glib-2.0/glib/gkeyfile.h
. I have glib 2.56.4
.
However I cannot find any documentation for the constants. So I have blacklisted them from the generation. 33e954c
Can you give branch 16-glib-constants
a try please?
from gobbi.
This gets me a bit further:
# github.com/pekim/gobbi/lib/atk
/usr/bin/ld: $WORK/b036/_x005.o: undefined reference to symbol 'g_object_ref_sink'
/usr/bin/ld: /usr/lib//libgobject-2.0.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
# github.com/pekim/gobbi/lib/gio
lib/gio/v-.go:1194:44: undefined: Converter
lib/gio/v-.go:1199:43: undefined: Initable
lib/gio/v-.go:1263:66: undefined: Converter
lib/gio/v-.go:1282:58: undefined: PollableInputStream
lib/gio/v-.go:1346:68: undefined: Converter
lib/gio/v-.go:1365:60: undefined: PollableOutputStream
lib/gio/v-.go:1463:41: undefined: MenuModel
lib/gio/v-.go:4599:55: undefined: PollableInputStream
lib/gio/v-.go:4681:57: undefined: PollableOutputStream
lib/gio/v-.go:6447:51: undefined: ProxyResolver
lib/gio/v-.go:6447:51: too many errors
from gobbi.
What go build/run command are you running when this happens?
Does the example in the readme work?
from gobbi.
lib/gobject/package.go
contains
// #cgo pkg-config: gobject-2.0
import "C"
Which should result in use of pkg-config --libs gobject-2.0
by go build so that it includes the necessary linker flags for the library. So I'm not sure why the g_object_ref_sink
symbol is not found.
I'm quite puzzled by DSO missing from command line
.
from gobbi.
I was trying gtk_application
, but the command you gave doesn't work either.
from gobbi.
I've got a handle on this now.
A function (for example g_converter_output_stream_new
) has no version information in the gir file. However it has a parameter with a type (in this case GConverter
, introduced in gio 2.24) that does have version information.
I'm generating the function as though it's available in all versions of gio. But it's implicitly new in 2.24.
So unless you're targetting gio 2.24 or later (using a build tag of gio_2.24
or later) the build is going to fail.
I'll look in to fixing the generation code to take this in to account.
from gobbi.
Thanks, let me know and I'll give it a shot when the time comes.
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
- 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
- main_event_loop.go:55:10: undefined: SOURCE_REMOVE when running "Custom Drawing" Example Code HOT 7
- 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.