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 

expected specifier-qualifier-list

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



Joined: 30 Mar 2008
Posts: 261

PostPosted: Sat Apr 11, 2009 1:56 am    Post subject: expected specifier-qualifier-list Reply with quote

I wan tto port libmpeg3-1.5.4 but i'm stuck here tith this code.

Code:
joris@joris-desktop:~/pspprojects/libmpeg3-1.5.4$ make
psp-gcc -I./include -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -DHAVE_CSS -D_PSP_FW_VERSION=150   -c -o audio/ac3.o audio/ac3.c
In file included from audio/ac3.c:5:
./mpeg3private.h:651: fout: expected specifier-qualifier-list before ‘pthread_mutex_t’
./mpeg3private.h:671: fout: expected specifier-qualifier-list before ‘pthread_t’
./mpeg3private.h:705: fout: expected specifier-qualifier-list before ‘pthread_mutex_t’


This is the part of the source:
Code:

typedef struct
{
   unsigned char *data;   /* Buffer for holding the slice data */
   int buffer_size;         /* Size of buffer */
   int buffer_allocation;   /* Space allocated for buffer  */
   int current_position;    /* Position in buffer */
   uint32_t bits;
   int bits_size;
   pthread_mutex_t completion_lock; /* Lock slice until completion */
   int done;           /* Signal for slice decoder to skip */
} mpeg3_slice_buffer_t;

/* Each slice decoder */
typedef struct
{
   void *video;     /* mpeg3video_t */
   mpeg3_slice_buffer_t *slice_buffer;

   int thread_number;      /* Number of this thread */
   int current_buffer;     /* Buffer this slice decoder is on */
   int buffer_step;        /* Number of buffers to skip */
   int last_buffer;        /* Last buffer this decoder should process */
   int fault;
   int done;
   int quant_scale;
   int pri_brk;                  /* slice/macroblock */
   short block[12][64];
   int sparse[12];
   pthread_t tid;   /* ID of thread */
   pthread_mutex_t input_lock, output_lock, completion_lock;
} mpeg3_slice_t;


Whatś wrong here?
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Sat Apr 11, 2009 3:13 am    Post subject: Reply with quote

You need to include the pthread header (also assuming you have the PSP pthread port installed too).
Back to top
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Sat Apr 11, 2009 5:35 am    Post subject: Reply with quote

Insert_witty_name wrote:
You need to include the pthread header (also assuming you have the PSP pthread port installed too).


Yeah... that was it

Wrong thread port
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
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