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

Error when compiling on Ubuntu 15.10 with Qt4 #918

Closed
paulathomas opened this issue Jan 8, 2016 · 14 comments
Closed

Error when compiling on Ubuntu 15.10 with Qt4 #918

paulathomas opened this issue Jan 8, 2016 · 14 comments

Comments

@paulathomas
Copy link

Hi I tried to compile sonic-pi on my Ubuntu laptop and got an error when compiling the gui. The server compiled fine but the gui gave an error "In file included from qrc_SonicPi.cpp:9:0:
qrc_SonicPi.cpp:221388:44: error: ‘qInitResources_SonicPi__init_variable__’ defined but not used [-Werror=unused-variable]".Whilst I have considerable programming experience none of it is with Ruby or Qt, (assembler, C, java and python are my languages, tend to use tcl/tk for gui work) so am at a loss. Help.

@victordiaz
Copy link

same here!

@hzulla
Copy link
Collaborator

hzulla commented Jan 8, 2016

For one, you don't need to compile Sonic Pi yourself, you can use these binaries and save yourself the hassle.

About your actual problem, you can fix this by using Qt5. For that, you have to edit SonicPi.proand replace both mentions of qscintilla2 with qt5scintilla2.

After that, you will need these Ubuntu packages to build Sonic Pi: qt5-default, qttools5-dev, qttools5-dev-tools. libqt5scintilla2-dev.

Also, don't forget to compile and install the SuperCollider SC3 plugins.

@hzulla
Copy link
Collaborator

hzulla commented Jan 8, 2016

@samaaron - would you be ok with making Qt5 the default build setting for the git tree?

(And thus replace both mentions of qscintilla2 with qt5scintilla2 in SonicPi.pro.)

I could provide a patch for that.

@samaaron
Copy link
Collaborator

samaaron commented Jan 8, 2016

Unfortunately we don't have Sonic Pi running well with Qt5 on Raspberry Pi and I'm not even sure Jessie ships with Qt5 at this stage.

@victordiaz
Copy link

EDIT

the repository works nicely -- but sound doesnt work yet, Im playing now with jackd to see how to make it work --
It would be interesting to add how to install it in Ubuntu it in the main Sonic pi website :)

@rbnpi
Copy link
Contributor

rbnpi commented Jan 12, 2016

There is an issue with qt5 on Mac. Bug means help window can't be resized. Bug solved but not in release qt5 yet.
Sent from my iPhone

On 8 Jan 2016, at 16:02, Hanno Zulla notifications@github.com wrote:

@samaaron - would you be ok with making Qt5 the default build setting for the git tree?

(And thus replace both mentions of qscintilla2 with qt5scintilla2 in SonicPi.pro.)


Reply to this email directly or view it on GitHub.

@samaaron
Copy link
Collaborator

I don't see that error in my Mac builds using Qt 5.4. Perhaps you mean Qt 5.5 specifically?

@rbnpi
Copy link
Contributor

rbnpi commented Jan 12, 2016

Yes it is a specific Qt5.5.1 bug. I mentioned it before. issue #726 It has been solved, but the patch is not in a release version yet. Sorry meant to put qt5.5 above.

@samaaron
Copy link
Collaborator

Great, I was just clarifying :-)

@wdenton
Copy link

wdenton commented Jan 26, 2016

There have been some updates made---is editing app/gui/qt/SonicPi.pro still necessary? It has some logic about QT_MAJOR_VERSION being less than 5 or not that seems to take of the above advice.

I can't get the source to compile on Ubuntu 15.10, but I'm not sure if the above problem is the cause or something else. Output here: https://gist.github.com/wdenton/c2b7a6618026d0bc0ec0

@hzulla
Copy link
Collaborator

hzulla commented Jan 26, 2016

Just a quick glance, may be mistaken, but that looks like a linking problem.

Could you please try

cd app/gui/qt
make clean
./rp-build-app

If that doesn't help, we need to find out if you're trying to link incompatible libraries (e.g. QScintilla for Qt4 with a Sonic Pi compiled with Qt5), so please post the result of

dpkg - l | grep qt | grep dev

Thanks!

@wdenton
Copy link

wdenton commented Jan 26, 2016

Aha, thanks. Now it compiles.

(It doesn't run! But I'll do that separately.)

@Enkerli
Copy link

Enkerli commented Apr 17, 2016

Fully working, here.

Had the same error on a Raspberry Pi 3 running Ubuntu MATE 16.04 (which comes with Sonic Pi 2.9 but wasn't updating to 2.10.0). Installed the Qt5 stuff and SuperCollider plugins (with apt install) and built from the master. Works well, including with Minecraft (which seems faster than on Raspbian). Jack is already installed with Ubuntu MATE, so no need for extra work, here.

@samaaron
Copy link
Collaborator

Closing this for now :-)

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

No branches or pull requests

8 participants