team-phoenix / Phoenix

A multi-system emulator and library manager designed to be both powerful and easy to use.
http://phoenix.vg
GNU General Public License v2.0
377 stars 39 forks source link

The master branch does not compile on Qt 5.6... #270

Closed hazrpg closed 8 years ago

hazrpg commented 8 years ago

There were several build errors when trying to compile using Ubuntu 16.04 and Qt 5.6.

I have created a patch file to show what I had to change to get it to compile - obviously my changes aren't recommended because I have simply changed info to debug (because I have no knowledge as to how to get info to properly work). However it seems in some places Q_ENUM was used incorrectly (it should have been Q_ENUMS).

Anyway here is the diff patch file: patch.txt

If there's anything I can do to help, please let me know.

athairus commented 8 years ago

Hi, could you please post the full build log? I've built this myself on Ubuntu 16.04 with no issues only a week or two ago.

I'll build again to confirm.

athairus commented 8 years ago

Just as a hunch, do you have Qt 4 packages installed? They're known to interfere with Qt 5, at least with our project.

athairus commented 8 years ago

I've just rebuilt the project on 16.04 with no problem.

hazrpg commented 8 years ago

Hi @athairus, thank you very much for getting in touch so quickly. You are indeed correct, the conflict was due to Qt 4 packages that were installed.

Another thing I should probably mention too is that I've had QtCreator installed for quite some time (and I keep upgrade it as and when needed) - I had to scrap all my config files completely and uninstall everything and start again. Together, this seemed to resolve the issue.

athairus commented 8 years ago

Cool, glad to hear. I'll add a warning to the wiki so people don't end up doing this again.

hazrpg commented 8 years ago

@athairus, excellent, thanks for your help. I'm sure that note will help many people too.