Building on Mac

2014-01-30 Thread Andre Fischer
Yesterday I was trying to make a new build on OSX.  I have not used this 
platform for a while so I instead of updating my SVN repository, I 
cloned the new GIT repository.  That went as smooth as expected (thanks 
to everybody involved setting it up).  But my configure failed.  It 
complained that there was no xcode installed.  This is probably due to 
the transition from 32bit to 64 bit. The only information I found about 
what to do is a short notice regarding build requirements [1].  That 
brought me as far as asking me for my Apple Developer Id.  I have one, 
but not readily available, so I can not continue right now.


So, I have some questions:

1. Is it possible to build on OSX with only freely available tools (that 
don't require registration)?


2. Is there anybody with access to a Mac who is willing to extend the 
building guide to cover OSX?
   [2] and [3] describe in some detail how to build OpenOffice on 
Windows and Linux (in its Ubuntu flavor) but hardly a word on OSX.  Is 
there another page buried in our Wiki?


3. I remember that I also had to set up macports [4] for some frequently 
used shell commands (I think) but that is not mentioned anywhere in the 
building guide.  Is it not needed anymore?



I think that it is not enough that it is theoretically possible to build 
OpenOffice on Mac OSX.  It should also be documented in a public place 
so that everybody can do it.


Regards,
Andre


[1] 
https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_MacOsX

[2] https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO
[3] 
https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Step_by_step

[4] http://www.macports.org/

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Building on Mac

2014-01-30 Thread Herbert Duerr

On 30.01.2014 09:40, Andre Fischer wrote:

1. Is it possible to build on OSX with only freely available tools (that
don't require registration)?


Apple's XCode development environment is available for free in either 
their app store or in their downloads for developers area. Apple 
requires a registrations for both.


Since an Xcode download is a plain disk-image file that could be easily 
redistributed there might be alternative channels for them, but I'd 
strongly recommend to use the reliable and legal download locations from 
the original provider Apple. If there are direct download links at Apple 
that don't require registration then they are not well publicized. If 
anyone knows such a link please provide it.



2. Is there anybody with access to a Mac who is willing to extend the
building guide to cover OSX?
[2] and [3] describe in some detail how to build OpenOffice on
Windows and Linux (in its Ubuntu flavor) but hardly a word on OSX.


Once XCode is installed it's just the plain generic svn-checkout, 
configure and build steps documented in [1]. The good thing about XCode 
is that it provides all that's needed.



3. I remember that I also had to set up macports [4] for some frequently
used shell commands (I think) but that is not mentioned anywhere in the
building guide.  Is it not needed anymore?


I don't have macports or fink installed and can build just fine. All our 
build requirements are covered by Xcode.


Of course these tool sets provide a lot of value, e.g. if anyone prefers 
to write his helper scripts in e.g. Lisp then macports is a good way to 
get a lisp interpreter for free. But our build doesn't require any of this.



I think that it is not enough that it is theoretically possible to build
OpenOffice on Mac OSX.  It should also be documented in a public place
so that everybody can do it.


Get XCode 4.5 and install it.
Do the generic AOO build [1].

[1] https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO

By the way, I'm working on enabling an AOO build with newer XCode 
versions, that no longer provide a 10.7 SDK.


I'd suggest to not give up so easily. If a download requires a 
registration then annoying as it may be, it is nothing a reasonably 
experienced developer cannot handle. Even Mac newbies often manage to 
get things from the App Store.


Herbert

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Building on Mac

2014-01-30 Thread Andre Fischer

On 30.01.2014 10:24, Herbert Duerr wrote:

On 30.01.2014 09:40, Andre Fischer wrote:

1. Is it possible to build on OSX with only freely available tools (that
don't require registration)?


Apple's XCode development environment is available for free in either 
their app store or in their downloads for developers area. Apple 
requires a registrations for both.


Instead of free I should have used the word open as in open source. 
Registration seems not to be compatible with that concept.




Since an Xcode download is a plain disk-image file that could be 
easily redistributed there might be alternative channels for them, but 
I'd strongly recommend to use the reliable and legal download 
locations from the original provider Apple. If there are direct 
download links at Apple that don't require registration then they are 
not well publicized. If anyone knows such a link please provide it.


I am not asking for ways around the registration.  I am asking for 
alternatives that maybe do not come from Apple.  Does macports provide a 
gcc/clang compiler?





2. Is there anybody with access to a Mac who is willing to extend the
building guide to cover OSX?
[2] and [3] describe in some detail how to build OpenOffice on
Windows and Linux (in its Ubuntu flavor) but hardly a word on OSX.


Once XCode is installed it's just the plain generic svn-checkout, 
configure and build steps documented in [1]. The good thing about 
XCode is that it provides all that's needed.


So?  The same is true for Linux and Windows and we still have detailed 
building guides for them.





3. I remember that I also had to set up macports [4] for some frequently
used shell commands (I think) but that is not mentioned anywhere in the
building guide.  Is it not needed anymore?


I don't have macports or fink installed and can build just fine. All 
our build requirements are covered by Xcode.


Of course these tool sets provide a lot of value, e.g. if anyone 
prefers to write his helper scripts in e.g. Lisp then macports is a 
good way to get a lisp interpreter for free. But our build doesn't 
require any of this.


Ah, I didn't know that.




I think that it is not enough that it is theoretically possible to build
OpenOffice on Mac OSX.  It should also be documented in a public place
so that everybody can do it.


Get XCode 4.5 and install it.


What about the ... or later on the build requirements page.  The 
referenced download page offers by default XCode 5.  Does that work?



Do the generic AOO build [1].

[1] https://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO

By the way, I'm working on enabling an AOO build with newer XCode 
versions, that no longer provide a 10.7 SDK.


I'd suggest to not give up so easily. If a download requires a 
registration then annoying as it may be, it is nothing a reasonably 
experienced developer cannot handle. Even Mac newbies often manage to 
get things from the App Store.


Not without their passwords.

And you are right, I am not an experienced developer on the Mac 
platform.   More reason to have proper documentation.  I still have not 
given up hope that sometime somebody will provide it.


-Andre



Herbert

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Building for MAC OS, gcc 4.0

2013-09-27 Thread Herbert Duerr

Hi Tal,

On 26.09.2013 22:21, Tal Daniel wrote:

Following the Building guide for MAC, I need help.
My gcc version is 4.2, and the configure script outputs a warning that it
needs 4.0.
Is it a blocker? Do I need to install another gcc?


...


checking the GNU gcc compiler version... configure: error: You need to use

the gcc-4.0 compiler (gcc 4.2.1 won't work with the MacOSX10.4u.sdk) - set
CC accordingly


GCC 4.2 on Mac means that you are probably using XCode4. Building our 
official releases still requires XCode3 with its gcc4.0. If installing 
the older XCode3 with the OSX10.4 SDK is possible for you then this 
would be the fastest solution to get a build.


We/Me are working on supporting newer MacOSX build environments. If you 
are adventurous you might want to try out my rejuventate01 branch [1]. 
As you saw the build requirements for our current OSX release are so 
ancient that there are very few developers left with such an old 
environment. The rejuvenation of the OSX platform support is really 
needed. Be warned: The branch is experimental, unfinished and has some 
rough edges. It already produces quite usable binaries [2]. Having other 
developers work on the branch too would be great. I hope I'll find the 
time to get back into it again soon.


[1] http://svn.apache.org/repos/asf/openoffice/branches/rejuvenate01/
[2] http:http://people.apache.org/~hdu/AOO_Mac64_rejuv.dmg

If you're interested I suggest to check this branch out, set the 
environment variables

CC=`xcrun -f clang` -arch x86_64
CXX=`xcrun -f clang++` -arch x86_64
and then continue with [3]

[3] 
http://wiki.openoffice.org/wiki/Documentation/Building_Guide/Building_on_MacOSX#Build_environment_with_enabled_category-b_dependencies



Guide I'm following step-by-step:
http://wiki.openoffice.org/wiki/Documentation/Building_Guide/Building_on_MacOSX


I'd be glad if someone can be a guide on the build process, because I'm a
bit lost from the autoconf step onwards.


The building guide is good. I updated it to make the XCode3/SDK10.4 
requirement more prominent.


Herbert


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: Building for MAC OS, gcc 4.0

2013-09-27 Thread Tal Daniel
Thank you Herbert, I'm using Xcode 3.2.6, with gcc 4.2, so I'll wait with
your branch.
Thanks for the invite.
Today I've managed to install  switch to gcc 4.0 using MacPorts (I'll
update the Guide, when I'm done).


On Fri, Sep 27, 2013 at 12:30 PM, Herbert Duerr h...@apache.org wrote:

 Hi Tal,


 On 26.09.2013 22:21, Tal Daniel wrote:

 Following the Building guide for MAC, I need help.
 My gcc version is 4.2, and the configure script outputs a warning that it
 needs 4.0.
 Is it a blocker? Do I need to install another gcc?

  ...


 checking the GNU gcc compiler version... configure: error: You need to use

 the gcc-4.0 compiler (gcc 4.2.1 won't work with the MacOSX10.4u.sdk) -
 set
 CC accordingly


 GCC 4.2 on Mac means that you are probably using XCode4. Building our
 official releases still requires XCode3 with its gcc4.0. If installing the
 older XCode3 with the OSX10.4 SDK is possible for you then this would be
 the fastest solution to get a build.

 We/Me are working on supporting newer MacOSX build environments. If you
 are adventurous you might want to try out my rejuventate01 branch [1]. As
 you saw the build requirements for our current OSX release are so ancient
 that there are very few developers left with such an old environment. The
 rejuvenation of the OSX platform support is really needed. Be warned: The
 branch is experimental, unfinished and has some rough edges. It already
 produces quite usable binaries [2]. Having other developers work on the
 branch too would be great. I hope I'll find the time to get back into it
 again soon.

 [1] 
 http://svn.apache.org/repos/**asf/openoffice/branches/**rejuvenate01/http://svn.apache.org/repos/asf/openoffice/branches/rejuvenate01/
 [2] 
 http:http://people.apache.org/**~hdu/AOO_Mac64_rejuv.dmghttp://people.apache.org/~hdu/AOO_Mac64_rejuv.dmg

 If you're interested I suggest to check this branch out, set the
 environment variables
 CC=`xcrun -f clang` -arch x86_64
 CXX=`xcrun -f clang++` -arch x86_64
 and then continue with [3]

 [3] http://wiki.openoffice.org/**wiki/Documentation/Building_**
 Guide/Building_on_MacOSX#**Build_environment_with_**enabled_category-b_**
 dependencieshttp://wiki.openoffice.org/wiki/Documentation/Building_Guide/Building_on_MacOSX#Build_environment_with_enabled_category-b_dependencies

  Guide I'm following step-by-step:
 http://wiki.openoffice.org/**wiki/Documentation/Building_**
 Guide/Building_on_MacOSXhttp://wiki.openoffice.org/wiki/Documentation/Building_Guide/Building_on_MacOSX
 I'd be glad if someone can be a guide on the build process, because I'm a
 bit lost from the autoconf step onwards.


 The building guide is good. I updated it to make the XCode3/SDK10.4
 requirement more prominent.

 Herbert



-- 
טל


Re: Building for MAC OS, gcc 4.0

2013-09-27 Thread Herbert Duerr

On 27.09.2013 13:39, Tal Daniel wrote:

Thank you Herbert, I'm using Xcode 3.2.6, with gcc 4.2, so I'll wait with
your branch.


Oh, if you already XCode 3 then you're probably almost all set: Please check
ls -l /usr/bin/gcc*
AFAIK on a typical XCode3 system there should be gcc-4.0 and gcc-4.2. I 
can't remember whether there was an install option to install the older 
version.


If I read the configure script correctly it tries to find this gcc-4.0 
version and would use it if it was there.


Regarding the 10.4 SDK I'm quite sure it was optional with XCode3's 
package installer. That one defaults to only install SDK 10.5 and 10.6. 
I you'll have 10.4 you are probably only two hours away from your own 
AOO build! :-)



Thanks for the invite.
Today I've managed to install  switch to gcc 4.0 using MacPorts


I'm not sure if the MacPorts gcc 4.0 will work. Better check whether the 
older compiler version was an optional part of XCode3 and use that if 
possible.



(I'll update the Guide, when I'm done).


Wonderful, thanks in advance!

Herbert

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Building for MAC OS, gcc 4.0

2013-09-26 Thread Tal Daniel
Following the Building guide for MAC, I need help.
My gcc version is 4.2, and the configure script outputs a warning that it
needs 4.0.
Is it a blocker? Do I need to install another gcc?

 ...

checking the GNU gcc compiler version... configure: error: You need to use
 the gcc-4.0 compiler (gcc 4.2.1 won't work with the MacOSX10.4u.sdk) - set
 CC accordingly


Guide I'm following step-by-step:
http://wiki.openoffice.org/wiki/Documentation/Building_Guide/Building_on_MacOSX


I'd be glad if someone can be a guide on the build process, because I'm a
bit lost from the autoconf step onwards.

Thanks,
Tal