Compilation fails.

Support and general discussion.
Post Reply
User avatar
Giorgos
Posts: 6
Joined: Sun 08 Apr, 2018 6:20 pm

Compilation fails.

Post by Giorgos »

Hi :D
Really glad for joining you!!!

I downloaded the latest PCEm and I tried to compile it at my system (Debian Jessie (oldstable) x64 KDE).

I configured it with

Code: Select all

./configure --enable-release-build --enable-alsa --disable-networking
and when completed I gave

Code: Select all

make -j4
.
Well...it failed. :cry:
Last lines of output was:
pcem-wx-sdl2-display.o: In function `window_close':
wx-sdl2-display.c:(.text+0x563): undefined reference to `SDL_GetWindowBordersSize'
pcem-wx-sdl2-display.o: In function `render':
wx-sdl2-display.c:(.text+0x87d): undefined reference to `SDL_GetWindowBordersSize'
wx-sdl2-display.c:(.text+0xd85): undefined reference to `SDL_SetWindowResizable'
wx-sdl2-display.c:(.text+0xe7d): undefined reference to `SDL_WarpMouseGlobal'
wx-sdl2-display.c:(.text+0xf46): undefined reference to `SDL_GetGlobalMouseState'
wx-sdl2-display.c:(.text+0xf77): undefined reference to `SDL_GetWindowBordersSize'
wx-sdl2-display.c:(.text+0x1203): undefined reference to `SDL_GetWindowBordersSize'
pcem-wx-sdl2-display.o: In function `renderer_thread':
wx-sdl2-display.c:(.text+0x1438): undefined reference to `SDL_GetWindowBordersSize'
pcem-wx-sdl2-display.o: In function `render_timer':
wx-sdl2-display.c:(.text+0x15df): undefined reference to `SDL_GetWindowBordersSize'
pcem-wx-sdl2-display.o: In function `get_border_size':
wx-sdl2-display.c:(.text+0x314): undefined reference to `SDL_GetWindowBordersSize'
collect2: error: ld returned 1 exit status
Makefile:632: recipe for target 'pcem' failed
make[1]: *** [pcem] Error 1
make[1]: Leaving directory '/home/giorgos/TEMPG/PCemV/src'
Makefile:365: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
If the entire konsole's output needed, please tell me.
Any hints?
TIA!
G. :geek:
Laucian
Posts: 11
Joined: Mon 28 Nov, 2016 6:49 pm

Re: Compilation fails.

Post by Laucian »

Run

Code: Select all

autoreconf -i
before running configure.
User avatar
Giorgos
Posts: 6
Joined: Sun 08 Apr, 2018 6:20 pm

Re: Compilation fails.

Post by Giorgos »

THANKS! ;)
It didn't change something.
I'm receiving exactly the same error.
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Compilation fails.

Post by SarahWalker »

What version of SDL do you have installed? Those errors imply that it's something prior to 2.0.4. PCem needs something more recent than that.
User avatar
Giorgos
Posts: 6
Joined: Sun 08 Apr, 2018 6:20 pm

Re: Compilation fails.

Post by Giorgos »

Oh...I see!
Indeed I have an older version (2.0.2) instead of the latest one (2.0.8).

Compile locally latest SDL version fails here (due to the infamous dependency hell), so I think I'll wait until I upgrade my system to something more up to date.
Until then, I started running it on Windows.

THANKS SarahWalker!!! ;)
Post Reply