Compiling a software using Qt5

Questions about applications and software
Forum rules
Before you post please read how to get help
roger64
Level 4
Level 4
Posts: 274
Joined: Wed Jun 01, 2011 5:48 am

Compiling a software using Qt5

Postby roger64 » Mon Feb 04, 2013 3:52 am

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?

User avatar
catweazel
Level 7
Level 7
Posts: 1655
Joined: Fri Oct 12, 2012 9:44 pm

Re: Compiling a software using Qt5

Postby catweazel » Mon Feb 04, 2013 3:59 am

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
Mint Testing Team & Mint Donor #3606
Intel i7 4820K @ 4.7GHz, 32GB Corsair Vengeance Pro
2133MHz XMP, 4 Samsung 850 PRO 512GB SSDs in
RAID0, 12TB HW RAID10, 3 x 24" Samsung UlHD,
Dual R290X

roger64
Level 4
Level 4
Posts: 274
Joined: Wed Jun 01, 2011 5:48 am

Re: Compiling a software using Qt5

Postby roger64 » Mon Feb 04, 2013 4:04 am

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.

roger64
Level 4
Level 4
Posts: 274
Joined: Wed Jun 01, 2011 5:48 am

Re: Compiling a software using Qt5

Postby roger64 » Mon Feb 04, 2013 10:06 pm

There exists pre-compiled versions of qt5 libraries for Linux users.
http://qt-project.org/downloads

User avatar
catweazel
Level 7
Level 7
Posts: 1655
Joined: Fri Oct 12, 2012 9:44 pm

Re: Compiling a software using Qt5

Postby catweazel » Tue Feb 05, 2013 12:47 am

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/
Mint Testing Team & Mint Donor #3606
Intel i7 4820K @ 4.7GHz, 32GB Corsair Vengeance Pro
2133MHz XMP, 4 Samsung 850 PRO 512GB SSDs in
RAID0, 12TB HW RAID10, 3 x 24" Samsung UlHD,
Dual R290X


Return to “Software & Applications”

Who is online

Users browsing this forum: fungus and 4 guests