Hi all,

I tried again, this time uninstalling Qt5 and then re-installing it, but the 
result is unfortunately the same. If I try the development version and not the 
stable release, I encounter the same problem.

Any ideas on how to solve it?

Cheers,
Andrea
________________________________
From: Andrea Sacconi <andreasacc...@hotmail.co.uk>
Sent: 25 June 2018 10:37
To: Christian Schulte; users@gecode.org
Subject: Re: Installation problem: undefined rerence to Gist

I believe so ... I installed everything for Qt through apt-get install of 
Ubuntu. And I think I have got only Qt5 around. I think it's a matter of 
libraries order, but I don't know how to fix it :(

Sent from my Huawei Mobile

-------- Original Message --------
Subject: RE: Installation problem: undefined rerence to Gist
From: Christian Schulte
To: Andrea Sacconi ,users@gecode.org
CC:


Hi,



Did you also install the qt header files? Or do you have more than one Qt 
installation around?



Cheers

Christian



--

Christian Schulte, https://chschulte.github.io/

Professor of Computer Science, KTH, cschu...@kth.se<mailto:cschu...@kth.se>

Expert Researcher, RISE SICS, 
christian.schu...@ri.se<mailto:christian.schu...@ri.se>



From: users-boun...@gecode.org <users-boun...@gecode.org> On Behalf Of Andrea 
Sacconi
Sent: Saturday, June 23, 2018 19:25
To: users@gecode.org
Subject: [gecode-users] Installation problem: undefined rerence to Gist



Hello,



I have just downloaded the source code of Gecode and I am trying to install it 
on my Ubuntu 18.04 machine.



Unfortunately, I stumbled on a linking problem related to Gist. Apparently 
there is a problem with linking such library, but I do not know what to do. I 
downloaded Qt5 and I thought it would be fine, but that is not the case. Do I 
have to modify anything with CMake?



Could you please help me?



[ 99%] Linking CXX executable bin/gecode-test

libgecodeflatzinc.a(flatzinc.cpp.o): In function 
`Gecode::Gist::dfs(Gecode::Space*, Gecode::Gist::Options const&)':

flatzinc.cpp:(.text._ZN6Gecode4Gist3dfsEPNS_5SpaceERKNS0_7OptionsE[_ZN6Gecode4Gist3dfsEPNS_5SpaceERKNS0_7OptionsE]+0x21):
 undefined reference to `Gecode::Gist::explore(Gecode::Space*, bool, 
Gecode::Gist::Options const&)'

libgecodeflatzinc.a(flatzinc.cpp.o): In function 
`Gecode::Gist::bab(Gecode::Space*, Gecode::Gist::Options const&)':

flatzinc.cpp:(.text._ZN6Gecode4Gist3babEPNS_5SpaceERKNS0_7OptionsE[_ZN6Gecode4Gist3babEPNS_5SpaceERKNS0_7OptionsE]+0x21):
 undefined reference to `Gecode::Gist::explore(Gecode::Space*, bool, 
Gecode::Gist::Options const&)'

libgecodeflatzinc.a(flatzinc.cpp.o): In function 
`Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::~FZPrintingInspector()':

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED2Ev[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED5Ev]+0x3d):
 undefined reference to `Gecode::Gist::Inspector::~Inspector()'

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED2Ev[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEED5Ev]+0x49):
 undefined reference to `Gecode::Gist::TextOutput::~TextOutput()'

libgecodeflatzinc.a(flatzinc.cpp.o): In function 
`Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::~VarComparator()':

flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED2Ev[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED5Ev]+0x3d):
 undefined reference to `Gecode::Gist::Comparator::~Comparator()'

flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED2Ev[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEED5Ev]+0x49):
 undefined reference to `Gecode::Gist::TextOutput::~TextOutput()'

libgecodeflatzinc.a(flatzinc.cpp.o): In function 
`Gecode::Gist::Inspector::Inspector()':

flatzinc.cpp:(.text._ZN6Gecode4Gist9InspectorC2Ev[_ZN6Gecode4Gist9InspectorC5Ev]+0xb):
 undefined reference to `vtable for Gecode::Gist::Inspector'

libgecodeflatzinc.a(flatzinc.cpp.o): In function 
`Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::FZPrintingInspector(Gecode::FlatZinc::Printer
 const&)':

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEC2ERKNS0_7PrinterE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEC5ERKNS0_7PrinterE]+0x52):
 undefined reference to 
`Gecode::Gist::TextOutput::TextOutput(std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)'

libgecodeflatzinc.a(flatzinc.cpp.o): In function 
`Gecode::Gist::Comparator::Comparator()':

flatzinc.cpp:(.text._ZN6Gecode4Gist10ComparatorC2Ev[_ZN6Gecode4Gist10ComparatorC5Ev]+0xb):
 undefined reference to `vtable for Gecode::Gist::Comparator'

libgecodeflatzinc.a(flatzinc.cpp.o): In function 
`Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::VarComparator(std::__cxx11::basic_string<char,
 std::char_traits<char>, std::allocator<char> >)':

flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEC5ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1f):
 undefined reference to 
`Gecode::Gist::TextOutput::TextOutput(std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)'

libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x20):
 undefined reference to `Gecode::Gist::TextOutput::name[abi:cxx11]()'

libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTVN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x50):
 undefined reference to `Gecode::Gist::Inspector::name[abi:cxx11]()'

libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE[_ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE]+0x18):
 undefined reference to `typeinfo for Gecode::Gist::TextOutput'

libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE[_ZTIN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEEE]+0x28):
 undefined reference to `typeinfo for Gecode::Gist::Comparator'

libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x18):
 undefined reference to `typeinfo for Gecode::Gist::TextOutput'

libgecodeflatzinc.a(flatzinc.cpp.o):(.data.rel.ro._ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE[_ZTIN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEEE]+0x28):
 undefined reference to `typeinfo for Gecode::Gist::Inspector'

libgecodeflatzinc.a(flatzinc.cpp.o): In function 
`Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::name[abi:cxx11]()':

flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE4nameB5cxx11Ev[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE4nameB5cxx11Ev]+0x2e):
 undefined reference to `Gecode::Gist::TextOutput::name[abi:cxx11]()'

libgecodeflatzinc.a(flatzinc.cpp.o): In function 
`Gecode::FlatZinc::FZPrintingComparator<Gecode::FlatZinc::FlatZincSpace>::compare(Gecode::Space
 const&, Gecode::Space const&)':

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0x21):
 undefined reference to `Gecode::Gist::TextOutput::init()'

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0x61):
 undefined reference to `Gecode::Gist::TextOutput::getStream()'

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0xaa):
 undefined reference to `Gecode::Gist::TextOutput::getStream()'

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_[_ZN6Gecode8FlatZinc20FZPrintingComparatorINS0_13FlatZincSpaceEE7compareERKNS_5SpaceES6_]+0xe7):
 undefined reference to `Gecode::Gist::TextOutput::getStream()'

libgecodeflatzinc.a(flatzinc.cpp.o): In function 
`Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::finalize()':

flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE8finalizeEv[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE8finalizeEv]+0x14):
 undefined reference to `Gecode::Gist::TextOutput::finalize()'

libgecodeflatzinc.a(flatzinc.cpp.o): In function 
`Gecode::Gist::VarComparator<Gecode::FlatZinc::FlatZincSpace>::compare(Gecode::Space
 const&, Gecode::Space const&)':

flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0xdc):
 undefined reference to `Gecode::Gist::TextOutput::init()'

flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0xf2):
 undefined reference to `Gecode::Gist::TextOutput::addHtml(char const*)'

flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0x101):
 undefined reference to `Gecode::Gist::TextOutput::getStream()'

flatzinc.cpp:(.text._ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_[_ZN6Gecode4Gist13VarComparatorINS_8FlatZinc13FlatZincSpaceEE7compareERKNS_5SpaceES7_]+0x169):
 undefined reference to `Gecode::Gist::TextOutput::addHtml(char const*)'

libgecodeflatzinc.a(flatzinc.cpp.o): In function 
`Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::inspect(Gecode::Space
 const&)':

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE]+0x1b):
 undefined reference to `Gecode::Gist::TextOutput::init()'

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE]+0x5b):
 undefined reference to `Gecode::Gist::TextOutput::getStream()'

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE7inspectERKNS_5SpaceE]+0x75):
 undefined reference to `Gecode::Gist::TextOutput::getStream()'

libgecodeflatzinc.a(flatzinc.cpp.o): In function 
`Gecode::FlatZinc::FZPrintingInspector<Gecode::FlatZinc::FlatZincSpace>::finalize()':

flatzinc.cpp:(.text._ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE8finalizeEv[_ZN6Gecode8FlatZinc19FZPrintingInspectorINS0_13FlatZincSpaceEE8finalizeEv]+0x14):
 undefined reference to `Gecode::Gist::TextOutput::finalize()'

collect2: error: ld returned 1 exit status

CMakeFiles/gecode-test.dir/build.make:4238: recipe for target 'bin/gecode-test' 
failed

make[2]: *** [bin/gecode-test] Error 1

CMakeFiles/Makefile2:200: recipe for target 'CMakeFiles/gecode-test.dir/all' 
failed

make[1]: *** [CMakeFiles/gecode-test.dir/all] Error 2

Makefile:94: recipe for target 'all' failed

make: *** [all] Error 2


_______________________________________________
Gecode users mailing list
users@gecode.org
https://www.gecode.org/mailman/listinfo/gecode-users

Reply via email to