Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
74 user(s) are online (49 user(s) are browsing Forums)

Members: 0
Guests: 74

more...

Support us!

Headlines

Report message:*
 

Re: SDL2

Subject: Re: SDL2
by SinanSam460 on 2021/2/25 9:26:39

@kas1e @capehill

I am still trying to learn C, SDL and AmigaOS4 SDK, so I will be doing strange things :)

But when I don't use -lphtread, I receive following errors:

ppc-amigaos-g++ -athread=native 10_color_keying.cpp -o 10_SDL -lSDL2 -lSDL2_image -ljpeg -lpng -ltiff -lwebp -lz
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libwebp.a(libwebpdsp_la-alpha_processing.o): In function `WebPInitAlphaProcessing':
/home/Michael/libwebp-1.0.3/src/dsp/alpha_processing.c:412: undefined reference to `pthread_mutex_lock'
/home/Michael/libwebp-1.0.3/src/dsp/alpha_processing.c:412: undefined reference to `pthread_mutex_unlock'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libwebp.a(libwebpdsp_la-dec.o): In function `VP8DspInit':
/home/Michael/libwebp-1.0.3/src/dsp/dec.c:744: undefined reference to `pthread_mutex_lock'
/home/Michael/libwebp-1.0.3/src/dsp/dec.c:744: undefined reference to `pthread_mutex_unlock'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libwebp.a(libwebpdsp_la-filters.o): In function `VP8FiltersInit':
/home/Michael/libwebp-1.0.3/src/dsp/filters.c:241: undefined reference to `pthread_mutex_lock'
/home/Michael/libwebp-1.0.3/src/dsp/filters.c:241: undefined reference to `pthread_mutex_unlock'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libwebp.a(libwebpdsp_la-lossless.o): In function `VP8LDspInit':
/home/Michael/libwebp-1.0.3/src/dsp/lossless.c:597: undefined reference to `pthread_mutex_lock'
/home/Michael/libwebp-1.0.3/src/dsp/lossless.c:597: undefined reference to `pthread_mutex_unlock'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libwebp.a(libwebpdsp_la-rescaler.o): In function `WebPRescalerDspInit':
/home/Michael/libwebp-1.0.3/src/dsp/rescaler.c:205: undefined reference to `pthread_mutex_lock'
/home/Michael/libwebp-1.0.3/src/dsp/rescaler.c:205: undefined reference to `pthread_mutex_unlock'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libwebp.a(libwebpdsp_la-upsampling.o): In function `WebPInitYUV444Converters':
/home/Michael/libwebp-1.0.3/src/dsp/upsampling.c:222: undefined reference to `pthread_mutex_lock'
/home/Michael/libwebp-1.0.3/src/dsp/upsampling.c:222: undefined reference to `pthread_mutex_unlock'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libwebp.a(libwebpdsp_la-upsampling.o): In function `WebPInitUpsamplers':
/home/Michael/libwebp-1.0.3/src/dsp/upsampling.c:263: undefined reference to `pthread_mutex_lock'
/home/Michael/libwebp-1.0.3/src/dsp/upsampling.c:263: undefined reference to `pthread_mutex_unlock'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libwebp.a(libwebpdsp_la-yuv.o): In function `WebPInitSamplers':
/home/Michael/libwebp-1.0.3/src/dsp/yuv.c:78: undefined reference to `pthread_mutex_lock'
/home/Michael/libwebp-1.0.3/src/dsp/yuv.c:78: undefined reference to `pthread_mutex_unlock'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libwebp.a(libwebpdsp_la-yuv.o): In function `WebPInitConvertARGBToYUV':
/home/Michael/libwebp-1.0.3/src/dsp/yuv.c:263: undefined reference to `pthread_mutex_lock'
/home/Michael/libwebp-1.0.3/src/dsp/yuv.c:263: undefined reference to `pthread_mutex_unlock'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libwebp.a(thread_utils.o): In function `ChangeState':
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:238: undefined reference to `pthread_mutex_lock'
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:242: undefined reference to `pthread_cond_wait'
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:256: undefined reference to `pthread_mutex_unlock'
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:251: undefined reference to `pthread_mutex_unlock'
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:252: undefined reference to `pthread_cond_signal'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libwebp.a(thread_utils.o): In function `End':
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:335: undefined reference to `pthread_join'
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:336: undefined reference to `pthread_mutex_destroy'
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:337: undefined reference to `pthread_cond_destroy'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libwebp.a(thread_utils.o): In function `Reset':
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:287: undefined reference to `pthread_mutex_init'
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:290: undefined reference to `pthread_cond_init'
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:294: undefined reference to `pthread_mutex_lock'
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:295: undefined reference to `pthread_create'
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:297: undefined reference to `pthread_mutex_unlock'
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:299: undefined reference to `pthread_mutex_destroy'
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:300: undefined reference to `pthread_cond_destroy'
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:297: undefined reference to `pthread_mutex_unlock'
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:291: undefined reference to `pthread_mutex_destroy'
/usr/local/amiga/ppc-amigaos/SDK/local/newlib/lib/libwebp.a(thread_utils.o): In function `ThreadLoop':
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:209: undefined reference to `pthread_mutex_lock'
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:211: undefined reference to `pthread_cond_wait'
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:224: undefined reference to `pthread_mutex_unlock'
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:225: undefined reference to `pthread_cond_signal'
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:224: undefined reference to `pthread_mutex_unlock'
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:225: undefined reference to `pthread_cond_signal'
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:224: undefined reference to `pthread_mutex_unlock'
/home/Michael/libwebp-1.0.3/src/utils/thread_utils.c:225: undefined reference to `pthread_cond_signal'




Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project