silicontrip / SkyReader

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

libusb macOs #39

Open AliMounir opened 2 years ago

AliMounir commented 2 years ago

i can see the work you did so far is more than amazing. Unfortunately i am not very familiar with C++, and i cant use your code. so in xcode i pressed the "play button" to run Skyreader.xcodeproj and the console only output what you have in the readme. i then opened a terminal inside the skyreader-master folder (where the main.cpp is) and typed make, but it gives back an error "ld: library not found for -lusb-1.0" and i did download libusb and put the libusb.h file inside the master folder (along with all the cpp & h files) but it still gives back the same error.

do you mind giving instructions on how exactly to work it, as this is beyond my scope of knowledge really.

Wii wired portal on MacOS (i also have a windows laptop and tried there but ran into much more complicated issues).

Thanks in advance!

NefariousTechSupport commented 2 years ago

I believe you could install homebrew from https://brew.sh and run brew install libusb, then try again. I'm not fully sure since I can't access my mac right now but it's worth a shot

silicontrip commented 2 years ago

The xcode build is all you need. Since you've seen the program output when you hit the play button this means that the executable is built. It's a command line app, so Xcode can't run it in a useful manner, it shows the program output with no arguments. You just need to run the executable from the command line. To find where xcode has put the binary. in Xcode find the project view in the left panel, it's the folder icon in the top left. This should show you the skyreader project, with the source and two dependencies (CoreFoundation and IOKit) there will also be a Projects group (looks like a folder) expand this to find the editor executable. Select editor and now on the right you should now see the full path. Mine shows this; /Users/mark/Library/Developer/Xcode/DerivedData/SkyReader-fizjfcgqwptzsxfslpdxqzstskup/Build/Products/Debug/editor copy this file to your preferred executable location (example; /usr/local/bin or ~/bin or wherever) run the executable from the terminal and hopefully you'll be able to read and write to your Skylander figures.