diff --git a/CompileWiiusejOnLinux.wiki b/CompileWiiusejOnLinux.wiki index 63117ae..0f7a75b 100644 --- a/CompileWiiusejOnLinux.wiki +++ b/CompileWiiusejOnLinux.wiki @@ -3,7 +3,9 @@ Page not finished yet! = Introduction = -What packages you need installed: libc-dev and libbluetooth-dev + +What packages you need installed: libc-dev, libbluetooth-dev, xlibmesa-gl-dev, libglu1-mesa-dev, libsdl. + You need Java 6 jdk installed, to get the jni interface. You need to get `libwiiuse.so` compiled before trying to compile Wiiusej library. @@ -11,17 +13,17 @@ You need to get `libwiiuse.so` compiled before trying to compile Wiiusej library = Wiiuse library = # First, [http://sourceforge.net/project/showfiles.php?group_id=187194 download according version of Wiiuse] (for WiiuseJ v0.12, download Wiiuse v0.12). - # Second, compile the Wiiuse + # Second, compile the Wiiuse lib `libwiiuse.so` {{{ make -}}} - -{{{ make install }}} +Here, if you did not install the sdl library, you may get a bug. The library is well-compiled anyway. + = Wiiusej library = +''Don't forget to replace my jdk folder by yours'' {{{ gcc -shared -fPIC -o libWiiuseJ.so -Wall -L. -lwiiuse -I/home/vincent/jdk1.6.0_05/include -I/home/vincent/jdk1.6.0_05/include/linux wiiusej_WiiUseApi.c @@ -29,4 +31,9 @@ gcc -shared -fPIC -o libWiiuseJ.so -Wall -L. -lwiiuse -I/home/vincent/jdk1.6.0_0 = Launch on linux = -Put both libs `libwiiuse.so` and `libWiiuseJ.so` in the folder of `wiiusej.jar`. \ No newline at end of file +Put both libs `libwiiuse.so` and `libWiiuseJ.so` in the folder of `wiiusej.jar`. + +Now launch +{{{ +LD_LIBRARY_PATH=. ~/jdk1.6.0_05/bin/java -Djava.library.path=. -jar wiiusej.jar +}}} \ No newline at end of file