Re: [Pharo-users] FFI with compile flags

2014-08-17 Thread Denis Kudriashov
Do you see this http://www.squeaksource.com/GStreamer.html? 2014-08-15 14:03 GMT+01:00 Annick Fron l...@afceurope.com: Steph We had a Skype call yesterday with JB, and we made progress. The problem is I have several libraries, and it was not easy to find because they don’t export symbols

Re: [Pharo-users] FFI with compile flags

2014-08-15 Thread stepharo
Annick FFI can call a function but it needs to know where is your library. Stef On 13/8/14 15:46, Annick Fron wrote: I want to interface some pharo code with gstreamer. But gstreamer does not come up with a dylib, it requires compilation flags for instance for a C program. The compile

Re: [Pharo-users] FFI with compile flags

2014-08-15 Thread Annick Fron
Steph We had a Skype call yesterday with JB, and we made progress. The problem is I have several libraries, and it was not easy to find because they don’t export symbols and use pkg-config. See you in Cambridge Annick Le 15 août 2014 à 12:36, stepharo steph...@free.fr a écrit : Annick FFI

[Pharo-users] FFI with compile flags

2014-08-13 Thread Annick Fron
Hi, I would like to compile a FFI program but the compiling implies compile flags like in the following : gcc -Wall helloworld.c -o helloworld $(pkg-config --cflags --libs gstreamer-1.0) How do I do this with FFI ? Annick

Re: [Pharo-users] FFI with compile flags

2014-08-13 Thread Clément Bera
I don't understand, do you want to compile your library using FFI or do you want to bind a library compiled your way with FFI ? If you want to compile your library using FFI, then use OSProcess to run the compilation line you showed. If you want to bind a library compiled your way with FFI, the

Re: [Pharo-users] FFI with compile flags

2014-08-13 Thread Annick Fron
I want to interface some pharo code with gstreamer. But gstreamer does not come up with a dylib, it requires compilation flags for instance for a C program. The compile options are : -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include