installation yade-1.11.0 : problem with libXt.so location

Asked by Pouvreau

I try to install Yade-1.11.0 on a cluster (scientific linux) with cmake-2.8.12.2.

I have this error :

[ 92%] Building CXX object CMakeFiles/yade.dir/lib/serialization/Serializable.cpp.o
[ 93%] Building CXX object CMakeFiles/yade.dir/lib/pyutil/gil.cpp.o
make[2]: *** No rule to make target `/usr/X11R6/lib64/libXt.so', needed by `lib64/libyade.so'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 94%] Building CXX object CMakeFiles/yade.dir/core/main/pyboot.cpp.o
make[1]: *** [CMakeFiles/yade.dir/all] Error 2
make: *** [all] Error 2

In fact,
- the library libxt.so is in located in /usr/lib64.
- LD_LIBRARY_PATH has the repertory /usr/liib64
- with the ccmake tool, I can check that the variable X11_xt_LIB is /usr/lib64/libXt.so

I don't understand why cmake does not find the good location for libXt.so.
Any idea ?

Thanks for your help.

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Pouvreau
Solved:
Last query:
Last reply:
Revision history for this message
Anton Gladky (gladky-anton) said :
#1

AFAIK LD_LIBRARY_PATH is used not for compilation, but for a runtime. Please provide CMakeCache.txt.

Try to set CMAKE_LIBRARY_PATH during configuration step of compilation, e.g:

cmake -DCMAKE_LIBRARY_PATH=/usr/lib64/ /path/to/yade/source

Anton

Revision history for this message
Anton Gladky (gladky-anton) said :
#4

Hi Jerome,

Yade should also be compatible with older VTK-versions.
I am glad, that you solved the problem!

Best regards

Anton

2014-08-27 17:17 GMT+02:00 Pouvreau <email address hidden>:
> Question #253618 on Yade changed:
> https://answers.launchpad.net/yade/+question/253618
>
> Pouvreau gave more information on the question:
> Hi,
>
> My problem probably comes from VTK-5.4. Indeed, a wrong location is indicated in the file VTKLibraryDepends.cmake.
> See https://elist.ornl.gov/pipermail/visit-developers/2009-December/005052.html for more explanations.
> Furthermore, I need to recompile VTK-5.4 with -fPIC.
>
> If VTK is disable, the compilation works until the end and all tests
> (55) are ok (with boost-1.55.0).
>
> With a newer version of VTK (6.1.0), the problem disappears and all
> tests (55) are ok !
>
>
> Jérôme
>
>
> -----Message d'origine-----
> De : <email address hidden> [mailto:<email address hidden>] De la part de Pouvreau
> Envoyé : mercredi 27 août 2014 12:43
> À : POUVREAU Jérôme 162563
> Objet : Re: [Question #253618]: installation yade-1.11.0 : problem with libXt.so location
>
> Your question #253618 on Yade changed:
> https://answers.launchpad.net/yade/+question/253618
>
> Status: Answered => Open
>
> You are still having a problem:
> Hi,
>
> In the file CMakeCache.txt, the libXt.so location is well found :
>
> //Path to a library.
> X11_Xt_LIB:FILEPATH=/usr/lib64/libXt.so
>
> However, in the file CMakeFiles/yade.dir/build.make, the location is
> wrong :
>
> # External object files for target yade
> yade_EXTERNAL_OBJECTS =
> lib64/libyade.so: CMakeFiles/yade.dir/core/Body.cpp.o
> (...)
> lib64/libyade.so: CMakeFiles/yade.dir/core/main/pyboot.cpp.o
> lib64/libyade.so: CMakeFiles/yade.dir/build.make
> lib64/libyade.so: /usr/lib64/libboost_python-mt.so
> (...)
> lib64/libyade.so: /usr/X11R6/lib64/libXt.so
> (...)
>
> And the location is wrong for CMakeFiles/boot.dir/build.make too.
>
> I try to use -DCMAKE_LIBRARY_PATH=/usr/lib64/, but this option does not
> change anything.
>
> I try to change the libXt.so location in the files build.make by hand between "cmake" stage et "make" stage. The same change is applied for some others libraries which have the same problem (libSM.so, libICE.so, libX11.so et libXext.so).
> Even if it seems to work, it is not really a good issue.
> Would you have a better idea ?
>
> Then another error appears :
>
> [ 94%] Building CXX object CMakeFiles/yade.dir/core/main/pyboot.cpp.o
> Linking CXX shared library lib64/libyade.so
> /usr/bin/ld: /home/prog/VTK/bin/libvtkIO.a(vtkXMLMultiBlockDataWriter.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
> /home/prog/VTK/bin/libvtkIO.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[2]: *** [lib64/libyade.so] Error 1
>
>
>
> -----Message d'origine-----
> De : <email address hidden> [mailto:<email address hidden>] De la part de Anton Gladky Envoyé : mercredi 27 août 2014 09:37 À : POUVREAU Jérôme 162563 Objet : Re: [Question #253618]: installation yade-1.11.0 : problem with libXt.so location
>
> Your question #253618 on Yade changed:
> https://answers.launchpad.net/yade/+question/253618
>
> Status: Open => Answered
>
> Anton Gladky proposed the following answer:
> AFAIK LD_LIBRARY_PATH is used not for compilation, but for a runtime.
> Please provide CMakeCache.txt.
>
> Try to set CMAKE_LIBRARY_PATH during configuration step of compilation,
> e.g:
>
> cmake -DCMAKE_LIBRARY_PATH=/usr/lib64/ /path/to/yade/source
>
> Anton
>
> --
> If this answers your question, please go to the following page to let us know that it is solved:
> https://answers.launchpad.net/yade/+question/253618/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the following page to enter your feedback:
> https://answers.launchpad.net/yade/+question/253618
>
> You received this question notification because you asked the question.
>
> --
> You received this question notification because you asked the question.
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp

Revision history for this message
Pouvreau (jerome-pouvreau) said :
#5

Hi Anton,

Thanks for your answers.
Best regards.

Jerome