On Jan 16, 2013, at 1:30 AM, Kornel Benko wrote: > Am Dienstag, 15. Januar 2013 um 18:02:30, schrieb Jerry <lancebo...@qwest.net> > > > > On Jan 15, 2013, at 1:12 AM, Kornel Benko wrote: > > > > > Am Montag, 14. Januar 2013 um 19:51:08, schrieb Jerry > > > <lancebo...@qwest.net> > > > ... > > > > Well, I seem to have lost the ability to build anything but master. > > > > I've tried a few things to build 2.0.0 such as building inside > > > > /bla/bla/development/cmake so that CMakeLists.txt is seen, and making a > > > > symlink of /bla/bla/development/cmake/CMakeLists.txt to /bla/bla/. > > > > > > > > The first attempt (build in /bla/bla/development/cmake) fails like this: > > > > > > > > CMake Error: The source directory "/bla/bla" does not appear to contain > > > > CMakeLists.txt. > > > > (where /bla/bla is the source root directory.) > > > > > > iff you have branched to 2.0.x > > > ( > > > #cd /Applications/Words/LyX_outer_folder/lyx-git/lyx > > > # git checkout 2.0.x > > > ) > > > > > > then > > > #cd <your 2.0.x build directory> > > > #cmake > > > /Applications/Words/LyX_outer_folder/lyx-git/lyx/development/cmake ... > > > > > > Kornel > > > > > Thanks, Kornel. I followed your instructions above as literally as I could. > > To be specific, here's what I did. I first made a fresh copy of the > > repository, the fresh copy having path > > > > /Applications/Words/LyX_outer_folder/lyx-git/lyx/ > > > > Then > > > > $ cd /Applications/Words/LyX_outer_folder/lyx-git/lyx > > $ git checkout 2.0.0 > > > > My build directory is set by this cmake line (see below): > > > > -DLYX_INSTALL_PREFIX=/Applications/Words/LyX_outer_folder/Lyx-dev-app/ \ > > > Maybe line too short? > > > so I > > > > $ cd /Applications/Words/LyX_outer_folder/Lyx-dev-app/ > > Why? This is NOT the build directory. Thist is the prefix-path to be used for > installation. > The build directory is _anything_you_choose_, to be used for temporary data > created while build. > The correct sequence: > #cd /Applications/Words/LyX_outer_folder/lyx-git/lyx > #git checkout 2.0.0 > #mkdir /tmp/lyx20 > # or whatever you like > #cd /tmp/lyx20 > #cmake > /Applications/Words/LyX_outer_folder/lyx-git/lyx/Development/cmake > -DLYX_INSTALL_PREFIX=/Applications/Words/LyX_outer_folder/Lyx-dev-app/ ... > #make > # or whatever is your > build-command > # sudo make install > # or appropriate command > Only now the /Applications/Words/LyX_outer_folder/Lyx-dev-app should be > populated ... > > > which happens to already exist and which is empty, then I run this cmake > > command: > > cd in the build directory first > > > cmake \ > > -DLYX_EXTERNAL_LIBINTL=ON \ > > -DLIBINTL_INCLUDE_DIR=/opt/local/include \ > > -DLYX_PROGRAM_SUFFIX=OFF \ > > -DLYX_PACKAGE_SUFFIX=OFF \ > > -DLYX_RELEASE=ON \ > > -DLYX_DMG=ON \ > > -DLYX_INSTALL=ON \ > > -DLYX_COCOA=ON \ > > -DLYX_INSTALL_PREFIX=/Applications/Words/LyX_outer_folder/Lyx-dev-app/ \ > > /Applications/Words/LyX_outer_folder/lyx-git/lyx/development/cmake/ > > > > which results in four cmake warnings and this: > > > > -- Build files have been written to: > > /Applications/Words/LyX_outer_folder/Lyx-dev-app > > > > then (with path still set to > > /Applications/Words/LyX_outer_folder/Lyx-dev-app) > > > > Kornel
Thanks for the enlightenment. Same results, of course. So I guess you've already figured out that the reason I was seeing source tree pollution was because I was building in the source tree. :-/ Jerry