- ROSAForum
- Проблемы с установкой нужной libusb
- Проблемы с установкой нужной libusb
- Re: Проблемы с установкой нужной libusb
- macOS Big Sur 11.0.1 (20B29) > Libusb missing > failed to install libusb #16
- Comments
- iComet commented Nov 26, 2020
- rA9stuff commented Nov 26, 2020
- jackhu9527 commented Nov 26, 2020
- rA9stuff commented Nov 26, 2020
- RolphNL commented Dec 2, 2020
- khoitran18 commented Dec 11, 2020
- davidmacae commented Dec 18, 2020
- DKingPhotographi commented Jan 14, 2021
- Как настроить libusb на Mac OS X?
- 3 ответов
- Как настроить libusb на Mac OS X?
- 3 ответа
ROSAForum
Forum about ROSA Linux Distros
- Темы без ответов
- Активные темы
- Поиск
- Наша команда
Проблемы с установкой нужной libusb
Проблемы с установкой нужной libusb
Сообщение denkarter » 18 янв 2017, 20:35
Доброго времени суток. Прошу помощи в установке библиотеки libusb-0.1-4
По этой инструкции пользователи Линукс меняют мак-адрес джойстика:
Re: Проблемы с установкой нужной libusb
Сообщение denkarter » 18 янв 2017, 21:02
Нашёл сайт с этими библиотеками:
http://www.libusb.org
оттуда скачал libusb-compat-0.1.4
проделал следующее:
$ su —
Пароль:
mac-mini-rosa
# cd libusb-compat-0.1.4
mac-mini-rosa libusb-compat-0.1.4 # ./configure
checking for a BSD-compatible install. /usr/bin/install -c
checking whether build environment is sane. yes
checking for a thread-safe mkdir -p. /bin/mkdir -p
checking for gawk. gawk
checking whether make sets $(MAKE). yes
checking for gcc. gcc
checking whether the C compiler works. yes
checking for C compiler default output file name. a.out
checking for suffix of executables.
checking whether we are cross compiling. no
checking for suffix of object files. o
checking whether we are using the GNU C compiler. yes
checking whether gcc accepts -g. yes
checking for gcc option to accept ISO C89. none needed
checking for style of include used by make. GNU
checking dependency style of gcc. gcc3
checking build system type. x86_64-unknown-linux-gnu
checking host system type. x86_64-unknown-linux-gnu
checking how to print strings. printf
checking for a sed that does not truncate output. /bin/sed
checking for grep that handles long lines and -e. /bin/grep
checking for egrep. /bin/grep -E
checking for fgrep. /bin/grep -F
checking for ld used by gcc. /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld. yes
checking for BSD- or MS-compatible name lister (nm). /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface. BSD nm
checking whether ln -s works. yes
checking the maximum length of command line arguments. 1572864
checking whether the shell understands some XSI constructs. yes
checking whether the shell understands «+=». yes
checking for /usr/bin/ld option to reload object files. -r
checking for objdump. objdump
checking how to recognize dependent libraries. pass_all
checking for ar. ar
checking for strip. strip
checking for ranlib. ranlib
checking command to parse /usr/bin/nm -B output from gcc object. ok
checking how to run the C preprocessor. gcc -E
checking for ANSI C header files. yes
checking for sys/types.h. yes
checking for sys/stat.h. yes
checking for stdlib.h. yes
checking for string.h. yes
checking for memory.h. yes
checking for strings.h. yes
checking for inttypes.h. yes
checking for stdint.h. yes
checking for unistd.h. yes
checking for dlfcn.h. yes
checking for objdir. .libs
checking if gcc supports -fno-rtti -fno-exceptions. no
checking for gcc option to produce PIC. -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works. yes
checking if gcc static flag -static works. no
checking if gcc supports -c -o file.o. yes
checking if gcc supports -c -o file.o. (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries. yes
checking whether -lc should be explicitly linked in. no
checking dynamic linker characteristics. GNU/Linux ld.so
checking how to hardcode library paths into programs. immediate
checking whether stripping libraries is possible. yes
checking if libtool supports shared libraries. yes
checking whether to build shared libraries. yes
checking whether to build static libraries. yes
checking for inline. inline
checking whether gcc and cc understand -c and -o together. yes
checking for pkg-config. /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0. yes
checking for LIBUSB_1_0. no
configure: error: Package requirements (libusb-1.0 >= 0.9.1) were not met:
No package ‘libusb-1.0’ found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBUSB_1_0_CFLAGS
and LIBUSB_1_0_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Как видите, ругается на отсутствие libusb-1.0.
Тогда я скачал на этой же странице libusb-1.0.9
и сделал следующее:
Источник
macOS Big Sur 11.0.1 (20B29) > Libusb missing > failed to install libusb #16
Comments
iComet commented Nov 26, 2020
No description provided.
The text was updated successfully, but these errors were encountered:
rA9stuff commented Nov 26, 2020
Hi, please run this command on terminal. It will show you the logs generated by leetdown. Then copy and paste the logs here.
/Applications/leetdown.app/Contents/MacOS/leetdown.app
jackhu9527 commented Nov 26, 2020
About abcde : Library for USB device access!
More Information: http://libusb.info
Steps:
Launch Terminal by pressing command+space, type terminal and hit Enter key.
Run
ruby -e «$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)» /dev/null
Install
brew install libusb
Done!
rA9stuff commented Nov 26, 2020
@jackhu9527 Yeah it fixes it but I want to know what’s wrong with leetdown so I can fix it for good.
RolphNL commented Dec 2, 2020
Currently having the same issue, iPad Air — Cellular. Got updated to iOS 12.4.9 but want to downgrade to 10.3.3 for obvious reasons.
Unfortunately LeetDown wants to install «libusb» when I approve it, it fails
- I tried to see run the command on terminal but nothing shows up
- the second command in terminal, it doesn’t allow me to continue because: «need sudo access» (while I am administrator)..
khoitran18 commented Dec 11, 2020
same problem with my iPhone 5s
davidmacae commented Dec 18, 2020
Olá, execute este comando no terminal. Ele irá mostrar os logs gerados pelo leetdown. Em seguida, copie e cole os logs aqui.
/Applications/leetdown.app/Contents/MacOS/leetdown.app
its > -bash: /Applications/leetdown.app/Contents/MacOS/leetdown.app: No such file or directory
Need sudo access on macOS (e.g. the user jota to be an Administrator)!
MacBook-Pro-de-Jota:
DKingPhotographi commented Jan 14, 2021
Still Having LIBUSB Download/install failure, I have tried a number of methods but I am not really good with coding, just been researching and trying codes that others suggest. This is my latest attempts still with no success. Please let me know where else or what else I may try. I am trying to restore 10.3.3 to 1st gen ipad air. Thank you all for your time.
Last login: Thu Jan 14 15:35:32 on console
Admins-MBP:
DKINGPHOTOGRAPHI$ ruby -e «$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)» /dev/null
Need sudo access on macOS (e.g. the user DKINGPHOTOGRAPHI to be an Administrator)!
Admins-MBP:
DKINGPHOTOGRAPHI$ ruby -e «$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)» /dev/null
Need sudo access on macOS (e.g. the user DKINGPHOTOGRAPHI to be an Administrator)!
Admins-MBP:
DKINGPHOTOGRAPHI$ sudo ruby -e «$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)» /dev/null
Password:
Don’t run this as root!
Admins-MBP:
DKINGPHOTOGRAPHI$ brew install libusb
Error: You have not agreed to the Xcode license. Please resolve this by running:
sudo xcodebuild -license accept
Admins-MBP:
DKINGPHOTOGRAPHI$ sudo xcodebuild -license accept
Admins-MBP:
DKINGPHOTOGRAPHI$ brew install libusb
Updating Homebrew.
Warning: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew’s GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.
Error: git: no bottle available!
You can try to install from source with:
brew install —build-from-source git
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew’s GitHub, Twitter or any other
official channels.
Error: Git must be installed and in your PATH!
Warning: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew’s GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.
Error: libusb: no bottle available!
You can try to install from source with:
brew install —build-from-source libusb
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew’s GitHub, Twitter or any other
official channels.
Admins-MBP:
DKINGPHOTOGRAPHI$ ./configure
-bash: ./configure: No such file or directory
Admins-MBP:
DKINGPHOTOGRAPHI$ sudo ./configure
Password:
sudo: ./configure: command not found
Admins-MBP:
DKINGPHOTOGRAPHI$ sudo make
make: *** No targets specified and no makefile found. Stop.
Admins-MBP:
DKINGPHOTOGRAPHI$ sudo ./configure make
sudo: ./configure: command not found
Admins-MBP:
DKINGPHOTOGRAPHI$ sudo make ./configure
make: *** No rule to make target configure’. Stop. Admins-MBP:
DKINGPHOTOGRAPHI$ .configure LIBUSB_CFLAGS=-I/usr/local/include/libusb-1.0.22.el_capitain.bottle.tar.gz LIBUSB_LIBS=»-L/usr/local/lib -lusb-1.0″ -bash: .configure: command not found Admins-MBP:
DKINGPHOTOGRAPHI$ sudo make ./configure LIBUSB_CFLAGS=-I/usr/local/include/libusb-1.0.22.el_capitain.bottle.tar.gz LIBUSB_LIBS=»-L/usr/local/lib -lusb-1.0″ Password: make: *** No rule to make target configure’. Stop.
Admins-MBP:
DKINGPHOTOGRAPHI$ /usr/local/lib
-bash: /usr/local/lib: is a directory
Admins-MBP:
DKINGPHOTOGRAPHI$ show content /usr/local/lib
-bash: show: command not found
Admins-MBP:
DKINGPHOTOGRAPHI$ /usr/sbin/pcscd—version
-bash: /usr/sbin/pcscd—version: No such file or directory
Admins-MBP:
DKINGPHOTOGRAPHI$ /usr/sbin/pcscd —version
-bash: /usr/sbin/pcscd: No such file or directory
Admins-MBP:
DKINGPHOTOGRAPHI$ sudo ./configure
Password:
sudo: ./configure: command not found
Admins-MBP:
DKINGPHOTOGRAPHI$ sudo make
make: *** No targets specified and no makefile found. Stop.
Admins-MBP:
DKINGPHOTOGRAPHI$ sudo make .configure LIBUSB_CFLAGS=-I/usr/admins/downloads/vieux-master/resources/ipwndfu/libusbfinder
Password:
make: *** No rule to make target `.configure’. Stop.
Admins-MBP:
Источник
Как настроить libusb на Mac OS X?
Я хотел бы попытаться сделать драйвер пользовательского устройства с помощью libusb на Mac, но я запутался, с чего начать. В установщике SDK (который я получил отhttp://www.ellert.se/twain-sane) он сказал что-то о примерах, которые я не мог найти нигде на своем компьютере.
может ли кто-нибудь описать, как настроить libusb для разработки на OS X? Могу ли я использовать Xcode? Что я должен включить в свой код?
3 ответов
Я попытался установить SDK с вышеупомянутого веб-сайта и не смог найти его след после завершения установки. Хотя я нашел некоторые элементы libusb в /usr/local/Developer/SDKs / MacOSX10.6.sdk/usr/ local / я не уверен, что он пришел из этого установщика, поскольку я не мог найти никаких примеров, просто библиотеки, и они были помечены как libusb0.1.4.
С другой стороны, поскольку вы задали свой вопрос с тегом macports, я бы предложил вам использовать его для установки libusb как минимум помещает все в известном месте:
- / opt / local/var/macports / программное обеспечение для установки файлов
- / opt / local / lib для библиотек
- / opt / local / include для заголовочных файлов
Если вы никогда не использовали macports, то после того, как вы системы MacPorts установлен, то вы можете установить libusb с помощью
для установки libusb1.0 или
sudo port install libusb-legacy
для установки libusb0.1.12.
затем вы можете создать проект в Xcode и связать его с libusb -*.библиотека, содержащаяся в /opt/local / lib (в моем каталоге мой файл библиотеки называется libusb-1.0.a так как у меня есть libusb1.0 установлено).
у меня нет большого опыта использования Xcode, поэтому я не могу помочь вам дальше по этому пути. Лично то, что я сделал до сих пор, — это использовать оболочку Python под названием pyusb для быстрого экспериментирования с libusb, поскольку мне не нужно делать установку IDE или установку библиотеки / включить файл с Питон.
UPDATE: ковыряясь в каталоге установки macports для libusb, я не нашел никаких примеров, которые были обломками. Если вы получили это далеко, то я бы предложил перейти непосредственно к источнику для libusb, загрузите и распакуйте файл tar и создайте код, который находится в каталоге примера. Извините за окольный способ получения примеров libusb, но я действительно оценил организацию, которую macports накладывает на установки, которая спасает меня совсем немного боли (например, когда я хочу удалить).
Источник
Как настроить libusb на Mac OS X?
Я хотел бы попытаться создать драйвер устройства пользовательского пространства, используя libusb на Mac, но я не знаю, с чего начать. В инсталляторе SDK (который я получил с http://www.ellert.se/twain-sane) он сказал что-то о примерах, которые я не смог найти нигде на моем компьютере.
Может ли кто-нибудь описать, как мне установить libusb для разработки под OS X? Могу ли я использовать Xcode? Что я должен включить в свой код?
3 ответа
Я попытался установить SDK с вышеупомянутого веб-сайта и не смог найти его след после завершения установки. Хотя я нашел некоторые элементы libusb по адресу /usr/local/Developer/SDKs/MacOSX10.6.sdk/usr/local/, я не уверен, что они были получены от этого установщика, так как я не смог найти примеры, только библиотеки и они были помечены как libusb0.1.4.
С другой стороны, поскольку вы задали свой вопрос с тегом macports, я бы посоветовал вам использовать его для установки libusb, поскольку он по крайней мере помещает все в известное место:
- / opt / local / var / macports / software для установочных файлов
- / opt / local / lib для библиотек
- / opt / local / include для заголовочных файлов
Если вы никогда не использовали macports, то после установки macports вы можете установить libusb, используя
установить libusb1.0 или
sudo port install libusb-legacy
Затем вы можете создать проект в Xcode и связать его с библиотекой libusb-*., Содержащейся в /opt/local/lib (в моем каталоге мой библиотечный файл называется libusb-1.0.a, так как у меня установлена libusb1.0).
У меня нет большого опыта использования XCode, поэтому я не могу помочь вам в дальнейшем. Лично я до сих пор использовал оболочку Python, называемую pyusb, чтобы быстро поэкспериментировать с libusb, поскольку мне не нужно настраивать IDE или настраивать файл библиотеки / включения с Python.
ОБНОВЛЕНИЕ: осматривая каталог установки macports для libusb, я не нашел ни одного примера, который был бы обломом. Если вы продвинулись так далеко, я бы предложил перейти непосредственно к исходному коду libusb, скачать и распаковать файл tar и собрать код, который находится в каталоге примеров. Извините за окольный способ получения примеров libusb, но я действительно оценил организацию, которую macports налагает на установки, что избавляет меня от проблем в будущем (например, когда я хочу удалить).
Источник