Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building on Linux fails #71

Open
ghost opened this issue Mar 21, 2017 · 12 comments
Open

Building on Linux fails #71

ghost opened this issue Mar 21, 2017 · 12 comments

Comments

@ghost
Copy link

ghost commented Mar 21, 2017

Compilation fails at 71%

/usr/include/SDL2/SDL_assert.h:145:19: note: in definition of macro ‘SDL_enabled_assert’
         while ( !(condition) ) { \
                   ^~~~~~~~~
/home/ralf/Serious-Engine/Sources/./Engine/Base/Assert.h:104:26: note: in expansion of macro ‘SDL_assert’
     #define ASSERT(expr) SDL_assert(expr)
                          ^~~~~~~~~~
/home/ralf/Serious-Engine/Sources/./Engine/Templates/StaticArray.cpp:129:3: note: in expansion of macro ‘ASSERT’
   ASSERT(&arOriginal!=NULL);
   ^~~~~~
[ 51%] Linking CXX shared library Debug/libEntitiesMPD.so
[ 71%] Built target EntitiesMPD
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Tried both 32 and 64 bit

@stevenc99
Copy link

stevenc99 commented Mar 22, 2017

Hi,

The actual error message is not shown in the text you quoted. Please scroll up to find the text "error 1" and "error:". You probably have this problem:

/build/Serious-Engine/Sources/Engine/Engine.cpp:131:0: error: unterminated #else
#if (defined USE_PORTABLE_C) // rcg10072001

which could be fixed by either
a68ec8e or 1984179

@ghost
Copy link
Author

ghost commented Mar 24, 2017

Hi,

It appears to be a different issue.

makelog.txt

@stevenc99
Copy link

Hi RalfVB,

Your log file seems incomplete. Perhaps you created it with " > makelog.txt" (which only captures stdout) but you would also need to append " 2>&1" if you want stderr (warnings/errors) to be recorded there too.

@ghost
Copy link
Author

ghost commented Mar 24, 2017

Hi,

You were right, it's indeed this error:

/build/Serious-Engine/Sources/Engine/Engine.cpp:131:0: error: unterminated #else
#if (defined USE_PORTABLE_C) // rcg10072001

I have tried both fixes separately, and together, doing a make clean inbetween, but I'm still unable to compile it

Here's the full log :makelog.txt

Thanks for your help

@stevenc99
Copy link

It may be easier to just clone ptitSeb's fork from https://github.com/ptitSeb/Serious-Engine which seems to fix all the compile issues for me.

@ghost
Copy link
Author

ghost commented Mar 24, 2017

Yes, that one worked for me as well, I've got both tfe and tse up and running. Thanks!

@doggodanubus
Copy link

This was for ssam-tfe, not tried it on ssam tse

I did get it to compile by gutting that part of Engine.cpp and cleaned up the other two errors but still crashed. Thanks for the link to ptitSeb but it still fails with
error: expected ‘;’ before ‘:’ token on WorldCollisionGrid.cpp

I gutted pitSeb's changes for arm and Pandora and it's compiled. It crashes when the game engine tries to display flames afaikt. So a sludge of a step forward.

@ptitSeb
Copy link

ptitSeb commented May 23, 2017

You have a crash on linux with some flames? In TFE or TSE and on what level (on 32bits build right?)

@nesper8
Copy link

nesper8 commented Aug 25, 2020

makelog.txt
Crashes on Arch x64

cmake version 3.18.2
GNU Make 4.3 Built for x86_64-pc-linux-gnu
gcc (GCC) 10.2.0

@ptitSeb
Copy link

ptitSeb commented Aug 25, 2020

What sources are you using @nesper8 ? because your log show

/home/nep/Projects/Serious-Engine/Sources/Engine/Engine.cpp:131: error: unterminated #else
  131 | #if (defined USE_PORTABLE_C)  // rcg10072001

But that line 131 is not like that in this repo.

Also, I assume you have a build issue, as your ticket is very minimal.

EDIT: Ah, I didn't noticed this was created in rcgordon repo. Try my fork: https://github.com/ptitSeb/Serious-Engine it should work.

@nesper8
Copy link

nesper8 commented Aug 26, 2020

@ptitSeb , your version gets compiled out but returns a segmentation fault after the intro
which i have created a new issue on your fork

@ptitSeb
Copy link

ptitSeb commented Aug 26, 2020

I have see, but don't reproduce the issue. But the install process discribed in the README is a bit confusing and I need to clarify that out,e specially with the Free GoG version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants