World: r3wp
[!REBOL3 Host Kit]
older newer | first last |
Cyphre 7-Nov-2010 [823] | sure, I can..let me boot and login to my old mac mini ;) |
Andreas 7-Nov-2010 [824] | Ok, let's use PM to reduce the noise :) |
Cyphre 7-Nov-2010 [825] | ok |
Andreas 7-Nov-2010 [826x3] | Ok, seems we solved the OS X linking issue even for older toolchains. |
The trick is to partially link all objects into an (internally resolved) single object and then use this to create the shared library. So, for Carl's example, that boils down to: ld -r -x -o lib.so a.o b.o gcc -dynamiclib -o lib.so lib.o Here's a full package illustrating this: http://bolka.at/2010/misc/exports2.tar.gz | |
Sorry, subtle but critical typo in the above. Should be: ld -r -x -o lib.o a.o b.o gcc -dynamiclib -o lib.so lib.o | |
Carl 8-Nov-2010 [829x4] | Ah, very good. This solution looks like it does what is needed! I should have the OS X .so out soon. |
The link failed... ld: lib.o malformed object (section (__TEXT,___textcoal_nt) no symbol at start of coalesced section) | |
Using -t ... the above ld failure happens in the system files, not the R3 side. | |
I've confirmed that /core builds and runs... so this is not likely to be related to the gcc update. | |
Andreas 8-Nov-2010 [833] | Hm, does the link succeed if you leave out the -x option to ld? |
Carl 8-Nov-2010 [834] | yes |
Andreas 8-Nov-2010 [835x2] | Ok. Then try make an unstripped .so from the unstripped .o and strip -x the .so afterwards. |
I.e.: ld -r -o lib.o a.o b.o gcc -dynamiclib -o lib.so lib.o strip -x lib.so | |
Carl 8-Nov-2010 [837x3] | Actually... I tried that earlier... 1 min... |
I misinterpreted the result... that does actually seem to work. | |
I'll do some tests, and if they pass, will upload the new .so. | |
Andreas 8-Nov-2010 [840x3] | Great! |
It would also be very neat if you could upload the (stripped) libr3.o as well, if that's ok for you. Would allow us to build self-contained binaries by statically linking in libr3. | |
Same for Linux (and FreeBSD, and ...), of course. Not sure if this is possible on Windows (I doubt it, actually). | |
Maxim 8-Nov-2010 [843] | guess it would be a .lib |
Andreas 8-Nov-2010 [844x2] | Yes, but no idea if partial linking is possible with COFF. |
(I.e. on Win32.) | |
Carl 8-Nov-2010 [846] | A: yes, can export static lib for OS X and Linux. |
Andreas 8-Nov-2010 [847] | Lovely! |
ssolie 8-Nov-2010 [848] | This libr3.o of which you speak.. that should work for Amiga as well shouldn't it? |
Kaj 8-Nov-2010 [849] | It would have to be one specific for Amiga, like the dynamic one |
ssolie 9-Nov-2010 [850] | I just got compositing working on the Amiga (via AGG). |
Maxim 9-Nov-2010 [851x2] | congratulations! |
funny that R3/view ends up working on Amiga before OSX and Linux :-D | |
Kaj 9-Nov-2010 [853] | Congratulations, Steven. Good stuff |
Henrik 9-Nov-2010 [854] | Cool, Steven. Can you upload a screenshot? We like to have material to show progress with and I keep a library of screenshots. |
Pekr 9-Nov-2010 [855] | Henrik - you better hurry up with GUI, so that Amigans can have some useful demos :-) |
Henrik 9-Nov-2010 [856] | We are busy going 1.0 on an application these days, so I'm not working very much on the GUI. I can however tell that Rebolek and Cyphre are hard at work. :-) |
Rebolek 9-Nov-2010 [857] | Yes, right now I'm working on simple object browser for better debugging of styles. |
Carl 9-Nov-2010 [858x2] | Uploaded OS X libr3.so to github. http://www.rebol.com/r3/changes.htmlupdated |
Steven, nice! | |
Kaj 9-Nov-2010 [860] | Cool collaboration on the OS X build |
Carl 9-Nov-2010 [861] | I'll get you updated lib for A110 for OS4. |
Andreas 9-Nov-2010 [862] | Ha, great! |
Carl 9-Nov-2010 [863] | Kaj, yes, "Powered by Bolka" |
Pekr 9-Nov-2010 [864] | Cool, now work on OS-X can continue ... |
ssolie 10-Nov-2010 [865] | Henrik: I have a blog where I'm going to try and document my progress.. see http://solie.ca/ |
Henrik 10-Nov-2010 [866] | ssolie: cool :-) |
Maxim 10-Nov-2010 [867] | yes... very :-) |
Pekr 10-Nov-2010 [868] | ssolie - cool! Now you could update amigaworld.net R3 thread and post the screenshot :-) Btw - you said - "Although these images are quite complex they are rendered very quickly by REBOL." - I wonder if we have some gfx test scripts for you to try? |
Maxim 10-Nov-2010 [869] | aren't those gfx test scripts? |
Pekr 10-Nov-2010 [870] | I thought something like FPS measurement, or we have that (I can't remember the script name) CPU-REBOL cycles measurement script? |
Maxim 10-Nov-2010 [871] | ah yes, that would be interesting to see. |
Henrik 10-Nov-2010 [872] | the old 1000-cows script, maybe. |
older newer | first last |