Bug 583 - PulseView fails to compile under Gentoo Linux
Summary: PulseView fails to compile under Gentoo Linux
Status: RESOLVED FIXED
Alias: None
Product: PulseView
Classification: Unclassified
Component: Build system (show other bugs)
Version: 0.2.0
Hardware: x86 Linux
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-25 18:48 CEST by Andi
Modified: 2016-01-04 00:11 CET (History)
2 users (show)



Attachments
CMakeOutput (42.77 KB, text/x-log)
2015-04-25 18:48 CEST, Andi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andi 2015-04-25 18:48:15 CEST
Created attachment 135 [details]
CMakeOutput

Installing PulseView 0.2.0 under Gentoo Linux fails for me.
I first tried to install PulseView with the package manager but then cmake fails to find libsigrok>=0.3.0. libsigrok-0.3.0 and libsigrokdecode-0.3.0 are installed via the package manager:

 % ls -lh /usr/lib/libsigrok*
 lrwxrwxrwx 1 root root   24 25. Apr 18:30 /usr/lib/libsigrokdecode.so -> libsigrokdecode.so.2.0.0*
 lrwxrwxrwx 1 root root   24 25. Apr 18:30 /usr/lib/libsigrokdecode.so.2 ->  libsigrokdecode.so.2.0.0*
-rwxr-xr-x 1 root root  48K 25. Apr 18:30 /usr/lib/libsigrokdecode.so.2.0.0*
 lrwxrwxrwx 1 root root   18 25. Apr 18:26 /usr/lib/libsigrok.so -> libsigrok.so.2.0.0*
 lrwxrwxrwx 1 root root   18 25. Apr 18:26 /usr/lib/libsigrok.so.2 -> libsigrok.so.2.0.0*
 -rwxr-xr-x 1 root root 545K 25. Apr 18:26 /usr/lib/libsigrok.so.2.0.0*

 # pkg-config --modversion libsigrok
 0.3.0 


Then I downloaded pulseview-0.2.0.tar.gz and tried to compile manually and get the same error:
http://pastebin.com/jcmTw4Ve
CMakeOutput.log is in the attachment.

I am a litte bit wondered about the library files ending with .2.0.0, I would have expected something with a 3 for Version 0.3.0. From the Gentoo side, it seems no one is able to help me, so I would like to try my luck here...
Comment 1 Uwe Hermann 2015-06-13 15:11:28 CEST
Hi,

the numbers in the *.so* library files are unrelated to the package version (0.3.0), that's correct and not the problem.

It does indeed look like cmake is not finding libsigrok even though it should, since pkg-config seems to find it correctly.

Can you provide the exact versions of all the tools (cmake, gcc, g++, pkg-config, and so on)? Maybe we can try to reproduce this, though the build has worked fine for various people on various platforms.

Please do make sure that you don't mix any libraries and programs. Don't keep package manager libs around at the same time as manually built ones in /usr/local or elsewhere. Don't mix tarball releases of sigrok libs+programs with git versions of those, etc. etc.

Hope that helps, let us know if you can still reproduce this and/or have additional info. Thanks!
Comment 2 Uwe Hermann 2016-01-04 00:11:40 CET
Marking this as closed, it's very likely to be an issue of library mixups or missing PKG_CONFIG_PATH or the like.

Please report back with more info if this is still reproducible with latest git versions of everything.