Bug 1160 - Visa library not detected.
Summary: Visa library not detected.
Status: CONFIRMED
Alias: None
Product: libsigrok
Classification: Unclassified
Component: Build system (show other bugs)
Version: 0.5.0
Hardware: x86 Linux
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-13 14:00 CEST by HoracioDos
Modified: 2018-04-13 15:08 CEST (History)
1 user (show)



Attachments
config.log + visa package details + lsb_release (90.12 KB, text/x-log)
2018-04-13 14:00 CEST, HoracioDos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description HoracioDos 2018-04-13 14:00:11 CEST
Created attachment 409 [details]
config.log + visa package details + lsb_release

Visa library is installed but isn't detected by ./configure in libsigrok.
Comment 1 Uwe Hermann 2018-04-13 15:08:18 CEST
That's an upstream "bug" in librevisa (we could in theory use a non-pkg-config based detection in libsigrok), it doesn't ship with a .pc file for pkg-config, see e.g.

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749144

The library is not actively maintained anyway apparently, last release was 2013, we might want to consider to use something else or integrate some code into libsigrok directly at some point. I'm also pretty sure nobody has used the VISA code in libsigrok in the last 5 years or so, not sure if it would work (or how much of it would work).

Anyway, if you do want to test the current state either way you can manually create a librevisa.pc file and copy it to e.g. /usr/lib/x86_64-linux-gnu/pkgconfig.

Contents e.g. something like this:

prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib/x86_64-linux-gnu
includedir=${prefix}/include

Name: librevisa
Description: 
Version: 0.0.20130812
Libs:  -L${libdir} -lvisa
Cflags: -I${includedir}