www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Linux(kubuntu) Problem

reply Wolftousen Frozenwind <eliot.darkwolf gmail.com> writes:
A bit of information before i get to the meat of the issue.

I'm using kubuntu 7.10 OS
I'm using Eclipse IDE
Program uses SDL for windowing/key/mouse input
Program uses OpenGL for graphics
Using Phobos

Compiling the program presents 0 errors.
When i tell eclipse to run it, it runs just fine as it is expected to.
When I tell command line to run it, it runs just fine as it is expected to.

Problem is, when i click the icon from within the folder, it fails to run b/c
it doesn't load the files i need it to that hold textures.  It also doesn't
write to any files if i tell it to.  Tried as root and still wont run properly.

I'm using write, append, read from std.file.

Are there other read/write functions I should be using?
Mar 27 2008
parent reply Wolftousen Frozenwind <eliot.darkwolf gmail.com> writes:
Moved files to the home folder to attempt to run and got this error when i
attempted to run it from command line:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


       ---------------------- DirectFB v0.9.25 ---------------------
             (c) 2000-2002  convergence integrated media GmbH
             (c) 2002-2004  convergence GmbH
        -----------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2007-08-07 19:21)
(*) Direct/Memcpy: Using MMX optimized memcpy()
(!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
    --> No such file or directory
(!) DirectFB/FBDev: Error opening framebuffer device!
(!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
(!) DirectFB/Core: Could not initialize 'system' core!
    --> Initialization error!
Segmentation fault (core dumped)

No change in being able to run it by clicking the icon though,
still very puzzled
Mar 27 2008
next sibling parent Wolftousen Frozenwind <eliot.darkwolf gmail.com> writes:
Forgot, those errors occured while in command line as root and not my account...
Mar 27 2008
prev sibling parent gide _nospam_btinernet.com writes:
On Thu, 27 Mar 2008 13:37:51 -0400, Wolftousen Frozenwind
<eliot.darkwolf gmail.com> wrote:

Moved files to the home folder to attempt to run and got this error when i
attempted to run it from command line:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


       ---------------------- DirectFB v0.9.25 ---------------------
             (c) 2000-2002  convergence integrated media GmbH
             (c) 2002-2004  convergence GmbH
        -----------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2007-08-07 19:21)
(*) Direct/Memcpy: Using MMX optimized memcpy()
(!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
    --> No such file or directory
(!) DirectFB/FBDev: Error opening framebuffer device!
(!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
(!) DirectFB/Core: Could not initialize 'system' core!
    --> Initialization error!
Segmentation fault (core dumped)

No change in being able to run it by clicking the icon though,
still very puzzled

It is possible that display has not been set or your local machine is not allowed X server connections. Try entering the command 'xhost +' as root or setting the DISPLAY environment variable to your local machine, e.g. export DISPLAY="localhost:0.0" Hope this helps. Gide
Mar 28 2008