I did have that problem, but this is different. I used the trick of creating
an enviroment variable to solve that problem

HT=$(dirname "$0")
export DYLD_LIBRARY_PATH=/var/lib
exec "${HT}"/MobileSafari_


The problem is when creating plugin as a shared library that contains the
class that extends UIView. If I
a.) Statically link the SDL library into the plugin:
Here when I try to use SDL_uikitopenglview (which has already extended
UIView, so should work) I am getting the warning that SDL_uikitopenglview is
defined in two places (libSDL1.3.0.dylib and in the plugin). This is because
the gnash library is linked against the dynamic library and the plugin
against the static. This was not a problem when I compiled the standalone
program and I assumed that for the standalone there was only one copy of the
library, which the app and the gnash library pointed to. I assumed the
compiler was able to reconcile the dynamic linked library to the statically
linked one in the app. This was done using libtool. For the plugin I have
not got libtool to work yet, but plain gcc does. Then however the issue is
as above.

This approach runs, but remains black :(. So I need to understand what is
going on...
b.) Dynamically link SDL library into the plugin:
at compile time I get the error message SDL_uikitopenglview is undefined. I
do not know why the dynamic version does not have this compiled but the
static does?

On Mon, Aug 9, 2010 at 11:59 PM, Piero Contezini
<[email protected]>wrote:

> I think the same issue happened to me.
>
> Your problem is while trying o use some external code from a dylib, inside
> the mobileplugin it says the library is not found?
>
> If it is, you will need to use that bundle.sh i sent to you, but instead of
> @executable_path you will need to put the right variable. I will check it
> out later ok?
>
> Enviado de meu iPhone
>
> Em 09/08/2010, às 18:38, Ashley Reid <[email protected]> escreveu:
>
> Hey,
>
> I have finally started putting something on the web (after taking a 2 week
> break). Here <http://wiki.gnashdev.org/Building_for_iOS>
> http://wiki.gnashdev.org/Building_for_iOS.
>
> There is a repository with the basic scripts and the standalone app.
> <http://github.com/arcanon/ipadflash>http://github.com/arcanon/ipadflash.
> I will want to put the libraries up next and then all the special stuff I
> had to do to compile.
>
> I am still trying to get the plugin to work correctly, but I have got some
> gnash code running there (mainly the static classes). However, I first need
> to learn a bit more about libtool I think to get it working fully.
>
> Thanks,
> Ash
>
> On Sun, Jul 25, 2010 at 5:31 AM, Piero Contezini <<[email protected]>
> [email protected]> wrote:
>
>> Congratulations!
>>
>> Glad someone did!
>>
>> Hope my scripts and code helped you.
>>
>> Enviado de meu iPhone
>>
>> Em 24/07/2010, às 23:43, Ashley Reid < <[email protected]>
>> [email protected]> escreveu:
>>
>> So flash on the iPad finally came into being :) Here is the video
>> <http://www.youtube.com/watch?v=Fbo0LU_moTI><http://www.youtube.com/watch?v=Fbo0LU_moTI>
>> http://www.youtube.com/watch?v=Fbo0LU_moTI. I tried zoomhenge.swf, but
>> unfortunately I seem to be missing the codec (not properly linked or
>> something).
>>
>> I'll put my findings up on the wiki at some point.
>>
>> Thanks for all the gnash code, good quality stuff!
>>
>> Cheers,
>> Ash
>>
>> _______________________________________________
>> Gnash-dev mailing list
>> <[email protected]>[email protected]
>>  <http://lists.gnu.org/mailman/listinfo/gnash-dev>
>> http://lists.gnu.org/mailman/listinfo/gnash-dev
>>
>>
>
_______________________________________________
Gnash-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-dev

Reply via email to