I recently downloaded ps3000a.tgz and attempted to capture some samples with a 3204A under 64-bit Fedora, and quite disappointedly PS3000Acon segfaults when attempting to do a capture...
The steps I took were:
a) untar ps3000a.tgz
b) unarchive libusbpico_1.0-1_i386.deb with "ar xv"
b1) copy include files to /usr/local/include
b2) copy 32-bit libraries to /usr/local/lib
c) unarchive ps3000alinux_1.1-1_i386.deb with "ar xv"
c1) copy include files to /usr/local/include
c2) copy 32-bit libraries to /usr/local/lib
d) this requires glibc-devel.i686 and libgcc.i686 installed on 64-bit fedora
e) PS3000Acon.c has incorrect header #included
e1) there is a version mismatch #include <libps3000a-1.0/ps3000aApi.h>
should read #include <libps3000a-1.1/ps3000aApi.h> since the archive comes with libps3000a-1.1
e2) change #include version 1.0 to 1.1
f) compile PS3000Acon
f1) gcc -m32 PS3000Acon.c -oPS3000Acon -lps3000a -lusb_pico-1.0
f2) compile successful
g) run PS3000Acon
h) SIGSEVG in libps3000a.so.1
i) gdb is useless since no symbols:
#0 0xf7e858d8 in ?? () from /usr/local/lib/libps3000a.so.1
#1 0xf7e75195 in ?? () from /usr/local/lib/libps3000a.so.1
#2 0xf7e686f8 in ?? () from /usr/local/lib/libps3000a.so.1
#3 0xf7e64d65 in ?? () from /usr/local/lib/libps3000a.so.1
#4 0xf7e8536f in ?? () from /usr/local/lib/libps3000a.so.1
#5 0x4ed49adf in start_thread () from /lib/libpthread.so.0
#6 0x4ec4f42e in clone () from /lib/libc.so.6
j) whatever the opposite of PROFIT! is...
Where's the source?!
Post your Linux discussions here
2 posts • Page 1 of 1