sfnt2fnt *Error* while compiling wine 1.7.0

Questions about Wine on Linux
Locked
TrancosArg
Level 1
Level 1
Posts: 6
Joined: Thu Aug 29, 2013 9:57 pm

sfnt2fnt *Error* while compiling wine 1.7.0

Post by TrancosArg »

Hi everyone,

I'm trying to compile the latest wine release having previously applied a patch and I'm getting this error when doing "make".

Code: Select all

make[1]: se ingresa al directorio `/home/ticiano/wine-1.7.0/fonts'
LD_LIBRARY_PATH="../libs/wine:$LD_LIBRARY_PATH" ../tools/sfnt2fnt -o coue1255.fon -d 128 ./courier.ttf 13,1255,8
Error: Cannot open face ./courier.ttf
make[1]: *** [coue1255.fon] Error 1
make[1]: se sale del directorio `/home/ticiano/wine-1.7.0/fonts'
make: *** [fonts] Error 2

After that the program stops. I tried running the sfnt2fnt command manually and get the same output (Error: Cannot open face ./courier.ttf). I think there's some problem with the fonts OS-wide (I saw a couple of warnings saying 'loading fonts from .../50-fonts is deprecated' or something similar but I have no idea what it means :shock:). I also tried opening the .ttf files in wine-1.7.0/fonts and I installed them with the gnome font viewer. Same result-

I'm running Sabayon linux 10 Gnome (AMD64) (Linux 3.7.0-sabayon x86_64 Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz GenuineIntel GNU/Linux). There weren't any weird configuration parameters (only changed the wine prefix location). The patch is a hack to make a game (LoL) work. :twisted:

Is there any more info I should post? I searched the forums on this topic but dind't find anything useful.


Thanks in advance!!!

Saludos desde Argentina,

Ticiano.-
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: sfnt2fnt *Error* while compiling wine 1.7.0

Post by dimesio »

Do you get that error trying to compile unpatched Wine?
TrancosArg
Level 1
Level 1
Posts: 6
Joined: Thu Aug 29, 2013 9:57 pm

Re: sfnt2fnt *Error* while compiling wine 1.7.0

Post by TrancosArg »

No lo había probado (era obvio!) pero sí da el mismo error.

I mean, I hadn't tested it (it was obvious!) but I get the same error message. Here is the output from ./configure (I ran it now on the vanilla wine-1.7.0; without flags), which I hadn't posted before:

Code: Select all

configure: libOSMesa 32-bit development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
configure: OpenCL 32-bit development files not found, OpenCL won't be supported.
configure: libhal 32-bit development files not found, no legacy dynamic device support.
configure: libgphoto2 32-bit development files not found, digital cameras won't be supported.
configure: gstreamer-0.10 base plugins 32-bit development files not found, gstreamer support disabled
configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported.
configure: libcapi20 32-bit development files not found, ISDN won't be supported.

configure: WARNING: prelink not found, base address of core dlls won't be set correctly.

configure: Finished.  Do 'make' to compile Wine.
I don't see any mention to fonts, though.


And here is the make output, with the same error, again:

Code: Select all

[b]make[1]: se ingresa al directorio `/home/ticiano/winetest/wine-1.7.0/fonts'
LD_LIBRARY_PATH="../libs/wine:$LD_LIBRARY_PATH" ../tools/sfnt2fnt -o coue1255.fon -d 128 ./courier.ttf 13,1255,8
Error: Cannot open face ./courier.ttf
make[1]: *** [coue1255.fon] Error 1
make[1]: se sale del directorio `/home/ticiano/winetest/wine-1.7.0/fonts'
make: *** [fonts] Error 2[/b]
make: gcc -m32 -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -DDEFAULT_INCLUDE_DIR=\"/usr/local/include/wine/windows/\"  -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0  -o proxy.o proxy.c
[color=#BF0000]*** Se espera a que terminen otras tareas....[/color]
gcc -m32 -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -DDEFAULT_INCLUDE_DIR=\"/usr/local/include/wine/windows/\"  -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0  -o register.o register.c
gcc -m32 -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -DDEFAULT_INCLUDE_DIR=\"/usr/local/include/wine/windows/\"  -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0  -o server.o server.c
gcc -m32 -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -DDEFAULT_INCLUDE_DIR=\"/usr/local/include/wine/windows/\"  -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0  -o typegen.o typegen.c
gcc -m32 -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -DDEFAULT_INCLUDE_DIR=\"/usr/local/include/wine/windows/\"  -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0  -o typelib.o typelib.c
gcc -m32 -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -DDEFAULT_INCLUDE_DIR=\"/usr/local/include/wine/windows/\"  -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0  -o typetree.o typetree.c
gcc -m32 -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -DDEFAULT_INCLUDE_DIR=\"/usr/local/include/wine/windows/\"  -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0  -o utils.o utils.c
gcc -m32 -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -DDEFAULT_INCLUDE_DIR=\"/usr/local/include/wine/windows/\"  -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0  -o widl.o widl.c
gcc -m32 -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -DDEFAULT_INCLUDE_DIR=\"/usr/local/include/wine/windows/\"  -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0  -o write_msft.o write_msft.c
bison  -p parser_ -o parser.tab.c -d parser.y
flex  -oparser.yy.c parser.l
LC_ALL=C sed -e 's,@bindir\@,/usr/local/bin,g' -e 's,@dlldir\@,/usr/local/lib/wine,g' -e 's,@PACKAGE_STRING\@,Wine 1.7.0,g' widl.man.in >widl.man || (rm -f widl.man && false)
bison  -p parser_ -o parser.tab.c parser.y
gcc -m32 -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -DDEFAULT_INCLUDE_DIR=\"/usr/local/include/wine/windows/\"  -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0  -o parser.yy.o parser.yy.c
gcc -m32 -c -I. -I. -I../../include -I../../include  -D__WINESRC__ -DDEFAULT_INCLUDE_DIR=\"/usr/local/include/wine/windows/\"  -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0  -o parser.tab.o parser.tab.c
gcc -m32 -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -o widl client.o expr.o hash.o header.o proxy.o register.o server.o typegen.o typelib.o typetree.o utils.o widl.o write_msft.o parser.tab.o parser.yy.o        ../../libs/wpp/libwpp.a ../../libs/port/libwine_port.a 
make[1]: se sale del directorio `/home/ticiano/winetest/wine-1.7.0/tools/widl'
ticiano@mariobros ~/winetest/wine-1.7.0 $

The red highlighted text says "Waiting for other tasks to finish..." Which are all the following gcc compiles I believe.


Thanks for the reply hope this info helps in you helping me :) .
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: sfnt2fnt *Error* while compiling wine 1.7.0

Post by dimesio »

Code: Select all

configure: WARNING: prelink not found, base address of core dlls won't be set correctly.
You need to fix that.
TrancosArg
Level 1
Level 1
Posts: 6
Joined: Thu Aug 29, 2013 9:57 pm

Re: sfnt2fnt *Error* while compiling wine 1.7.0

Post by TrancosArg »

Dough! I didn't know. I installed prelink package from repos, ran ./configure again, and finally did make.

Same error :/

Code: Select all

make[1]: se ingresa al directorio `/home/ticiano/winetest/wine-1.7.0/fonts'
LD_LIBRARY_PATH="../libs/wine:$LD_LIBRARY_PATH" ../tools/sfnt2fnt -o coue1255.fon -d 128 ./courier.ttf 13,1255,8
Error: Cannot open face ./courier.ttf
make[1]: *** [coue1255.fon] Error 1
make[1]: se sale del directorio `/home/ticiano/winetest/wine-1.7.0/fonts'
make: *** [fonts] Error 2
make: *** Se espera a que terminen otras tareas....
make[1]: se ingresa al directorio `/home/ticiano/winetest/wine-1.7.0/loader'
gcc -m32 -c -I. -I. -I../include -I../include  -D__WINESRC__   -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -fno-builtin -o main.o main.c
LC_ALL=C sed -e 's,@PACKAGE_VERSION\@,1.7.0,g' ./wine_info.plist.in >wine_info.plist || (rm -f wine_info.plist && false)
gcc -m32 -c -I. -I. -I../include -I../include  -D__WINESRC__   -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wwrite-strings -Wpointer-arith -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -fno-builtin -o preloader.o preloader.c
LC_ALL=C sed -e 's,@bindir\@,/usr/local/bin,g' -e 's,@dlldir\@,/usr/local/lib/wine,g' -e 's,@PACKAGE_STRING\@,Wine 1.7.0,g' wine.man.in >wine.man || (rm -f wine.man && false)
LC_ALL=C sed -e 's,@bindir\@,/usr/local/bin,g' -e 's,@dlldir\@,/usr/local/lib/wine,g' -e 's,@PACKAGE_STRING\@,Wine 1.7.0,g' wine.de.man.in >wine.de.man || (rm -f wine.de.man && false)
LC_ALL=C sed -e 's,@bindir\@,/usr/local/bin,g' -e 's,@dlldir\@,/usr/local/lib/wine,g' -e 's,@PACKAGE_STRING\@,Wine 1.7.0,g' wine.fr.man.in >wine.fr.man || (rm -f wine.fr.man && false)
LC_ALL=C sed -e 's,@bindir\@,/usr/local/bin,g' -e 's,@dlldir\@,/usr/local/lib/wine,g' -e 's,@PACKAGE_STRING\@,Wine 1.7.0,g' wine.pl.man.in >wine.pl.man || (rm -f wine.pl.man && false)
gcc -m32 -o wine -Wl,--export-dynamic -Wl,--section-start,.interp=0x7bf00400 main.o -L../libs/wine -lwine ../libs/port/libwine_port.a -lpthread   -Wl,--rpath,\$ORIGIN/../libs/wine
gcc -m32 -o wine-installed -Wl,--export-dynamic -Wl,--section-start,.interp=0x7bf00400 main.o -L../libs/wine -lwine ../libs/port/libwine_port.a -lpthread   -Wl,--rpath,\$ORIGIN/`../tools/relpath /usr/local/bin /usr/local/lib` -Wl,--enable-new-dtags
gcc -m32 -o wine-preloader -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c400000 preloader.o ../libs/port/libwine_port.a 
make[1]: se sale del directorio `/home/ticiano/winetest/wine-1.7.0/loader'


Thanks again,

Ticiano.-
TrancosArg
Level 1
Level 1
Posts: 6
Joined: Thu Aug 29, 2013 9:57 pm

Re: sfnt2fnt *Error* while compiling wine 1.7.0

Post by TrancosArg »

So, any ideas what the error may be coming from??? It's weird because I have previously done this (compiling wine) under this distro, with older versions, without any major problem...


Error:

Code: Select all

LD_LIBRARY_PATH="../libs/wine:$LD_LIBRARY_PATH" ../tools/sfnt2fnt -o coue1255.fon -d 128 ./courier.ttf 13,1255,8
Error: Cannot open face ./courier.ttf
make[1]: *** [coue1255.fon] Error 1
make[1]: se sale del directorio `/home/ticiano/winetest/wine-1.7.0/fonts'
make: *** [fonts] Error 2

By the way, I'm getting these error messages when running winecfg from repo (it does work though):

Code: Select all

ticiano@mariobros ~ $ winecfg
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated.
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated.
TrancosArg
Level 1
Level 1
Posts: 6
Joined: Thu Aug 29, 2013 9:57 pm

Re: sfnt2fnt *Error* while compiling wine 1.7.0

Post by TrancosArg »

Anyone? Please pretty please? I haven't been able to figure this one out yet =(
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: sfnt2fnt *Error* while compiling wine 1.7.0

Post by dimesio »

configure: libOSMesa 32-bit development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
I overlooked this one before. I don't know if it's the cause of your specific problem, but you need to fix that, too. Other than that, I don't know. Look through the config.log; there may be something there.
Locked