Apache OpenOffice (AOO) Bugzilla – Issue 52510
Port SDK to Mac OS X
Last modified: 2013-02-24 21:09:58 UTC
Currently the OpenOffice.org SDK can only be used on Win32 and Linux, but not on Mac OS X. Thus it would be nice to provide a SDK for the mac port as well, since Mac's importance in computer industry is ever getting bigger and bigger in recent times which implies that more and more users use Mac OS X. Assigned to jsc, as he is the api lead. Added ericb as cc.
Yes, great idea ! I never have seen anything about Cocoa API , and this would be nice to complete SDK with something like : - codelines - rules - examples This will be very helpfull for native OOo Mac OS X port. +1 for me :-)
ericb: how is OOo SDK connected with Cocoa? SDK contains all you mentioned. E.g. examples are in odk/examples/DevelopersGuide. have you read sdk_oo/pack/copying/DevelopersGuide.pdf?
ericb -> pjanik Christian Junker, who has C++ knowledge, has planed to buy a Mac machine, and is interested to : - help us for Mac OSX port (thank you Christian :-) ) - write code using native Mac OS X API, aka "Cocoa". Because there's nothing really about (or we miss something) in DevelopersGuide, he kindly proposed to start something about Cocoa in SDK. Of course I have already read a lot of Developers guide, but I'm not interested with UNO and co, sorry. ( btw : why ask you the question like that ? You're joking about me ?) There's nothing about Cocoa in this guide, and this is a mess. Cocoa part is necessary for Mac OS X port for a lot of reasons : - when Intel proc will come, OOo won't be usable on such machines : Cocoa is obligatory - if we want to write something using this API, we must have rules, codelines etc. - we need to rewrite every Mac OS X thing in VCL using Cocoa, and if we want to attract new developper, we absolutly must have a documentation. But perhaps is the SDK not the good place ? If so, please suggest us a better place, this will save us a lot of time. FYI: Apple won't support Cocoa-Java anymore in a close future...
ericb -> cyb Two important steps IMHO : <http://specs.openoffice.org/> <http://specs.openoffice.org/collaterals/Specification_template.stw>
Hold on Eric, will you? ;-) I didn't say I would do this, but if I do buy a Mac I would certainly be interested in the porting process for the sdk.
ericb: yes, SDK is completely different thing. No, I'm not joking. So does OOo's SDK support MacOS X (the summary of this is about it!) or no? Have you ever tried running configure at all? Do you build OOo SDK on MacOS X? Reassign to ericb for confirmation.
cyb->ericb: Explicit build in sdk_oo is needed. Depends on odk module. When build is finished, watch out for an archive in the sdk_oo's output folder, something like OpenOffice.org_xxxx_SDK.tar.gz
ericb -> cyb To obtain SDK, no fix, just do : cd $SRC_DIR ./bootstrap source MacosxEnv.Set.sh cd sdk_oo build And you're done : [Ordinateur-de-eric:sdk_oo/unxmacxp.pro/bin] ericb% ls -ls total 74264 0 drwxr-xr-x 20 ericb ericb 680 Aug 24 22:40 OpenOffice.org2.0_SDK 74264 -rw-r--r-- 1 ericb ericb 38022699 Aug 24 22:40 OpenOffice.org2.0_SDK.tar.gz Just two warnings on Mac OSX : Warning: Invalid line nr. 3808 in DevelopersGuide reference file: com.sun.star.model.OfficeDocument Warning: Invalid line nr. 8015 in DevelopersGuide reference file: com.sun.star.style.ConditionalParagraphStyle ericb -> cyb : what you want is complete SDK with Objective-C examples, right ?
cyb->ericb: I already built it and extracted the generated tar file, but the examples can't be run because of some makefile issues. I was investigating on that, but will have a look in the future. And to clarify your question about Objective-C: NO, currently I just want to make all the SDK examples compile and run on Mac OS X, nothing more. If that is accomplished in the far future we can talk about some Objective-C example contribution. I take this issue as for now, hope you don't mind.
with the upcoming 3 patches compilation of the examples on MacOSX is ensured, however there still is work to be done because some examples don't run correctly (throw exceptions) especially those using the new bootstrap mechanism...
setting to started.
Created attachment 29179 [details] odk/settings/settings.mk patch
Created attachment 29180 [details] odk/setsdkenv_unix.sh.in patch
Created attachment 29181 [details] odk/setsdkenv_unix.csh.in patch
cyb: please unified patch format (diff -u).
Good news for m133 OOo MacOSX version: The simple bootstrap mechanism (connecting to OOo via named pipe) now works in C++. I remain testing for Java and then for connecting via sockets (TCP). If all of those things are ensured, then this task is finished as I see it, since only the bootstrapping of the specific UNO runtimes was causing trouble before (from thereon full API functionality should be ensured).
Alright, tested all simple connection examples + a component registration example, everything worked out fine. Assigning to Jürgen for further processing.
started..
fixed
verified, i checked if the changes were in the new native packed SDK packages
jsc -> cyb: Christian can you check the changes and if they are ok please close the issue
closed
Created attachment 72361