hrydgard/pspautotests

Running audio/atrac/resetting failed on build

ydamigos opened this issue · 6 comments

Hi,

I am trying to run the audio/atrac/resetting test but it fails to build.

python2 gentest.py audio/atrac/resetting
Running test audio/atrac/resetting on the PSP...
psp-g++ -I. -I../../../common -I. -I/opt/pspsdk/psp/sdk/include -g -G0 -Wall -O0 -fno-strict-aliasing -I. -I../../../common -I. -I/opt/pspsdk/psp/sdk/include -g -G0 -Wall -O0 -fno-strict-aliasing -fno-exceptions -fno-rtti  -D_PSP_FW_VERSION=500   -c -o shared.o shared.cpp
In file included from shared.h:2,
                 from shared.cpp:1:
atrac.h:18: error: declaration of C function 'int sceAtracGetAtracID(int)' conflicts with
/opt/pspsdk/psp/sdk/include/pspatrac3.h:70: error: previous declaration 'int sceAtracGetAtracID(uint)' here
atrac.h:20: error: declaration of C function 'int sceAtracSetData(int, void*, SceSize)' conflicts with
/opt/pspsdk/psp/sdk/include/pspatrac3.h:202: error: previous declaration 'int sceAtracSetData(int, u8*, u32)' here
atrac.h:21: error: declaration of C function 'int sceAtracResetPlayPosition(int, int, int, int)' conflicts with
/opt/pspsdk/psp/sdk/include/pspatrac3.h:200: error: previous declaration 'int sceAtracResetPlayPosition(int, u32, u32, u32)' here
atrac.h:23: error: declaration of C function 'int sceAtracSetHalfwayBufferAndGetID(void*, int, int)' conflicts with
/opt/pspsdk/psp/sdk/include/pspatrac3.h:206: error: previous declaration 'int sceAtracSetHalfwayBufferAndGetID(u8*, u32, u32)' here
shared.cpp: In destructor 'Atrac3File::~Atrac3File()':
shared.cpp:26: warning: deleting 'void*' is undefined
shared.cpp: In member function 'void Atrac3File::Reload(const char*)':
shared.cpp:31: warning: deleting 'void*' is undefined
<builtin>: recipe for target 'shared.o' failed
make: *** [shared.o] Error 1

My machine runs Archlinux x64.

Ah, I think you have a newer version of the SDK. Since so far the active users have been using minpspw, that's what I've targetted.

Not sure, but possibly if you change the types to match pspsdk's (without removing the definitions) it will build and still work for you and people using the older SDK.

-[Unknown]

@unknownbrackets I am using minpspw version 0.11.2. Should I install an older version?

Hmm, oops, I'm using the one linked to from the pspautotests readme:
http://www.jetdrone.com/minpspw (seems like an older version)

So probably I'm just out of date (@hrydgard may be also), so feel free just to remove the duplicate definitions.

-[Unknown]

OK, I updated the resetting test and now it builds with minpspw 0.11.2 (commit 7680a3b).
Should I create a pull request to the master branch or is it better @hrydgard to create a new branch for minpspw 0.11.2?

Just create a pull request. I'll upgrade my install.

Okay, since #124 is merged I'm going to close this (if it's still an issue please comment.)

-[Unknown]