Yeah i changed it into a png with photoshop. I already got the .dat file too.
Im using Dev-C++ as my IDE, so this is what i get in the compile log:
Code: Select all
Compiler: PSP
Executing make...
make.exe -f "Makefile" all
psp-gcc -I. -IC:/cygwin/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -L. -LC:/cygwin/usr/local/pspdev/psp/sdk/lib main.o JGE/JGE.o -lpng -lz -lm -lmikmod -lmmio -lpspaudiolib -lpspaudio -lpspgu -lstdc++ -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspuser -lpspkernel -o PSPopups.elf
JGE/JGE.o: In function `JLBFont::JLBFont(JGE*, char const*, int, bool)':
JGE.cpp:(.text+0x2694): multiple definition of `JLBFont::JLBFont(JGE*, char const*, int, bool)'
main.o:main.cpp:(.text+0x0): first defined here
JGE/JGE.o: In function `JLBFont::JLBFont(JGE*, char const*, int, bool)':
JGE.cpp:(.text+0x2878): multiple definition of `JLBFont::JLBFont(JGE*, char const*, int, bool)'
main.o:main.cpp:(.text+0x1e4): first defined here
JGE/JGE.o: In function `JLBFont::~JLBFont()':
JGE.cpp:(.text+0x2a5c): multiple definition of `JLBFont::~JLBFont()'
main.o:main.cpp:(.text+0x3c8): first defined here
JGE/JGE.o: In function `JLBFont::~JLBFont()':
JGE.cpp:(.text+0x2ab4): multiple definition of `JLBFont::~JLBFont()'
main.o:main.cpp:(.text+0x420): first defined here
JGE/JGE.o: In function `JLBFont::GetStringWidth(char const*) const':
JGE.cpp:(.text+0x2b0c): multiple definition of `JLBFont::GetStringWidth(char const*) const'
main.o:main.cpp:(.text+0x478): first defined here
JGE/JGE.o: In function `JLBFont::DrawString(char const*, float, float, int)':
JGE.cpp:(.text+0x2b60): multiple definition of `JLBFont::DrawString(char const*, float, float, int)'
main.o:main.cpp:(.text+0x4cc): first defined here
JGE/JGE.o: In function `JLBFont::printf(float, float, char const*, ...)':
JGE.cpp:(.text+0x2d00): multiple definition of `JLBFont::printf(float, float, char const*, ...)'
main.o:main.cpp:(.text+0x66c): first defined here
JGE/JGE.o: In function `JLBFont::SetColor(unsigned short)':
JGE.cpp:(.text+0x2d88): multiple definition of `JLBFont::SetColor(unsigned short)'
main.o:main.cpp:(.text+0x6f4): first defined here
JGE/JGE.o: In function `JLBFont::SetBlendMode(int)':
JGE.cpp:(.text+0x2d9c): multiple definition of `JLBFont::SetBlendMode(int)'
main.o:main.cpp:(.text+0x708): first defined here
collect2: ld returned 1 exit status
make.exe: *** [PSPopups.elf] Error 1
Execution terminated
thats the raw output, but it wont let me select all of the parsed error log, but heres a small part:
Code: Select all
C:\Documents and Settings\Owner\Desktop\Popups\Menu.o In function `JLBFont::JLBFont(JGE*, char const*, int, bool)':
(.text+0x0) C:\Documents and Settings\Owner\Desktop\Popups\Menu.cpp multiple definition of `JLBFont::JLBFont(JGE*, char const*, int, bool)'
(.text+0x0) C:\Documents and Settings\Owner\Desktop\Popups\main.o:main.cpp first defined here
C:\Documents and Settings\Owner\Desktop\Popups\Menu.o In function `JLBFont::JLBFont(JGE*, char const*, int, bool)':
and basicly one of those for every member function of JLBFont.
Heres what i got to call and use the fonts:
Code: Select all
//in Menu.h:
#include "JGE/JLBFont.cpp"
class Menu: public JGE
{
...
public:
JLBFont* mFont;
...
}
//in Menu.cpp:
//in Menu::Create():
mFont = new JLBFont(this, "Res/08underground", 16, true);
//in Menu:Render():
mFont->DrawString("hello world", 10, 10, JGETEXT_LEFT);
Im not including anything twice, i dont know why its saying that.
UPDATE: Ive managed to reduce the amount of errors from around 27 to 19 by removing Main.o from my objects in my makefile. Ive updated the above errors with the new ones.