<< return to Pixycam.com

2.3.2. Line Identification Example (GetLinesCPPDemo)

Hello,
I am trying to run the line identification example, but I get following message.
Can anybody help me?
Thanks.

pi@raspberrypi:~ $ ./pixy2/scripts/build_get_lines_cpp_demo.sh
########################################################################################

Building Get Lines CPP Demo…

########################################################################################
Linux raspberrypi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux
mkdir: cannot create directory ‘…/build’: Permission denied
mkdir: cannot create directory ‘…/build/get_lines_cpp_demo’: No such file or directory
rm: cannot remove ‘…/build/get_lines_cpp_demo/get_lines_cpp_demo’: No such file or directory
./pixy2/scripts/build_get_lines_cpp_demo.sh: line 30: cd: …/src/host/libpixyusb2_examples/get_lines_cpp_demo: No such file or directory
make: *** No targets specified and no makefile found. Stop.
mv: cannot stat ‘./get_lines_cpp_demo’: No such file or directory
FAILURE
pi@raspberrypi:~ $

Hmm, it looks like it’s having trouble creating the build directory in your pixy2 directory:

mkdir: cannot create directory ‘…/build’: Permission denied

This could be due to the pixy2 directory being owned by root or another user.

Edward

Thanks Edward.
I’m sorry but I’m a beginner. Could kindly tell me how to solve this issue?
Best regards.
Hernán.

Hello,
I’m not sure what is going wrong. Be sure to follow the steps on this page closely:

https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:building_the_libpixyusb_example_on_linux

If you skip a step, or just go into the scripts directory and run a script, you’ll likely end up with an error.

Edward