c++ - Makefile Errors -
i've been trying compile makefile on mac , bringing particular error.
first, here folder makefile in: http://www.zezula.net/download/stormlib.zip direct download link. contains file, "makefile.mac", i'm trying run.
so installed command line tools through xcode, , used:
cd ~/downloads/stormlib/ make -f makefile.mac
it showed error:
makefile.mac:87: *** missing separator (did mean tab instead of 8 spaces?). stop.
and yes, i've searched solution this. says add tab beforehand. tried that, , showed:
makefile.mac:87: *** commands commence before first target. stop.
i looked error, , 1 of solutions involved having spaces instead of tabs. i'm confused. should fix it? line 87 looks like:
src/libtomcrypt/src/pk/asn1/der_length_utctime.obj \
thanks , help.
edit: here makefile: http://pastebin.com/ksba5fuv
a version of makefile lines deleted , line 87 marked is:
[9 lines deleted] cpp = g++ cc = gcc cflags = -wall lflags = -lbz2 -lz -framework carbon arch = -arch x86_64 dflags = -d__sys_bzlib -d__sys_zlib -d_7zip_st ar = ar arflags= rcs library = libstorm.dylib objs_cpp = src/adpcm/adpcm.obj \ src/huffman/huff.obj \ [15 lines deleted] src/sfilereadfile.obj \ src/sfileverify.obj objs_c = src/jenkins/lookup3.o \ src/libtomcrypt/src/hashes/hash_memory.obj \ [39 lines deleted] src/libtomcrypt/src/pk/asn1/der_length_sequence.obj \ src/libtomcrypt/src/pk/asn1/der_length_short_integer.obj \ \ src/libtomcrypt/src/pk/asn1/der_length_utctime.obj \ # line 87 \ src/libtomcrypt/src/pk/asn1/der_length_utf8_string.obj \ \ src/libtomcrypt/src/pk/asn1/der_sequence_free.obj \ \ src/libtomcrypt/src/pk/ecc/ltc_ecc_map.obj \ src/libtomcrypt/src/pk/ecc/ltc_ecc_mul2add.obj \ [135 lines deleted] src/pklib/explode.obj \ src/pklib/implode.obj all: $(library) [8 lines deleted] $(library): $(objs_c) $(objs_cpp) $(cpp) $(cflags) $(dflags) $(arch) $(lflags) -shared -o $(library) $(objs_c) $(objs_cpp) # $(ar) $(arflags) $(library) $(objs_c) $(objs_cpp) $(objs_c): %.obj: %.c $(cc) -o $@ $(cflags) $(dflags) -c $< $(objs_cpp): %.obj: %.cpp $(cc) -o $@ $(cflags) $(dflags) -c $<
you need escape blank lines, or remove them entirely:
src/libtomcrypt/src/pk/asn1/der_length_sequence.obj \ src/libtomcrypt/src/pk/asn1/der_length_short_integer.obj \ src/libtomcrypt/src/pk/asn1/der_length_utctime.obj \ src/libtomcrypt/src/pk/asn1/der_length_utf8_string.obj \ src/libtomcrypt/src/pk/asn1/der_sequence_free.obj \ src/libtomcrypt/src/pk/ecc/ltc_ecc_map.obj \ src/libtomcrypt/src/pk/ecc/ltc_ecc_mul2add.obj \
becomes
src/libtomcrypt/src/pk/asn1/der_length_sequence.obj \ src/libtomcrypt/src/pk/asn1/der_length_short_integer.obj \ src/libtomcrypt/src/pk/asn1/der_length_utctime.obj \ src/libtomcrypt/src/pk/asn1/der_length_utf8_string.obj \ src/libtomcrypt/src/pk/asn1/der_sequence_free.obj \ src/libtomcrypt/src/pk/ecc/ltc_ecc_map.obj \ src/libtomcrypt/src/pk/ecc/ltc_ecc_mul2add.obj \
or (this might not work, haven't tested it, should)
src/libtomcrypt/src/pk/asn1/der_length_sequence.obj \ src/libtomcrypt/src/pk/asn1/der_length_short_integer.obj \ \ src/libtomcrypt/src/pk/asn1/der_length_utctime.obj \ \ src/libtomcrypt/src/pk/asn1/der_length_utf8_string.obj \ \ src/libtomcrypt/src/pk/asn1/der_sequence_free.obj \ \ src/libtomcrypt/src/pk/ecc/ltc_ecc_map.obj \ src/libtomcrypt/src/pk/ecc/ltc_ecc_mul2add.obj \
Comments
Post a Comment