core-communication-lib icon indicating copy to clipboard operation
core-communication-lib copied to clipboard

UnitTest++ makefile error

Open kenvernaillenvub opened this issue 8 years ago • 3 comments

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 avatar Mar 18 '17 11:03 kenvernaillenvub

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?

kenvernaillenvub avatar Mar 18 '17 12:03 kenvernaillenvub

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.

m-mcgowan avatar Mar 18 '17 13:03 m-mcgowan

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

kenvernaillenvub avatar Mar 18 '17 13:03 kenvernaillenvub