Giter Club home page Giter Club logo

Comments (23)

coreybruce avatar coreybruce commented on July 18, 2024 1

on Manjaro the package names are:

  • sdl2
  • sdl2_gfx
  • libpng
  • libvorbis
  • libvpx

Debian and Ubuntu have the most retarded package names

from openbor.

msmalik681 avatar msmalik681 commented on July 18, 2024 1

So looking at this log the issues are with recent changes to the engine. Again ignore the "SDL2_framerate.h" as I recently tested and that was not showing up so maybe it is already fixed. The other errors I did see so looking at this log can you figure out why it is complaining ? or how we can fix it ?

Edit: its not displaying properly in my quote see the log posted last by corey bruce.

from openbor.

msmalik681 avatar msmalik681 commented on July 18, 2024

Can you confirm the sdl2 package name you installed ?

from openbor.

msmalik681 avatar msmalik681 commented on July 18, 2024

These are the required packages on debien: libsdl2-dev libsdl2-gfx-dev libpng-dev libvorbis-dev libvpx-dev

from openbor.

msmalik681 avatar msmalik681 commented on July 18, 2024

you need to install the dev packages but i can't find any for arch you can try to install haskell-sdl2 if that does not work you will have to build sdl2 from source.

from openbor.

coreybruce avatar coreybruce commented on July 18, 2024

The dev packages are the packages I have installed, like I said Ubuntu and Debian have a really bizarre way of naming packages. I already meet the requirements but the build script is looking for the wrong thing. You need to adjust the compiling script. do you have normal build commands? does this use make?

from openbor.

V0rt3x667 avatar V0rt3x667 commented on July 18, 2024

Hi, if you like you can use my retro gaming script to install openbor: https://github.com/V0rt3x667/ArchyPie-Setup.

If you don't want to use that then you can also sed the source code as follows to build openbor.
# Fix Locale Warning
sed -e "s|en_US.UTF-8|C|g" -i "${md_build}/engine/version.sh"

# Disable Abort On Warnings & Errors
sed -e "s|-Werror||g" -i "${md_build}/engine/Makefile"

from openbor.

V0rt3x667 avatar V0rt3x667 commented on July 18, 2024

To clarify, substitute ${md_build} with the folder containing the openbor source code.

from openbor.

V0rt3x667 avatar V0rt3x667 commented on July 18, 2024

Also run the scripts in this order:
./version.sh
./build.sh 4

from openbor.

coreybruce avatar coreybruce commented on July 18, 2024

Hey there sorry I didn't get back to you, I can give it a go but if the instructions/code could be updated to be compiled on more modern distros that would be great

from openbor.

V0rt3x667 avatar V0rt3x667 commented on July 18, 2024

Sorry I don't maintain OpenBOR so I can't change how the software is built and installed.

from openbor.

msmalik681 avatar msmalik681 commented on July 18, 2024

Might update this to automatically satisfy dependencies based on your package manager as i wanted to update it to automatically make a appimage anyway.

from openbor.

coreybruce avatar coreybruce commented on July 18, 2024

Sorry I don't maintain OpenBOR so I can't change how the software is built and installed.

Oh ok no problem 🙂

from openbor.

coreybruce avatar coreybruce commented on July 18, 2024

Might update this to automatically satisfy dependencies based on your package manager as i wanted to update it to automatically make a appimage anyway.

Are you a maintainer if this repo? Could we just get normal build commands document?

from openbor.

coreybruce avatar coreybruce commented on July 18, 2024

I have tried again with both using the makefile and the build.sh file and they have both sadly failed

make BUILD_LINUX=1                                                                                                                                         ✔ 
Compiling LINUX Port: openbor.c...
/bin/sh: line 1: /gcc: No such file or directory
make: *** [Makefile:721: openbor.o] Error 127
./build.sh 4                                                                                                                                           127 ✘ 
-------------------------------------------------------
OpenBOR v4.0 Build 7575 (commit hash 8064d0e) - https://www.ChronoCrash.com

All rights reserved.
See LICENSE and README within OpenBOR root for details.

Copyright (c) OpenBOR Team
-------------------------------------------------------
ls: cannot access '/home/corey/.local/bin': No such file or directory
-------------------------------------------------------
     ERROR - Linux x86 Environment Failed
                 SDK Installed?
-------------------------------------------------------
-------------------------------------------------------
   Linux x86 SDK (x86_64-pc-linux-gnu) Environment Loaded!
-------------------------------------------------------

Removing All LINUX Files...
Done!

Compiling LINUX Port: openbor.c...
Compiling LINUX Port: openborscript.c...
Compiling LINUX Port: sdl/joysticks.c...
Compiling LINUX Port: sdl/control.c...
Compiling LINUX Port: sdl/sblaster.c...
Compiling LINUX Port: sdl/timer.c...
Compiling LINUX Port: sdl/sdlport.c...
openbor.c: In function ‘display_ents’:
openbor.c:29446:26: error: the comparison will always evaluate as ‘true’ for the pointer operand in ‘anim->platform + (sizetype)((long unsigned int)e->animpos * 32)’ must not be NULL [-Werror=address]
29446 |                     if ( anim->platform[e->animpos] )
      |                          ^~~~
openbor.c: At top level:
openbor.c:30052:9: error: conflicting types for ‘find_ent_here’ due to enum/integer mismatch; have ‘entity *(entity *, float,  float,  e_entity_type,  int (*)(entity *, entity *))’ [-Werror=enum-int-mismatch]
30052 | entity *find_ent_here(entity *exclude, float x, float z, e_entity_type types, int (*test)(entity *, entity *))
      |         ^~~~~~~~~~~~~
In file included from openbor.c:15:
openbor.h:4565:9: note: previous declaration of ‘find_ent_here’ with type ‘entity *(entity *, float,  float,  int,  int (*)(entity *, entity *))’
 4565 | entity *find_ent_here(entity *exclude, float x, float z, int types, int (*test)(entity *, entity *));
      |         ^~~~~~~~~~~~~
openbor.c:30321:5: error: conflicting types for ‘set_blockpain’ due to enum/integer mismatch; have ‘int(entity *, e_attack_types,  int)’ [-Werror=enum-int-mismatch]
30321 | int set_blockpain(entity *ent, e_attack_types attack_type, int reset)
      |     ^~~~~~~~~~~~~
openbor.h:4575:5: note: previous declaration of ‘set_blockpain’ with type ‘int(entity *, int,  int)’
 4575 | int set_blockpain(entity *iBlkpain, int type, int reset);
      |     ^~~~~~~~~~~~~
Compiling LINUX Port: sdl/video.c...
Compiling LINUX Port: sdl/videocommon.c...
sdl/video.c:16:10: fatal error: SDL2_framerate.h: No such file or directory
   16 | #include "SDL2_framerate.h" // Kratus (01-2023) Added a FPS limit option in the video settings
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:721: sdl/video.o] Error 1
make: *** Waiting for unfinished jobs....
cc1: all warnings being treated as errors
make: *** [Makefile:720: openbor.o] Error 1

Removing All LINUX Files...
Done!

@DCurrent It would be better to have a cmake file to find the dependencies or tools you need to generate a proper makefile and build for Linux and all the architectures instead of making a script that would be a headache to support/update everything

from openbor.

msmalik681 avatar msmalik681 commented on July 18, 2024

@DCurrent ignoring "SDL2_framerate.h" if we can satisfy the other 5 errors/issues then we can support newer gcc versions ?

from openbor.

DCurrent avatar DCurrent commented on July 18, 2024

@msmalik681

So long as A) it compiles in Windows environment without modifications and B) we're fixing errors and not suppressing/ignoring them I'm fine with it.

from openbor.

coreybruce avatar coreybruce commented on July 18, 2024

Yeah it defiantly needs to be improved

from openbor.

coreybruce avatar coreybruce commented on July 18, 2024

So looking at this log the issues are with recent changes to the engine. Again ignore the "SDL2_framerate.h" as I recently tested and that was not showing up so maybe it is already fixed. The other errors I did see so looking at this log can you figure out why it is complaining ? or how we can fix it ?

Edit: its not displaying properly in my quote see the log posted last by corey bruce.

did you want me to git pull and try again?

from openbor.

msmalik681 avatar msmalik681 commented on July 18, 2024

@coreybruce please join my discord https://discord.gg/P44baVdCHF I have made a channel for openbor linux.

from openbor.

coreybruce avatar coreybruce commented on July 18, 2024

@coreybruce please join my discord https://discord.gg/P44baVdCHF I have made a channel for openbor linux.

Ok but why do we need to be in Discord when we are already talking here?

from openbor.

msmalik681 avatar msmalik681 commented on July 18, 2024

Easier to collaborate or are you on the cronocrash forums ?

from openbor.

coreybruce avatar coreybruce commented on July 18, 2024

Easier to collaborate or are you on the cronocrash forums ?

Oh ok well I am already in the Discord server and in that channel

from openbor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.