Compiling a software using Qt5

Questions about applications and software
Forum rules
Before you post please read this

Compiling a software using Qt5

Postby roger64 on 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?
roger64
Level 4
Level 4
 
Posts: 273
Joined: Wed Jun 01, 2011 5:48 am

Linux Mint is funded by ads and donations.
 

Re: Compiling a software using Qt5

Postby catweazel on 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
KDE 4.12.0, custom preemptive kernel 3.12.5,
Intel i7 4770K @ 4.7GHz, 16GB 2666MHz XMP,
4 Samsung 840 PRO 512GB SSDs in RAID0,
6TB HW RAID10, dual 24" Acer X243H,
Gigabyte nVidia GTX 680 Super Overclock
User avatar
catweazel
Level 7
Level 7
 
Posts: 1656
Joined: Fri Oct 12, 2012 9:44 pm

Re: Compiling a software using Qt5

Postby roger64 on 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: 273
Joined: Wed Jun 01, 2011 5:48 am

Re: Compiling a software using Qt5

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

There exists pre-compiled versions of qt5 libraries for Linux users.
http://qt-project.org/downloads
roger64
Level 4
Level 4
 
Posts: 273
Joined: Wed Jun 01, 2011 5:48 am

Re: Compiling a software using Qt5

Postby catweazel on 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
KDE 4.12.0, custom preemptive kernel 3.12.5,
Intel i7 4770K @ 4.7GHz, 16GB 2666MHz XMP,
4 Samsung 840 PRO 512GB SSDs in RAID0,
6TB HW RAID10, dual 24" Acer X243H,
Gigabyte nVidia GTX 680 Super Overclock
User avatar
catweazel
Level 7
Level 7
 
Posts: 1656
Joined: Fri Oct 12, 2012 9:44 pm


Return to Software & Applications

Who is online

Users browsing this forum: Pierre, Pilosopong Tasyo and 18 guests