DragonNeos / remote-joy-lite-fix

Automatically exported from code.google.com/p/remote-joy-lite-fix
2 stars 4 forks source link

Does not compile in Visual C++ #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Please feel free to write bug reports in English.

= バグ再現手順 =
バグを再現するための手順をお書き下さい
1. Run ReleaseBuild.bat
2.
3.

= 期待される結果 =
正常に動作するとすればどういう結果になるべきかを
お書き下さい

All files should compile correctly.

= 実際に起こった現象 =
バグ発生の結果として実際に発生した現象を
お書き下さい

Visual C++ does not recognize Unix commands in the Makefile.

= 環境 =
バグ発生環境についてお書き下さい

== PC側 ==
OS: Windows 7 Home 64-bit
GPU: Radeon HD 6870
Vblank強制転送: OFF

== その他、詳細 ==
なにか追記することがあればお書き下さい

In ReleaseBuild.bat, 
"cp" should be changed to "copy"

In Makefile, rm should be changed and perhaps others.

Original issue reported on code.google.com by slmp...@gmail.com on 26 Apr 2012 at 11:52

GoogleCodeExporter commented 8 years ago
r8 fixed most of the problems.

I'm still getting:

'windres' is not recognized as an internal or external command...

Original comment by slmp...@gmail.com on 26 Apr 2012 at 11:57

GoogleCodeExporter commented 8 years ago
> 'windres' is not recognized as an internal or external command...
I see. I will fix later.

Original comment by nahanaha...@gmail.com on 26 Apr 2012 at 11:59

GoogleCodeExporter commented 8 years ago
I replaced 'windres' command to 'rc' command. Could you check again?

Original comment by nahanaha...@gmail.com on 27 Apr 2012 at 2:00

GoogleCodeExporter commented 8 years ago
RemoteJoyLite.cpp<17> : fatal error C1083: Cannot open include file: 
'lusb0_usb.h': No such file or directory

I have libusb installed, so I don't think that's the problem. Perhaps there is 
a paths issue in the Makefile?

 /I "..\..\\libusb-win32-bin-1.2.6.0\include"
 /LIBPATH:"..\..\libusb-win32-bin-1.2.6.0\lib\msvc"

These seem to be the problem.

Original comment by slmp...@gmail.com on 27 Apr 2012 at 5:04

GoogleCodeExporter commented 8 years ago
I got it to compile by moving my libusb-win-32-bin-1.2.6.0 folder to the root 
of my C: drive and changing the paths to 

/I "C:\libusb-win32-bin-1.2.6.0\include"
/LIBPATH:"C:\libusb-win32-bin-1.2.6.0\lib\msvc"

This is a possible solution, but I'm not sure if it's the best solution.

Original comment by slmp...@gmail.com on 27 Apr 2012 at 10:23

GoogleCodeExporter commented 8 years ago
My current folder structure is below and it works well. I hope it will help you.
c:
-develop
 -libusb-win32-bin-1.2.6.0
 -remote-joy-lite-fix
  -RemoteJoyLite_pc
  -RemoteJoyLite_psp

Original comment by nahanaha...@gmail.com on 28 Apr 2012 at 12:04

GoogleCodeExporter commented 8 years ago
If I set up my folders like yours, it compiles correctly. I just wish there was 
a way to call a relative path instead, but I guess that's the fault of libusb.

Since it will always be compiled with libusb-1.2.6.0, perhaps you can include 
lusb0_usb.h and libusb.lib with remote-joy-lite-fix? That way there won't be 
any confusion with the folder structure. 

I can compile it now, so this issue can be closed.

Original comment by slmp...@gmail.com on 28 Apr 2012 at 12:30

GoogleCodeExporter commented 8 years ago
Thank you for reporting. I will close this bug.

Original comment by nahanaha...@gmail.com on 28 Apr 2012 at 12:44