Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libusb macOs #39

Open
AliMounir opened this issue Dec 21, 2021 · 2 comments
Open

libusb macOs #39

AliMounir opened this issue Dec 21, 2021 · 2 comments

Comments

@AliMounir
Copy link

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
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants