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
Compiling on Mac OSX 10.6 (Snow Leopard)
Hi all, I have just upgraded to 10.6 and thought I shared some experiences on compiling: For Qt you need the 4.6.0-beta1 version (4.5 might work, but 10.6 seems to be only partially supported; also, if we look cross-platform, I think 4.6 is needed for Windows 7). Download from: http://get.qt.nokia.com/qt/source/ (the location in INSTALL.MacOSX doesn't work anymore) The default for Qt seems to be to compile for 32 bits (which is causing complications later on). I tried to get it to compile for 64 bits, but it failed (it takes a looong time to compile Qt, so I didn't give it many tries). Instead I compiled LyX for 32 bits by the adding following flags before compiling (I'm completely clueless as for C++ compilations, so several of these may well be obsolete) export CPPFLAGS=-arch i386 export CCFLAGS=-arch i386 export CFLAGS=-arch i386 export LDFLAGS=-framework Carbon -framework OpenGL -framework AGL - framework QuickTime -lz -framework Cocoa -arch i386 In relation to INSTALL.MacOSX the -lz ld-flag is added. I think it I included it in my script based on some previous discussions. Does anyone know if it is needed? 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 Difference compared to INSTALL.MacOSX: --disable-concept-checks --without-x --with-frontend=qt4 --disable-stdlib-debug --without-aspell --without-pspell --disable-shared --enable-static I did probably have some reason to add them (the chance that I came up with them by myself is non-existant ;-) I think some had to do with creating release binaries. Does the INSTALL.MacOSX need to be updated? There is one final important thing to do: I had to swap the source code and download it from scratch. (For 1.6 and 2.0 that is svn co svn://svn.lyx.org/lyx/lyx-devel/trunk lyx-devel and svn co svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X lyx-16x respectively) 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. All the best! Anders
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
Compiling on Mac OSX 10.6 (Snow Leopard)
Hi all, I have just upgraded to 10.6 and thought I shared some experiences on compiling: For Qt you need the 4.6.0-beta1 version (4.5 might work, but 10.6 seems to be only partially supported; also, if we look cross-platform, I think 4.6 is needed for Windows 7). Download from: http://get.qt.nokia.com/qt/source/ (the location in INSTALL.MacOSX doesn't work anymore) The default for Qt seems to be to compile for 32 bits (which is causing complications later on). I tried to get it to compile for 64 bits, but it failed (it takes a looong time to compile Qt, so I didn't give it many tries). Instead I compiled LyX for 32 bits by the adding following flags before compiling (I'm completely clueless as for C++ compilations, so several of these may well be obsolete) export CPPFLAGS="-arch i386" export CCFLAGS="-arch i386" export CFLAGS="-arch i386" export LDFLAGS="-framework Carbon -framework OpenGL -framework AGL - framework QuickTime -lz -framework Cocoa -arch i386" In relation to INSTALL.MacOSX the -lz ld-flag is added. I think it I included it in my script based on some previous discussions. Does anyone know if it is needed? 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 Difference compared to INSTALL.MacOSX: --disable-concept-checks --without-x --with-frontend=qt4 --disable-stdlib-debug --without-aspell --without-pspell --disable-shared --enable-static I did probably have some reason to add them (the chance that I came up with them by myself is non-existant ;-) I think some had to do with creating release binaries. Does the INSTALL.MacOSX need to be updated? There is one final important thing to do: I had to swap the source code and download it from scratch. (For 1.6 and 2.0 that is svn co svn://svn.lyx.org/lyx/lyx-devel/trunk lyx-devel and svn co svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X lyx-16x respectively) 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. All the best! Anders
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