Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
33 user(s) are online (24 user(s) are browsing Forums)

Members: 0
Guests: 33

more...

Headlines

 
  Register To Post  

Attemping FallOut2-Community Edition Port
Not too shy to talk
Not too shy to talk


See User information
@all

I am attemping to compile Fallout 2 Community Edition Port.

https://github.com/alexbatalov/fallout2-ce

I get the following error at the end of compilation.

Any ideas ?

[100%] Linking CXX executable fallout2-ce
_deps
/sdl2-build/libSDL2.a(SDL_dynapi.c.obj): In function `SDL_InitDynamicAPI':
SDL_dynapi.c:(.text+0x26cc): undefined reference to 
`get_sdlapi_entry'
_deps/sdl2-build/libSDL2.a(SDL_dynapi.c.obj): In function `SDL_LockAudio_DEFAULT'
:
SDL_dynapi.c:(.text+0xfdf4): undefined reference to `get_sdlapi_entry'
_deps/sdl2-build/libSDL2.a(SDL_dynapi.c.obj): In function 
`SDL_ClearHints_DEFAULT':
SDL_dynapi.c:(.text+0xff5c): undefined reference to `get_sdlapi_entry'
_deps/sdl2-build/libSDL2.a(SDL_dynapi.c.obj): In function `SDL_StartTextInput_DEFAULT':
SDL_dynapi.c:(.text+0x100c4): undefined reference to 
`get_sdlapi_entry'
_deps/sdl2-build/libSDL2.a(SDL_dynapi.c.obj): In function `SDL_GameControllerUpdate_DEFAULT'
:
SDL_dynapi.c:(.text+0x1022c): undefined reference to `get_sdlapi_entry'
_deps/sdl2-build/libSDL2.a(SDL_dynapi.c.obj):SDL_dynapi.c:(.text+0x10394): more undefined references to 
`get_sdlapi_entry' follow
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/fallout2-ce.dir/build.make:1845: fallout2-ce] Error 1
make[1]: *** [CMakeFiles/Makefile2:182: CMakeFiles/fallout2-ce.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: Attemping FallOut2-Community Edition Port
Quite a regular
Quite a regular


See User information
No idea, but "get_sdlapi_entry" seems to be here: ../dynapi/SDL_dynapi.c


https://github.com/google/filament/blo ... 2/src/dynapi/SDL_dynapi.c

Go to top
Re: Attemping FallOut2-Community Edition Port
Home away from home
Home away from home


See User information
@Sinan
As far as i can see from those sources, the game use external libs which build on their own. One of them are SDL2 , which building process of game just download, and build (mean of course, build without amigaos4 changes). See third_party/sdl2/CMAkeLists.txt :

...
FetchContent_Declare(sdl2
    GIT_REPOSITORY 
"https://github.com/libsdl-org/SDL"
    
GIT_TAG "release-2.0.22"
)
...


And of course as it didn't have os4 changes, it just build plain SDL2 with all wrong stuff for us.

What you can do in fast way: just replace in your _deps/sdl2-build/libSDL2.a , on our one from local/newlib/ directory.

But of course, you better to just comment out all the stuff inside of third_party/sdl2/CMAkeLists.txt

@Javier

For us dynapi disabled, see in src/dynapi/SDL_dynapi.h :

#elif defined(__AMIGAOS4__) /* It seems we cannot load .so from a statically linked binary */
#define SDL_DYNAMIC_API 0


Problem Sinan have is that build process of game download SDL2 from original site which have no amigaos4 changes in (so build with dynapi enabled => fail).

Go to top
Re: Attemping FallOut2-Community Edition Port
Not too shy to talk
Not too shy to talk


See User information
@kas1e

Yes copying the clib2 version of libSDL2.a and #define SDL_DYNAMIC_API 0 works.. Now it is compiled 100%

I guess now I have to fix paths and filenames..
Because when I check from Snoopy, it seems like datafiles are recognized as folders.

I guess paths are here :

https://github.com/alexbatalov/fallout ... in/src/platform_compat.cc

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: Attemping FallOut2-Community Edition Port
Home away from home
Home away from home


See User information
@SinanSam460

Maybe zip files, MS Windows has built-in zip file support, can access zip files as if they were catalogs.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Attemping FallOut2-Community Edition Port
Not too shy to talk
Not too shy to talk


See User information
@LiveForIt

I have unpacked .dat files and tried this way.It is not working either.

I am stuck at paths issue at the moment.

I asked for author's help, let's see if he will answer.

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: Attemping FallOut2-Community Edition Port
Home away from home
Home away from home


See User information
@Sinan
Yeah, the paths mess when it full of C code with all those // \\ / \ and whatever always one of the boring parts. And then another boring part is Endian issues :)

Go to top
Re: Attemping FallOut2-Community Edition Port
Home away from home
Home away from home


See User information
@kas1e

Should be pretty simple to create a windows2amigaPath() function.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Attemping FallOut2-Community Edition Port
Just popping in
Just popping in


See User information
How is it going with Fallout 2? Any news? Did you get a reply from the author?

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project