You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am a student in Japan and I am planning to use this tool in my research.
I just tried to run this tool.
I got a make compile error with fzn-gecode and compilelib as follows.
Is there any way to solve this problem?
By the way . /configure is done in any pattern.
(Steps)
1 Download
2./configure
3make
(Environment)
・wsl ubuntu16.04
・Python 3.9.7
・gcc version 5.5.0 20171010 (Ubuntu 5.5.0-12ubuntu116.04)
・gcc version 5.5.0 20171010 (Ubuntu 5.5.0-12ubuntu116.04)
(error statement)
g++ -I. -fcx-limited-range -fno-signaling-nans -fno-rounding-math -ffinite-math-only -fno-math-errno -fno-strict-aliasing -O3 -fvisibility=hidden -ggdb -std=c++11 -pipe -Wall -Wextra -fPIC -pthread -DNDEBUG
-c -o tools/flatzinc/fzn-gecode.o tools/flatzinc/fzn-gecode.cpp
g++ -o tools/flatzinc/fzn-gecode tools/flatzinc/fzn-gecode.o
-L. -I. -fcx-limited-range -fno-signaling-nans -fno-rounding-math -ffinite-math-only -fno-math-errno -fno-strict-aliasing -O3 -fvisibility=hidden -ggdb -std=c++11 -pipe -Wall -Wextra -fPIC -pthread -DNDEBUG
-lgecodeflatzinc -lgecodedriver -lgecodegist -lgecodesearch -lgecodeminimodel -lgecodeset -lgecodefloat -lgecodeint -lgecodekernel -lgecodesupport
./libgecodeflatzinc.so: undefined reference to QString::toUtf8_helper(QString const&)@Qt_5' ./libgecodegist.so: undefined reference to QAbstractSlider::value() const@Qt_5'
./libgecodegist.so: undefined reference to QDialog::minimumSizeHint() const@Qt_5' ./libgecodegist.so: undefined reference to QAbstractButton::setIcon(QIcon const&)@Qt_5'
./libgecodegist.so: undefined reference to QMainWindow::QMainWindow(QWidget*, QFlags<Qt::WindowType>)@Qt_5' ./libgecodegist.so: undefined reference to QWidget::metaObject() const@Qt_5'
./libgecodegist.so: undefined reference to QBoxLayout::addLayout(QLayout*, int)@Qt_5' ./libgecodegist.so: undefined reference to QAction::setCheckable(bool)@Qt_5'
./libgecodegist.so: undefined reference to QTextCursor::~QTextCursor()@Qt_5' ./libgecodegist.so: undefined reference to QApplication::~QApplication()@Qt_5'
・・・省略・・・
./libgecodegist.so: undefined reference to QWidget::heightForWidth(int) const@Qt_5' ./libgecodegist.so: undefined reference to QDialog::exec()@Qt_5'
./libgecodegist.so: undefined reference to QWidget::update()@Qt_5' ./libgecodegist.so: undefined reference to QWidget::paintEngine() const@Qt_5'
./libgecodegist.so: undefined reference to QAbstractSlider::setMinimum(int)@Qt_5' ./libgecodegist.so: undefined reference to QGraphicsScene::setBackgroundBrush(QBrush const&)@Qt_5'
./libgecodegist.so: undefined reference to QWidget::hideEvent(QHideEvent*)@Qt_5' ./libgecodegist.so: undefined reference to QObject::connectNotify(QMetaMethod const&)@Qt_5'
./libgecodegist.so: undefined reference to QWidget::hasHeightForWidth() const@Qt_5' ./libgecodegist.so: undefined reference to QGraphicsScene::addRect(QRectF const&, QPen const&, QBrush const&)@Qt_5'
./libgecodegist.so: undefined reference to QStatusBar::showMessage(QString const&, int)@Qt_5' ./libgecodegist.so: undefined reference to QObject::customEvent(QEvent*)@Qt_5'
./libgecodegist.so: undefined reference to QWidget::closeEvent(QCloseEvent*)@Qt_5' ./libgecodegist.so: undefined reference to QDialog::QDialog(QWidget*, QFlagsQt::WindowType)@Qt_5'
collect2: error: ld returned 1 exit status
Makefile:1804: recipe for target 'tools/flatzinc/fzn-gecode' failed
make[1]: *** [tools/flatzinc/fzn-gecode] Error 1
make[1]: Leaving directory '/home/riko/gecode'
Makefile:1264: recipe for target 'compilelib' failed
make: *** [compilelib] Error 2
The text was updated successfully, but these errors were encountered:
This looks to me like the compiler cannot find Qt. I'm not sure what tools you intend to run, but try running configure like this:
./configure --disable-qt --disable-gist --disable-flatzinc
That way you eliminate many dependencies. Anyway, to get started you might as well download a pre-built Windows installer, if you need Gist and such.
By the way this repository lacks any detailed build instructions. You should have one
It might not be obvious at a quick glance, but detailed build instructions are available in the Modeling and Programming Guide, available as a PDF download from https://www.gecode.org/
Hi, I am a student in Japan and I am planning to use this tool in my research.
I just tried to run this tool.
I got a make compile error with fzn-gecode and compilelib as follows.
Is there any way to solve this problem?
By the way . /configure is done in any pattern.
(Steps)
1 Download
2./configure
3make
(Environment)
・wsl ubuntu16.04
・Python 3.9.7
・gcc version 5.5.0 20171010 (Ubuntu 5.5.0-12ubuntu1
16.04)16.04)・gcc version 5.5.0 20171010 (Ubuntu 5.5.0-12ubuntu1
(error statement)
g++ -I. -fcx-limited-range -fno-signaling-nans -fno-rounding-math -ffinite-math-only -fno-math-errno -fno-strict-aliasing -O3 -fvisibility=hidden -ggdb -std=c++11 -pipe -Wall -Wextra -fPIC -pthread -DNDEBUG
-c -o tools/flatzinc/fzn-gecode.o tools/flatzinc/fzn-gecode.cpp
g++ -o tools/flatzinc/fzn-gecode tools/flatzinc/fzn-gecode.o
-L. -I. -fcx-limited-range -fno-signaling-nans -fno-rounding-math -ffinite-math-only -fno-math-errno -fno-strict-aliasing -O3 -fvisibility=hidden -ggdb -std=c++11 -pipe -Wall -Wextra -fPIC -pthread -DNDEBUG
-lgecodeflatzinc -lgecodedriver -lgecodegist -lgecodesearch -lgecodeminimodel -lgecodeset -lgecodefloat -lgecodeint -lgecodekernel -lgecodesupport
./libgecodeflatzinc.so: undefined reference to
QString::toUtf8_helper(QString const&)@Qt_5' ./libgecodegist.so: undefined reference to
QAbstractSlider::value() const@Qt_5'./libgecodegist.so: undefined reference to
QDialog::minimumSizeHint() const@Qt_5' ./libgecodegist.so: undefined reference to
QAbstractButton::setIcon(QIcon const&)@Qt_5'./libgecodegist.so: undefined reference to
QMainWindow::QMainWindow(QWidget*, QFlags<Qt::WindowType>)@Qt_5' ./libgecodegist.so: undefined reference to
QWidget::metaObject() const@Qt_5'./libgecodegist.so: undefined reference to
QBoxLayout::addLayout(QLayout*, int)@Qt_5' ./libgecodegist.so: undefined reference to
QAction::setCheckable(bool)@Qt_5'./libgecodegist.so: undefined reference to
QTextCursor::~QTextCursor()@Qt_5' ./libgecodegist.so: undefined reference to
QApplication::~QApplication()@Qt_5'・・・省略・・・
./libgecodegist.so: undefined reference to
QWidget::heightForWidth(int) const@Qt_5' ./libgecodegist.so: undefined reference to
QDialog::exec()@Qt_5'./libgecodegist.so: undefined reference to
QWidget::update()@Qt_5' ./libgecodegist.so: undefined reference to
QWidget::paintEngine() const@Qt_5'./libgecodegist.so: undefined reference to
QAbstractSlider::setMinimum(int)@Qt_5' ./libgecodegist.so: undefined reference to
QGraphicsScene::setBackgroundBrush(QBrush const&)@Qt_5'./libgecodegist.so: undefined reference to
QWidget::hideEvent(QHideEvent*)@Qt_5' ./libgecodegist.so: undefined reference to
QObject::connectNotify(QMetaMethod const&)@Qt_5'./libgecodegist.so: undefined reference to
QWidget::hasHeightForWidth() const@Qt_5' ./libgecodegist.so: undefined reference to
QGraphicsScene::addRect(QRectF const&, QPen const&, QBrush const&)@Qt_5'./libgecodegist.so: undefined reference to
QStatusBar::showMessage(QString const&, int)@Qt_5' ./libgecodegist.so: undefined reference to
QObject::customEvent(QEvent*)@Qt_5'./libgecodegist.so: undefined reference to
QWidget::closeEvent(QCloseEvent*)@Qt_5' ./libgecodegist.so: undefined reference to
QDialog::QDialog(QWidget*, QFlagsQt::WindowType)@Qt_5'collect2: error: ld returned 1 exit status
Makefile:1804: recipe for target 'tools/flatzinc/fzn-gecode' failed
make[1]: *** [tools/flatzinc/fzn-gecode] Error 1
make[1]: Leaving directory '/home/riko/gecode'
Makefile:1264: recipe for target 'compilelib' failed
make: *** [compilelib] Error 2
The text was updated successfully, but these errors were encountered: