On 18 January 2017 at 01:21, Scott Kostyshak <skost...@lyx.org> wrote:

> On Tue, Jan 17, 2017 at 11:54:02PM +0100, Christian Ridderström wrote:
> > Hi,
> >
> > Does anyone have a list of the build dependencies that need to be
> installed
> > in order to build the latest LyX on a clean Ubuntu 16.04 using Qt5?
> I.e.,
> > I'm looking for the
> >
> >    sudo apt-get install build-essential ... XXX
> >
> > and the other steps you need to do in order to be able build LyX with
> Qt5.
>
> I think you can just do
>
>   sudo apt-get build-dep lyx
>
> Does that work?
>

I tried that, but it installed Qt4-libraries. Perhaps it's assuming
dependencies as per LyX using Qt4.

In case it helps someone else, using cmake I could get LyX to build on a
clean Ubuntu 16.04 using:

apt-get update \

        && DEBIAN_FRONTEND=noninteractive apt-get install -y \

                build-essential \

qt5-default \

                qtbase5-dev \

libqt5svg5-dev \

python \

cmake

followed by these commands from within in a cloned LyX repository:

mkdir -p build
cd build
cmake -DLYX_USE_QT=QT5
make


However, I still want to make it work using autotools, so I'm going to give
that another go.
I'll write again in this thread, either if I can't make work or with the
commands that makes it work.

Regards,
Christian


>
> > I've been searching the web for some build instructions and the best I
> > found so far was this script:
> >    https://github.com/scottkosty/lyx-tester/blob/master/CreateQt5
> >
> > I'm hoping not all of the dependencies in that script are needed, and
> that
> > Qt5 can be installed rather than built.
>
> Yes that script is for compiling Qt 5, which I don't think you want.
>
> Scott
>



-- 
Christian Ridderström,     +46-70 687 39 44

Reply via email to