Skip to content

fix build error on Ubuntu 16.04 #40

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Evolve.pro
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ FORMS += widget.ui \
progressdialog.ui \
settingswidget.ui

CONFIG += c++11

QMAKE_CXXFLAGS_RELEASE += -O3 -flto -march=native -mmmx # Crashes on some computers
QMAKE_CXXFLAGS_DEBUG += -Og -g -march=native -mmmx # Crashes on some computers
QMAKE_CXXFLAGS_RELEASE += -std=c++11 -O3 -flto -march=native -mmmx # Crashes on some computers
QMAKE_CXXFLAGS_DEBUG += -std=c++11 -Og -g -march=native -mmmx # Crashes on some computers
#QMAKE_CXXFLAGS_DEBUG += -Og
2 changes: 1 addition & 1 deletion mutation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void Widget::reorderPoly(QVector<Poly>& newPolys, QImage &target)
break;
}
int dest = qrand()%newPolys.size();
Poly poly = newPolys.takeAt(source);
Poly poly = newPolys.at(source);
newPolys.insert(dest, poly);
redraw(target, newPolys);
optimizeShape(dest, newPolys);
Expand Down
3 changes: 2 additions & 1 deletion widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
#include <QPen>
#include <QPainter>
#include <QRgb>
#include <QtConcurrent/QtConcurrent>
#include <QtConcurrentRun>
Copy link
Owner

@tux3 tux3 Feb 15, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't build for me using a freshly downloaded Qt 5.8 SDK on Linux, I have that header in QtConcurrent/QtConcurrentRun instead
What version of Qt are you compiling with?

#include <QTimer>
#include <ctime>

//#define TIME_FITNESS
Expand Down