Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 22625

Re: Using DMAC for custom data instead of DDS on Linux

$
0
0

Hi.

 

I have some news. I was able to send and display custom data, thanks for the tips. I also see that you uploaded the documentation, it's much better I really appreciate it.

 

Therefore, I encountered some troubles to install IIO Oscilloscope. I'm using Ubuntu 14.04 LTS running through a ViMware with a Windows 8.1 host. Instead of this line of command :

sudo apt-get install libgtkdatabox-0.9.1-1-dev libgtk2.0-dev libmatio-dev

I used this one because libgtkdatabox has been upgraded :

sudo apt-get install libgtkdatabox-0.9.2-0-dev libgtk2.0-dev libmatio-dev


Then for installing libiio, I see that now you newly included the line  :

sudo apt-get install libxml2 libxml2-dev bison flex libcdk5-dev libavahi-client-dev

I installed thoses packages and it works.

 

For making IIO Oscilloscope, don't forget libfftw3 :

sudo apt-get install libfftw3-dev

 

Then for making and install IIO Oscilloscope. I encountered this error :

/usr/bin/ld: osc.o: undefined reference to symbol 'cos@@GLIBC_2.2.5'

//lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line

collector2: error: ld returned 1 exit status

make: *** [osc] Error 1

I solved it by adding -lm to "osc:" in the Makefile :

...

     $(CC) $+ $(LDFLAGS) -ldl -rdynamic -o *@ -lm

...

Then other error with fmcomms2.c :

In file included from plugins/fmcomms2.c:33:0:

plugins/./datafile_in.h: In function 'analyse_wavefile':

plugins/./datafile_in.h:169.23: error: dereferencinf pointer to incomplete type

     re = complex_data->Re;

                                ^

...

make : *** [plugins/fmcomms2.so] Error 1

I solved it by commenting the following line in the Makefile. I don't use fmcomms2 personnally and the trouble remains for fmcomms2 users...

PLUGINS=\

  plugins/fmcomms1.so \

  #plugins/fmcomms2.so \

...

 

IIO Oscilloscope is working like a charm.

Thanks for the support.


Viewing all articles
Browse latest Browse all 22625

Trending Articles