scpi-server issues

Applications, development tools, FPGA, C, WEB
Post Reply
simone.mannori
Posts: 1
Joined: Wed Jun 22, 2016 8:04 am

scpi-server issues

Post by simone.mannori » Sun Nov 26, 2017 8:39 am

I have just finished my first FPGA complete design (lock-in amplifier) starting with http://antonpotocnik.com/?p=487360 tutorials. I would like to customize the scpi-server and scpi-parser code in order to support my new custom instruments and make it available to Matlab clients.
I have a fresh & clean Ubuntu 16.04 installation (Virtualbox). For start, I ha followed the instructions here:
http://redpitaya.readthedocs.io/en/late ... cpi-server.
"make api" works without errors BUT it does NOT produce any "scpi-server/scpi-server " executable.
Therefore, I have cloned the scpi-parser and compiled it successfully.
Then, I have tried to compile manually the scpi-server with "make clean all".
Unfortunately the compilation stops with several errors and warnings (please see below for the details).

Question:"What I need to do in order to recompile (cross-compile) the code from the source?"

Thanks in advance for your help ...

Simone Mannori - ENEA Frascati - ITALY

//**------------------------------------------------------------------------

Error messages at compile time

make[1]: Entering directory '/home/simone/redpitaya/RedPitaya/scpi-server/src'
arm-linux-gnueabihf-gcc -c -g -std=gnu99 -Wall -Werror -fPIC -I../../api/include -DVERSION=0.00-0000 -DREVISION=devbuild -I../scpi-parser/libscpi/inc -I../../api/include scpi-commands.c -o ../obj/scpi-commands.o
scpi-commands.c:229:18: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
.registers = scpi_regs,
^
scpi-commands.c:229:18: note: (near initialization for 'scpi_context.registers[0]')
scpi-commands.c:229:18: error: initializer element is not computable at load time
scpi-commands.c:229:18: note: (near initialization for 'scpi_context.registers[0]')
scpi-commands.c:231:12: error: missing braces around initializer [-Werror=missing-braces]
.idn = {"REDPITAYA", "INSTR2014", NULL, "01-02"},
^
scpi-commands.c:231:12: note: (near initialization for 'scpi_context.idn')
scpi-commands.c:222:23: error: missing braces around initializer [-Werror=missing-braces]
scpi_t scpi_context = {

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 25 guests