On Tue, May 25, 2010 at 11:43 AM, Stephan Witt <st.w...@gmx.net> wrote:
> Am 25.05.2010 um 17:36 schrieb Rob Oakes:
>
>> Dear LyX Developers,
>>
>> I just downloaded the latest LyX version via SVN onto Mac and compiled
>> it using the Qt 4.7 beta (which seems to be much more stable,
>> responsive, and better than Qt 4.6; at least on Snow Leopard).
>> Everything compiled fine and I was able to launch LyX and look at
>> several example documents.
>>
>> However, I ran into a strange problem.  After configuring and compiling
>> (Used CMake + Qt Creator), LyX simply skipped the initial configuration.
>> It wasn't able to locate my LaTeX installation and the PATH prefix in
>> the Paths dialog was simply empty.  Even after filling in the PATH and
>> trying to reconfigure, it wasn't able to find my LaTeX distribution.
>>
>> The alpha3, which I downloaded from the website works fine.  It locates
>> my LaTeX distribution and I am able to compile all of my test documents.
>>
>> Did I miss a configuration step someplace?
>
> I built the alpha3 .dmg using autotools.
> Please, tell me what you did exactly to built LyX with CMake.
> Until my last try some weeks ago I couldn't do that with Xcode.
> You mentioned QtCreator... I haven't tried that until now.

Here's what I do from the command line:

* set PATH and possibly QT4DIR appropriately (PATH pointing to where
Qt bin files are)

* cmake ../development/cmake -G "Unix Makefiles" -Dquiet=1
-DCMAKE_INSTALL_PREFIX=/Applications/LyX-devel.app/Contents/Resources

Once cmake has been run, you can use ccmake to tweak various settings,
including comipliing universal binaries.

Note that cmake doesn't yet know what Mac-specific files (in
.../development/MacOSX/) need to go where. So I start with a working
/Applications/LyX-devel.app, and install files into it; then files in
LyX-devel.app/Contents/Resources/bin need to be moved into
LyX-devel.app/Contents/MacOS.

BH

Reply via email to