Hello Chrsitian, I managed to make it work using g++ command as they are told in the documentation.
But It stills not working in the Qt project. I have errors like that (more than 300 errors) : undefined reference to 'Gecode::SizeOptions::SizeOptions(char const*)' but i have set the path to headers and libs : INCLUDEPATH += /usr/local/include LIBS += -L/usr/local/lib -lgecodeflatzinc -lgecodedriver -lgecodegist -lgecodesearch -lgecodeminimodel -lgecodeset -lgecodefloat -lgecodeint -lgecodekernel -lgecodesupport Anyway it seems more like a problem of qt configuration project than a gecode problem. Thanks for your time and your help. 2016-09-09 10:20 GMT+02:00 Christian Schulte <cschu...@kth.se>: > Did you follow the instructions in MPG? If not, please send me the version > of your gcc and the exact error message. > > > > The thing is: the 4.4.0 version has been installed on Linux several > thousand times and should work like a charm. > > > > Cheers > > Christian > > > > PS: Always include the mailing list. > > > > -- > > Christian Schulte, www.gecode.org/~schulte > > Professor of Computer Science, KTH, cschu...@kth.se > > Expert Researcher, SICS, cschu...@sics.se > > > > *From:* Fabien Brosseau [mailto:brosseaufab...@gmail.com] > *Sent:* Thursday, September 8, 2016 21:52 > *To:* Christian Schulte <cschu...@kth.se> > *Subject:* Re: [gecode-users] Installation > > > > Hi Christian, > > I have downloaded the 4.4.0 version. All the building and install step > work fine. > > I have modified the include path to: > /usr/local/include > > and the lib path to > /usr/local/lib > > I took a cpp file from the examples (nonogram) but i still get the same > errors. > > > > 2016-09-06 9:03 GMT+02:00 Christian Schulte <cschu...@kth.se>: > > 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, www.gecode.org/~schulte > > Professor of Computer Science, KTH, cschu...@kth.se > > Expert Researcher, SICS, cschu...@sics.se > > > > *From:* Fabien Brosseau [mailto:brosseaufab...@gmail.com] > *Sent:* Monday, September 5, 2016 21:05 > *To:* cschu...@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 <brosseaufab...@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 <cschu...@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 > > Professor of Computer Science, KTH, cschu...@kth.se > > Expert Researcher, SICS, cschu...@sics.se > > > > *From:* users-boun...@gecode.org [mailto:users-boun...@gecode.org] *On > Behalf Of *Fabien Brosseau > *Sent:* Saturday, September 3, 2016 20:58 > *To:* users@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. > > > > > > > > >
_______________________________________________ Gecode users mailing list users@gecode.org https://www.gecode.org/mailman/listinfo/gecode-users