[gecode-users] Installation

Christian Schulte cschulte at kth.se
Tue Sep 6 09:03:48 CEST 2016


Hi,

 

This is a seriously outdated version and we will not really follow up on how Ubuntu has packaged Gecode. So, please download the latest version from the Gecode webpages. You have to compile it yourself, however that’s easy and explained in MPG.

 

Best

Christian

 

--

Christian Schulte,  <http://www.gecode.org/~schulte> www.gecode.org/~schulte

Professor of Computer Science, KTH,  <mailto:cschulte at kth.se> cschulte at kth.se

Expert Researcher, SICS, cschulte at sics.se

 

From: Fabien Brosseau [mailto:brosseaufabien at gmail.com] 
Sent: Monday, September 5, 2016 21:05
To: cschulte at kth.se
Subject: Re: [gecode-users] Installation

 

and the gecode version installed is 4.2.1-1

 

2016-09-05 21:03 GMT+02:00 Fabien Brosseau <brosseaufabien at gmail.com <mailto:brosseaufabien at gmail.com> >:

I install it using apt-get install.

Headers are in "/usr/include/gecode" and .so files are in "/usr/lib/x86_64-linux-gnu".

.so files have the following name for example : libgecodesearch.so

 

So in the .pro file I have added :

INCLUDEPATH += /usr/include

LIBS += -L"/usr/lib/x86_64-linux-gnu"

             -llibgecodeflatzinc

             -llibgecodedriver

             -llibgecodegist

             -llibgecodesearch

             -llibgecodeminimodel

             -llibgecodeset

             -llibgecodefloat

             -llibgecodeint

             -llibgecodekernel

             -llibgecodesupport

And the error that I have is : undefined reference to 'Gecode::Search::Options::def'

I am trying to run the sendMoreMoney example.



I have also tried the following format for LIBS :
-L"/usr/lib/x86_64-linux-gnu/lib"
             -lgecodeflatzinc
             -lgecodedriver
             -lgecodegist
             -lgecodesearch
             -lgecodeminimodel
             -lgecodeset
             -lgecodefloat
             -lgecodeint
             -lgecodekernel
             -lgecodesupport

I have also set LD_LIBRAY_PATH but no success ...

 

2016-09-04 11:22 GMT+02:00 Christian Schulte <cschulte at kth.se <mailto:cschulte at kth.se> >:

Hi,

 

The windows errors seem to indicate that you installed a package for x86 but use a x64 compiler.

 

On Linux: are you sure that you have installed all necessary Qt packages?

 

Did you read the information on how to install Gecode in MPG?

 

Best

Christian

 

--

Christian Schulte, www.gecode.org/~schulte <http://www.gecode.org/~schulte> 

Professor of Computer Science, KTH, cschulte at kth.se <mailto:cschulte at kth.se> 

Expert Researcher, SICS, cschulte at sics.se <mailto:cschulte at sics.se> 

 

From: users-bounces at gecode.org <mailto:users-bounces at gecode.org>  [mailto:users-bounces at gecode.org <mailto:users-bounces at gecode.org> ] On Behalf Of Fabien Brosseau
Sent: Saturday, September 3, 2016 20:58
To: users at gecode.org <mailto:users at gecode.org> 
Subject: [gecode-users] Installation

 

Hello everyone,

I am trying to use Gecode for a little project but i am not able to make it work.

On windows 7 (64 bits) :

i am trying to use it with a Code::Blocks project. But when I try to compile a project with an example file, I have some errors :

*	header not working in "x86gcc_rounding_control.hpp" file  "This header only works on x86 CPUs"  -> so why it's called ?
*	"_forceinline" which doesn't name a type

 

On Ubuntu 14.04 :

i get the gecode package and i tried to use it in a qt project.

I have set INCLUDEPATH and LIBS (files are not installed where documentation said) but I still have undefined reference errors. 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20160906/b2d069bb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4599 bytes
Desc: not available
URL: <http://www.gecode.org/pipermail/users/attachments/20160906/b2d069bb/attachment.bin>


More information about the users mailing list