Compiling a software using Qt5

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
roger64
Level 4
Level 4
Posts: 279
Joined: Wed Jun 01, 2011 5:48 am

Compiling a software using Qt5

Post 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?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Compiling a software using Qt5

Post 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
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
roger64
Level 4
Level 4
Posts: 279
Joined: Wed Jun 01, 2011 5:48 am

Re: Compiling a software using Qt5

Post 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.
roger64
Level 4
Level 4
Posts: 279
Joined: Wed Jun 01, 2011 5:48 am

Re: Compiling a software using Qt5

Post by roger64 »

There exists pre-compiled versions of qt5 libraries for Linux users.
http://qt-project.org/downloads
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Compiling a software using Qt5

Post 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/
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
Locked

Return to “Software & Applications”