Hi Annik,

long time without a response to this, I'm sorry. I'm just catching up with this stuff (I'm really full of work this days).�

The problem here is that FFI does not have the type "int". You need to choose between short, ushort, long and ulong (depending of the real size you need).�

And you do not have also char** (or any other pointer-pointer).�

But the non-typed nature of C comes to help here too :)

You can easily declare:�

<apicall: void 'gst_init' (short ulong) module: 'blabla'>

since basically size will be the same (and that's the only thing that really matters).

you can see the allowed types here:�

ExternalType class>>#initializeFFIConstants

cheers,�
Esteban�




On Sat, Nov 9, 2013 at 10:09 AM, <btc@openinworld.com> wrote:

Hi Annick,

I hope you are able to achieve what you are aiming for (I don't have the technical knowledge to help) but as a bystander I must make an observation that I hope will be useful to you.

While your response "I have answered I think" could be technically correct if someone wade through the whole thread, its not really an appropriate answer to a specific question from someone whom you are asking devote their valuable time to your problem.� If you can take the tie to read [1] you will understand where I am coming from.� I personally found it very worthwhile reading and even like to refresh myself from time to time.

[1] http://www.catb.org/esr/faqs/smart-questions.html

I'd be interested in your thoughts on the article.

In good faith,
cheers -ben



Annick Fron wrote:
I have answered I think

Envoy� de mon iPod

  
Le 9 nov. 2013 � 02:01, St�phane Ducasse <stephane.ducasse@inria.fr> a �crit :

Annick

You cannot expect people to respond to you if you do not provide 
full context + information.
On the long term people will stop to reply to you. 
Repeat after me:
	which image?
	which OS version?
	which vm version?

I think that we are pretty nice people but do not force us to always ask the same questions.
We are all busy.


Stef


    
On Nov 6, 2013, at 6:15 PM, Annick Fron <info@afceurope.com> wrote:

I am using the latest download from version 2
Annick

      
Le 31 oct. 2013 � 18:47, Esteban Lorenzano <estebanlm@gmail.com> a �crit :

ok... then we have a problem. 
but we need more data... 

which image version are you using?
and which vm version?

cheers, 
Esteban
 
        
On Oct 31, 2013, at 11:24 AM, Annick Fron <info@afceurope.com> wrote:

I h�ve th� error on Windows

Envoy� de mon iPod

          
Le 31 oct. 2013 � 14:51, Igor Stasenko <siguctua@gmail.com> a �crit :




            
On 31 October 2013 11:23, Annick Fron <info@afceurope.com> wrote:
Hi Igor

I have done that, but still gets an error, do I need to remove NativeBoost ?
Annick
              
FFI not supported on ARM
 
            
Le 30 oct. 2013 � 14:12, Igor Stasenko <siguctua@gmail.com> a �crit :

AFAIK, it should be in Configurations browser.
Else try this:

Gofer new
  squeaksource: 'MetacelloRepository';

  package: 'ConfigurationOfFFI';
  load.
(Smalltalk at: #ConfigurationOfFFI) project lastVersion load



                
On 30 October 2013 09:41, Annick Fron <info@afceurope.com> wrote:
My problem is that the Raspberry does not support native boost (as yet !).
Where can I load the old FFI ?

                  
Le 29 oct. 2013 � 16:57, Igor Stasenko <siguctua@gmail.com> a �crit :




                    
On 29 October 2013 16:27, Annick Fron <info@afceurope.com> wrote:
Hi

I want to launch a simple init with the following C signature :

void gst_init (int *argc, char **argv[])

If I write

<apicall: void 'gst_init' (int*, char**) module: 'blabla'>

I get a Smalltalk syntax error

Annick Fron
                      
To use this syntax, you must load old FFI implementation.
Or use NativeBoost:

init: intarg with: chararg
 <primitive: 'primitiveNativeCall' module: 'NativeBoostPlugin'>



self nbCall: 'void gst_init (int * intarg, char ** chararg)' module: 'blaba'


-- 
Best regards,
Igor Stasenko.
                    
-- 
Best regards,
Igor Stasenko.
                
-- 
Best regards,
Igor Stasenko.