Quantcast
Viewing all articles
Browse latest Browse all 6821

Choose folder where DllImport looks for libs? (and the dependencies of a dependency)

@LadyApoLLo wrote:

Hello, I'm porting a game I made with MonoGame to mac and I'm stuck on a DllImport problem, it usually works just fine, looking for any lib (dylib) on the same folder as the assembly, but I'm facing a serious problem now that a dependency of mine has it own dependencies.

The lib I'm trying to load, it loads just fine from the same folder as the executable, but it looks for the dependencies of that lib on the usr/local/lib.

What is the best way to face this problem?

For me, the optimal solution would be if every lib could be look at in a lib folder inside the game directory, but I'm not sure on how to do that.

Posts: 6

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles