← Back to team overview

yade-users team mailing list archive

Re: [Question #253618]: installation yade-1.11.0 : problem with libXt.so location

 

Question #253618 on Yade changed:
https://answers.launchpad.net/yade/+question/253618

    Status: Open => Answered

Anton Gladky proposed the following answer:
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 <question253618@xxxxxxxxxxxxxxxxxxxxx>:
> 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 : bounces@xxxxxxxxxxxxx [mailto:bounces@xxxxxxxxxxxxx] 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 : bounces@xxxxxxxxxxxxx [mailto:bounces@xxxxxxxxxxxxx] 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     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.