SDK bash script run.sh runs with errors and fails

Just about everything about Red Pitaya
Post Reply
Gulzt
Posts: 9
Joined: Thu Sep 17, 2015 1:47 pm

SDK bash script run.sh runs with errors and fails

Post by Gulzt » Wed Oct 07, 2015 1:58 pm

This is the README.md file of the Red Pitaya SDK:
https://github.com/RedPitaya/RedPitaya/ ... /README.md

I followed the steps. Made a test.c file using the template and only added a command to turn a LED on.

the tutorial didn't mention I have to install sshpass, but fair enough, I could figure that out.

When I run the command with my Red Pitaya IP:
./run.sh 10.31.97.239 test.c

I get the following output:

Code: Select all

EXECUTING RED PITAYA RUN SCRIPT...

COPYING RED PITAYA INCLUDES...

COMPILING SOURCE FILE...
rm -f test *.o ~*
rm -f -r target
rm -f sdk.zip
make: *** No rule to make target 'all'.   Stop.
EXECUTING REMOTE FILE...
OUTPUT:
----------
/home/paul/Programs/RedpItaya/SDK/test: No such file or directory
bash: /tmp/test: No such file or directory

----------
REMOVING ARTIFACTS...
rm -f test *.o ~*
rm -f -r target
rm -f sdk.zip
Why is there no target 'all'?

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: SDK bash script run.sh runs with errors and fails

Post by Nils Roos » Wed Oct 07, 2015 11:51 pm

It looks like the run.sh script and the Makefile are not quite working yet.

The Makefile is missing the actual compilation. The target "install" should have additional lines like:

Code: Select all

install:
	mkdir -p target
	cp -r install.sh run.sh create_template.sh ../api/rpbase/src/rp.h Makefile_target ./target/
	cd target; mv Makefile_target Makefile
	make -C target all
	cd target; zip $(INSTALL_NAME) *; cp $(INSTALL_NAME) $(INSTALL_DIR)
and in run.sh it ought to be called like:

Code: Select all

else
  make clean TARGET=$EXECUTABLE
  make install OBJECT=$2 TARGET=$EXECUTABLE
fi
(I have not tested that it works like this, it's just to give you some pointers what to try)

Gulzt
Posts: 9
Joined: Thu Sep 17, 2015 1:47 pm

Re: SDK bash script run.sh runs with errors and fails

Post by Gulzt » Tue Oct 13, 2015 9:13 am

Thanks, sorry for not responding. I was so frustrated with the process, I went back to version 0.92, setup a samba connection and sharing the web folder on the pitaya.

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 45 guests