AnsweredAssumed Answered

iio-oscilloscope install error

Question asked by AnhDat on Jan 8, 2015
Latest reply on Jan 14, 2015 by AnhDat

Running fresh VM install of ubuntu 14.04 LTS 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

 

Followed instructions exactly on IIO Oscilloscope [Analog Devices Wiki] and What is libiio? [Analog Devices Wiki]

 

I receive the following error when running "make" from within the iio-oscilloscope directory after completing successfully all prior steps/dependencies:

 

iio-oscilloscope$ make

gcc osc.o oscplot.o datatypes.o int_fft.o iio_widget.o fru.o dialogs.o trigger_dialog.o xml_utils.o libini/libini.o libini2.o dac_data_manager.o -pthread -I//usr/include/glib-2.0 -I//usr/lib/x86_64-linux-gnu/glib-2.0/include -I//usr/include/gtk-2.0 -I//usr/lib/x86_64-linux-gnu/gtk-2.0/include -I//usr/include/atk-1.0 -I//usr/include/cairo -I//usr/include/gdk-pixbuf-2.0 -I//usr/include/pango-1.0 -I//usr/include/gio-unix-2.0/ -I//usr/include/freetype2 -I//usr/include/pixman-1 -I//usr/include/libpng12 -I//usr/include/harfbuzz -I//usr/include/libxml2   -I//usr/include -fPIC -Wall -g -std=gnu90 -D_GNU_SOURCE -O2 -DPREFIX='"/usr/local"' -DOSC_VERSION=\"master-g0ddb67b\" -pthread -lgthread-2.0 -lgtkdatabox -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfontconfig -lfreetype -lgobject-2.0 -lglib-2.0 -lfftw3 -liio -lxml2   -L//usr/lib -lmatio -lz -lm -ldl -shared -o libosc.so

/usr/bin/ld: //usr/lib/libiio.a(channel.c.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC

//usr/lib/libiio.a: error adding symbols: Bad value

collect2: error: ld returned 1 exit status

make: *** [libosc.so] Error 1

 

 

-----

iio-oscilloscope project git is currently pointing to:

Author: Dan Nechita <dan.nechita@analog.com>  2015-01-06 08:40:17

Committer: Dan Nechita <dan.nechita@analog.com>  2015-01-06 08:40:17

Parent: 1ec19da4c74723882dde9a567011c22f4147694b (oscplot: Add single shot data capture)

Branches: master, remotes/origin/master

 

Any ideas?  Thanks!

Outcomes