VALID_TOOLCHAINS := pnacl glibc clang-newlib win
NACL_SDK_ROOT ?= $(abspath $(CURDIR)/../..)
TARGET = smart_box
LIBS = ppapi_cpp ppapi pthread box_api
CFLAGS = -WallSOURCES = smart_box.cc
PNACL_LDFLAGS += -L$(NACL_SDK_ROOT)/lib/box_api
$(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),$(CFLAGS))))
# The PNaCl workflow uses both an unstripped and finalized/stripped binary.# On NaCl, only produce a stripped binary for Release configs (not Debug).ifneq (,$(or $(findstring pnacl,$(TOOLCHAIN)),$(findstring Release,$(CONFIG))))$(eval $(call LINK_RULE,$(TARGET)_unstripped,$(SOURCES),$(LIBS),$(DEPS)))$(eval $(call STRIP_RULE,$(TARGET),$(TARGET)_unstripped))else$(eval $(call LINK_RULE,$(TARGET),$(SOURCES),$(LIBS),$(DEPS)))endif
$(eval $(call NMF_RULE,$(TARGET),))
C:\nacl_sdk\pepper_49\getting_started\SmartBox>make CXX pnacl/Release/smart_box.o LINK pnacl/Release/smart_box_unstripped.bcpnacl-ld: Cannot find '-lbox_api'Makefile:31: recipe for target 'pnacl/Release/smart_box_unstripped.bc' failedmake: *** [pnacl/Release/smart_box_unstripped.bc] Error -1
> email to native-client-discuss+unsub...@googlegroups.com.
C:\nacl_sdk\pepper_49\getting_started\SmartBox>make
C:/nacl_sdk/pepper_49/toolchain/win_pnacl/bin/pnacl-clang++ -o smart_box.bc smart_box.cc -O2 -IC:/nacl_sdk/pepper_49/include -LC:/nacl_sdk/pepper_49/lib/pnacl/Release -lppapi_cpp -lppapi -LC:/nacl_sdk/pepper_49/lib/box_api -lbox_apipnacl-ld: C:/nacl_sdk/pepper_49/lib/box_api/libbox_api.a: Invalid archive member header magic stringdiges00083.o/ 1492046603 0 0 100666 623 `Makefile:51: recipe for target 'smart_box.bc' failedmake: *** [smart_box.bc] Error -1
C:\nacl_sdk\pepper_49\getting_started\SmartBox>
Do see the commands that make is running can you add VERBOSE=1 to your
> email to native-client-discuss+unsub...@googlegroups.com.