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

Post a topic about yourself to let others know your skills, hobbies, etc.
Post Reply
BeeEssEff2015
Interested PSXDEV User
Interested PSXDEV User
Posts: 6
Joined: Oct 01, 2016

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

Post by BeeEssEff2015 » May 30th, 2017, 9:20 am

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!!!

User avatar
Shadow
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2670
Joined: Dec 31, 2012
PlayStation Model: H2000/5502
Discord: Shadow^PSXDEV

Post by Shadow » May 30th, 2017, 8:28 pm

You should be able to compile it as an object and then link with it.
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

BeeEssEff2015
Interested PSXDEV User
Interested PSXDEV User
Posts: 6
Joined: Oct 01, 2016

Post by BeeEssEff2015 » June 1st, 2017, 10:55 am

How can i compile and link?

User avatar
Shadow
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2670
Joined: Dec 31, 2012
PlayStation Model: H2000/5502
Discord: Shadow^PSXDEV

Post by Shadow » June 1st, 2017, 4:32 pm

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
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

BeeEssEff2015
Interested PSXDEV User
Interested PSXDEV User
Posts: 6
Joined: Oct 01, 2016

Post by BeeEssEff2015 » June 2nd, 2017, 1:44 pm

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

User avatar
Shadow
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2670
Joined: Dec 31, 2012
PlayStation Model: H2000/5502
Discord: Shadow^PSXDEV

Post by Shadow » June 2nd, 2017, 6:32 pm

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.
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests