Issue 52510 - Port SDK to Mac OS X
Summary: Port SDK to Mac OS X
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: Mac Mac OS X, all
: P3 Trivial
Target Milestone: ---
Assignee: jsc
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-26 22:43 UTC by christianjunker
Modified: 2013-02-24 21:09 UTC (History)
3 users (show)

See Also:
Issue Type: FEATURE
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
odk/settings/settings.mk patch (334 bytes, patch)
2005-08-30 22:08 UTC, christianjunker
no flags Details | Diff
odk/setsdkenv_unix.sh.in patch (235 bytes, patch)
2005-08-30 22:09 UTC, christianjunker
no flags Details | Diff
odk/setsdkenv_unix.csh.in patch (252 bytes, patch)
2005-08-30 22:10 UTC, christianjunker
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description christianjunker 2005-07-26 22:43:41 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.
Comment 1 eric.bachard 2005-07-26 23:01:31 UTC
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  :-)
Comment 2 pavel 2005-07-27 08:06:42 UTC
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?
Comment 3 eric.bachard 2005-07-27 13:00:55 UTC
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... 
Comment 4 eric.bachard 2005-07-27 13:24:54 UTC
ericb -> cyb

Two important steps IMHO :

<http://specs.openoffice.org/>
<http://specs.openoffice.org/collaterals/Specification_template.stw>
Comment 5 christianjunker 2005-07-27 13:50:27 UTC
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.
Comment 6 pavel 2005-07-27 15:47:07 UTC
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.
Comment 7 christianjunker 2005-08-01 10:18:12 UTC
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 

Comment 8 eric.bachard 2005-08-24 21:47:30 UTC
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 ?

Comment 9 christianjunker 2005-08-24 23:13:17 UTC
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.
Comment 10 christianjunker 2005-08-30 22:06:38 UTC
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...
Comment 11 christianjunker 2005-08-30 22:06:54 UTC
setting to started.
Comment 12 christianjunker 2005-08-30 22:08:15 UTC
Created attachment 29179 [details]
odk/settings/settings.mk patch
Comment 13 christianjunker 2005-08-30 22:09:38 UTC
Created attachment 29180 [details]
odk/setsdkenv_unix.sh.in patch
Comment 14 christianjunker 2005-08-30 22:10:49 UTC
Created attachment 29181 [details]
odk/setsdkenv_unix.csh.in patch
Comment 15 pavel 2005-08-31 06:39:44 UTC
cyb: please unified patch format (diff -u).
Comment 16 christianjunker 2005-10-25 11:59:34 UTC
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).

Comment 17 christianjunker 2005-10-25 15:06:32 UTC
Alright, tested all simple connection examples + a component registration example, everything worked 
out fine. Assigning to Jürgen for further processing.
Comment 18 christianjunker 2005-10-25 15:09:14 UTC
started..
Comment 19 jsc 2005-10-28 09:42:04 UTC
fixed
Comment 20 jsc 2005-11-03 17:04:21 UTC
verified, i checked if the changes were in the new native packed SDK packages
Comment 21 jsc 2005-12-01 12:42:30 UTC
jsc -> cyb: Christian can you check the changes and if they are ok please close
the issue
Comment 22 jsc 2006-01-18 14:40:43 UTC
closed
Comment 23 Unknown 2010-10-23 06:57:07 UTC
Created attachment 72361