Port Requests


I need help..

i'm trying to build this game...http://zxstudio.org/projects/drdestructo/

screen_10_title.png


but i have problem building the code.

Here is the error i have :

Linking CXX static library libtinyxml.a
[ 49%] Built target tinyxml
[ 49%] Building CXX object CMakeFiles/DrDestructo2.dir/src/AICommands.cpp.o
[ 50%] Building CXX object CMakeFiles/DrDestructo2.dir/src/AIProcessor.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html>for instructions.
CMakeFiles/DrDestructo2.dir/build.make:77: recipe for target 'CMakeFiles/DrDestructo2.dir/src/AIProcessor.cpp.o' failed
make[2]: *** [CMakeFiles/DrDestructo2.dir/src/AIProcessor.cpp.o] Error 4
CMakeFiles/Makefile2:62: recipe for target 'CMakeFiles/DrDestructo2.dir/all' failed
make[1]: *** [CMakeFiles/DrDestructo2.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2
i use codeblocks cli and a swapfile of 256MB
 
I confirmed what @ekianjo said, @Farox you need a bigger swap (I use a 4Go myself, but that is a bit overkill ;) ), "killed" means it ran out of memory most probably.
 
without specific experience, that error do not look related to what you are compiling but to the compiler itself, increasing swap is definitely the first thing to try
 
I use now a 512MB one and compilation goes further...but i have error not related to insufficient memory, but related to a custom version of Allegro lib used to build this game.

I think i give up :(   and let someone more expert to finish this port
 
I use now a 512MB one and compilation goes further...but i have error not related to insufficient memory, but related to a custom version of Allegro lib used to build this game.

I think i give up :(   and let someone more expert to finish this port
@Farox: looks like a very nice Shoot'm up. Is it Allegro 4 or Allegro 5 ?
 
It's an Allegro 5 game and there is a patch (available on github page of the game) to apply.

Thanks for take a look at it. :)
 
It's an Allegro 5 game and there is a patch (available on github page of the game) to apply.

Thanks for take a look at it. :)
I got it compiled and running

post-5182-0-65357900-1433449615.png


But it crash with a segfault after like 20 sec of gameplay. It crashes inside the SGX driver and FBO check, I have to analyse what is happening, maybe I create FBO and don't release them (inside Allegro5).

drdestructo2_4.png
 
I'm really glad that you take a look at this game...i'm sure i wasn't able to master it or make it work like you did. :)
 
I'm really glad that you take a look at this game...i'm sure i wasn't able to master it or make it work like you did. :)
Well, thanks, but it's not releasable for now. I still have that segfault to fix :(

For info, here is the backtrace from a gdb session

Code:
Program received signal SIGSEGV, Segmentation fault.
0x4055b6f0 in SetupZLSRegs (gc=0x21c510, psRenderSurface=0x221ae0, ui32ClearFlags=0) at sgxif.c:171
171     sgxif.c: No such file or directory.
(gdb) bt
#0  0x4055b6f0 in SetupZLSRegs (gc=0x21c510, psRenderSurface=0x221ae0, ui32ClearFlags=0) at sgxif.c:171
#1  0x4055bf60 in DoKickTA (ui32KickFlags=<optimized out>, psRenderSurface=<optimized out>, gc=<optimized out>) at sgxif.c:1061
#2  ScheduleTA (gc=0x21c510, psRenderSurface=0x221ae0, ui32KickFlags=1) at sgxif.c:1881
#3  0x405528e4 in KRM_FlushUnKickedResource (psMgr=0x21d46c, psResource=<optimized out>, pvContext=0x21c510, pfnScheduleTA=0x4055c5c0 <KickUnFlushed_ScheduleTA>)
    at /home1/prathap/fresh/imgtiddk16_netrakernel/ti_references/sources/GFX_Linux_DDK/src/eurasia/eurasiacon/common/kickresource.c:1320
#4  0x4056ad5c in SetupTextureRenderTargetControlWords (gc=0x21c510, psTex=0x29c520) at texmgmt.c:675
#5  0x40551a98 in ComputeFrameBufferCompleteness (gc=<optimized out>) at fbo.c:814
#6  GetFrameBufferCompleteness (gc=0x21c510) at fbo.c:1847
#7  0x00110d18 in setup_fbo_non_backbuffer (ogl_bitmap=0x29cb90, ogl_bitmap=0x29cb90, bitmap=0x29ca98, display=0x20ed70) at /media/sda1/sources/git/allegro51-pandora/src/opengl/ogl_fbo.c:380
#8  _al_ogl_setup_fbo (display=0x20ed70, bitmap=0x29ca98) at /media/sda1/sources/git/allegro51-pandora/src/opengl/ogl_fbo.c:284
#9  0x0010ff94 in _al_ogl_set_target_bitmap (display=0x20ed70, bitmap=0x29ca98) at /media/sda1/sources/git/allegro51-pandora/src/opengl/ogl_display.c:65
#10 0x000e15ac in al_set_target_bitmap (bitmap=0x29ca98) at /media/sda1/sources/git/allegro51-pandora/src/tls.c:423
#11 0x000b70c0 in AllegroRender5::DrawImage(Handle<IImage*>, Handle<IImage*>, int, int) ()
#12 0x00048858 in GameStateLevel::ProcessSingleCollision(MechanicComponent const*, MechanicComponent const*, IGameContext&) ()
#13 0x00049394 in GameStateLevel::ProcessCollisions(IGameContext&) ()
#14 0x0004a930 in GameStateLevel::Update(float, IGameContext&) ()
#15 0x00033e90 in Game::Run() ()
#16 0x00017384 in main ()
 
Last edited by a moderator:
If someone want to test. Here is the PND (*edited* link remove, grab a better version on the repo).

I have tested on a Gigahertz, and found that the 4.10 driver worked very well.

I have tested on CC, but didn't found a driver (default and first one kind-of works, but not much).

I have not tested on Rebirth.

I'll try to re-compile Allegro using GLES1 instead of GLES2 and try again.

*EDIT* I have the same behavior :(
 
Last edited by a moderator:
Actually this looks like a full client source and not just the protocol specification, so my previous answer doesn't apply here.
 
I tried running Make on its source but ran into the following error:

Code:
In file included from connect_to_server_dialog.h:12:0,
                 from qtbrynhildr.h:27,
                 from main.cpp:23:
ui_connect_to_server_dialog.h: In member function 'void Ui_ConnectToServerDialog::setupUi(QDialog*)':
ui_connect_to_server_dialog.h:165:113: error: 'ImhSensitiveData' is not a member of 'Qt'
         lineEdit_password->setInputMethodHints(Qt::ImhHiddenText|Qt::ImhNoAutoUppercase|Qt::ImhNoPredictiveText|Qt::ImhSensitiveData);
                                                                                                                 ^
Makefile:457: recipe for target 'main.o' failed
make: *** [main.o] Error 1
 
@Zero3K: I think there is a mix between Qt4 and Qt5 includes, as this ImhSensitiveData should be defined in Qt5. If you are using codeblocks, try to "hides" the Qt4 includes (I think I have fixed that issue in the upcoming release of codeblocks).
 
Back
Top