Rpath on Windows [message #1771880] |
Thu, 31 August 2017 11:18  |
Eclipse User |
|
|
|
Hi all,
I am developing a software composed by an executable and various shared libraries; all parts have their own Eclipse project.
All parts are cross-platform and each project has different build configurations for both Linux and Windows (Debug-Linux, Release-Linux. Debug-Windows, Release-Windows).
In order to run and test the executable under Eclipse, I told the project where to find the libraries: under Project properties -> C/C++ Build -> Settings -> Tool Settings -> Cross G++ Linker -> Miscellaneous I have put: -Wl,-rpath '${workspace_loc:/library-name/Debug-Linux/}' (of course it ends in ....-Windows/}' for the Windows build configurations).
The problem is that it works under Linux, but not under Windows as it complains that it can't find the libraries. If I manually copy the generated executable and libraries on a same folder, the executable works fine, but it is not very practical to do so every time I want to test a change on the libraries.
Why doesn't it works? Does rpath have a different syntax under Windows? Do I have to use a different function?
Thanks in advance.
P.S. under each compile profile I have put the appropriate configurations under Project properties -> C/C++ Build -> Settings -> Tool Settings -> Cross G++ Compiler -> Includes and Project properties -> C/C++ Build -> Settings -> Cross G++ Linker -> Libraries and indeed all the projects compile fine and, as I said, everything run fine if all executable and libraries are placed on the same folder.
|
|
|
|
|
|
Re: Rpath on Windows [message #1772076 is a reply to message #1771947] |
Tue, 05 September 2017 06:08  |
Eclipse User |
|
|
|
Thank for the link.
I have evaluated various solutions and I ended up making symbolic links (opened a command prompt with administrative privileges and used mklink) from the libraries Debug/Release folders to the executable Debug/Release folder and now the executable can be launched from within Eclipse.
Thank you very much.
|
|
|
Powered by
FUDForum. Page generated in 0.03498 seconds