Re: [swfmill] [help needed] release script for OSX universal binaries

2006-08-25 Thread Steve Webster
Hi Dan,

> If I recall correctly, a universal binary isn't actually a single file, it
> is multiple executable files stored in side of an app bundle under
> Contents/MacOS/ and then referenced in the Contents/Info.plist.  I think the
> first place to look is at the format of Info.plist for app bundles, that
> should tell you some info on what meta is needed to consider something a
> universal binary.  Oh, and if that is the case, it would almost be pointless
> becase an app bundle is specifically for when an application has a gui,
> which would mean there is no point for swfmill.  Hope this helps.

>From what I've read you can take the bundle approach if you are
dealing with a GUI application and the one file route if you're
building a command-line tool. I remember reading that they've fiddled
with the ELF headers (or Mach headers, can't remember which) to make
this work.

Cheers,

Steve

-- 
Steve Webster
http://dynamicflash.com

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] [help needed] release script for OSX universal binaries

2006-08-25 Thread Dan Shryock
Actually it looks like I am wrong, according to this page:

http://developer.apple.com/documentation/MacOSX/Conceptual/universal_binary/universal_binary_compiling/chapter_2_section_7.html#//apple_ref/doc/uid/TP40002217-CH206-240191

you can specify two different arch flags to gcc 4.0 like the following:
-arch ppc -arch i386

Sorry if I caused any confusion.

Dan



On 8/25/06, Dan Shryock <[EMAIL PROTECTED]> wrote:
>
> If I recall correctly, a universal binary isn't actually a single file, it is 
> multiple executable files stored in side of an app bundle under 
> Contents/MacOS/ and then referenced in the Contents/Info.plist.  I think the 
> first place to look is at the format of  Info.plist for app bundles, that 
> should tell you some info on what meta is needed to consider something a 
> universal binary.  Oh, and if that is the case, it would almost be pointless 
> becase an app bundle is specifically for when an application has a gui, which 
> would mean there is no point for swfmill.  Hope this helps.
>
>
> Dan
>
>
>
> On 8/25/06, Mark Winterhalder <[EMAIL PROTECTED]> wrote:
> >  On 8/25/06, Steve Webster <[EMAIL PROTECTED]> wrote:
> > > My new employer have blessed me with a new Intel MacBook Pro (dodgy,
> > > explosive battery included free of charge) so I can take a look at
> > > trying to get an intel build out.
> >
> > Our designer just had his MBP recalled from the vendor, for a new
> > motherboard due to unspecified reasons. His battery isn't one of the
> > affected ones, though.
> >
> >  > As for how universal binaries are produced I have no idea; it can't
> > > possibly be as simple as passing an extra --arch switch to gcc, as
> > > suggested by the top few results in google.
> >
> > I tried your new employer's search engine (for once, normally I go
> > with the market leader because I already know their search operators)
> > and a link brought me here:
> > < 
> > http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/compiling/chapter_4_section_3.html>
> >
> > Congrats for the new job!
> >
> > Mark
> >
> > ___
> > swfmill mailing list
> > swfmill@osflash.org
> > http://osflash.org/mailman/listinfo/swfmill_osflash.org
> >
>
>

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] [help needed] release script for OSX universal binaries

2006-08-25 Thread Dan Shryock
If I recall correctly, a universal binary isn't actually a single file, it is multiple executable files stored in side of an app bundle under Contents/MacOS/ and then referenced in the Contents/Info.plist.  I think the first place to look is at the format of 
Info.plist for app bundles, that should tell you some info on what meta is needed to consider something a universal binary.  Oh, and if that is the case, it would almost be pointless becase an app bundle is specifically for when an application has a gui, which would mean there is no point for swfmill.  Hope this helps.
DanOn 8/25/06, Mark Winterhalder <[EMAIL PROTECTED]> wrote:
On 8/25/06, Steve Webster <[EMAIL PROTECTED]> wrote:> My new employer have blessed me with a new Intel MacBook Pro (dodgy,> explosive battery included free of charge) so I can take a look at
> trying to get an intel build out.Our designer just had his MBP recalled from the vendor, for a newmotherboard due to unspecified reasons. His battery isn't one of theaffected ones, though.
> As for how universal binaries are produced I have no idea; it can't> possibly be as simple as passing an extra --arch switch to gcc, as> suggested by the top few results in google.I tried your new employer's search engine (for once, normally I go
with the market leader because I already know their search operators)and a link brought me here:<
http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/compiling/chapter_4_section_3.html>Congrats for the new job!Mark___swfmill mailing list
swfmill@osflash.orghttp://osflash.org/mailman/listinfo/swfmill_osflash.org
___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] [help needed] release script for OSX universal binaries

2006-08-25 Thread Mark Winterhalder
On 8/25/06, Steve Webster <[EMAIL PROTECTED]> wrote:
> My new employer have blessed me with a new Intel MacBook Pro (dodgy,
> explosive battery included free of charge) so I can take a look at
> trying to get an intel build out.

Our designer just had his MBP recalled from the vendor, for a new
motherboard due to unspecified reasons. His battery isn't one of the
affected ones, though.

> As for how universal binaries are produced I have no idea; it can't
> possibly be as simple as passing an extra --arch switch to gcc, as
> suggested by the top few results in google.

I tried your new employer's search engine (for once, normally I go
with the market leader because I already know their search operators)
and a link brought me here:


Congrats for the new job!

Mark

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] [help needed] release script for OSX universal binaries

2006-08-25 Thread Steve Webster
On 8/25/06, erixtekila <[EMAIL PROTECTED]> wrote:
> > it would be great if someone with mac-compilation experience could
> > give me a hand in trying to get the release procedure straight. I'd
> > like to produce universal binaries (ppc/intel) for OSX. i have rather
> > little idea how to approach this.
> Sorry, I don't have an intel based osx.
> So I won't be of any help.

My new employer have blessed me with a new Intel MacBook Pro (dodgy,
explosive battery included free of charge) so I can take a look at
trying to get an intel build out. Not that I had much luck with a
statically-linked PPC build, mind you ;o) I have my head burried in
book work this weekend, but it's a public holiday on Monday here in
the UK so I should have time to look at it thenprobably.

As for how universal binaries are produced I have no idea; it can't
possibly be as simple as passing an extra --arch switch to gcc, as
suggested by the top few results in google.

Steve

-- 
Steve Webster
http://dynamicflash.com

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] [help needed] release script for OSX universal binaries

2006-08-25 Thread erixtekila
> it would be great if someone with mac-compilation experience could 
> give me a hand in trying to get the release procedure straight. I'd 
> like to produce universal binaries (ppc/intel) for OSX. i have rather 
> little idea how to approach this.
Sorry, I don't have an intel based osx.
So I won't be of any help.

> alternatively, send over an intel powerbook to have me care about it 
> myself ;)
I'll ask Santa Claus also !
---
erixtekila
http://blog.v-i-a.net/


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] RecursionLimit tag 65

2006-08-25 Thread erixtekila
>> BTW, is it possible to mix swfmill-s with swfmill-ll syntax in the 
>> same
>> file ?
> yes. as long as there are no relations with regards to IDs, that 
> should work fine. Specifically, including the ScriptLimits tag into a 
> swfml-s "movie" should work just great.
Yeah ! Dan.
Long live to swfmill and xslt to swf.
---
erixtekila
http://blog.v-i-a.net/


___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] UnknownTag

2006-08-25 Thread Steve Webster
On 8/23/06, Steve Webster <[EMAIL PROTECTED]> wrote:
> > No it is not the same thing I think. Steve talks about RDF metadata and tag
> > id 0x4D. In my example, the UnknownTag has id 0x4F.
>
> I'll look this up in the official SWF specs later on tonight.

The good news is I've managed ot find my spec. The bad news is that
there is no tag 0x4F (79). I'd suggest this this is an error
processing the previous tag if I didn't know how robust swfmill is
about handling that type of thing.

Steve

-- 
Steve Webster
http://dynamicflash.com

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


[swfmill] prerelease 0.2.11.18 for OSX

2006-08-25 Thread daniel fischer

is finally here:
  http://swfmill.org/pre/swfmill-0.2.11.18-macosx.tar.gz

(PPC only still)

-dan

-- 
http://0xDF.com/
http://iterative.org/

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


[swfmill] [help needed] release script for OSX universal binaries

2006-08-25 Thread daniel fischer

hi all,

it would be great if someone with mac-compilation experience could give me a 
hand in trying to get the release procedure straight. I'd like to produce 
universal binaries (ppc/intel) for OSX. i have rather little idea how to 
approach this.

i'm using a friend's OSX server running on PPC, i'm installing the needed 
libraries in a subdirectory of my home, then linking statically against them. 
how would i approach building a universal binary at all? obviously, it should 
be done with gcc and other opensource tools.

alternatively, send over an intel powerbook to have me care about it myself ;)

-dan

--  
http://0xDF.com/
http://iterative.org/

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] RecursionLimit tag 65

2006-08-25 Thread daniel fischer
erixtekila <[EMAIL PROTECTED]> (on Tue, 22 Aug 2006 19:12:39 +0200):

  > But IMO scriptlimit should be included by default by swfmill-s.
  > If I could, I would hav done it.

there's no need. the ScriptLimits tag has no relation to any other contents of 
the SWF, thus it can be used simply by mixing ll into simple, see below.

  > BTW, is it possible to mix swfmill-s with swfmill-ll syntax in the same 
  > file ?

yes. as long as there are no relations with regards to IDs, that should work 
fine. Specifically, including the ScriptLimits tag into a swfml-s "movie" 
should work just great.

-dan


-- 
http://0xDF.com/
http://iterative.org/

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Imported assets and associating a movieclip with a class

2006-08-25 Thread daniel fischer
"Brent Lang" <[EMAIL PROTECTED]> (on Wed, 23 Aug 2006 09:30:06 -0600):

  > That's what I thought. I knew that I could do that with the
  > registerClass, but I was hoping to avoid it. I have heard about the
  > swfml-ll, I assume that is lowlevel that you are talking about. Could
  > you give me a little more information on how I could use swfml-ll to
  > associate the classes? 

the @class attribute for swfml-simple "clip"s does nothing else than call 
registerClass. see the  in 
src/xslt/simple-tools.xslt for details. in short, it produces a DoInitAction 
that will do just the registerClass on the given asset for the given classname.


  > I have to say that I am surprised and very impressed with what has been
  > accomplished in open source Flash. From swfMill to MTASC to heXe. Damn
  > impressive. 

sweet, you're welcome :)

-dan

-- 
http://0xDF.com/
http://iterative.org/

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] error: "input not UTF-8"

2006-08-25 Thread daniel fischer
Marc Reichelt <[EMAIL PROTECTED]> (on Tue, 22 Aug 2006 23:30:32 +0200):

  > The old code (where swfmill seems to read begin.png as XML) can be found
  > at http://dev.marcreichelt.de/emff/emff_0.5_dev_2006-08-22_0.tar.bz2
  > further on.

swfmill should not read a png as xml. what it does is read in the png, 
transform it to a flash-internal representation, compress it with zlib, 
base64-encode it, and write the outcome into an internal XML file. that *should 
not produce non-UTF8-chars*, indeed it should only produce plain 7-bit ASCII.

i cannot reproduce your problem. your createskin.sh produces the target swf 
without any error message (with my swfmill 0.2.11.18) here. can you try and 
boil the problem down even further into a single .xml/.png combination?

-dan

-- 
http://0xDF.com/
http://iterative.org/

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org