silicontrip / SkyReader

A Skylander portal reader/editor/writer for OSX.
87 stars 55 forks source link

Updated to compile on Windows MinGW32 #9

Closed jtp10181 closed 7 years ago

jtp10181 commented 8 years ago

I think I figure out the correct way to do this...

This should still compile with xcode on the Mac. I do not have a Mac to test though. I updated the hid.c for mac and added hid_win.c for windows. Updated the hdiapi.h also to go with them. They are direct from the source without modification.

Added a Makefile for mingw, not sure if the other makefile is used for mac so I left it alone.

Converted usleep to not throw errors on mingw, should retain full compatibility with xcode on mac.

Note: I cant get it to play nice with my newer portals I have. But the rest of the program works as designed. I have a bunch of other patches coming.

crstofer commented 7 years ago

Can u share your compiled version for Windows? I try to compile and keep getting error message. PLEASE & Thanks !

jtp10181 commented 7 years ago

You can use my fork from here:

https://github.com/jtp10181/SkyReader

+################################################## +# Makefile for MinGW32 on windows by jtp10181 +# To compile run: mingw32-make -f Makefile.mingw +##################################################

crstofer commented 7 years ago

Jeff , Thanks. I cant get it to compile.. can u share your compiled exe? If not, no worries ! I've installed mingw and run mingw32-make -f Makefile.mingw, starts to compile then error withg output.exe. "headache!"

crstofer commented 7 years ago

c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: cannot ope n output file bin\editor.exe: No such file or directory collect2.exe: error: ld returned 1 exit status Makefile.mingw:16: recipe for target 'editor' failed mingw32-make: *\ [editor] Error 1

any advice ?