./configure ругается:
Код: Выделить всё
checking for USB... no
configure: error: *** Required libusb-1.0 >= 1.0.0 not installed ***
В чем проблмма?
Код: Выделить всё
checking for USB... no
configure: error: *** Required libusb-1.0 >= 1.0.0 not installed ***
Скорее всего у вас система x86_64, и значит нужно устанавливать библиотеку lib64usb1.0-devel.sanstorm писал(а):Библиотеку libusb1.0-devel из репозитория установил.
В чем проблмма?
Код: Выделить всё
rpm -qa | grep lib64usbx
lib64usbx1.0_0-1.0.18-1-rosa2014.1.x86_64
lib64usbx1.0-devel-1.0.18-1-rosa2014.1.x86_64
lib64usbx1.0-static-devel-1.0.18-1-rosa2014.1.x86_64
Я раза так три просил тут. Коллега в группе в ВК.tverskoy писал(а):заявку подай- соберут
Да, тоже сталкивался с этим. libusbx это актуальная версия, а libusb более не развивается.Yamah писал(а):Нужна библиотека libusbx (lib64usbx) и devel к ней.
Код: Выделить всё
#
# spec file for package stlink
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: stlink
Version: 1.1.0
Release: 7.7
Summary: STM32 discovery line linux programmer
License: BSD-3-Clause
Group: Development/Tools
Url: https://github.com/texane/stlink
Source0: https://github.com/texane/stlink/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: udev
BuildRequires: pkgconfig(libusb-1.0)
Requires: udev
%description
STLINK v1/v2 JTAG/SWD debugging/flashing tool for STM32 microcontrollers.
%package gui
Summary: GUI for STM32 discovery line linux programmer
Group: Development/Tools
Requires: %{name} = %{version}
%description gui
STLINK v1/v2 JTAG/SWD debugging/flashing tool for STM32 microcontrollers.
%prep
%setup -q
%build
autoreconf -fi
%configure \
--with-gtk
make %{?_smp_mflags}
%install
%make_install
install -d %{buildroot}/%{_udevrulesdir}/
install -D -m 0644 49-stlink*.rules %{buildroot}/%{_udevrulesdir}/
%files
%defattr(-,root,root)
%doc COPYING README
%{_bindir}/st-*
%{_udevrulesdir}/49-stlink*
%files gui
%defattr(-,root,root)
%{_bindir}/stlink-gui
%{_datadir}/stlink/