Closed GoogleCodeExporter closed 8 years ago
Added Maven pom.xml
Original comment by jace...@gmail.com
on 29 Oct 2009 at 7:39
Attachments:
Hi jacek,
Thanks for your report :)
If there is really no source generated in /media/My
Passport/Jacek/Dev/Scala/gtk4j/target/generated-sources/java, could you please
try
adding the "-v" verbosity switch to your JNAerator command ?
Thanks
Original comment by olivier.chafik@gmail.com
on 29 Oct 2009 at 7:44
yes, there is no source :-(
Here is the attached output with the verbosity switch on
Original comment by jace...@gmail.com
on 29 Oct 2009 at 8:00
Attachments:
Sorry, wrong version...
Original comment by jace...@gmail.com
on 29 Oct 2009 at 8:02
Attaching proper file
Original comment by jace...@gmail.com
on 29 Oct 2009 at 8:04
P.S. As you may have guessed, my aim is to try to generate bindings for the
whole
GTK+ stack, i.e. glib, gobject, pango and last but not least the gtk+ UI
toolkit.
Original comment by jace...@gmail.com
on 30 Oct 2009 at 1:27
Hehe, I did hope that someone would take on that heavy task !
You're gonna need to inspect the _jnaerator.preprocessed.c file : it contains
the
result of the preprocessing pass.
You can then copy-paste gradually larger portions of this file into JNAerator
Studio
and see what it outputs.
This way, you should be able to identify the code that breaks everything...
(and if you attach this file here, I'll be able to help too :-))
Cheers
Original comment by olivier.chafik@gmail.com
on 30 Oct 2009 at 1:37
Yeah, the problem is that my C knowledge is ZERO (can you say I am way out of my
league here?). I know the Java-GNOME project uses JNI and unfortunately they are
often behind on features (e.g. no support for GtkBuilder yet).
OK, I will try the pre-processor support and keep posting updates in this
defect.
Original comment by jace...@gmail.com
on 30 Oct 2009 at 2:01
I almost forgot...
Had to deal with a few GLib issues when I wrapped the Mono library.
You should try taking some arguments from this .jnaerator file :
http://code.google.com/p/nativelibs4java/source/browse/trunk/libraries/Mono/Mono
.base.j
naerator
Original comment by olivier.chafik@gmail.com
on 30 Oct 2009 at 2:18
Put them in, not much of a difference. This seems to be the core issue right
now:
Failed to convert define 'G_CSET_LATINS => "\337\340\341\342\343\344\345\346"
"\347\350\351\352\353\354\355\356\357\360" "\361\362\363\364\365\366"
"\370\371\372\373\374\375\376\377":
java.lang.StringIndexOutOfBoundsException: String index out of range: 32
Failed to convert define 'G_CSET_LATINC => "\300\301\302\303\304\305\306"
"\307\310\311\312\313\314\315\316\317\320" "\321\322\323\324\325\326"
"\330\331\332\333\334\335\336":
java.lang.StringIndexOutOfBoundsException: String index out of range: 28
is that in jnaerator or in the C parser you use?
Original comment by jace...@gmail.com
on 30 Oct 2009 at 2:28
Hi, any updates on this? Would you have any pointers on what I could do
successfully
generate the Glib bindings? thank you
Original comment by jace...@gmail.com
on 20 Nov 2009 at 4:17
Hi Jacek,
I'll be getting to GLib parsing probably at the beginning of next week, I've
been very
busy with Maven changes lately...
Stay tuned :)
Cheers
Original comment by olivier.chafik@gmail.com
on 27 Nov 2009 at 1:36
Thank you much appreciated.
Original comment by jace...@gmail.com
on 27 Nov 2009 at 1:58
Hi,
This issue moved to Github :
https://github.com/ochafik/nativelibs4java/issues/132
Thanks for not updating this page anymore and adding further comments on Github.
Cheers
--
zOlive
Original comment by olivier.chafik@gmail.com
on 1 Sep 2011 at 7:24
Original issue reported on code.google.com by
jace...@gmail.com
on 29 Oct 2009 at 7:38Attachments: