You are not logged in.

#1 2010-03-17 05:47:40

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Weird linking issue.

I have a program which comes prebuilt (proprietary) and therefore I have to manipulate where all its files go. Originally, it was just stuck in /opt but I managed to take some time and try to put it into the standard libraries. I have gotten most of it cleaned up and working, but the only problem now, is that no matter the rpath, it always looks in the current directory for a folder for the libs.

I do the following in a PKGBUILD
I put tlen-bin into /usr/bin
I do chrpath -r /usr/lib/tlen/tlen_libs ./tlen-bin
and the libs it needs are in the folder, but when I run tlen-bin, it says

not found TlenMainWindow in: /usr/bin/tlen_libs/
Aborted

and whichever folder I put the binary, it says that function is not found. It only works if the executable is in the same directory as the folder containing the libs (tlen_libs)
Any ideas would be greatly appreciated.

EDIT:
I just checked out the binary and it seems to be hardcoded into the application. I think I will end up using /opt and any workaround would be too much work for just a small itch.

Last edited by tomd123 (2010-03-17 19:44:04)

Offline

Board footer

Powered by FluxBB