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

can't build libmfluaotfcc.lib #2

Open
ostaith opened this issue Apr 10, 2023 · 0 comments
Open

can't build libmfluaotfcc.lib #2

ostaith opened this issue Apr 10, 2023 · 0 comments

Comments

@ostaith
Copy link

ostaith commented Apr 10, 2023

Hi aminophen, I've read your BUILDING.md, and I can build dvipdfmx.dll in ktx.

But when I try to build xetex in ptx, I can't build libmfluaotfcc.lib in ptx\texk\web2c\mfluadir\otfcc directory.

But libmfluaotfcc.lib is used by mflua.exe in ptx\texk\web2c. so I'm stuck.

following is libmfluaotfcc.lib build log:

C:\w32tex\ptx\texk\web2c\mfluadir\otfcc>make
cp axis.d lib/vf/axis.d
cp vq.d lib/vf/vq.d
cp type.d lib/table/vdmx/type.d
cp gasp.d lib/table/gasp.d
cp CPAL.d lib/table/CPAL.d
cp glyf.d lib/table/glyf/glyf.d
cp otl.d lib/table/otl/otl.d
cl -D_CARYLL_USE_PRE_SERIALIZED -DMAIN_VER=0 -DSECONDARY_VER=10 -DPATCH_VER=4 -DJIT -DWIN32=1  -Isrc -Iinclude -Iinclude/dep -Ilib -Igetopt -nologo -O2 -MT -Zc:preprocessor -c -Foobj/lib/support/glyph-order.obj lib/support/glyph-order.c
cl : Command line warning D9002 : ignoring unknown option '-Zc:preprocessor'
glyph-order.c
lib/support/glyph-order.c(17): warning C4003: not enough arguments for function-like macro invocation '__ARG_N'
lib/support/glyph-order.c(17): error C2081: 'initGlyphOrder': name in formal parameter list illegal
lib/support/glyph-order.c(17): error C2081: 'disposeGlyphOrder': name in formal parameter list illegal
lib/support/glyph-order.c(17): error C2055: expected formal parameter list, not a type list
lib/support/glyph-order.c(17): error C2085: 'otfcc_GlyphOrder_create': not in formal parameter list
lib/support/glyph-order.c(17): error C2143: syntax error: missing ';' before '{'
lib/support/glyph-order.c(17): warning C4047: 'return': 'int' differs in levels of indirection from 'otfcc_GlyphOrder *'
lib/support/glyph-order.c(114): error C2065: 'otfcc_GlyphOrder_copy': undeclared identifier
lib/support/glyph-order.c(114): error C2065: 'otfcc_GlyphOrder_move': undeclared identifier
lib/support/glyph-order.c(114): error C2065: 'otfcc_GlyphOrder_replace': undeclared identifier
lib/support/glyph-order.c(114): error C2065: 'otfcc_GlyphOrder_copyReplace': undeclared identifier
lib/support/glyph-order.c(114): error C2065: 'otfcc_GlyphOrder_create': undeclared identifier
lib/support/glyph-order.c(113): warning C4113: 'int (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(otfcc_GlyphOrder *)'
lib/support/glyph-order.c(113): error C2099: initializer is not a constant
lib/support/glyph-order.c(113): warning C4113: 'int (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(otfcc_GlyphOrder *,const otfcc_GlyphOrder *)'
lib/support/glyph-order.c(113): warning C4113: 'void (__cdecl *)(otfcc_GlyphOrder *)' differs in parameter lists from 'void (__cdecl *)(otfcc_GlyphOrder *,otfcc_GlyphOrder *)'
lib/support/glyph-order.c(113): warning C4113: 'sds (__cdecl *)(otfcc_GlyphOrder *,glyphid_t,sds)' differs in parameter lists from 'void (__cdecl *)(otfcc_GlyphOrder *)'

lib/support/glyph-order.c(113): warning C4047: 'initializing': 'void (__cdecl *)(otfcc_GlyphOrder *)' differs in levels of indirection from 'sds (__cdecl *)(otfcc_GlyphOrder *,glyphid_t,sds)'
lib/support/glyph-order.c(113): warning C4113: 'bool (__cdecl *)(otfcc_GlyphOrder *,sds,glyphid_t)' differs in parameter lists from 'void (__cdecl *)(otfcc_GlyphOrder *,const otfcc_GlyphOrder)'
lib/support/glyph-order.c(113): warning C4113: 'bool (__cdecl *)(otfcc_GlyphOrder *,glyphid_t,sds *)' differs in parameter lists from 'void (__cdecl *)(otfcc_GlyphOrder *,const otfcc_GlyphOrder)'
lib/support/glyph-order.c(113): warning C4047: 'initializing': 'otfcc_GlyphOrder *(__cdecl *)()' differs in levels of indirection from 'bool (__cdecl *)(otfcc_GlyphOrder *,glyph_handle *)'
lib/support/glyph-order.c(113): warning C4113: 'bool (__cdecl *)(otfcc_GlyphOrder *,sds)' differs in parameter lists from 'void (__cdecl *)(otfcc_GlyphOrder *)'
make: *** [Makefile:346: obj/lib/support/glyph-order.obj] Error 2

It's look like vs2015 can't support C99. and it ignore -Zc:preprocessor option.

How can you build libmfluaotfcc.lib with vs2015?

@ostaith ostaith changed the title libmfluaotfcc.lib can't be built can't build libmfluaotfcc.lib Apr 10, 2023
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

1 participant