[Ohrrpgce] Broken Linux build

Ralph Versteegen teeemcee at gmail.com
Thu Nov 26 05:05:19 PST 2020


The 32/64 bit Linux build failed again. It looks like the VMs have libsdl2
2.0.3 or earlier.
I suppose we should build the releases with "scons sdl203=1" to target
2.0.3 instead of 2.0.5, that'll make them more likely to run (e.g. on
Ubuntu 16.04). Right now the features enabled when targeting 2.0.5 are
quite minor, so it doesn't seem worth it.

If we link to libsdl at runtime, then we could get the best of all worlds
by using SDL features only if present.
Another idea is to eventually include libsdl[2].so and libsdl[2]_mixer.so
with games packaged for linux.

On Fri, 27 Nov 2020 at 00:29, James Paige <Bob at hamsterrepublic.com> wrote:

> Aha! Interesting!
>
> So do I need to upgrade Freebasic on any of the VMs? Or should we stick
> with the version we have now?
>
> ---
> James
>
> On Wed., Nov. 25, 2020, 10:31 p.m. Ralph Versteegen, <teeemcee at gmail.com>
> wrote:
>
>> Oh wait, I could just restore a working ohrrpgce-player-win-wip-sdl2.zip
>> from the archive too. Done.
>>
>> On Thu, 26 Nov 2020 at 16:28, Ralph Versteegen <teeemcee at gmail.com>
>> wrote:
>>
>>> I deleted the bad ohrrpgce-player-win-wip-sdl2.zip from the nightly
>>> folder.
>>> I also forgot to mention that a while ago I restored the obsolete
>>> gfx_directx+sdl ohrrpgce-player-win-wip.zip build from the archive, it had
>>> been overwritten with a gfx_sdl2 build
>>>
>>> On Thu, 26 Nov 2020 at 16:20, Ralph Versteegen <teeemcee at gmail.com>
>>> wrote:
>>>
>>>> Whoops, yes, turns out all the nightly build VMs are running old
>>>> versions of FB.
>>>> I had mistakenly thought they were working on Windows because I saw
>>>> ohrrpgce-player-win-wip-sdl2.zip was uploaded, but it turns out it was
>>>> uploaded without game.exe.
>>>> Rather than having to update all the FB installs is a pain so what I'll
>>>> do instead is just define the functions ourselves if they're missing from
>>>> the headers. Whether the functions appear in the FB headers tells nothing
>>>> about whether the libraries installed on the system actually provide the
>>>> functions anyway.
>>>> I guess we'll target SDL 2.0.5 on Linux for now.
>>>>
>>>> On Thu, 26 Nov 2020 at 14:15, James Paige <Bob at hamsterrepublic.com>
>>>> wrote:
>>>>
>>>>> Ah, actually, that was all builds, not just linux builds.
>>>>> Maybe forgot to check in a new file?
>>>>>
>>>>> On Mon, Nov 23, 2020 at 4:29 PM James Paige <Bob at hamsterrepublic.com>
>>>>> wrote:
>>>>>
>>>>>> Looks like recent changes to the gamepad support broke compiling in
>>>>>> Linux.
>>>>>>
>>>>>> Seems to have started with commit:
>>>>>>
>>>>>> gfx_sdl2: Use SDL's GameController API to read fixed-meaning
>>>>>> buttons/axes if possible
>>>>>>
>>>>>> (svn revision 12079)
>>>>>>
>>>>>> gfx_sdl2.bas(985) error 41: Variable not declared,
>>>>>> SDL_JoystickGetDeviceInstanceID in
>>>>>> 'SDL_JoystickGetDeviceInstanceID(evnt.jdevice.which) & " " &
>>>>>> SDL_JoystickNameForIndex(evnt.jdevice.which)'
>>>>>> /home/james/src/nightly/ohrrpgce-build/wip/gfx_sdl_common.bas(239)
>>>>>> error 41: Variable not declared, SDL_GameControllerFromInstanceID in 'DIM
>>>>>> controller as SDL_GameController ptr =
>>>>>> SDL_GameControllerFromInstanceID(state->info->instance_id)'
>>>>>> scons: *** [build/game-gfx_sdl2.o] Error 1
>>>>>>
>>>>> _______________________________________________
>>>>> Ohrrpgce mailing list
>>>>> ohrrpgce at lists.motherhamster.org
>>>>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>>>>
>>>> _______________________________________________
>> Ohrrpgce mailing list
>> ohrrpgce at lists.motherhamster.org
>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>
> _______________________________________________
> Ohrrpgce mailing list
> ohrrpgce at lists.motherhamster.org
> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20201127/c49556a2/attachment-0001.html>


More information about the Ohrrpgce mailing list