Error when compiling "Make" in /root/RedPitaya-master/scpi-server/src

Applications, development tools, FPGA, C, WEB
Post Reply
asw
Posts: 2
Joined: Fri Oct 16, 2020 1:33 pm

Error when compiling "Make" in /root/RedPitaya-master/scpi-server/src

Post by asw » Fri Oct 16, 2020 2:46 pm

Hello community,

I am on the device using a SSH connection (PuttY)
When I compile the scpi-server using Makefile in the folder /root/RedPitaya-master/scpi-server/src I receive following error:

scpi-commands.c:236:18: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
.registers = scpi_regs,
^
scpi-commands.c:236:18: note: (near initialization for ‘scpi_context.registers[0]’)
scpi-commands.c:236:18: error: initializer element is not computable at load time
scpi-commands.c:236:18: note: (near initialization for ‘scpi_context.registers[0]’)
scpi-commands.c:238:12: warning: missing braces around initializer [-Wmissing-braces]
.idn = {"REDPITAYA", "INSTR2020", NULL, "01-02"},
^
scpi-commands.c:238:12: note: (near initialization for ‘scpi_context.idn’)
scpi-commands.c:229:23: warning: missing braces around initializer [-Wmissing-braces]
scpi_t scpi_context = {
^
scpi-commands.c:229:23: note: (near initialization for ‘scpi_context’)
Makefile:77: recipe for target '../obj/scpi-commands.o' failed
make[1]: *** [../obj/scpi-commands.o] Error 1
make[1]: Leaving directory '/root/RedPitaya-master/scpi-server/src'
Makefile:25: recipe for target 'scpi-server' failed
make: *** [scpi-server] Error 2

HELP?!

ASW

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: Google [Bot] and 10 guests