Results 1 to 14 of 14

Thread: Novashell binary gives segfault.

  1. #1

    Default Novashell binary gives segfault.

    I run ubuntu (lucid). I have downloaded novashell binary, and tried to run it like:

    "./novashell worlds/RT_DinkTest.novashell"

    And it quits just giving a segfault. Then I downloaded the source from svn, and built it with some effort. But then it gives the segfault again. The compiler gives some warning about passing some temporary address as argument to a function, but builds it anyway.

    perhaps someone could help me about it?

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,340

    Default

    Hmm, if you just run ./novashell by itself does it work? Is a log.txt created?

    I haven't run the Ubuntu version in a while.. it's possible something broke on the latest version/GCC version.

    In related news, now accepting positions for a novashell linux svn maintainer...
    Seth A. Robinson
    Robinson Technologies

  3. #3

    Default

    No, ./novashell did the same. There is a log.txt created, but it is blank.

  4. #4
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,340

    Default

    Hmm.. sounds like it needs to be run in debug mode and the stack trace checked to see where the problem lies. <puts on todo list.. sorry for the slowness, hectic time right now>
    Seth A. Robinson
    Robinson Technologies

  5. #5

    Default

    I know what is the issue, but I don't know how to fix it, yet.

    It is dependency issue, I've made several versions of novashell and tested on several machines, every time something is missing it segfaults, now I need to figure a way to know WHAT is missing.

  6. #6
    Lesser Wizard
    Join Date
    Mar 2008
    Posts
    124

    Default

    Quote Originally Posted by speeder View Post
    It is dependency issue, I've made several versions of novashell and tested on several machines, every time something is missing it segfaults, now I need to figure a way to know WHAT is missing.
    Somebody has managed to get the latest version to compile under Linux (Ubuntu) here. I'm trying to follow the instructions myself, but it's all a little new to me.

  7. #7

    Default

    You don't got it...

    The issue is not compile the lastest version, I compiled my version on several machines, but every time I put it in another machine different from the one I compile, dependancy issues arise.

    No matter how much you compile it, it WILL segfault.

    The solution is find what it needs, and ship with the binary or compile it in the binary.
    But I don't know yet how to find what it needs.

  8. #8
    Lesser Wizard
    Join Date
    Mar 2008
    Posts
    124

    Default

    Ahh sorry. I thought you mean you were compiling it on several machines and every one of the binaries was segfaulting on the same machine it was complied on.

    Hmm well you're doing much better than me. I can't even get it to compile

  9. #9

    Default

    When I have to recompile again my GNU/Linux version, I will upload my source and code::blocks project file.

  10. #10
    Lesser Wizard
    Join Date
    Mar 2008
    Posts
    124

    Default

    That would be great, thanks. The version in the SVN seems pretty broken

  11. #11

    Default

    http://www.agfgames.com/files/pw_engine_source.7z



    This is the almost lastest, but the changes that I made after uploading this file regard only my own game...

    Please, note that the icon and name of the engine on this source are of my game, this before releasing yours take care to change them XD

  12. #12
    Lesser Wizard
    Join Date
    Mar 2008
    Posts
    124

    Default

    Thanks for that. I've had a go at building with the ./linux_make_novashell.sh but it still gives me a load of error messages.

    I've had a go with code::blocks but I've never used it before and I don't have a clue what I'm supposed to do I changed build target to GNU32 and click 'rebuild' but I'm getting the following errors:

    ||=== novashell, Release GNU32 ===|
    /home/pleng/compiles/novashellSVN/SharedLib/linearparticle/sources/L_Defination.h|30|error: ClanLib/core.h: No such file or directory|
    /home/pleng/compiles/novashellSVN/SharedLib/linearparticle/sources/L_Defination.h|31|error: ClanLib/application.h: No such file or directory|
    /home/pleng/compiles/novashellSVN/SharedLib/linearparticle/sources/L_Defination.h|32|error: ClanLib/display.h: No such file or directory|
    /home/pleng/compiles/novashellSVN/SharedLib/linearparticle/sources/L_Defination.h|77|error: ‘RAND_MAX’ was not declared in this scope|
    /home/pleng/compiles/novashellSVN/SharedLib/linearparticle/sources/L_Defination.h|78|error: ‘RAND_MAX’ was not declared in this scope|
    /home/pleng/compiles/novashellSVN/SharedLib/linearparticle/sources/L_Vector.h|44|error: ISO C++ forbids declaration of ‘CL_Vector2’ with no type|
    /home/pleng/compiles/novashellSVN/SharedLib/linearparticle/sources/L_Vector.h|44|error: expected ‘,’ or ‘...’ before ‘&’ token|
    /home/pleng/compiles/novashellSVN/SharedLib/linearparticle/sources/L_Vector.h|48|error: ISO C++ forbids declaration of ‘CL_Vector2’ with no type|
    /home/pleng/compiles/novashellSVN/SharedLib/linearparticle/sources/L_Vector.h|48|error: expected ‘,’ or ‘...’ before ‘&’ token|
    /home/pleng/compiles/novashellSVN/SharedLib/linearparticle/sources/L_Particle.h|55|error: ISO C++ forbids declaration of ‘CL_Color’ with no type|
    /home/pleng/compiles/novashellSVN/SharedLib/linearparticle/sources/L_Particle.h|55|error: expected ‘,’ or ‘...’ before ‘&’ token|
    /home/pleng/compiles/novashellSVN/SharedLib/linearparticle/sources/L_Particle.h||In constructor ‘L_Color::L_Color(int)’:|
    /home/pleng/compiles/novashellSVN/SharedLib/linearparticle/sources/L_Particle.h|57|error: ‘color’ was not declared in this scope|
    /home/pleng/compiles/novashellSVN/SharedLib/linearparticle/sources/L_Particle.h|89|error: ISO C++ forbids declaration of ‘CL_Surface’ with no type|
    /home/pleng/compiles/novashellSVN/SharedLib/linearparticle/sources/L_Particle.h|89|error: expected ‘;’ before ‘*’ token|
    /home/pleng/compiles/novashellSVN/SharedLib/linearparticle/sources/L_Particle.h|162|error: expected ‘)’ before ‘*’ token|
    ||=== Build finished: 15 errors, 0 warnings (0 minutes, 10 seconds) ===|

  13. #13

    Default

    You have to install ClanLib 1.0 (not 2.0)

  14. #14
    Lesser Wizard
    Join Date
    Mar 2008
    Posts
    124

    Default

    Wow thanks for the fast response.

    I have Clanlib 1.0.0 installed. Well I compiled from source and installed with sudo make install, which is what I guess needs to be done, right?

Similar Threads

  1. backward binary compatibility checking
    By andrey-ponomarenko in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 08-08-2009, 01:32 PM
  2. generic linux binary?
    By dracoroot7 in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 05-03-2009, 11:26 PM
  3. Segfault with FontTest program
    By keph in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 01-07-2009, 11:31 PM
  4. simple ClanLib example problem - segfault
    By phx_one in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 02-17-2008, 12:54 AM
  5. XML and Binary
    By sffish in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 09-20-2006, 03:48 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •