forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

libmikmod

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Xephonic



Joined: 03 Aug 2005
Posts: 6

PostPosted: Tue Nov 15, 2005 9:15 am    Post subject: libmikmod Reply with quote

#include <pspkernel.h>
#include <pspiofilemgr_fcntl.h>
#include <string.h>
#include <pspaudio.h>
#include <pspaudiolib.h>

#include "mikmod.h"

#define BACKGROUND_MUSIC_FILE "ms0:/PSP/GAME/PSPCHESS/BACKGROUND.MOD"
#define MUSIC_DIR "ms0:/PSP/MUSIC"

#define MAX_ENTRY 512

UNIMOD *g_mf;


int g_music_on = 1;

#define O_RDONLY 0x0001



syntax error before '*' token on unimod line

why does it do this?
Back to top
View user's profile Send private message
sweetlilmre



Joined: 01 Oct 2005
Posts: 27

PostPosted: Tue Nov 15, 2005 2:38 pm    Post subject: Reply with quote

If you are using the new libmikmod import, then UNIMOD is no longer applicable. It is now MODULE.

I have made some updates to the lib, so get the latest version and look at the example.c.

-(e)
Back to top
View user's profile Send private message
Xephonic



Joined: 03 Aug 2005
Posts: 6

PostPosted: Tue Nov 15, 2005 4:30 pm    Post subject: Reply with quote

sweetlilmre wrote:
If you are using the new libmikmod import, then UNIMOD is no longer applicable. It is now MODULE.

I have made some updates to the lib, so get the latest version and look at the example.c.

-(e)


When i try to compile example.c

i get these errors now:
relocation truncated to fit: R_MIPS_GREPL16 against "md_mode"
relocation truncated to fit: R_MIPS_GREPL16 against "md_reverb"
relocation truncated to fit: R_MIPS_GREPL16 against "md_pansep"
Back to top
View user's profile Send private message
sweetlilmre



Joined: 01 Oct 2005
Posts: 27

PostPosted: Wed Nov 16, 2005 2:53 am    Post subject: Reply with quote

Weird,

If you have done: svn co svn://svn.ps2dev.org/psp/trunk/libmikmod
Then "make -f Makefile.psp clean install"
You should see a -G0 as a compile option. This should prevent the relocation errors. Perhaps you should try compiling your code with -G0?

I'm fairly new to the gcc world so I could be talking crap here.

Make sure you removed any previous mikmod lib files (libmikmod.a and mmio.a) as well as the header from the PSP lib and include dirs.

-(e)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group