Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnitTest++ makefile error #31

Open
kenvernaillenvub opened this issue Mar 18, 2017 · 3 comments
Open

UnitTest++ makefile error #31

kenvernaillenvub opened this issue Mar 18, 2017 · 3 comments

Comments

@kenvernaillenvub
Copy link

When I run mingw32-make on UnitTest++/makefile, I get the following error:

sed: -e expression #1, char 1: unknown command: `''
:0:0: fatal error: when writing output to : Invalid argument
compilation terminated.
mingw32-make: *** [src/AssertException.o] Error 1

Please help :D I really need UnitTesting

@kenvernaillenvub
Copy link
Author

kenvernaillenvub commented Mar 18, 2017

As I am very new to makefiles I'm not really sure, but I think this is causing it:

define make-depend
  $(CXX) $(CXXFLAGS) -M $1 | \
  $(SED) -e 's,\($(notdir $2)\) *:,$(dir $2)\1: ,' > $3.tmp
  $(SED) -e 's/#.*//' \
      -e 's/^[^:]*: *//' \
      -e 's/ *\\$$//' \
      -e '/^$$/ d' \
      -e 's/$$/ :/' $3.tmp >> $3.tmp
  $(MV) $3.tmp $3
endef

What am I doing wrong?

@m-mcgowan
Copy link

you need sed installed. Just so you know, this repo is no longer updated, and represents the protocol to the Particle cloud as used in the Core. for the latest implementation, please see https://github.com/spark/firmware, under the communication folder.

@kenvernaillenvub
Copy link
Author

sed is installed, and I get the same error in the new communication project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants