Page 1 of 1

Compiling a software using Qt5

Posted: Mon Feb 04, 2013 3:52 am
by roger64
Hi

I use LMDE 64 bits and have all the latest updates. I use Cinnamon.
I have been for quite a long time a Sigil user. The incoming version of Sigil needs to be compiled for Linux. The new thing is that it also requires qt5.
http://www.mobileread.com/forums/showpo ... ostcount=1

What is the best way to install qt5? What are the recommended packages? On which repository?

Re: Compiling a software using Qt5

Posted: Mon Feb 04, 2013 3:59 am
by catweazel
roger64 wrote:What is the best way to install qt5? What are the recommended packages? On which repository?
Reading the documentation always helps.
https://qt-project.org/wiki/Building_Qt_5_from_Git

Re: Compiling a software using Qt5

Posted: Mon Feb 04, 2013 4:04 am
by roger64
Thank you very much.

Is there a recommended way for Debian users? I certainly will not compile qt5 to later compile Sigil, I just need to find the packages . This is the Sigil info. Bold typeface is mine.

Compiling on Linux

You will need to install Qt5 including, any dependencies and development packages if your distro provides separate dev packages. Also, many distros split the Qt packages into multiple subpackages so ensure you have all necessary parts installed.

It is assumed you want to generate Makefiles. You can do this by creating a new folder outside of the source distribution.

Now navigate to that folder with a terminal. Then type in and run the following:

cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release /path/to/extracted/folder
make
sudo make install

That builds and installs Sigil on Linux. By default, Sigil is installed in ${CMAKE_INSTALL_PREFIX}/bin, with CMAKE_INSTALL_PREFIX defaulting to usr/local.

You can change the install location by running cmake like this:

cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/new/install/prefix -DCMAKE_BUILD_TYPE=Release /path/to/extracted/folder

Building from source in the git repository is NOT recommended, since code in the git repository is not stable. Do not open a bug report against a non release version.

Re: Compiling a software using Qt5

Posted: Mon Feb 04, 2013 10:06 pm
by roger64
There exists pre-compiled versions of qt5 libraries for Linux users.
http://qt-project.org/downloads

Re: Compiling a software using Qt5

Posted: Tue Feb 05, 2013 12:47 am
by catweazel
roger64 wrote:Building from source in the git repository is NOT recommended, since code in the git repository is not stable. Do not open a bug report against a non release version.
https://qt-project.org/downloads/