LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-30-2014, 10:00 PM   #1
keithostertag
Member
 
Registered: Jul 2011
Location: Harrisburg, PA
Posts: 127

Rep: Reputation: Disabled
Cmake wants libusb, but don't I already have it?


I am trying to follow instructions to install some software. This is what I've done so far:

Step 0.1: Open a Terminal window, and type:
sudo apt-get install libusb-1.0-0-dev
Step 0.2: Type: sudo apt-get install git
Step 0.3: type: sudo apt-get install cmake

Now install the rtl-sdr software in Step 1.
Step 1.1: Open a Terminal window, and type:
cd ~
mkdir rtl-sdr
Step 1.2: Get the rtl-sdr software:
git clone git://git.osmocom.org/rtl-sdr.git
mkdir build
cd build
Step 1.3: Install the rtl-sdr software:
sudo cmake ../rtl-sdr

As that last command runs I get an error saying:

Code:
CMake Error at CMakeLists.txt:69 (message):
  LibUSB 1.0 required to compile rtl-sdr
I have both libusb-0.1-4 and libusb-1.0-0 loaded.

Do I need to edit the CMakeList.txt file, and if so, how?

The instructions are written for Ubuntu, while I am using Debian.

A copy of the file is here:
http://www.strucktower.com/CMakeLists.txt

Full instructions are here:
http://blogs.bu.edu/mhirsch/2012/07/...ver-in-ubuntu/


Thanks,
Keith Ostertag
 
Old 01-31-2014, 08:55 AM   #2
keithostertag
Member
 
Registered: Jul 2011
Location: Harrisburg, PA
Posts: 127

Original Poster
Rep: Reputation: Disabled
After some more looking around (sigh) I thought maybe running ldconfig (as root) would make the necessary links, but it did not.

Anyone?
 
Old 01-31-2014, 10:00 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Is it possible that your code wants the compiled version of libusb-1.0-0 in addtion to/instead of libusb-1.0-0-dev?
jdk
 
Old 01-31-2014, 10:12 AM   #4
keithostertag
Member
 
Registered: Jul 2011
Location: Harrisburg, PA
Posts: 127

Original Poster
Rep: Reputation: Disabled
Thanks JDK- You gave me the answer. Once I downloaded and installed ibusb-1.0-0-dev_1.0.11-1_amd64.deb the cmake process worked. I hadn't realized I needed those as well.

Keith
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to update cmake meet10may Linux - Newbie 1 01-02-2012 01:57 PM
CMake Strange "Install" behaviour with home-grown software [Linux x86_64, CMake 2.8] ajschaeffer Programming 0 10-24-2011 03:21 AM
cmake finding libraries that don't exist ! How is it possible ? Mike Davies Linux - Software 4 06-04-2011 07:59 PM
cmake: Using find_package(Boost) when FindBoost.cmake is not in the default location damien_d Programming 3 10-27-2010 03:40 PM
[SOLVED] ubuntu 9.10 - #include <libusb/libusb.h> stonehinge03 Linux - Newbie 5 04-20-2010 09:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration