Re: Build LibreOffice on Mac OS X

2013-04-24 Thread foss
Hi,

Of course command line tools are installed.
And I have read all documentations (each with a different procedure).
I tried various env vars because a build with a plain vanilla 10.7/Xcode4.5 
failed.

If you upgrade Mac OS X, Apple leave most of the "old" toolchain.

But from a clean install :
- The default compiler is clang, not gcc.
- This is not a plain gcc anymore with XCode (only llvm).
- Neither /Developer folder or 10.6 SDK are present.

This should explain the failures.
Anyway, I will remake a clean install from scratch on my Mac Mini and test on 
an "old" 10.4/10.5 iMac too.
And build the UNO SDK as recommended on :
https://wiki.documentfoundation.org/Development/Setup_OS_X

I may not be the only one with those build errors.

Best regards,
  Raphaël

Jonathan Aquilina  wrote ..
> 10.7 works fine just need command line tools installed only no
> environmental variables needed either.
>
>
> On Wed, Apr 24, 2013 at 10:51 AM, Tor Lillqvist  wrote:
>
> > > 10.6 SDK is from Xcode 4.3.2 dmg.
> >
> > Why do you insist on using that? If you just use the existing stuff in
> > your current Xcode, it should (hopefully) be easier to build. No
> > complex CC, CXX, OBJCFLAGS, OBJCXXFLAGS, CXXCPP etc environment
> > variables should be necessary. (But then, I haven't built on 10.7
> > sizne 10.8 came out, so I don't have recent personal experience.)
> > Anyway, I think you are complicating things for yourself;) The intent
> > is that the configury finds the ideal compiler and SDK to use.
> >
> > Did you read https://wiki.documentfoundation.org/Development/Setup_OS_X ?
> >
> > --tml
> > ___
> > LibreOffice mailing list
> > LibreOffice@lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/libreoffice
> >
>
>
>
> --
> Jonathan Aquilina
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Build LibreOffice on Mac OS X

2013-04-24 Thread Jonathan Aquilina
10.7 works fine just need command line tools installed only no
environmental variables needed either.


On Wed, Apr 24, 2013 at 10:51 AM, Tor Lillqvist  wrote:

> > 10.6 SDK is from Xcode 4.3.2 dmg.
>
> Why do you insist on using that? If you just use the existing stuff in
> your current Xcode, it should (hopefully) be easier to build. No
> complex CC, CXX, OBJCFLAGS, OBJCXXFLAGS, CXXCPP etc environment
> variables should be necessary. (But then, I haven't built on 10.7
> sizne 10.8 came out, so I don't have recent personal experience.)
> Anyway, I think you are complicating things for yourself;) The intent
> is that the configury finds the ideal compiler and SDK to use.
>
> Did you read https://wiki.documentfoundation.org/Development/Setup_OS_X ?
>
> --tml
> ___
> LibreOffice mailing list
> LibreOffice@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
>



-- 
Jonathan Aquilina
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Build LibreOffice on Mac OS X

2013-04-24 Thread Tor Lillqvist
> 10.6 SDK is from Xcode 4.3.2 dmg.

Why do you insist on using that? If you just use the existing stuff in
your current Xcode, it should (hopefully) be easier to build. No
complex CC, CXX, OBJCFLAGS, OBJCXXFLAGS, CXXCPP etc environment
variables should be necessary. (But then, I haven't built on 10.7
sizne 10.8 came out, so I don't have recent personal experience.)
Anyway, I think you are complicating things for yourself;) The intent
is that the configury finds the ideal compiler and SDK to use.

Did you read https://wiki.documentfoundation.org/Development/Setup_OS_X ?

--tml
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Build LibreOffice on Mac OS X

2013-04-23 Thread Tor Lillqvist
On Wednesday, April 24, 2013, Jonathan Aquilina wrote:

> Raphael make sure you have the command line tools installed through xcode
> as well.
>
>
Where do you think the /usr/bin/clang he mentioned comes from?

--tml
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Build LibreOffice on Mac OS X

2013-04-23 Thread Jonathan Aquilina
Raphael make sure you have the command line tools installed through xcode
as well.


On Wed, Apr 24, 2013 at 12:06 AM,  wrote:

> Hi,
>
> New report about building LibreOffice on a clean Mac OS X 10.7/XCode 4.5.
>
> 10.6 SDK is from Xcode 4.3.2 dmg.
>
> I switch to Libro 4 from git://gerrit.libreoffice.org/core
>
> Here the present compilers :
>
>  Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn)
>  /usr/bin/clang
>
>  gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
>  /usr/bin/i686-apple-darwin11-llvm-gcc-4.2
>
>  gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
>  /usr/local/bin/gcc-4.2
>  Get from
> https://github.com/downloads/kennethreitz/osx-gcc-installer/GCC-10.7-v2.pkg
>
> Note : Clang is the default compiler
>
> Builds failed with each of their compilers.
>
> My last autogen.sh configuration :
> ./autogen.sh  --without-doxygen --disable-python --without-help \
> --without-helppack-integration --without-myspell-dicts
>  --with-macosx-sdk=10.6 \
> CC="/usr/bin/clang -m32" \
> CXX="/usr/bin/clang++ -m32" \
> OBJCFLAGS=" -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk"
> \
> OBJCXXFLAGS=" -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk"
>
> OBJCFLAGS and OBJCXXFLAGS are to force to not search includes in
> /Developper
>
> I force compiler with CC and CCXX, preprocessor with
> CXXCPP="/usr/bin/i686-apple-darwin11-g++-4.2.1 -E"
> Maybe I should try different linkers.
>
> I get a different error for each combination, like this one :
>
> [build LNK] Library/updatefeed.uno.dylib
> Undefined symbols for architecture i386:
>   "[build LNK] Library/libupdchk.dylib
> com::sun::star::uno::Reference::operator
> com::sun::star::uno::Reference const&()
> const", referenced from:
>   non-virtual thunk to pq_sdbc_driver::BaseResultSet::getStatement()in
> pq_baseresultset.o
>
>
> May you post your complete toolchain ?
>
> Best regards,
>Raphaël
>
> ___
> LibreOffice mailing list
> LibreOffice@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
>
>


-- 
Jonathan Aquilina
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Build LibreOffice on Mac OS X

2013-04-23 Thread foss
Hi,

New report about building LibreOffice on a clean Mac OS X 10.7/XCode 4.5.

10.6 SDK is from Xcode 4.3.2 dmg.

I switch to Libro 4 from git://gerrit.libreoffice.org/core

Here the present compilers :

 Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn)
 /usr/bin/clang

 gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
 /usr/bin/i686-apple-darwin11-llvm-gcc-4.2

 gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
 /usr/local/bin/gcc-4.2
 Get from 
https://github.com/downloads/kennethreitz/osx-gcc-installer/GCC-10.7-v2.pkg

Note : Clang is the default compiler

Builds failed with each of their compilers.

My last autogen.sh configuration :
./autogen.sh  --without-doxygen --disable-python --without-help \
--without-helppack-integration --without-myspell-dicts  --with-macosx-sdk=10.6 \
CC="/usr/bin/clang -m32" \
CXX="/usr/bin/clang++ -m32" \
OBJCFLAGS=" -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk"
 \
OBJCXXFLAGS=" -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk"

OBJCFLAGS and OBJCXXFLAGS are to force to not search includes in /Developper

I force compiler with CC and CCXX, preprocessor with 
CXXCPP="/usr/bin/i686-apple-darwin11-g++-4.2.1 -E"
Maybe I should try different linkers.

I get a different error for each combination, like this one :

[build LNK] Library/updatefeed.uno.dylib
Undefined symbols for architecture i386:
  "[build LNK] Library/libupdchk.dylib
com::sun::star::uno::Reference::operator 
com::sun::star::uno::Reference const&() 
const", referenced from:
  non-virtual thunk to pq_sdbc_driver::BaseResultSet::getStatement()in 
pq_baseresultset.o


May you post your complete toolchain ?

Best regards,
   Raphaël
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Build LibreOffice on Mac OS X

2013-04-08 Thread foss
Hi,

After weeks of heavy load, I take an after midnight time to progress.


> > Install macports
>
> This will most likely cause problems. Stay far away from macports when
> working with LibreOffice please. (I.e. you can have it, but make sure
> it doesn't pollute your environment through PATH or otherwise.)

Clean uninstall done.


> The only 3rd-party software you will need when building with a current
> Xcode is automake and autoconf. Just build them from source and
> install in a fresh prefix, and add the "bin" of that to PATH before
> autogenning LibreOffice.

Now build and installed directly from latest tarballs.


> > sudo perl -MCPAN -e shell
> > cpan[1]> install Archive::Zip
> > cpan[1]> quit
>
> Hmm, I don't recall if that really is necessary, maybe it is?

I got errors. It fixed it :)


> > CC=clang -m32
> > CXX=clang++ -m32
>
> The compiler(s) will be found automatically, setting CC and CXX
> manually might cause problems.

OK, I will change this point too.


> > /System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h:/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h18::181::In
> file included from 1 
> :/Users/raphael/Desktop/git/libo/extensions/source/macosx/spotlight/OOoMetaDataParser.m
> :28
> > error: :
> > error: In file included from 
> > /Users/raphael/Desktop/git/libo/extensions/source/macosx/spotlight/OOoMetaDataParser.hduplicate
> interface definition for class 'NSObject':duplicate interface definition for 
> class
> 'NSObject'20
>
> No idea whether that problem indeed can be caused by macport
> interfering, or setting CC/CXX manually. But at least try not doing
> that...


I am starting from a fresh git pull.
Wish me luck !

Michael, Tor, thank you very much for your help.

Best regards,
   Raphaël
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Build LibreOffice on Mac OS X

2013-02-17 Thread Tor Lillqvist
Raphaël, hello? Any progress?

--tml
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Build LibreOffice on Mac OS X

2013-02-06 Thread Tor Lillqvist
> Documentation I followed :

The problem with wiki pages and blog posts is that they soon become
outdated... It is a good idea to assume that for bleeding-edge master
work, any instructions older than a few months might be outdated.

> Migrate 10.6 SDK

Should not be necessary. At least I have never done that...

> Install macports

This will most likely cause problems. Stay far away from macports when
working with LibreOffice please. (I.e. you can have it, but make sure
it doesn't pollute your environment through PATH or otherwise.)

The only 3rd-party software you will need when building with a current
Xcode is automake and autoconf. Just build them from source and
install in a fresh prefix, and add the "bin" of that to PATH before
autogenning LibreOffice.

> sudo perl -MCPAN -e shell
> cpan[1]> install Archive::Zip
> cpan[1]> quit

Hmm, I don't recall if that really is necessary, maybe it is?

> CC=clang -m32
> CXX=clang++ -m32

The compiler(s) will be found automatically, setting CC and CXX
manually might cause problems.

> /System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h:/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h18::181::In
>  file included from 1 
> :/Users/raphael/Desktop/git/libo/extensions/source/macosx/spotlight/OOoMetaDataParser.m
>  :28
> error: :
> error: In file included from 
> /Users/raphael/Desktop/git/libo/extensions/source/macosx/spotlight/OOoMetaDataParser.hduplicate
>  interface definition for class 'NSObject':duplicate interface definition for 
> class 'NSObject'20

No idea whether that problem indeed can be caused by macport
interfering, or setting CC/CXX manually. But at least try not doing
that...

--tml
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Build LibreOffice on Mac OS X

2013-02-06 Thread foss
Hi all,

I would like to get involved in development of the Mac OS X version.
But I can't build LibreOffice even after many hours of works.
At the bottom of this message, one of my procedure.
If someone could share a working procedure, many thanks by advance.

Best regards,
  Raphaël Pautasso

Documentation I followed :
https://wiki.documentfoundation.org/Development/Native_Build
https://wiki.documentfoundation.org/Development/Building_LibreOffice_with_Clang
https://bugs.freedesktop.org/show_bug.cgi?id=54070
http://www.blog.montgomerie.net/migrating-xcode-sdks
http://sfarbotka.blogspot.fr/2012/10/build-libreoffice-on-osx108-with-xcode45.html
http://wiki.openoffice.org/wiki/CPAN_install
http://www.macports.org/install.php

Tests on :
Mac OS X 10.6.8 with Xcode 3.2.6
Mac OS X 10.7 with Xcode 4.5 (clean install)

What I did for example on 10.7 :

Migrate 10.6 SDK
Install command lines tools within xcode
Install macports
sudo port -v selfupdate
sudo port install libidl +universal
sudo port install automaker doxygen grep pkgconfig

sudo perl -MCPAN -e shell
cpan[1]> install Archive::Zip
cpan[1]> quit

mkdir git
cd git
git clone git://anongit.freedesktop.org/libreoffice/core libo
cd libo/

# Hide pkg-config (on 10.7)
sudo mv /bin/pkg-config /opt/local/bin/pkg-config

Create autogen.lastrun file in source codes root directory with next content:
--disable-binfilter
--disable-build-mozilla
--disable-mozilla
--disable-odk
--disable-online-update
--disable-python
--enable-debug=cppu/ cppuhelper/ sal/ sfx2/ stoc/ sw/ toolkit/ unotools/ vcl/
--enable-epm
--with-java-target-version=1.6
--with-macosx-version-min-required=10.6
--with-max-jobs=2
--with-num-cpus=2
--without-doxygen
--without-help
--without-helppack-integration
--without-myspell-dicts
CC=clang -m32
CXX=clang++ -m32

ulimit -c unlimited

make

Then fatal error :(

:In file included from 
9/System/Library/Frameworks/CoreData.framework/Headers/NSIncrementalStore.h::9:
/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h:/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h18::181::In
 file included from 1 
:/Users/raphael/Desktop/git/libo/extensions/source/macosx/spotlight/OOoMetaDataParser.m
 :28
error: :
error: In file included from 
/Users/raphael/Desktop/git/libo/extensions/source/macosx/spotlight/OOoMetaDataParser.hduplicate
 interface definition for class 'NSObject':duplicate interface definition for 
class 'NSObject'20
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice