Dolphin, the GameCube and Wii emulator - Forums
how to build a binary program that load relative path at linux? - Printable Version

+- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org)
+-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support)
+--- Forum: Development Discussion (https://forums.dolphin-emu.org/Forum-development-discussion)
+--- Thread: how to build a binary program that load relative path at linux? (/Thread-how-to-build-a-binary-program-that-load-relative-path-at-linux)



how to build a binary program that load relative path at linux? - shouhuanxiaoji - 01-21-2016

Hello,friends!
I want to compile the dolphin-emu to a binary program that load relative paths eg datadir..

I download sources package from stable branch in github and use c++-4.9 at Ubuntu 14.04 amd64.

If I use below command:
Code:
cmake
make
make install
or
Code:
cmake -D datadir=/home/xiaoji/dolphin
the path of datadir will be absolute.So after I move the whole path to another path,the program will be error: some path or some files is missing.

I want to know how to modify the cmakefile.txt? or add some parameter when use cmake command?
Thanks very much!


RE: how to build a binary program that load relative path at linux? - JosJuice - 01-21-2016

This PR added support for it: https://github.com/dolphin-emu/dolphin/pull/3247

You will need to use the master branch. The stable branch is generally not recommended, because it's out of date.


RE: how to build a binary program that load relative path at linux? - shouhuanxiaoji - 01-21-2016

(01-21-2016, 03:46 AM)JosJuice Wrote: This PR added support for it: https://github.com/dolphin-emu/dolphin/pull/3247

You will need to use the master branch. The stable branch is generally not recommended, because it's out of date.

thanks very much!
I have build the relocatable version.
Meanwhile I have another question.How to load the locale path?
The language UI is still English.
how to config to load other language?
I mean that after modify the language menu in dolphin-emu's opthin-preference-Interface-Language,it has not been effective.I think it cant find the locale path.
thanks!