Guppy Posted August 29, 2014 Share Posted August 29, 2014 (edited) bascially if you try to run a c++ project binary currently it will fail with "mygame: error while loading shared libraries: libsteam_api.so: cannot open shared object file: No such file or directory" now you can get around that by specifying LD_PATH=. mygame, but that is quite frankly ugly and inconvenient So please in Project -> Build options -> Linker settings -> Other linker options put -Wl,-rpath=\\$$$ORIGIN ( personally I use "-Wl,-rpath=\\$$$ORIGIN/sharedlibs/" to avoid causing clutter in the root dir but that's just me ) edit: swapped "." for \\$$$ORIGIN because as codeape pointed out you don't have to stand in the same directory to execute the file. Edited September 4, 2014 by Guppy Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.