简体   繁体   中英

Libxlsxwriter build error on HP-UX

I'm trying to compile a library libxlsxwriter by following instruction available on https://libxlsxwriter.github.io/getting_started.html

I'm on HP-UX dev B.11.31 U ia64 unlimited-user license.

Getting error Make: Must be a separator on rules line 11. Stop.

I followed many options like converting spaces to tab, as this makefile was already shipped with libxlsxwriter - I don't see any tab and space issues.

I've included my (non-modified) makefile which shows end of lines and tabs as well.

DEVX2:libxlsxwriter-master [208] cat -e -t -v Makefile
###############################################################################$
#$
# Makefile for libxlsxwriter library.$
#$
# Copyright 2014-2018, John McNamara, jmcnamara@cpan.org$
#$
$
# Keep the output quiet by default.$
Q=@$
ifdef V$
Q=$
endif$
$
INSTALL_DIR ?= /usr/local$
$
.PHONY: docs tags examples$
$
# Build the libs.$
all :$
ifndef USE_SYSTEM_MINIZIP$
^I$(Q)$(MAKE) -C third_party/minizip$
endif$
ifndef USE_STANDARD_TMPFILE$
^I$(Q)$(MAKE) -C third_party/tmpfileplus$
endif$
^I$(Q)$(MAKE) -C src$
$
# Build the example programs.$
examples :$
^I$(Q)$(MAKE) -C examples$
$
# Clean src and test directories.$
clean :$
^I$(Q)$(MAKE) clean -C src$
^I$(Q)$(MAKE) clean -C test/unit$
^I$(Q)$(MAKE) clean -C test/functional/src$
^I$(Q)$(MAKE) clean -C examples$
^I$(Q)rm -rf docs/html$
^I$(Q)rm -rf test/functional/__pycache__$
^I$(Q)rm -f  test/functional/*.pyc$
^I$(Q)rm -f  lib/*$
ifndef USE_STANDARD_TMPFILE$
^I$(Q)$(MAKE) clean -C third_party/minizip$
endif$
ifndef USE_STANDARD_TMPFILE$
^I$(Q)$(MAKE) clean -C third_party/tmpfileplus$
endif$
$
# Run the unit tests.$
test : all test_functional test_unit$
$
# Test for C++ const correctness on APIs.$
test_const : all$
^I$(Q)$(MAKE) clean -C test/functional/src$
^I$(Q)! $(MAKE) -C test/functional/src CFLAGS=-Wwrite-strings 2>&1 | grep -A 1 "note:"$
$
$
# Run the functional tests.$
test_functional : all$
^I$(Q)$(MAKE) -C test/functional/src$
^I$(Q)py.test test/functional -v$
$
# Run all tests.$
test_unit :$
^I@echo "Compiling unit tests ..."$
ifndef USE_SYSTEM_MINIZIP$
^I$(Q)$(MAKE) -C third_party/minizip$
endif$
ifndef USE_STANDARD_TMPFILE$
^I$(Q)$(MAKE) -C third_party/tmpfileplus$
endif$
^I$(Q)$(MAKE) -C src test_lib$
^I$(Q)$(MAKE) -C test/unit test$
$
# Test the functional test exes with valgrind (in 64bit mode only).$
test_valgrind : all$
ifndef NO_VALGRIND$
^I$(Q)$(MAKE) -C test/functional/src test_valgrind$
^I$(Q)$(MAKE) -C examples test_valgrind$
endif$
$
# Minimal target for quick compile without creating the libs.$
test_compile :$
^I$(Q)$(MAKE) -C src^Itest_compile$
$
# Indent the source files with the .indent.pro settings.$
indent:$
^I$(Q)gindent src/*.c include/*.h include/xlsxwriter/*.h$
$
tags:$
^I$(Q)rm -f TAGS$
^I$(Q)etags src/*.c include/*.h include/xlsxwriter/*.h$
$
# Build the doxygen docs.$
doc: docs$
docs:$
^I$(Q)$(MAKE) -C docs$
$
# Simple minded install.$
install: all$
^I$(Q)mkdir -p        $(INSTALL_DIR)/include$
^I$(Q)cp -R include/* $(INSTALL_DIR)/include$
^I$(Q)mkdir -p        $(INSTALL_DIR)/lib$
^I$(Q)cp lib/*        $(INSTALL_DIR)/lib$
$
# Simpler minded uninstall.$
uninstall:$
^I$(Q)rm -rf $(INSTALL_DIR)/include/xlsxwriter*$
^I$(Q)rm     $(INSTALL_DIR)/lib/libxlsxwriter.*$
$
# Strip the lib files.$
strip:$
^I$(Q)strip lib/*$
$
# Run a coverity static analysis.$
coverity:$
ifndef USE_SYSTEM_MINIZIP$
^I$(Q)$(MAKE) -C third_party/minizip$
endif$
ifndef USE_STANDARD_TMPFILE$
^I$(Q)$(MAKE) -C third_party/tmpfileplus$
endif$
^I$(Q)$(MAKE) -C src clean$
^I$(Q)rm -f  lib/*$
^I$(Q)rm -rf  cov-int$
^I$(Q)rm -f libxlsxwriter-coverity.tgz$
^I$(Q)../../cov-analysis-linux64-8.7.0/bin/cov-build --dir cov-int make -C src libxlsxwriter.a$
^I$(Q)tar -czf libxlsxwriter-coverity.tgz cov-int$
^I$(Q)$(MAKE) -C src clean$
^I$(Q)rm -f  lib/*$
$
# Run a scan-build static analysis.$
scan_build:$
ifndef USE_SYSTEM_MINIZIP$
^I$(Q)$(MAKE) -C third_party/minizip$
endif$
ifndef USE_STANDARD_TMPFILE$
^I$(Q)$(MAKE) -C third_party/tmpfileplus$
endif$
^I$(Q)$(MAKE) -C src clean$
^I$(Q)rm -f  lib/*$
^I$(Q)scan-build make -C src libxlsxwriter.a$
^I$(Q)$(MAKE) -C src clean$
^I$(Q)rm -f  lib/*$
$
spellcheck:$
^I$(Q)for f in docs/src/*.dox;         do aspell --lang=en_US --check $$f; done$
^I$(Q)for f in include/xlsxwriter/*.h; do aspell --lang=en_US --check $$f; done$
^I$(Q)for f in src/*.c;                do aspell --lang=en_US --check $$f; done$
^I$(Q)for f in examples/*.c;           do aspell --lang=en_US --check $$f; done$
^I$(Q)aspell --lang=en_US --check Changes.txt$
^I$(Q)aspell --lang=en_US --check Readme.md$
$
releasecheck:$
^I$(Q)dev/release/release_check.sh$
$
release: releasecheck$
^I@echo$
^I@echo "Pushing to git master ..."$
^I$(Q)git push origin master$
^I$(Q)git push --tags$
$
^I@echo$
^I@echo "Pushing updated docs ..."$
^I$(Q)make -C ../libxlsxwriter.github.io release$
$
^I@echo$
^I@echo "Pushing the cocoapod ..."$
^I$(Q)pod trunk push libxlsxwriter.podspec --use-libraries$
$
^I@echo$
^I@echo "Finished. Opening files."$
^I$(Q)open http://libxlsxwriter.github.io/changes.html$
^I$(Q)open http://cocoadocs.org/docsets/libxlsxwriter$
^I$(Q)open https://github.com/jmcnamara/libxlsxwriter$
^I$(Q)open https://github.com/jmcnamara/libxlsxwriter/releases$

您可能需要使用gmake代替FreeBSD和OpenBSDmake或使用cmake

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM