Re: [ft] Compiling freetype 2.3.9 with bcc fails

2009-07-14 Thread mpsuzuki
Hi, Checking the manual of bcc32 carefully, I found that the option -o should not be used to specify the location of executable. It specifies the pathname for the object file, thus, the command bcc32 -oobjs\apinames.exe src\tools\apinames.c generates .\objs\apinames.exe, and

Re: [ft] Compiling freetype 2.3.9 with bcc fails

2009-07-14 Thread Mirco Babin
Hi, Compiling test.c fails: bcc32 -ohello.exe hello.c CodeGear C++ 5.93 for Win32 Copyright (c) 1993, 2007 CodeGear hello.c: Turbo Incremental Link 5.81 Copyright (c) 1997-2008 CodeGear Fatal: Unable to open file 'HELLO.OBJ' This works: bcc32 hello.c CodeGear C++ 5.93 for Win32 Copyright (c)

Re: [ft] Compiling freetype 2.3.9 with bcc fails

2009-07-14 Thread mpsuzuki
Hi, Thank you for the experiment, yes -o was the root of our bcc32 problem. I reached same conclusion. My misunderstanding about 1-step 2-step was solved. I didn't receive the error you got (about HELLO.OBJ), but I agree with your observation that -o causes problem. Also thank you for the

Re: [ft] Compiling freetype 2.3.9 with bcc fails

2009-07-14 Thread mpsuzuki
Dear Mirco, Could you try attached patch? Please revert my previous patch (adding CCexe_CFLAGS etc) before applying this. The patch changes APINAMES_EXE target more flexible and -e is used to generate objs\apinames.exe. I could build freetype.lib from GIT HEAD source + patch. diff --git

Re: [ft] Compiling freetype 2.3.9 with bcc fails

2009-07-14 Thread Mirco Babin
Hi, I tried the following: bcc32 -e./objs/hello.exe ./src/hello.c CodeGear C++ 5.93 for Win32 Copyright (c) 1993, 2007 CodeGear ./src/hello.c: Turbo Incremental Link 5.81 Copyright (c) 1997-2008 CodeGear This works, BUT, hello.obj is written in the current directory and not in ./objs. Then I

Re: [ft] Compiling freetype 2.3.9 with bcc fails

2009-07-14 Thread mpsuzuki
Dear Mirco, Thank you for experiment. I will try to fix bcc.mk to put all object files into objs. BTW, the exist of temporary object files in the current directory is problematic? At present, make clean does not delete the object files in the current directory, so it should be fixed (if

Re: [ft] Compiling freetype 2.3.9 with bcc fails

2009-07-14 Thread Mirco Babin
Hello, I tried the TLIB /u command manually and it gives the same error. I searched the internet about TLIB and with the /P option you can provide the page size. (see text below from http://cs.nyu.edu/~yap/classes/machineOrg/info/tlib.htm ) I tried TLIB /u /P128 ... and this works without

Re: [ft] Compiling freetype 2.3.9 with bcc fails

2009-07-14 Thread mpsuzuki
Dear Mirco, Thank you for examing my patch. On Tue, 14 Jul 2009 13:09:04 +0200 Mirco Babin mirco.ba...@gmail.com wrote: The apinames.exe is now build ok. But building the library fails with the continuating error Warning: invalid page size value ignored. This warning is repeating endlessly and I

Re: [ft] Compiling freetype 2.3.9 with bcc fails

2009-07-14 Thread mpsuzuki
Dear Mirco, Great Thank you for finding the option to fix the issue. If you apply this patch (after my previous patch posted 5 hours before), mingw32-make will add the option /P128 automatically. Please try. Regards, mpsuzuki diff --git a/builds/compiler/bcc-dev.mk b/builds/compiler/bcc-dev.mk

Re: [ft] Compiling freetype 2.3.9 with bcc fails

2009-07-14 Thread Mirco Babin
Dear mpsuzuki SUCCESS ! I applied this (and the other) patch to bcc.mk and bcc-dev.mk. I ran mingw32-make again from scratch and it now builds without errors ! Thank you very much. Regards, Mirco 2009/7/14 mpsuz...@hiroshima-u.ac.jp Dear Mirco, Great Thank you for finding the option to fix

Re: [ft] Compiling freetype 2.3.9 with bcc fails

2009-07-14 Thread Mirco Babin
Hello mpsuzuki, I started from scratch, unzipping freetype-2.3.9.tar.gz. I applied your patches to bcc.mk, bcc-dev.mk, win32-def.mk and exports.mk Then I ran mingw32-make. The apinames.exe is now build ok. But building the library fails with the continuating error Warning: invalid page size

Re: [ft] Compiling freetype 2.3.9 with bcc fails

2009-07-13 Thread Mirco Babin
Hi, Update, I manually changed the bcc.mk to CCexe_LDFLAGS := -Lobjs It still results in the same error. I don't get it, it seems like the current directory is changed ? bcc32 -A -I.\objs -I.\builds\win32 -I.\include -c -q -y -d -v -Od -w-par -w-ccc -w-rch -w-pro -w-aus -DFT2_BUILD_LIBRARY

Re: [ft] Compiling freetype 2.3.9 with bcc fails

2009-07-13 Thread Mirco Babin
Hi, I think I made an error during the testing. Now the -L switch does not work when I'm testing with the command prompt. I think I had an apinames.obj in the basedirectory. I'm sorry about the -L switch, it was a waste of time. But the following sequence does work (first compile to the OBJ,

Re: [ft] Compiling freetype 2.3.9 with bcc fails

2009-07-13 Thread mpsuzuki
Hi, On Mon, 13 Jul 2009 10:44:43 +0200 Mirco Babin mirco.ba...@gmail.com wrote: I think I made an error during the testing. Now the -L switch does not work when I'm testing with the command prompt. I think I had an apinames.obj in the basedirectory. I'm sorry about the -L switch, it was a waste

Re: [ft] Compiling freetype 2.3.9 with bcc fails

2009-07-13 Thread mpsuzuki
Hi, I overlooked a possibility that your modification of Makefile caused the failure to generate objs/freetype.def. You wrote: I commented out the build APINAMES.EXE in export.mk to see if the library is build fine. I guess you removed (or commented out) a line defining apinames.exe

Re: [ft] Compiling freetype 2.3.9 with bcc fails

2009-07-13 Thread mpsuzuki
Hi, Just I've installed MinGW 5.1.4 and Borland C++ 5.5 onto my Windows PC and reproduced that the building process of FT2 does not finish. I thank Mirco. I could compile apinames.exe with bcc32 by single command, aslike: bcc32 -oobjs\apinames.exe src\tools\apinames.c But running

Re: [ft] Compiling freetype 2.3.9 with bcc fails

2009-07-13 Thread Mirco Babin
Hi, I don't know the makefile syntax. I just find it much too complex. You seem to understand this rather obfuscated language, so I believe you when you say that I may not remove the apinames.exe. If you can give me an adjustment for the apinames.exe, so it's a 2-phase step, first compile,

[ft] Compiling freetype 2.3.9 with bcc fails

2009-07-10 Thread Mirco Babin
Hello, I'm having troubles compiling freetype 2.3.9 with Codegear Rad Studio 2007 (bcc32). I followed the next steps: mingw32-make.exe setup bcc32 mingw32-make.exe The second step fails upon linking APPNAMES. The output I get is: Kan c:\a\open\PoDoFo\freetype\objs\ftmodule.h niet

Re: [ft] Compiling freetype 2.3.9 with bcc fails

2009-07-10 Thread suzuki toshiya
Hi, Mirco Babin wrote (2009/07/10 20:24): bcc32 -oobjs/apinames src/tools/apinames.c CodeGear C++ 5.93 for Win32 Copyright (c) 1993, 2007 CodeGear src/tools/apinames.c: Turbo Incremental Link 5.81 Copyright (c) 1997-2008 CodeGear Fatal: Unable to open file 'APINAMES.OBJ' mingw32-make: ***

Re: [ft] Compiling freetype 2.3.9 with bcc fails

2009-07-10 Thread Mirco Babin
Well, I tried the following and it does not produce errors: bcc32 -Lobjs -oobjs/apinames.exe src/tools/apinames.c The -L switch is to provide a library search path (where to find OBJ and LIB files). But I don't known what should be adjusted in the makefiles. They are really complex. Regards,

Re: [ft] Compiling freetype 2.3.9 with bcc fails

2009-07-10 Thread suzuki toshiya
Hi, Mirco Babin wrote (2009/07/10 21:53): Well, I tried the following and it does not produce errors: bcc32 -Lobjs -oobjs/apinames.exe src/tools/apinames.c The -L switch is to provide a library search path (where to find OBJ and LIB files). Interesting. apinames.exe requires only

Re: [ft] Compiling freetype 2.3.9 with bcc fails

2009-07-10 Thread mpsuzuki
Hi, Could you try following patch? It fixes: * declare the suffix .exe to be added to apinames. * prepare CCexe_CFLAGS CCexe_LDFLAGS. * put -Lobj to CCexe_LDFLAGS when we use bcc. Regards, mpsuzuki diff --git a/builds/win32/win32-def.mk b/builds/win32/win32-def.mk index a82b146..e6ae31c