Problems with build

194 views
Skip to first unread message

pltr...@gmail.com

unread,
Dec 16, 2015, 4:36:30 PM12/16/15
to pixy_firmware_sdk
Hello guys,
the pixy is a really nice product. Thank you for making it open source.
Rich, I appreciate the extra effort you made converting the source to gcc a lot.

I tried to build the firmware, but at the moment I'm stuck. Could you please help me with the build?

I use LPCXpresso v7.6.2 [Build 326] [2015-02-02] on Windows 7 with 32b version of Cygwin and gcc-core 4.9.3-1, gcc-g++ 5.2.0-1, make 4.1-1 from Cygwin's Devel menu.

I downloaded the gcc branch from Github (pixy-gcc.zip) and imported it to LPCXpresso.
So far so good.

Unfortunately the problems started right after that :o]

When I try to build the "build_this_first" project, LPCXpresso reports one error: makefile:2: recipe for target 'all' failed
The makefile contains three linux shell copy commands
    cp ../common/src/*  ../libpixy_m0/src
    cp ../common/src/*  ../libpixy_m4/src
    cp ../../common/src/*  ../libpixy_m4/src
which are not executed.
  • What do I need to install to get the Linux shell function?
The script should copy contents of the ../common/src and ../../common/src/ directories to /libpixy_mX/src directories
  • Why should it copy only the source files and not the header files?
  • How can this work when the "common" directories are not copied to the workspace at all during import since they do not contain the ".project" files?
I then copied both the source and header files manually to the project directories.
This took care about most of the build errors, but there are still three left:
I am obviously doing something wrong, could you please point me in the right direction?

Rich LeGrand

unread,
Dec 16, 2015, 10:43:24 PM12/16/15
to pixy_firmware_sdk
Hmm, I haven't seen that error before.  It looks like lpcxpresso is calling make and failing for some reason.  I wonder if your installation of cygwin is messing things up -- ie, your cygwin bin directory is part of your path... just making guesses...
Message has been deleted

pltr...@gmail.com

unread,
Dec 17, 2015, 10:33:27 AM12/17/15
to pixy_firmware_sdk
Hello Rich thank you for your quick response.
I reinstalled Cygwin and changed the LPCExpresso workspace to the device directory as you described it in "PixyLPCXpresso.pdf"
Originally I just imported the projects. That operation offcourse did not copy the common directory. This answers the questions from my first post.
It builds without errors now :o]
Reply all
Reply to author
Forward
0 new messages