You are not logged in.

#1 2012-03-30 04:33:20

matse
Member
Registered: 2011-04-27
Posts: 299

[SOLVED] Python2 linking(?) problem

Hello,
I try to get trilinos from the AUR up and running and have some problems with it. First the package compiles and installs fine, but when executing other programs that use trilinos I get problems and I guess the problems is trilinos itself.
Because if I check library dependencies of trilinos with

ldd -r /usr/lib/libpytrilinos.so

I get this output with missing dependencies. I guess something goes wrong with linking to python2 - but I'm not quite sure about this.
I have already tried to compile trilinos with these extra (obviously pretty dumb) cmake options:

-DPython_INCLUDE:DIRS:PATH=/usr/include/python2.7 \
-DPython_LIBRARY_DIRS:Path=/usr/lib/python2.7 \

without success. Maybe there is anybody with more experience on this field and can give me some assistance,
greetings
matse

//Edit:
Solved the problem by adding these cmake options:

-DCMAKE_C_FLAGS:STRING="-lpython2.7" \
-DCMAKE_CXX_FLAGS:String="-lpython2.7" \
-DCMAKE_Fortran_FLAGS:String="-lpython2.7" \

I guess this is a pretty dull workaround and there is probably a better one possible but at least it works...

Last edited by matse (2012-03-30 06:37:56)

Offline

Board footer

Powered by FluxBB