How to Convert font.c or font.h to font.o??
-
- Interested PSXDEV User
- Posts: 6
- Joined: Oct 01, 2016
How to Convert font.c or font.h to font.o??
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!!!
-
Administrator Verified
- Admin / PSXDEV
- Posts: 2686
- Joined: Dec 31, 2012
- I am a: Shadow
- PlayStation Model: H2000/5502
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.
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.
-
- Interested PSXDEV User
- Posts: 6
- Joined: Oct 01, 2016
How can i compile and link?
-
Administrator Verified
- Admin / PSXDEV
- Posts: 2686
- Joined: Dec 31, 2012
- I am a: Shadow
- PlayStation Model: H2000/5502
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.
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.
-
- Interested PSXDEV User
- Posts: 6
- Joined: Oct 01, 2016
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
-
Administrator Verified
- Admin / PSXDEV
- Posts: 2686
- Joined: Dec 31, 2012
- I am a: Shadow
- PlayStation Model: H2000/5502
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.
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.
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.
Who is online
Users browsing this forum: No registered users and 11 guests