Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What are the build requirements for linux? #29

Closed
Seswu opened this issue Apr 30, 2020 · 4 comments
Closed

What are the build requirements for linux? #29

Seswu opened this issue Apr 30, 2020 · 4 comments

Comments

@Seswu
Copy link

Seswu commented Apr 30, 2020

Following the instructions..

Compiling
On Linux, make a build subdirectory, enter it, and run
  qmake ../src/q5go.pro PREFIX=/where/you/want/to/install

..makes my system (debian oldstable) request qt4 binaries, so I installed qt5-default.
This had qmake work, but make then failed with tons of errors on 'unknown functions'.
Suspecting that what is really needed is qt5-default binaries, I installed those.
qmake is now failing with

Project ERROR: Unknown module(s) in QT: multimedia svg

Which assumptions are made about the build tools available?
What do I need to install, and possibly clear out, in order for the instructions given to work?

@bernds
Copy link
Owner

bernds commented Apr 30, 2020

Unfortunately i don't use debian. All I can say is that it looks like they're packaging an incomplete version of Qt. Maybe there are qtmultimedia and qtsvg packages?

You might also need to check whether it's up-to-date, you'll probably want Qt 5.10 at least.

@bernds
Copy link
Owner

bernds commented May 2, 2020

Well, I tried on a Ubuntu 18.04 system, which is supposed to be based on Debian. The packages I needed were called

libqt5svg5-dev
qtmultimedia5-dev
qt5-qmake

because apparently a consistent naming convention would be uncool. Let me know if this helps.

@bernds bernds closed this as completed Jun 20, 2020
@jest
Copy link

jest commented May 15, 2021

As I recently built the product on Ubuntu 18.04, I'll add my 2 cents.

In addition to the packages mentioned above, I had to install qt5-default --- this is to point out to the system that when both Qt4 and Qt5 dev libs are installed, it should use Qt5 ones.

One glitch in the current master is versionAtLeast test function used in src/q5go.pro; as it is introduced in Qt 5.10, it is missing in Ubuntu 18.04 Qt installation. I commented the offending fragment:

diff --git a/src/q5go.pro b/src/q5go.pro
index c161700..2139fa0 100644
--- a/src/q5go.pro
+++ b/src/q5go.pro
@@ -144,9 +144,9 @@ PREFIX = /usr/local
 # The actual minimum version is unknown. We try to make Qt 5.9 work, and a few
 # versions before that is probably OK too.
 # This version check is mainly here to prevent people from compiling with Qt4.
-!versionAtLeast(QT_VERSION, 5.7.0) {
-    error("This program requires Qt 5.7 or newer")
-}
+#!versionAtLeast(QT_VERSION, 5.7.0) {
+#    error("This program requires Qt 5.7 or newer")
+#}

 TARGET                = q5go
 DATADIR               = $$PREFIX/share/q5go

The check should be upped to 5.10.0, or a substitute for versionAtLeast() should be used, as in the current form anything between 5.7 and 5.10 has no chance to succeed anyway. @bernds Do you want me to make an issue for it? (I'd be glad to have it compile on Ubuntu 18.04 cleanly, if it is OK with you)

bernds added a commit that referenced this issue May 15, 2021
@bernds
Copy link
Owner

bernds commented May 15, 2021

No need for an extra issue, I commented it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants