Dolphin, the GameCube and Wii emulator - Forums
Problem when trying to compile nJoy plugin - 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: Problem when trying to compile nJoy plugin (/Thread-problem-when-trying-to-compile-njoy-plugin)

Pages: 1 2


Problem when trying to compile nJoy plugin - enb141 - 05-09-2009

Hi guys I'm trying to compile the nJoy plugin, I just got all files in http://dolphin-emu.googlecode.com/svn/trunk/ (3173) but when I try to compile nJoy_SDL it gives me this error
[color=#FF0000]
Error 5 fatal error C1083: Cannot open include file: 'dinput.h': No such file or directory d:\tests\dolphin\3173\source\plugins\plugin_njoy_sdl\src\njoy.h 68 Plugin_nJoy_SDL[/color]

I'm using Visual Studio 2008 Windows XP SP3

and when I try to compile nJoy_SDL_Test in x64 it gives me this error:
[color=#FF0000]
Error 12 fatal error LNK1104: cannot open file '..\..\core\common\x64\debug\common.lib' Plugin_nJoy_SDL_Test Plugin_nJoy_SDL_Test
[/color]
plus 11 warnings like this:
[color=#FFA500]
Warning 1 warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. d:\Tests\Dolphin\3173\Source\Plugins\Plugin_nJoy_Testing\Src\nJoy.cpp 154 Plugin_nJoy_SDL_Test[/color]


RE: Problem when trying to compile nJoy plugin - LuisR14 - 05-09-2009

install the DirectX SDK


RE: Problem when trying to compile nJoy plugin - enb141 - 05-09-2009

I already installed DirectX SDK


RE: Problem when trying to compile nJoy plugin - LuisR14 - 05-09-2009

make sure in "Tools->Options->VC++ Projects->VC++ Directories" you have "$(DxSdk_Dir)\include" set for include paths, "$(DxSdk_Dir)\lib\[x86|x64]" set for library paths, and "$(DxSdk_Dir)\bin\[x86|x64]" set for bin paths Smile


RE: Problem when trying to compile nJoy plugin - enb141 - 05-09-2009

Thanks for your help.

Where can I have to add this?
[color=#0000CD]
"$(DxSdk_Dir)\bin\[x86|x64]" set for bin paths?

[/color]


RE: Problem when trying to compile nJoy plugin - LuisR14 - 05-09-2009

in "executable files" Smile


RE: Problem when trying to compile nJoy plugin - enb141 - 05-09-2009

Ok but I don't have C:\Program Files\Microsoft DirectX SDK (March 2009)[color=#FF0000]\Bin[/color] just look at the tree in the attachment and tell me where is it please.


RE: Problem when trying to compile nJoy plugin - nosound97 - 05-09-2009

Go to System/Bin


RE: Problem when trying to compile nJoy plugin - enb141 - 05-09-2009

I only have C:\Program Files\Microsoft DirectX SDK (March 2009)\system[color=#FF0000]\uninstall[/color]


RE: Problem when trying to compile nJoy plugin - LuisR14 - 05-09-2009

oh it's "$(DxSdk_Dir)\Developer Runtime\[x86|x64]" Tongue