You are not logged in.

#1 2015-01-09 08:37:23

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Ubuntu package libusb-dev & libusb-1.0.0-dev

I need packages libusb-dev and libusb-1.0-0-dev (in some setup file). I already know that Arch supplies no *-dev packages so on Arch these packages should probably read libusb (I found it and installed it) and libusb-1.0-0 (Is this name wrong? On Ubuntu I can install this using sudo apt-get install libusb-1.0.0-dev - mind the dot between two zeroes instead of minus sign).

I haven't found package libusb-1.0.0 or libusb-1.0-0  inside Arch packages / AUR. I need an advice.

Last edited by 71GA (2015-01-09 08:38:08)


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#2 2015-01-09 08:46:03

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: Ubuntu package libusb-dev & libusb-1.0.0-dev

Arch also doesn't supply old, out of date libraries unless absolutely necessary. You have libusb, which is the current 1.0 library. If you need the old one, it is available in the AUR as libusb0.

Last edited by Scimmia (2015-01-09 08:47:57)

Offline

#3 2015-01-09 09:02:03

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: Ubuntu package libusb-dev & libusb-1.0.0-dev

Scimmia wrote:

Arch also doesn't supply old, out of date libraries unless absolutely necessary. You have libusb, which is the current 1.0 library. If you need the old one, it is available in the AUR as libusb0.

I allso thought of that... The problem is that on Ubuntu a script, which I am trying to port to Archlinux, installs both - libusb-dev and afterwards libusb-1.0.0-dev. It installs them like this:

add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe" 
apt-get update
apt-get install cmake libusb-dev libusb-1.0.0-dev build-essential swig python-dev tcl8.5 expect iperf xinetd tftp tftpd git -y

I assume that in the end user gets only the older library and all the functionality of the newer one is lost due to deletion of it? In this case on Archlinux installing usblib would be enough.

Last edited by 71GA (2015-01-09 09:03:16)


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#4 2015-01-09 09:08:06

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: Ubuntu package libusb-dev & libusb-1.0.0-dev

Why would you assume that? I don't see any conflicts.

Edit: Looks like the old version is in the repos, I just missed it: https://www.archlinux.org/packages/extr … sb-compat/

Last edited by Scimmia (2015-01-09 09:12:11)

Offline

#5 2015-01-09 10:23:34

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: Ubuntu package libusb-dev & libusb-1.0.0-dev

Scimmia wrote:

Why would you assume that? I don't see any conflicts.

IDK. Doesn't an install of newer library delete the older one? Like with applications...

Scimmia wrote:

Edit: Looks like the old version is in the repos, I just missed it: https://www.archlinux.org/packages/extr … sb-compat/

So in my case I should install libusb and libusb-compact?

Last edited by 71GA (2015-01-09 10:24:08)


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#6 2015-01-09 12:48:59

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Ubuntu package libusb-dev & libusb-1.0.0-dev

What exactly are you trying to do? Or to put it another way, what does this script do?

Offline

#7 2015-01-11 08:33:45

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: Ubuntu package libusb-dev & libusb-1.0.0-dev

tomk wrote:

What exactly are you trying to do? Or to put it another way, what does this script do?

It will extract some files, create some folders, install missing packages and then it will setup TFTP server
and run an application. Why is this relevant? I only need the packages...


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#8 2015-01-11 09:27:11

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: Ubuntu package libusb-dev & libusb-1.0.0-dev

But the packages in Arch does not corresponds exactly to the Ubuntu one? If you want to port a script it is important to understand exactly what this script requires/do. It seems very strange that a single script need two versions of the same library. Try running the script and if you encounter any errors, try to figure out what files the script requires. If you want to know which package provides a file, pkgfile can do that.

Offline

#9 2015-01-11 11:00:25

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: Ubuntu package libusb-dev & libusb-1.0.0-dev

olive wrote:

But the packages in Arch does not corresponds exactly to the Ubuntu one?

And thats all I need... connection between names.  Otherwise I will just write my own PKGBUILD for makepkg using source files... At this time it seems like the best idea to me... 

Why do we change package names so much that we can't even find them... Weird...


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#10 2015-01-11 14:12:56

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Ubuntu package libusb-dev & libusb-1.0.0-dev

You completely missed the point there. I wanted to know what your ultimate objective is - hence the question "What exactly are you trying to do?". I guess I should have left out the second question about the script. smile

So again - what is all this stuff meant to achieve i.e. after you extract some files, create some folders, install missing packages and setup a TFTP server, what will all that enable you to do? This question is relevant because the best way to do it in an Arch environment could be completely different to that Ubuntu solution you're attempting to shoehorn in.

Offline

#11 2015-01-11 14:26:04

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: Ubuntu package libusb-dev & libusb-1.0.0-dev

tomk wrote:

You completely missed the point there. I wanted to know what your ultimate objective is - hence the question "What exactly are you trying to do?". I guess I should have left out the second question about the script. smile

So again - what is all this stuff meant to achieve i.e. after you extract some files, create some folders, install missing packages and setup a TFTP server, what will all that enable you to do? This question is relevant because the best way to do it in an Arch environment could be completely different to that Ubuntu solution you're attempting to shoehorn in.

I have to install a program which will not work unless I install its dependancies. On Ubuntu I can dependancies while I can't find them on Arch. Thats the core of the problem.


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#12 2015-01-11 14:30:01

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,420
Website

Re: Ubuntu package libusb-dev & libusb-1.0.0-dev

Schoolbook XY-problem. Are you finally going to post the script you're trying to use?


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#13 2015-01-11 16:34:45

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Ubuntu package libusb-dev & libusb-1.0.0-dev

71GA wrote:

I have to install a program

... which program?

Offline

Board footer

Powered by FluxBB