FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Fatal errors in arc.window

 
Post new topic   Reply to topic     Forum Index -> ArcLib
View previous topic :: View next topic  
Author Message
Archimedes



Joined: 31 Dec 2008
Posts: 1

PostPosted: Wed Dec 31, 2008 3:39 am    Post subject: Fatal errors in arc.window Reply with quote

Hey all,

I have spent most of today getting everything set up on my system, and I have managed to get Tango (0.997) working with DSSS 0.78 and GDC 4.1.3, though admittedly all I've written have been a few simple test scripts (bizzbuzz, 99 bottles of beer, etc). I've also net installed Derelict and ArcLib, but I am having some problems. I can compile the simple test program (slightly modified) from the tutorial, but when I run it, it crashes instantly. Here are the program and the arc.log file it generates:

arctest.d
Code:

module arctest;

// include input, window, and font to display 'hello world'
import
        arc.input,
        arc.window,
        arc_freetype.font,
        arc.math.point,
        arc.draw.color;

int main()
{
    // Open window with title, screen width, height, and bits per pixel
    arc.window.open("Hello World", 400,300,0);

    // Open input handling
    arc.input.open();

    // Open font system
    arc_freetype.font.open();

    // Create a new font with height of 32
    Font font = new Font("font.ttf", 32);

    // while the user doesn't press the QUIT button
    while (!arc.input.keyDown(ARC_QUIT))
    {
        // process input
        arc.input.process();

        // clear the current screen
        arc.window.clear();

        // draw the font in the center of the screen
        font.draw("Hello Arc World"c, Point(200,200),Color.Green);

        // swap window buffers
        arc.window.swap();
    }

    // close font system
    arc_freetype.font.close();

    // clean ourselves up and exit
    arc.window.close();

    return 0;
}


arc.log
Code:

0  Info  arc.window - window: open(Hello World, 400, 300, 0)
7  Fatal arc.window - Failed to load Derelict GL, GLU, SDL, and SDL_image
7  Fatal arc.window - Failed to load proc gluErrorUnicodeStringEXT from shared library libGLU.so


The second two numbers sometimes change (I've seen 7, 8, and 63 so far), but that's about it.

In the interest of full disclosure, I have modified some of the extension files in the current trunk to get them to build, primarily copying the current Blaze repo and renaming everything to arc_blaze.

My current setup is thus:
Ubuntu 7.10 Gutsy, x86_64 (Athlon X2)
DSSS 0.78 with net installs of Tango, Blaze, Derelict, and most of ArcLib.
GDC 4.1.3
Coding done in Vim, building with DSSS.

If anyone could help, that would be fantastic. I eagerly await any advice.

Archimedes
Back to top
View user's profile Send private message
Lutger



Joined: 25 May 2006
Posts: 91

PostPosted: Sun Jan 11, 2009 5:49 am    Post subject: Reply with quote

I had the same problem. gluErrorUnicodeStringEXT seems to be an (undocumented) microsoft-specific extension to the GLU library. I couldn't find much with google about it, except this: http://www.cygwin.com/ml/cygwin/2004-02/msg00993.html

The problem lies within derelict, which tries to load this function on linux systems too. Derelict has a mechanism though for loading libraries even if not all functions are present, but this has to be done in arc which loads derelict.

I'll mention this in the derelict forums too.

In the meantime you could try compiling derelictglu yourself and remove or version(Windows) the line that loads this function from glu.d.
Back to top
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Sun Jan 11, 2009 8:04 pm    Post subject: Reply with quote

DerelictGLU no longer tries to load gluErrorUnicodeString, so Arc doesn't need to worry.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Fri Jan 16, 2009 2:22 pm    Post subject: Reply with quote

Thanks, Aldacron. Otherwise I would just add it to the missing proc list to handle.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> ArcLib All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group