Page 1 of 1

How to Convert font.c or font.h to font.o??

Posted: May 30th, 2017, 9:20 am
by BeeEssEff2015
I downloaded the Amiga fonts pack from dev.paradogs.com on Wayback Machine, then converted a LBM image to BMP image using XnView, then converted BMP to TIM using TIMViewer and then converted TIM to .C file using WinBin2Src. How can i convert the ".C" file to ".O" file, please help me!!!

Re: How to Convert font.c or font.h to font.o??

Posted: May 30th, 2017, 8:28 pm
by Administrator
You should be able to compile it as an object and then link with it.

Re: How to Convert font.c or font.h to font.o??

Posted: June 1st, 2017, 10:55 am
by BeeEssEff2015
How can i compile and link?

Re: How to Convert font.c or font.h to font.o??

Posted: June 1st, 2017, 4:32 pm
by Administrator
Something like:

Code: Select all

ccpsx -Wall -Xo$80010000 amigafp.c -c
ccpsx -Xm -Xo$80010000 main.c amigafp.obj -omain.cpe,main.sym,main.map

Re: How to Convert font.c or font.h to font.o??

Posted: June 2nd, 2017, 1:44 pm
by BeeEssEff2015
It works when i compiling a font as an object, but it have some problem like this when i link:

Code: Select all

C:\psyq\psyq>ccpsx -Xm -Xo$80010000 main.c font.obj -omain.cpe,main.sym,main.map

main.c:22: sys/types.h: file not found
main.c:23: stdlib.h: file not found
main.c:24: libetc.h: file not found
main.c:25: libgte.h: file not found
main.c:26: libgpu.h: file not found
main.c:27: libgs.h: file not found
main.c:28: libsnd.h: file not found
main.c:29: libmath.h: file not found
main.c:30: libspu.h: file not found

Re: How to Convert font.c or font.h to font.o??

Posted: June 2nd, 2017, 6:32 pm
by Administrator
Looks like CCPSX can't find the header files. This is either because the includes are missing/wrong,

EG:
[c]#include <sys/types.h>[/c]
your Windows environment variables aren't setup or your "PSYQ.INI" configuration file under [\psyq\bin] is incorrect.