-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Barfs on Freetype 2 #2
Comments
A bunch of gir files cause this failure, e.g. libxml and xrandr |
I can't reproduce this with freetype 2 on Ubuntu 14.04. Maybe it has been fixed by this commit: 7cc2a6a. |
The initial reporter's command line was incorrect. However, doing this:
resulted in:
Anyway,
and the content of
|
Weird. Does it create a |
Fresh run:
No, there isn't a generated.c |
@directhex : BTW, SharpFont (a C# binding for freetype, done mostly by hand) works quite well. My interests in this is because I'd be making some enhancement to freetype in the near future and need to expose that to C# quickly. While enhancing SharpFont is possible for small api changes and I have done that before, quite recently, the sort of additions to freetype I am planning to do is a bit large for hand-editing/additons of C# api's. |
If it isn't generating a |
It is quite tiny. |
It doesn't make sense to generate bindings for .gir files like this. These libraries are not native GObject and thus these files only exist to make g-i able to resolve these external types. These .gir files are not even generated by g-i but are just handmade (see https://github.com/GNOME/gobject-introspection/blob/master/gir/freetype2-2.0.gir) The same applies to the cairo .gir and lots of other non native GObject libs. For these libraries custom bindings have to be made by either using some kind of parser or just plain C# code. Integration with these custom bindings could be provided by mapping the types of the external library using tags though. |
@stsundermann Thanks for the input 😄 I wasn't really thinking about the library, only the error. @HinTak There are a number of bindings for Freetype that you can try, including SharpFont, those might be useful to you. |
Fair enough - I guess bindinator should detect such and simply refuse to process these bare gir's. |
directhex@dream:/tmp$ bindinate freetype2-2.0 freetype2-2.0
Processing freetype2-2.0
Must specify package names on the command line
Package freetype2-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2-2.0' found
PACKAGE: freetype2-2.0
LIBS:
LIB: freetype2-2.0
SOLIB:
Mono StrongName - version 2.10.8.1
StrongName utility for signing assemblies
Copyright 2002, 2003 Motus Technologies. Copyright 2004-2008 Novell. BSD licensed.
A new 1024 bits strong name keypair has been generated in file 'freetype2-2.0//freetype2-sharp.snk'.
Processing /usr/share/gir-1.0//freetype2-2.0.gir and outputting freetype2-2.0//freetype2-sharp-api.raw
directhex@dream:/tmp$ cd freetype2-2.0/
directhex@dream:/tmp/freetype2-2.0$ ./autogen.sh
configure.ac:4: error: AC_INIT should be called with package and version arguments
/usr/share/aclocal-1.11/init.m4:26: AM_INIT_AUTOMAKE is expanded from...
configure.ac:4: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: /usr/bin/autom4te failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
./autogen.sh: 4: ./autogen.sh: ./configure: not found
The text was updated successfully, but these errors were encountered: