Problem with fonts and PVR.

Anything related in any way to game development as a whole is welcome here. Tell us about your game, grace us with your project, show us your new YouTube video, etc.

Moderator: PC Supremacists

Post Reply
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Problem with fonts and PVR.

Post by Falco Girgis »

I've been meaning to ask Tvspels or somebody what in the world is wrong here, but evidently nobody is there.

When I try to compile, I get this:

Code: Select all

Deleting intermediate files and output files for project 'DCTile - Win32 Debug'.
--------------------Configuration: DCTile - Win32 Debug--------------------
Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
 C:\DevKitDC\bin\createim F:\DCTile\romdisk.img F:\DCTile\romdisk
0    rom 41d0eaac         [0xffffffff, 0xffffffff] 37777777777, sz     0, at 0x0     
1    .                    [0x3d05    , 0x155a558c] 0040755, sz     0, at 0x20    
1    ..                   [0x3d05    , 0x5c0fbef ] 0040755, sz     0, at 0x40     [link to 0x20    ]
1    typewriter.txf       [0x3d05    , 0x224e7ffe] 0100644, sz  9292, at 0x60    
 C:\DevKitDC\bin\createo F:\DCTile\romdisk.img romdisk F:\DCTile\romdisk.o
 C:\DevKitDC\bin\g++ -o DCTile.elf romdisk.o  startup.o  DCTile.cpp -I C:\DevKitDC\include -I C:\DevKitDC\kernel\arch\dreamcast\include -ml -m4-single-only -O2 -fno-builtin -fno-strict-aliasing -fomit-frame-pointer -fno-optimize-sibling-calls -nosta
rtfiles -nostdlib -Wl -Ttext=0x8c010000 -L C:\DevKitDC\lib -L C:\DevKitDC\sh-sega-dreamcast\lib -lkallisti -lgcc -ltsunami -lc -lk++ -lparallax -lpcx -lz -lm -Ttext=0x8c010000
/cygdrive/c/DevKitDC/bin/../lib/gcc-lib/sh-sega-dreamcast/3.0.3/../../../../sh-sega-dreamcast/bin/ld: warning: cannot find entry symbol _start; defaulting to 8c010000
C:\DevKitDC\lib/libparallax.a(font.o): In function `plx_font_load':
/usr/local/home/bard/prj/releases-kos/kos-1.1.9/addons/libparallax/src/font.c:141: undefined reference to `_pvr_txr_load_ex'
C:\DevKitDC\lib/libparallax.a(texture.o): In function `plx_txr_load':
/usr/local/home/bard/prj/releases-kos/kos-1.1.9/addons/libparallax/src/texture.c:44: undefined reference to `_png_to_img'
/usr/local/home/bard/prj/releases-kos/kos-1.1.9/addons/libparallax/src/texture.c:44: undefined reference to `_pvr_txr_load_kimg'
/usr/local/home/bard/prj/releases-kos/kos-1.1.9/addons/libparallax/src/texture.c:44: undefined reference to `_kos_img_free'
collect2: ld returned 1 exit status
NMAKE : fatal error U1077: 'C:\DevKitDC\bin\g++' : return code '0x1'
Stop.
Error executing NMAKE.

DCTile.exe - 1 error(s), 1 warning(s)
I'm including plx/font.h and I also cross referenced with some random puru vibration program that draws text the same way. It looks to me like maybe I'm not including something right?
Tvspelsfreak
Chaos Rift Junior
Chaos Rift Junior
Posts: 272
Joined: Wed Sep 29, 2004 5:53 pm
Favorite Gaming Platforms: NES, SNES
Programming Language of Choice: C/C++
Location: Umeå, Sweden
Contact:

Post by Tvspelsfreak »

Try:

Code: Select all

#include <plx/font.h>
#include <plx/sprite.h>
#include <plx/list.h>
#include <plx/dr.h>
instead of just <plx/font.h>.
Post Reply