Author Topic: Arch Linux Install = "Failed to initialize graphics"  (Read 466 times)

Legacy_x12o

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
Arch Linux Install = "Failed to initialize graphics"
« on: September 06, 2011, 05:20:10 pm »


               Recently, I had to re-install my Arch Linux distribution (x86_64). I attempted to run Neverwinter Nights and promptly received the message:

"Failed to initialize graphics"

I've been fighting this for a week to no avail. I've tried to re-install the game in three different ways (including the Ravage installer), all of which lead me back to the same message.

Does anyone have a precise list of all 32-bit libraries needed to run the game?

I've been trolling other forums looking for a list, but nobody seems to even have a clue as to what I'm talking about. After searching here and clicking through all 17 pages of the tech support forum and finding nothing, I figured I'd post it.

Here's a printout of ldd ./nwmain:

    linux-gate.so.1 =>  (0xf7787000)
    libm.so.6 => /usr/lib32/libm.so.6 (0xf7745000)
    libpthread.so.0 => /usr/lib32/libpthread.so.0 (0xf772a000)
    libGL.so.1 => /usr/lib32/libGL.so.1 (0xf76d5000)
    libGLU.so.1 => /usr/lib32/libGLU.so.1 (0xf7665000)
    libmss.so.6 => /usr/lib32/libmss.so.6 (0xf75f0000)
    libSDL-1.2.so.0 => /usr/lib32/libSDL-1.2.so.0 (0xf7563000)
    libc.so.6 => /usr/lib32/libc.so.6 (0xf73fb000)
    /lib/ld-linux.so.2 (0xf7788000)
    libglapi.so.0 => /usr/lib32/libglapi.so.0 (0xf73e6000)
    libXext.so.6 => /usr/lib32/libXext.so.6 (0xf73d8000)
    libXdamage.so.1 => /usr/lib32/libXdamage.so.1 (0xf73d4000)
    libXfixes.so.3 => /usr/lib32/libXfixes.so.3 (0xf73cf000)
    libXxf86vm.so.1 => /usr/lib32/libXxf86vm.so.1 (0xf73ca000)
    libX11-xcb.so.1 => /usr/lib32/libX11-xcb.so.1 (0xf73c7000)
    libX11.so.6 => /usr/lib32/libX11.so.6 (0xf728f000)
    libxcb-glx.so.0 => /usr/lib32/libxcb-glx.so.0 (0xf727d000)
    libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf7265000)
    libdrm.so.2 => /usr/lib32/libdrm.so.2 (0xf725a000)
    libdl.so.2 => /usr/lib32/libdl.so.2 (0xf7255000)
    libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf7167000)
    libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf714b000)
    libXau.so.6 => /usr/lib32/libXau.so.6 (0xf7148000)
    libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf7143000)
    librt.so.1 => /usr/lib32/librt.so.1 (0xf713a000)

Any help would be greatly appreciated. Please refrain from using the trump comment "But it works on my system". I've received that enough over the past week and doesn't really help me. I need someone experienced and knowledgeable in Linux-based installations and can step through this problem carefully.

Thank you in advance.
               
               

               
            

Legacy_Skildron

  • Sr. Member
  • ****
  • Posts: 421
  • Karma: +0/-0
Arch Linux Install = "Failed to initialize graphics"
« Reply #1 on: September 07, 2011, 09:45:06 am »


               The "Failed to initialize graphics" error usually turns up if you try to use the lidSDL version shipped with nwn of if your graphics board drivers don't have working 3d acceleration. First, I recommend, looking into the nwn script in your nwn installation folder and remove the
./lib:
statement from the line starting with
export LD_LIBRARY_PATH=
if you have not already done so.

The graphics board drivers are a bit more tricky. It depends on your system's GPU and xorg version you use. We would need more info to help you on that, should it be necessary.

Edit: Oh, and by the way, there is no such things as a list of 32bit libs that nwmain depends on. ldd ./nwmain list the libs nwmain was linked against and if those are dependent on others, lists them as well recursively. So the output of ldd ./nwmain can be entirely different on different systems.

Greetings
Skildron
               
               

               


                     Modifié par Skildron, 07 septembre 2011 - 09:15 .
                     
                  


            

Legacy_x12o

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
Arch Linux Install = "Failed to initialize graphics"
« Reply #2 on: September 11, 2011, 07:55:07 am »


               Thank you very much for the reply and help, Skildron. Greatly appreciated.

1) I did remove the ./lib reference from the nwn script. Before removal, I only received the "Failed to initialize graphics". After removing, I now get the same message with

./nwn: line 12: 25953 Segmentation fault      ./nwmain $@

2) I'm using an old installation that worked on the same system before, which is why I suspect it's a missing package of some sort. My video card is an NVIDIA GeForce 8600M GS (using NVIDIA proprietary drivers: nvidia 280.13-1) on a Pavilion dv9825 laptop. Running the 'pacman -Q' list for xorg brings up a fairly long list. I belive the most important one may be "linux 3.0.4-1"(kernel), "xorg-server 1.10.3.901-1" and "mesa 7.11-2".

3) Good to know regarding the 32bit libraries.  Thanks for the info. I googled the problem and found people suggesting ldd would point to the problem.

Any further suggestions?

Best Regards.
               
               

               


                     Modifié par x12o, 11 septembre 2011 - 06:55 .
                     
                  


            

Legacy_Skildron

  • Sr. Member
  • ****
  • Posts: 421
  • Karma: +0/-0
Arch Linux Install = "Failed to initialize graphics"
« Reply #3 on: September 11, 2011, 08:16:50 am »


               If you have the nvidia drivers installed, then 3d should work. But looking at the output of ldd ./nwmain from your system, I suspect that only the 64bit nvidia drivers are installed.: Some of the libs listed above are only in use on my system if I uninstall the ATi drivers and use the xorg/mesa open source drivers. Perhaps you could look in the arch Linux packages or on the nvidia homepage if there is a driver package that supplies x86 and x86_64 drivers for your system.

HTH
Greetings
Skildron
               
               

               
            

Legacy_x12o

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
Arch Linux Install = "Failed to initialize graphics"
« Reply #4 on: September 12, 2011, 07:39:03 am »


               Skildron,

You are a GENIUS!!! That was exactly my problem. I had lib32-libgl installed. I did a search for lib32-nvidia-utils, and sure enough there it was. It replaced lib32-libgl, so hopefully that won't bork anything too bad.

Thank you very much. I can't even thank you enough. I would send you a group of beautiful elven maidens to your door step to wait on you hand and foot if I could. '<img'> Have a great week!

Best Regards.
               
               

               


                     Modifié par x12o, 12 septembre 2011 - 06:48 .
                     
                  


            

Legacy_Skildron

  • Sr. Member
  • ****
  • Posts: 421
  • Karma: +0/-0
Arch Linux Install = "Failed to initialize graphics"
« Reply #5 on: September 12, 2011, 09:03:46 am »


               You're welcome!

About the elven maidens: I'm not sure how my wife would feel about that ;-), so I have to regretfully decline the offer :-)

Good to know I could be of assistance.
Greetings
Skildron