Am 12.03.2017 um 21:35 schrieb Ian Wilder <ianwilder.ea...@gmail.com>:
> 
> On 2017-02-13 16:21:52 +0000, Kornel Benko said:
> 
>> Am Mittwoch, 1. Februar 2017 um 09:58:40, schrieb Ian Wilder 
>> <ianwilder.ea...@gmail.com>
>>> Hey everyone!
>>> I am attempting to build lyx master using the cmake build, but I can't
>>> seem to get it to work.
>>> My process is
>>> git pull
>>> git clean -fd
>>> git checkout --
>>> cmake . -DLYX_USE_QT=QT5 -DLYX_COCOA=ON
>>> -DLYX_INSTALL_PREFIX=/Users/ian/Applications/LyX-master
>>> -DLYX_REQUIRE_SPELLCHECK=ON -DLYX_RELEASE=ON -DLYX_QUIET=ON
>> 1.) Please do not use source dir as build dir. This messes the source.
> 
> fixed.
> 
>> 2.) Do you really want lyx to be installed at 
>> "/Users/ian/Applications/LyX-master"?
> 
> I needed to make this LyX-master.app, but other than this, yes. Does this 
> introduce an issue?
> 
>>> make
>>> The error I get is:
>>> [ 37%] Building CXX object
>>> build/src/frontends/qt4/CMakeFiles/frontend_qt.dir/GuiBibitem.cpp.o
>>> /Users/ian/src/lyx/src/frontends/qt4/GuiBibitem.cpp:35:10: error: use
>>> of undeclared identifier 'literalCB'
>>> connect(literalCB, SIGNAL(clicked()),
>>> ^
>>> /Users/ian/src/lyx/src/frontends/qt4/GuiBibitem.cpp:46:2: error: use of
>>> undeclared identifier 'literalCB'
>>> literalCB->setChecked(params["literal"] == "true");
>>> ^
>>> /Users/ian/src/lyx/src/frontends/qt4/GuiBibitem.cpp:55:22: error: use
>>> of undeclared identifier 'literalCB'
>>> params["literal"] = literalCB->isChecked()
>>> ^
>>> 3 errors generated.
>>> make[2]: ***
>>> [build/src/frontends/qt4/CMakeFiles/frontend_qt.dir/GuiBibitem.cpp.o]
>>> Error 1
>>> make[1]: *** [build/src/frontends/qt4/CMakeFiles/frontend_qt.dir/all] Error 
>>> 2
>>> make: *** [all] Error 2
>> It looks like the created ui_*.h (in the source dir) are left from some 
>> previous run of automake
>> created by using qt4 executables.
>>> I am not sure why it's trying to build qt4 libs when LYX_USE_QT=QT5 is
>>> on, perhaps this is the issue?
>> Historical reasons. We should rename the dir from 'qt4' to 'qt' eventually.
>>> Just to note, I am able to build using autogen/configure/make.
>> Yes, and you use here probably the source dir again.
>>> My platform is
>>> Darwin ares 16.4.0 Darwin Kernel Version 16.4.0: Thu Dec 22 22:53:21
>>> PST 2016; root:xnu-3789.41.3~3/RELEASE_X86_64 x86_64
>>> Thanks for any help!
>>> Ian Wilder
>> To compile with cmake:
>> Get a really clean source tree, say 'xyzzy_src'.
>> Create a _new_ build tree, say 'xyzzy_build'.
>> cd xyzzy_build
>> cmake xyzzy_src -DLYX_USE_QT=QT5 -DLYX_COCOA=ON etc
>> make
>>      Kornel
>> <image>
> 
> I have now been able to do a build with cmake. Thank you very much!
> 
> However, the make install target doesn't seem to be runnable. Has someone 
> been able to run a cmake built version on macos?

Yes, for the cmake build with Xcode generator and running the created LyX from 
the build dir.

No, I don’t think so - for the LyX bundle created by the install target.

I’m using the cmake build to create a Xcode project to be able to debug LyX in 
an IDE.

For installation and packaging purposes I’m using the automake build only.

Stephan

Reply via email to