Re: Compiling on Mac OSX 10.6 (Snow Leopard)
Anders Ekberg a...@mac.com writes: Could something like this work? I am a bit in a hurry, but a few comments on this: + ./configure --prefix=/Path/to/LyX.app --disable-concept-checks --with-version-suffix=-2.0 --with-qt4-dir=/Path/to/QT4/ --enable-optimization=-Os --without-x --with-included-gettext --with-frontend=qt4 --disable-stdlib-debug --without-aspell --without-pspell --disable-shared --enable-static --enable-build-type=rel Cut in parts + ./configure --prefix=/Path/to/LyX.app --disable-concept-checks Is --disable-concept-checks needed? --with-version-suffix=-2.0 --with-qt4-dir=/Path/to/QT4/ enable-optimization=-Os OK --without-x I think this is not needed. --with-included-gettext OK --with-frontend=qt4 I think this is not needed. --disable-stdlib-debug This is implied by build-type=rel --without-aspell --without-pspell This is not needed if you do not have the relevant libraries installed --disable-shared --enable-static This has no effect in trunk since we do not use libtool anymore. --enable-build-type=rel Note that this is * not needed with a normal release (it is the default) * not always wanted with a 1.x.ysvn release, since it disables debug options. This only make sense when one wants to compile a development version as if it were a stable one, e.g. for a normal use who follows the stable branch. With trunk, I'd advise against turning off all debug features, except in the important case where one wants to do profiling. JMarc
Re: Compiling on Mac OSX 10.6 (Snow Leopard)
Anders Ekbergwrites: > Could something like this work? I am a bit in a hurry, but a few comments on this: + ./configure --prefix=/Path/to/LyX.app --disable-concept-checks --with-version-suffix=-2.0 --with-qt4-dir=/Path/to/QT4/ --enable-optimization=-Os --without-x --with-included-gettext --with-frontend=qt4 --disable-stdlib-debug --without-aspell --without-pspell --disable-shared --enable-static --enable-build-type=rel Cut in parts + ./configure --prefix=/Path/to/LyX.app --disable-concept-checks Is --disable-concept-checks needed? --with-version-suffix=-2.0 --with-qt4-dir=/Path/to/QT4/ enable-optimization=-Os OK --without-x I think this is not needed. --with-included-gettext OK --with-frontend=qt4 I think this is not needed. --disable-stdlib-debug This is implied by build-type=rel --without-aspell --without-pspell This is not needed if you do not have the relevant libraries installed --disable-shared --enable-static This has no effect in trunk since we do not use libtool anymore. --enable-build-type=rel Note that this is * not needed with a normal release (it is the default) * not always wanted with a 1.x.ysvn release, since it disables debug options. This only make sense when one wants to compile a development version as if it were a stable one, e.g. for a normal use who follows the stable branch. With trunk, I'd advise against turning off all debug features, except in the important case where one wants to do profiling. JMarc
Re: Compiling on Mac OSX 10.6 (Snow Leopard)
On Mon, Oct 19, 2009 at 4:43 PM, Pavel Sanda sa...@lyx.org wrote: Anders Ekberg wrote: (most notably --enable-optimization=-O2 --disable-debug are good for non debuging purposes). pavel Could something like this work? looks good, except the --enable-optimization=-Os part. firstly O2 is better imho, secondly you already request O2 by calling --enable-build-type=rel and maybe some other switches too. i can commit it if there are no objection from other mac people around. Sorry -- as I said in another thread, I've been swamped and unable to follow snow leopard problems/developments. So don't wait on me BH
Re: Compiling on Mac OSX 10.6 (Snow Leopard)
On Mon, Oct 19, 2009 at 4:43 PM, Pavel Sandawrote: > Anders Ekberg wrote: >>> (most notably --enable-optimization=-O2 --disable-debug >>> are good for non debuging purposes). >>> >>> pavel >> >> Could something like this work? > > looks good, except the --enable-optimization=-Os part. firstly O2 is better > imho, secondly you already request O2 by calling --enable-build-type=rel and > maybe some other switches too. i can commit it if there are no objection from > other mac people around. Sorry -- as I said in another thread, I've been swamped and unable to follow snow leopard problems/developments. So don't wait on me BH
Re: Compiling on Mac OSX 10.6 (Snow Leopard)
On 18 okt 2009, at 21.10, Pavel Sanda wrote: Anders Ekberg wrote: could you prepare diff against INSTALL.MacOSX for people using 10.6 ? perhaps adding some senction would be enough. pavel Sure, I just thought I should get some input from people who actually know C++-compiling so I don't put in too many unnecessary flags. On the other hand maybe that doesn't hurt. ... I then configured as usual: ./configure --prefix=/Path/to/LyX.app --disable-concept-checks --with-version-suffix=-$VERSION --with-qt4-dir=/Path/to/QT46b1/ --enable-optimization=-Os --without-x --with-included-gettext --with-frontend=qt4 --disable-stdlib-debug --without-aspell --without-pspell --disable-shared --enable-static this is fine for debuging purposes. for normal users we should use: --enable-build-type=rel (most notably --enable-optimization=-O2 --disable-debug are good for non debuging purposes). pavel Could something like this work? /Anders Install.MacOSX.patch Description: Binary data Install.MacOSX-trunk.patch Description: Binary data
Re: Compiling on Mac OSX 10.6 (Snow Leopard)
Anders Ekberg wrote: (most notably --enable-optimization=-O2 --disable-debug are good for non debuging purposes). pavel Could something like this work? looks good, except the --enable-optimization=-Os part. firstly O2 is better imho, secondly you already request O2 by calling --enable-build-type=rel and maybe some other switches too. i can commit it if there are no objection from other mac people around. pavel
Re: Compiling on Mac OSX 10.6 (Snow Leopard)
On 18 okt 2009, at 21.10, Pavel Sanda wrote: Anders Ekberg wrote: could you prepare diff against INSTALL.MacOSX for people using 10.6 ? perhaps adding some senction would be enough. pavel Sure, I just thought I should get some input from people who actually know C++-compiling so I don't put in too many unnecessary flags. On the other hand maybe that doesn't hurt. ... I then configured as usual: ./configure --prefix=/Path/to/LyX.app --disable-concept-checks --with-version-suffix=-$VERSION --with-qt4-dir=/Path/to/QT46b1/ --enable-optimization=-Os --without-x --with-included-gettext --with-frontend=qt4 --disable-stdlib-debug --without-aspell --without-pspell --disable-shared --enable-static this is fine for debuging purposes. for normal users we should use: --enable-build-type=rel (most notably --enable-optimization=-O2 --disable-debug are good for non debuging purposes). pavel Could something like this work? /Anders Install.MacOSX.patch Description: Binary data Install.MacOSX-trunk.patch Description: Binary data
Re: Compiling on Mac OSX 10.6 (Snow Leopard)
Anders Ekberg wrote: >> (most notably --enable-optimization=-O2 --disable-debug >> are good for non debuging purposes). >> >> pavel > > Could something like this work? looks good, except the --enable-optimization=-Os part. firstly O2 is better imho, secondly you already request O2 by calling --enable-build-type=rel and maybe some other switches too. i can commit it if there are no objection from other mac people around. pavel
Re: Compiling on Mac OSX 10.6 (Snow Leopard)
Anders Ekberg wrote: So now both 1.6 and 2.0 run like a charm. The same compilation instructions were used for both. This bodes well for future Qt upgrades for LyX I think. Note however that they are intel only. The crash bug at backup is still there, but deselecting the choice of backup copies works. could you prepare diff against INSTALL.MacOSX for people using 10.6 ? perhaps adding some senction would be enough. pavel
Re: Compiling on Mac OSX 10.6 (Snow Leopard)
On 18 okt 2009, at 19.40, Pavel Sanda wrote: Anders Ekberg wrote: So now both 1.6 and 2.0 run like a charm. The same compilation instructions were used for both. This bodes well for future Qt upgrades for LyX I think. Note however that they are intel only. The crash bug at backup is still there, but deselecting the choice of backup copies works. could you prepare diff against INSTALL.MacOSX for people using 10.6 ? perhaps adding some senction would be enough. pavel Sure, I just thought I should get some input from people who actually know C++-compiling so I don't put in too many unnecessary flags. On the other hand maybe that doesn't hurt. /Anders
Re: Compiling on Mac OSX 10.6 (Snow Leopard)
Anders Ekberg wrote: could you prepare diff against INSTALL.MacOSX for people using 10.6 ? perhaps adding some senction would be enough. pavel Sure, I just thought I should get some input from people who actually know C++-compiling so I don't put in too many unnecessary flags. On the other hand maybe that doesn't hurt. ... I then configured as usual: ./configure --prefix=/Path/to/LyX.app --disable-concept-checks --with-version-suffix=-$VERSION --with-qt4-dir=/Path/to/QT46b1/ --enable-optimization=-Os --without-x --with-included-gettext --with-frontend=qt4 --disable-stdlib-debug --without-aspell --without-pspell --disable-shared --enable-static this is fine for debuging purposes. for normal users we should use: --enable-build-type=rel (most notably --enable-optimization=-O2 --disable-debug are good for non debuging purposes). pavel
Re: Compiling on Mac OSX 10.6 (Snow Leopard)
Anders Ekberg wrote: > So now both 1.6 and 2.0 run like a charm. The same compilation instructions > were used for both. This bodes well for future Qt upgrades for LyX I think. > Note however that they are intel only. The "crash bug" at backup is still > there, but deselecting the choice of backup copies works. could you prepare diff against INSTALL.MacOSX for people using 10.6 ? perhaps adding some senction would be enough. pavel
Re: Compiling on Mac OSX 10.6 (Snow Leopard)
On 18 okt 2009, at 19.40, Pavel Sanda wrote: Anders Ekberg wrote: So now both 1.6 and 2.0 run like a charm. The same compilation instructions were used for both. This bodes well for future Qt upgrades for LyX I think. Note however that they are intel only. The "crash bug" at backup is still there, but deselecting the choice of backup copies works. could you prepare diff against INSTALL.MacOSX for people using 10.6 ? perhaps adding some senction would be enough. pavel Sure, I just thought I should get some input from people who actually know C++-compiling so I don't put in too many unnecessary flags. On the other hand maybe that doesn't hurt. /Anders
Re: Compiling on Mac OSX 10.6 (Snow Leopard)
Anders Ekberg wrote: >> could you prepare diff against INSTALL.MacOSX for people using 10.6 ? >> perhaps adding some senction would be enough. >> >> pavel > > > Sure, I just thought I should get some input from people who actually know > C++-compiling so I don't put in too many unnecessary flags. On the other > hand maybe that doesn't hurt. ... > I then configured as usual: > ./configure --prefix=/Path/to/LyX.app --disable-concept-checks > --with-version-suffix=-$VERSION --with-qt4-dir=/Path/to/QT46b1/ > --enable-optimization=-Os --without-x --with-included-gettext > --with-frontend=qt4 --disable-stdlib-debug --without-aspell > --without-pspell --disable-shared --enable-static this is fine for debuging purposes. for normal users we should use: --enable-build-type=rel (most notably --enable-optimization=-O2 --disable-debug are good for non debuging purposes). pavel