From: Damon C. <da...@tc...> - 2010-07-12 16:22:15
|
I know Daniel did the port of Ffidl to OS X some years back, but it seems like that was done on Panther before the Intel switch. Has anyone played with getting it working on the new Intel machines? I've tried a few things to get it to compile, but I'm getting a weird linker error that I don't quite understand. I'll post more if anyone's interested, but I'm just hoping someone else may have fiddled with this. No pun intended. 0-] D |
From: Damon C. <da...@tc...> - 2010-07-12 18:41:04
|
> I ported Ffidl to support i386 & x86_64 and 3-way universal for SnowLeopard (Ffidl ships with the OS...), it only works with the universal libffi.dylib included in SnowLeopard however, I stripped the support for ffcall and for non-darwin platforms. > > You can get the source at > http://opensource.apple.com/source/tcl/tcl-87/tcl_ext/ffidl/ffidl.tar.gz So there's no version out there that will work on Tiger or Leopard? I just need to know where I stand before I tell a user what is available. I already made the mistake of telling him Ffidl was available on the Mac before looking at the support myself and doing the compile. I just wanna make sure I don't lie again. 0-] D |
From: Daniel A. S. <dst...@ap...> - 2010-07-12 19:14:56
|
On Jul 12, 2010, at 11:40 AM, Damon Courtney wrote: >> I ported Ffidl to support i386 & x86_64 and 3-way universal for SnowLeopard (Ffidl ships with the OS...), it only works with the universal libffi.dylib included in SnowLeopard however, I stripped the support for ffcall and for non-darwin platforms. >> >> You can get the source at >> http://opensource.apple.com/source/tcl/tcl-87/tcl_ext/ffidl/ffidl.tar.gz > > So there's no version out there that will work on Tiger or Leopard? for intel, not without some minor amount of work. I don't think there is anything in the sources above tying it to SnowLeopard beyond the reliance on the built-in libffi. It should be possible to pull-in the latest libffi sources and build statically against those (look at my earlier ffidl releases on how to do that, some massaging is necessary), the tricky thing to get working in an automated fashion was producing a universal build of libffi. You could also try building the Apple libffi fork on Leopard http://opensource.apple.com/source/libffi/ that might be easier. |
From: Damon C. <da...@tc...> - 2010-07-12 19:17:21
|
> for intel, not without some minor amount of work. I don't think there is anything in the sources above tying it to SnowLeopard beyond the reliance on the built-in libffi. > > It should be possible to pull-in the latest libffi sources and build statically against those (look at my earlier ffidl releases on how to do that, some massaging is necessary), the tricky thing to get working in an automated fashion was producing a universal build of libffi. > > You could also try building the Apple libffi fork on Leopard > http://opensource.apple.com/source/libffi/ > that might be easier. Thanks, Daniel. I'll see what I can do from there. The .tar.gz link you sent didn't seem to work for me. I assume that it's supposed to be some sort of automatic thing that bundles up the directory into a tar file, because I don't see the actual file in the ffidl directory. Just the source. I guess I can scrape the source if nothing else. 0-] Thanks, D |
From: Daniel A. S. <dst...@ap...> - 2010-07-12 19:38:47
|
On Jul 12, 2010, at 12:17 PM, Damon Courtney wrote: >> for intel, not without some minor amount of work. I don't think there is anything in the sources above tying it to SnowLeopard beyond the reliance on the built-in libffi. >> >> It should be possible to pull-in the latest libffi sources and build statically against those (look at my earlier ffidl releases on how to do that, some massaging is necessary), the tricky thing to get working in an automated fashion was producing a universal build of libffi. >> >> You could also try building the Apple libffi fork on Leopard >> http://opensource.apple.com/source/libffi/ >> that might be easier. > > > Thanks, Daniel. I'll see what I can do from there. The .tar.gz link you sent didn't seem to work for me. I assume that it's supposed to be some sort of automatic thing that bundles up the directory into a tar file, because I don't see the actual file in the ffidl directory. Just the source. sorry, I misremembered how that worked, you have to get the tarballs from a OS release dir like http://opensource.apple.com/release/mac-os-x-1064/ so the correct link for tcl (includes ffidl) is http://opensource.apple.com/tarballs/tcl/tcl-87.tar.gz and for libffi http://opensource.apple.com/tarballs/libffi/libffi-15.tar.gz |