Wings available for Irix precompiled

3D/2D CGI and the tools used in their creation (Maya, Photoshop, Blender, GIMP, etc.).
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
gandalf
Posts: 116
Joined: Wed Aug 25, 2004 1:08 am
Location: Italy
Contact:

failure to run wings

Unread postby gandalf » Sat Jan 15, 2005 2:56 pm

If I try to run wings on my Indy with XZ (X set to truecolor) eshell aborts saying there are no opengl drivers and no suitable opengl modes were found...

Dump written 2005-1-15_23-52
Window: "<Unknown Window Name>"
Crashed in:
{"No suitable OpenGL mode found (are OpenGL drivers installed?)",
[{wings_init,video_mode_failure,0},{wings_init,init,0},{wings,init,1}]}

but...

olorin 10% /usr/gfx/gfxinfo
Graphics board 0 is "GR2" graphics.
Managed (":0.0") 1280x1024
4 GEs, 1 RE, 24 bitplanes, 4 auxplanes, 4 cidplanes, Z-buffer
GR2 revision 4, VB2.0
HQ2.1 rev A, GE7 rev B, RE3.1 rev A, VC1 rev B, MC rev C
unknown, assuming 19" monitor

sounds very reasonable; doesn't it ?


any ideas?

jdboyd
Posts: 562
Joined: Thu Aug 21, 2003 11:47 am
Location: Southern PA

Re: failure to run wings

Unread postby jdboyd » Sat Jan 15, 2005 3:07 pm

gandalf wrote:If I try to run wings on my Indy with XZ (X set to truecolor) eshell aborts saying there are no opengl drivers and no suitable opengl modes were found...

Dump written 2005-1-15_23-52
Window: "<Unknown Window Name>"
Crashed in:
{"No suitable OpenGL mode found (are OpenGL drivers installed?)",
[{wings_init,video_mode_failure,0},{wings_init,init,0},{wings,init,1}]}

but...

olorin 10% /usr/gfx/gfxinfo
Graphics board 0 is "GR2" graphics.
Managed (":0.0") 1280x1024
4 GEs, 1 RE, 24 bitplanes, 4 auxplanes, 4 cidplanes, Z-buffer
GR2 revision 4, VB2.0
HQ2.1 rev A, GE7 rev B, RE3.1 rev A, VC1 rev B, MC rev C
unknown, assuming 19" monitor


OK. First, what version of Irix are you running? I used 6.5.20f, and I am by far not an expert on how to make sure it will run on any 6.5.

Second, would you mind posting your glxinfo?

Otherwise, I'll have to add that to the list of things to look into. I have an Indy XZ, and Indigo2 with some pre-Extreme graphics at home, so I'll have to set them up at some point.

I would really like to see wings working on any machine that can run 6.5 if possible for a reasonable amount of work. It is such a cool program, and to me it recalls the SGI heyday, even if it is a fairly new program.

User avatar
MattPayne
Posts: 504
Joined: Tue Nov 25, 2003 12:27 am
Location: sunny ol' england!

Unread postby MattPayne » Sat Jan 15, 2005 11:44 pm

ok... it looks as though i havent installed it properly on my O2 - when i click on the ......./bin/wings icon, nothing happens...

I decoempressed the file untill i had a folder structure, and then tried running the executable... is there something else i needed to do? and where was the SDL dep found... i looked through the freeware libs but it wasnt in the 's' section.....

gandalf
Posts: 116
Joined: Wed Aug 25, 2004 1:08 am
Location: Italy
Contact:

Re: failure to run wings

Unread postby gandalf » Sun Jan 16, 2005 1:59 am

jdboyd wrote:
OK. First, what version of Irix are you running? I used 6.5.20f, and I am by far not an expert on how to make sure it will run on any 6.5.

Second, would you mind posting your glxinfo?

Otherwise, I'll have to add that to the list of things to look into. I have an Indy XZ, and Indigo2 with some pre-Extreme graphics at home, so I'll have to set them up at some point.

I would really like to see wings working on any machine that can run 6.5 if possible for a reasonable amount of work. It is such a cool program, and to me it recalls the SGI heyday, even if it is a fairly new program.


IRIX olorin 6.5 6.5.5m 07151432 IP22

display: :0.0
server glx vendor string: SGI
server glx version string: 1.2 Irix 6.5
server glx extensions (GLX_):
EXT_import_context, EXT_visual_info, EXT_visual_rating, SGI_swap_control,
SGI_video_sync, SGIX_fbconfig, SGIX_swap_group.
client glx version 1.1
client glx extensions (GLX_):
EXT_import_context, EXT_visual_info, EXT_visual_rating, SGI_swap_control,
SGI_video_sync, SGIX_fbconfig, SGIX_swap_group.
OpenGL vendor string: SGI
OpenGL renderer string: GR3-Elan
OpenGL version string: 1.1 Irix 6.5
OpenGL extensions (GL_):
EXT_abgr, EXT_blend_color, EXT_blend_logic_op, EXT_blend_minmax,
EXT_blend_subtract, EXT_convolution, EXT_copy_texture, EXT_histogram,
EXT_packed_pixels, EXT_polygon_offset, EXT_subtexture, EXT_texture,
EXT_texture3D, EXT_texture_object, EXT_vertex_array, SGI_color_matrix,
SGI_color_table, SGI_texture_color_table, SGIS_texture_filter4,
SGIX_texture_scale_bias, SGIX_subdiv_patch.
glu version: 1.2 Irix 6.5
glu extensions (GLU_):
EXT_abgr, EXT_nurbs_tessellator, EXT_object_space_tess, EXT_packed_pixels,
EXT_texture, SGI_filter4_parameters.

visual x bf lv rg d st r g b a ax dp st accum buffs ms
id dep cl sp sz l ci b ro sz sz sz sz bf th cl r g b a ns b
-----------------------------------------------------------------
0x20 2 pc y 2 2 c . . . . . . . . . . . . . . .
0x21 2 pc y 2 1 c . . . . . . . . . . . . . . .
0x22 4 pc y 4 1 c . . . . . . . . . . . . . . .
0x23 4 pc . 4 . c y . . . . . . 20 4 . . . . . .
0x24 4 tc . 4 . r y . 1 2 1 . . 20 4 16 16 16 16 . .
0x25 8 pc . 8 . c . . . . . . . 20 4 . . . . . .
0x27 8 tc . 8 . r . . 3 3 2 . . 20 4 16 16 16 16 . .
0x28 12 pc . 12 . c y . . . . . . 24 . . . . . . .
0x29 12 pc . 12 . c y . . . . . . 20 4 . . . . . .
0x2a 12 pc . 12 . c . . . . . . . 24 . . . . . . .
0x2b 12 pc . 12 . c . . . . . . . 20 4 . . . . . .
0x2c 12 tc . 12 . r y . 4 4 4 . . 24 . 16 16 16 16 . .
0x2d 12 tc . 12 . r y . 4 4 4 . . 20 4 16 16 16 16 . .
0x2e 24 tc . 24 . r . . 8 8 8 . . 24 . 16 16 16 16 . .
0x2f 24 tc . 24 . r . . 8 8 8 . . 20 4 16 16 16 16 . .
0x31 24 tc . 24 . r . . 8 8 8 . . . . 16 16 16 16 . .

User avatar
dexter1
Moderator
Moderator
Posts: 2743
Joined: Thu Feb 20, 2003 6:57 am
Location: Zoetermeer, The Netherlands

Unread postby dexter1 » Sun Jan 16, 2005 2:58 am

I have wings up and running on my O2 at work with 6.5.25m. There is some work to be done with erlang/esdl and wings compile itself, but it pretty much compiles ok, provided you use gcc(freeware 3.3). Apparently erlang doesn't like being compiled with mipspro...
Next stop is my I2 R10K High Impact and 6.5.22m.
Am currently bogged down in validity testing erlang with the test suites. I should be getting something by the end of the week. Oh and i can reproduce the current errors with wings: selecting lighting hangs the program. and selecting popup menus freezes X
Maybe today i have some time to pull this through cvd...
Last edited by dexter1 on Sun Jan 16, 2005 6:07 am, edited 1 time in total.

User avatar
hamei
Posts: 10435
Joined: Tue Feb 24, 2004 4:10 pm
Location: over the rainbow

Unread postby hamei » Sun Jan 16, 2005 4:57 am

MattPayne wrote:ok... it looks as though i havent installed it properly on my O2 - when i click on the ......./bin/wings icon, nothing happens...


generally speaking - not always, mind you, just usually - if you're having a problem you'll get better results by using a terminal and typing the executable's name at the command line. Sometimes you'll need to enter < ./binary's-name > to get it to run. Usually this will give you some feedback on exactly what is failing. If it has to be run as root (cdrecord, for example) then don't forget to < su > first.

GIJoe
Posts: 898
Joined: Sat Mar 29, 2003 11:44 am
Location: Germany

Unread postby GIJoe » Sun Jan 16, 2005 6:29 am

dexter: that sounds definitely promising, looking forward to the results. :)
one thing though: in case you're able to fix the issues and provide a binary, i hope it's not too much to ask to make it compatible with IRIX'es below the .20's.

anyway i hope your efforts will pay off.

User avatar
MattPayne
Posts: 504
Joined: Tue Nov 25, 2003 12:27 am
Location: sunny ol' england!

Unread postby MattPayne » Sun Jan 16, 2005 8:13 am

hamei wrote:
MattPayne wrote:ok... it looks as though i havent installed it properly on my O2 - when i click on the ......./bin/wings icon, nothing happens...


generally speaking - not always, mind you, just usually - if you're having a problem you'll get better results by using a terminal and typing the executable's name at the command line. Sometimes you'll need to enter < ./binary's-name > to get it to run. Usually this will give you some feedback on exactly what is failing. If it has to be run as root (cdrecord, for example) then don't forget to < su > first.



I think RTFM sums up my newbiness :) once id put the decompressed folder into the right place :oops: and used the command line (thanks hamei) the program is running...

now off to find some tutorials....

User avatar
dexter1
Moderator
Moderator
Posts: 2743
Joined: Thu Feb 20, 2003 6:57 am
Location: Zoetermeer, The Netherlands

Unread postby dexter1 » Sun Jan 16, 2005 2:28 pm

Running some tests on the esdl extension revealed some odd behaviour (from esdl Readme):

Code: Select all

mech044 /usr/local/src/esdl-0.94.1025/test> erl -pa ../ebin
Erlang (BEAM) emulator version 5.4.3 [source]

Eshell V5.4.3  (abort with ^G)
1>  testsprite:go().
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
wow, that was quick! Only the second one works fine (a spinning colored cube):

Code: Select all

mech044 /usr/local/src/esdl-0.94.1025/test> erl -pa ../ebin
Erlang (BEAM) emulator version 5.4.3 [source]

Eshell V5.4.3  (abort with ^G)
1> testgl:go().
Command:68:SDL_GL_SetAttributeFunc: ok
Command:35:SDL_ListModesFunc: ok
Command:31:SDL_VideoDriverNameFunc: ok
Driver "x11"
Available WindowSizes [{sdl_rect,0,0,1280,1024}]
Command:34:SDL_VideoModeOKFunc: ok
Command:34:SDL_VideoModeOKFunc: ok
Command:34:SDL_VideoModeOKFunc: ok
Command:34:SDL_VideoModeOKFunc: ok
A guess at max video res is 1280x1024:32
Command:36:SDL_SetVideoModeFunc: ok
Command:69:SDL_GL_GetAttributeFunc: ok
Command:69:SDL_GL_GetAttributeFunc: ok
Command:69:SDL_GL_GetAttributeFunc: ok
Command:69:SDL_GL_GetAttributeFunc: ok
Command:69:SDL_GL_GetAttributeFunc: ok
OpenGL attributes
Sizes in bits Red 5 Green 5 Blue 5 Depth 24 Doublebuffered true
Command:297:glGetString: ok
Vendor:     SGI
Command:297:glGetString: ok
Renderer:   CRIME
Command:297:glGetString: ok
Version:    1.1 Irix 6.5
Command:284:glGetIntegerv: ok
GL AUX BUFFERS [0]
Command:67:SDL_WM_GetInfoFunc: ok
SDL Version {{1,2,7},<<0,0,0,0>>}
Command:297:glGetString: ok
Extensions: GL_EXT_abgr GL_EXT_blend_color GL_EXT_blend_logic_op GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_convolution GL_EXT_copy_texture GL_EXT_histogram GL_EXT_packed_pixels GL_EXT_polygon_offset GL_EXT_subtexture GL_EXT_texture GL_EXT_texture3D GL_EXT_texture_object GL_EXT_vertex_array GL_INGR_interlace_read GL_SGI_color_matrix GL_SGI_color_table GL_SGI_texture_color_table GL_SGIS_texture_color_mask GL_SGIS_texture_edge_clamp GL_SGIX_interlace GL_SGIX_texture_scale_bias
Command:75:SDL_WM_IsMaximizedFunc: ok
Maximized: false
Command:721:glGetConvolutionParameterfv: ok
[11.0000]Command:105:SDL_EventStateFunc: ok
Command:105:SDL_EventStateFunc: ok
Command:105:SDL_EventStateFunc: ok
Command:105:SDL_EventStateFunc: ok
Command:23:SDL_GetErrorFunc: ok
Command:470:glViewport: ok
Command:354:glMatrixMode: ok
Command:337:glLoadIdentity: ok
Command:364:glOrtho: ok
Command:354:glMatrixMode: ok
Command:337:glLoadIdentity: ok
Command:256:glEnable: ok
Command:244:glDepthFunc: ok
Command:212:glClearColor: ok
Command:182:SDL_UTIL_DebugFunc: ok
< i pressed <escape> >
Segmentation fault
That segmentation fault is also typical when quitting wings on my machines.

I have a distinct feeling that this crapping out of SDL is due to esdl having -lpthread, because neko_sdl has -lpthread as well, but erlang is compiled without threading. Trying to turn on threading breaks compile with a malfunctioning 'beam' executable:

Code: Select all

irene /usr/local/src/otp_src_R10B-2/bin/mips-sgi-irix6.5> beam
Failed to create thread: Operation not permitted (1)
Abort (core dumped)
... while a non-threaded 'beam' does this (a normal crash report):

Code: Select all

mech044 /usr/local/src/otp_src_R10B-2/bin/mips-sgi-irix6.5> beam
{"init terminating in do_boot",'no -root flag'}

Crash dump was written to: erl_crash.dump
init terminating in do_boot (no -root flag)
This merits some investigatoin why the erlang --enable-threads produces wrong code...

Oh, and i indeed have no icons on my impact system, but they appear on the O2 just fine...

gandalf
Posts: 116
Joined: Wed Aug 25, 2004 1:08 am
Location: Italy
Contact:

Unread postby gandalf » Sun Jan 16, 2005 3:28 pm

after the failures I suffered on my own indy... I took the same erlang/esdl/wings tar.bz2 I used there and freeware SDL and went to an octane... just to test stuff. It has ESI graphics.

tere both testgl and testsprite seem to work (this makes me think that tomorrow I'll try those tests on my own indy). And exit without segfault.

FUrthermore on the octane I can almost run wings. It starts and I see no particular artifacts in the interface. I see the icons, the axes, the menus... the menus seem to work, I can add a cube for example (so the pop-up menu works) and I can spin the camera. I can select faces.
But some opration make everything hang. For example, with a face selected, I select "inset" from the pop-up menu and every thing hangs, no mouse cursor anymore. But I see that the apps in the background continue to work.
SO instead of killing X, I telnet remotely kill the beam... and tada my desktop is there again.
So the bugs are there and are subtle.

gandalf
Posts: 116
Joined: Wed Aug 25, 2004 1:08 am
Location: Italy
Contact:

indy tests

Unread postby gandalf » Mon Jan 17, 2005 7:31 am

after the "success" of running the esdl tests that dexter run on the octane, I tried again on my indy.

I still use the stuff compiled by jdb.

the testsprite test is ok, the testgl not:

olorin 13% /opt/jdb/erlang/bin/erl -pa ../ebin
Erlang (BEAM) emulator version 5.3 [source] [threads:0]

Eshell V5.3 (abort with ^G)
1> testgl:go().
Command:68:SDL_GL_SetAttributeFunc: ok
Command:35:SDL_ListModesFunc: ok
Command:31:SDL_VideoDriverNameFunc: ok
Driver "x11"
Available WindowSizes [{sdl_rect,0,0,1280,1024}]
Command:34:SDL_VideoModeOKFunc: ok
Command:34:SDL_VideoModeOKFunc: ok
Command:34:SDL_VideoModeOKFunc: ok
Command:34:SDL_VideoModeOKFunc: ok
A guess at max video res is 1280x1024:32
Command:36:SDL_SetVideoModeFunc: ok
Command:69:SDL_GL_GetAttributeFunc: Segmentation fault
olorin 14%


I remember an extremely simialr problem on OpenBSD/sparc with 8bit graphics and Mesa. I wrote to both esdl and sdl teams and eachone said the problem was from the other. Esdl always replies "look at my code, it is jsut a wrapper".
I compiled SDL myself and I could run all their tests fine though :)

Here the siutation may be a lot different though.

I then tried to run other tests:

4> erldemo:go().
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
olorin 16%

This sounds bad too, doesn´t it?

jdboyd
Posts: 562
Joined: Thu Aug 21, 2003 11:47 am
Location: Southern PA

Unread postby jdboyd » Mon Jan 17, 2005 7:38 am

MattPayne wrote:ok... it looks as though i havent installed it properly on my O2 - when i click on the ......./bin/wings icon, nothing happens...

I decoempressed the file untill i had a folder structure, and then tried running the executable... is there something else i needed to do? and where was the SDL dep found... i looked through the freeware libs but it wasnt in the 's' section.....


I found it in the freeware libs, whatever was current in the summer of 2003. I don't actually check that the dependency was met, as you may have figured.

BTW, you may need to run wings from the command line. I've never tried clicking on the exectuable. If nothing else, you may need to do this to get helpfull error messages.

jdboyd
Posts: 562
Joined: Thu Aug 21, 2003 11:47 am
Location: Southern PA

Unread postby jdboyd » Mon Jan 17, 2005 8:04 am

gandalf wrote:But some opration make everything hang. For example, with a face selected, I select "inset" from the pop-up menu and every thing hangs, no mouse cursor anymore. But I see that the apps in the background continue to work.
SO instead of killing X, I telnet remotely kill the beam... and tada my desktop is there again.
So the bugs are there and are subtle.


So, I guess I should set up sshd on my Octane then for use when working on wings.

Would you please try using a keystroke instead of selecting the popup menu for one of the functions that fails? I don't know that inset is mapped to a keystroke, but I believe that some of the other crashing menu options are, and of course, the keystrokes can be remapped.

jdboyd
Posts: 562
Joined: Thu Aug 21, 2003 11:47 am
Location: Southern PA

Unread postby jdboyd » Fri Feb 04, 2005 8:31 am

dexter1 wrote:I have a distinct feeling that this crapping out of SDL is due to esdl having -lpthread, because neko_sdl has -lpthread as well, but erlang is compiled without threading. Trying to turn on threading breaks compile with a malfunctioning 'beam' executable:

Code: Select all

irene /usr/local/src/otp_src_R10B-2/bin/mips-sgi-irix6.5> beam
Failed to create thread: Operation not permitted (1)
Abort (core dumped)
... while a non-threaded 'beam' does this (a normal crash report):

Code: Select all

mech044 /usr/local/src/otp_src_R10B-2/bin/mips-sgi-irix6.5> beam
{"init terminating in do_boot",'no -root flag'}

Crash dump was written to: erl_crash.dump
init terminating in do_boot (no -root flag)
This merits some investigatoin why the erlang --enable-threads produces wrong code...

Oh, and i indeed have no icons on my impact system, but they appear on the O2 just fine...


OK, I finally have a second terminal (a Mac) set up at home. So, a year later, I'm finally able to put some small amount of time towards this.

First, about the black icons. The icons are being drawn via a textured quad. The textures are GL_RGB, loaded from BMPs. I haven't found if Wings is expanding the textures to a power of two or not, but wouldn't they have to, even on linux? Something sounds familiar about this. Something along the lines of other people porting linux software to Irix having the same sort of issue with texturing. But, I'm having trouble finding references to it on google groups.

Also, I found that the menu operations (lighting, extrusions, and beveling, perhaps more. I lost the comprehensive list I wrote out previously and haven't retested everything) that cause the lock ups will also caused lockups if executed by keystroke rather than menu selection.

When the lock up occurs, the usr CPU load isn't very high, but the sys CPU load is very high. I have wings positioned so that I can see gr_osview, and it keeps updating normally during the trouble. As gandalf points out, remotely killing beam restores the desktop without having to log out and back in. Based on the CPU information, I think that the only reason things seem locked up is perhaps because wings always does wierd things to the mouse pointer during operations, and thus nothing is really locked except wings but you can't use the pointer to change window focus. That may be a crappy theory.

Anyway, I'm in the middle of rebuilding the latest OTP, Esdl, and Wings (OTP and ESDL are built, but I haven't run the esdl tests or built wings) as of this morning. I now can read erlang code enough to figure out what is where, but I still don't really know erlang, and I especially don't know how to use the debugger.

Dexter1, do you think it would be possible to build SDL and esdl without pthreads? I'm digging around to look into that. If not, I may join some erlang mailing list and try asking about why --enable-threads won't work.

mikesapunk
Posts: 28
Joined: Wed Feb 02, 2005 2:28 pm
Location: St. Louis

Unread postby mikesapunk » Fri Feb 04, 2005 10:34 am

Thats what you get when you write a 3D graphics app in a language meant to program telco switches.

Thats like writing Photoshop in FORTRAN.

I looked into porting Wings myself, before I knew you were doing it. And when I found out it was written in erlang, and not C or C++, I said screw it.

You're a braver man than I, just wanted to let you know that there is at least 1 person out here rooting for you to get this thing usable. Keep up the good work!


Return to “SGI: Computer Graphics”

Who is online

Users browsing this forum: linkdex [Bot] and 1 guest