> On May 20, 2016, at 8:44 PM, James Burgess <jamesrburg...@mac.com> wrote:
> 
>> If you could figure out which linker gets detected/used and why (and
>> ideally find a fix for libsigrok or the cross-compile script) that would
>> be great!
> I will give it shot!
> 

The first thing I did was get a completely fresh machine (this was happened to 
be a 10.10 machine with Xcode6) and just got everything and compiled it “by 
hand”. I didn’t really expect this to be any different from Xcode7 so I 
expected to get the same error. However it just worked, no issue with 
-whole-archive at all. On this machine I get:

$ pkg-config --libs libsigrok
-L/usr/local/lib -lsigrok -lglib-2.0 -lintl

So I guess the configure problem is with homebrew part or this is an Xcode7 
issue.


However, if anyone wants to build on Mac with just Xcode6 installed, without 
MacPorts or Homebrew, here are the steps I just made:

libusb - download libusb-1.0.20:
$ ./configure ; make ; sudo make install

libzip - download libzip-1.1.2
$ ./configure ; make ; sudo make install

libftdi1-1.2 - 
        requires cmake, download latest 3.5.2 binary
build libftd1 with:
$ export PATH="$PATH":/Applications/CMake.app/Contents/bin
$ cd libftdi1-1.2
$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local ../
$ make ; sudo make install      

glib2 - download glib-2.48.0 ; 

        requires libffi >= 3.0 (not on 10.10)  - download libffi-3.2.1
        $ ./configure ; make ; sudo make install

        requires gettext  - download gettext-0.19.7
        $  ./configure ; make ; sudo make install

        requires pcre > 8.13 (10.10 has 8.02)  - download pcre-8.38
        $ ./configure  --enable-unicode-properties ; make ; sudo make install

build glib2:    
$  ./configure ; make ; sudo make install

Python 3.5.1 - just run the installer from python.org

autoconf - download autoconf-2.69
$  ./configure ; make ; sudo make install

automake - download automake-1.15
$ ./configure ; make ; sudo make install

libtool - download libtool-2.4
$ ./configure ; make ; sudo make install

pkg-config - download pkg-config-0.29.1
$ ./configure ; make ; sudo make install

To get pkg-config to know about python3:
$ export 
PKG_CONFIG_PATH=/Library/Frameworks/Python.framework/Versions/3.5/lib/pkgconfig

for AX_PYTHON_MODULE (used in libsigrok)  download autoconf-archive-2016.03.20
$ ./configure ; make ; sudo make install

Now as the wiki (https://sigrok.org/wiki/Mac_OS_X 
<https://sigrok.org/wiki/Mac_OS_X>) says for libserialport, libsigrok, 
libsigrokdecode and sigrok-cli

then get your firmware, mine is a "CWAV USBee AX” so I got the GPL’d 0.1.3 
firmware from http://sigrok.org/download/binary/sigrok-firmware-fx2lafw/ 
<http://sigrok.org/download/binary/sigrok-firmware-fx2lafw/> and copied the .fw 
files to /usr/local/share/sigrok-firmware directory.

After all that I can do:
$ sigrok-cli --scan
sr: la8/la16: Failed to get product string descriptor: LIBUSB_ERROR_OTHER.
sr: la8/la16: Failed to get product string descriptor: LIBUSB_ERROR_OTHER.
sr: fx2lafw: Failed to get manufacturer string descriptor: LIBUSB_ERROR_OTHER.
sr: fx2lafw: Failed to get manufacturer string descriptor: LIBUSB_ERROR_OTHER.
sr: testo: Failed to get manufacturer string descriptor: LIBUSB_ERROR_OTHER.
sr: testo: Failed to get product string descriptor: LIBUSB_ERROR_OTHER.
sr: testo: Failed to get manufacturer string descriptor: LIBUSB_ERROR_OTHER.
sr: testo: Failed to get product string descriptor: LIBUSB_ERROR_OTHER.
The following devices were found:
demo - Demo device with 12 channels: D0 D1 D2 D3 D4 D5 D6 D7 A0 A1 A2 A3
fx2lafw - CWAV USBee AX with 9 channels: D0 D1 D2 D3 D4 D5 D6 D7 A0

The last line being the interesting one, the actual piece of hardware I have (a 
device called a LHT00SU1). Don’t know what the sr: lines are probably some 
debug code.

- James




------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to