expected specifier-qualifier-list

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
jojojoris
Posts: 255
Joined: Sun Mar 30, 2008 4:06 am

expected specifier-qualifier-list

Post by jojojoris »

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

Code: Select all

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: Select all

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: Select all

int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

You need to include the pthread header (also assuming you have the PSP pthread port installed too).
jojojoris
Posts: 255
Joined: Sun Mar 30, 2008 4:06 am

Post by jojojoris »

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: Select all

int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Post Reply