ClassiCube-IRIX, Minecraft clone.
#1
ClassiCube-IRIX, Minecraft clone.
Hello guys, I helped port ClassiCube, a Minecraft clone written in c. (help by the developer Unknown Shadow)
 
Honestly There are some libraries that it needs that aren't listed. If you find any please let me know. 

IRIX
Install Sgug-RSE (https://github.com/sgidevnet/sgug-rse) Install libX11, libgcc, libXau, libXdmcp, libcurl-devel, libogg, vorbis-tools, libX11-devel from SGUG-RSE. Install Nekoware OpenAL (neko_openal-1.1.tardist) for Audio (Can impact performace due the lack of .ogg decoding on SGI hardware. Add -DCC_BUILD_NOMUSIC to the build command to exclude audio). use -DCC_BUILD_LOWPOLYS to cull leaves and remove cave generation to lower polycounts. Use GCC 9.2 from SGUG-RSE shell to compile.

gcc *.c -o ClassiCube -Wl,-rpath-link=/usr/lib32 -Wl,-rpath=/usr/lib32:/usr/sgug/lib32 -lX11 -lGL -lGLcore -lGLU -lpthread -Wl,--allow-shlib-undefined -DCC_BUILD_GL11


https://github.com/Joshyfishy22/ClassiCube-IRIX


Attached Files Image(s)
   

Altix 350 Altix 350 Altix 350 (Prism) Tezro Rack Tezro Rack (Onyx3 IR4, IR3) Tezro Rack Onyx4 Indigo Indigo  Indigo2 Indigo2 Indigo2 Indy Fuel Personaliris Octane2 Octane O2 O2 Origin2000 Deskside Origin 200 Origin 200 1600SW 
www.4dwm.com
(This post was last modified: 04-10-2023, 01:32 PM by joshyfishy22.)
joshyfishy22
O2

Trade Count: (0)
Posts: 13
Threads: 1
Joined: Mar 2022
Location: Illinois, United States
Find Reply
04-10-2023, 01:31 PM
#2
RE: ClassiCube-IRIX, Minecraft clone.
I'm trying to compile these sources under IRIX 6.5.22 on a sgi Indy:
Code:
bash-5.0$ gcc *.c -o ClassiCube -Wl,-rpath-link=/usr/lib32 -Wl,-rpath=/usr/lib32:/usr/sgug/lib32 -lX11 -lGL -lGLcore -lGLU -lpthread -Wl,--allow-shlib-undefined -DCC_BUILD_GL11
...
as ERROR parsing -mabi=n32:  unknown flag
as ERROR parsing -mabi=n32:  unknown flag
as ERROR parsing -mabi=n32:  unknown flag
as ERROR parsing -mabi=n32:  unknown flag
as ERROR parsing -mabi=n32:  unknown flag
as ERROR parsing -mabi=n32:  unknown flag
as ERROR parsing -mabi=n32:  unknown flag
as ERROR parsing -mabi=n32:  unknown flag
...
Window_X11.c:58:13: error: 'XK_0' undeclared (first use in this function)
...

I have modified Window_X11.c this way to avoid the lot of errors about XK_* codes:
Code:
...
#include <X11/XKBlib.h>^M
/* additional include files */
#include <X11/keysym.h>^M

#ifdef CC_BUILD_XINPUT2^M
...

But I haven't managed to avoid these errors about GenericEvent:
Code:
...
Window_X11.c:504:14: error: 'GenericEvent' undeclared (first use in this function)
  504 |   e->type == GenericEvent; /* For XInput events */
...

Have you got any clue ?

Indy Indy R4400 150 MHz, 256 MB RAM, 24-bit graphics, 6.5.22
  Octane2 Octane2 R12000 400 MHz, 1024 MB RAM, ODYSSEY V6, 6.5.30

IBM 44p model 170 (7044-170), POWER3-II 64 bits 400 MHz, 1 GB RAM
AlphaServer DS10 466 MHz, 128 MB RAM
HP C3600 PA-RISC 8600 552MHz, 2 GB RAM
HP ProDesk 400 G2 MINI Intel Core i5 6th Gen 2,50GHz 16GB, Debian GNU/Linux (NAS)
HP t610 Debian GNU/Linux, 2 GB RAM (NAS)
Linux-RISC
RISC and Unix lover

Trade Count: (0)
Posts: 51
Threads: 4
Joined: Apr 2022
Location: Spain
Website Find Reply
04-11-2023, 08:11 PM
#3
RE: ClassiCube-IRIX, Minecraft clone.
(04-11-2023, 08:11 PM)Linux-RISC Wrote:  But I haven't managed to avoid these errors about GenericEvent:
Code:
...
Window_X11.c:504:14: error: 'GenericEvent' undeclared (first use in this function)
  504 |   e->type == GenericEvent; /* For XInput events */
...

Have you got any clue ?

GenericEvent is defined in the X.h header from the X.org implementation but not defined anywhere in IRIX. I'm pretty sure that's why the original poster says the libX11-devel package from Sgug-RSE is required.

SGI:  Indigo, Indigo2, Octane, Origin 300
Sun:  SPARCstation 20 (x4), Ultra 2, Blade 2500, T5240
HP:  9000/380, 425e, C8000
Digital: DECstation 5000/125, PWS 600au
jpstewart
Developer

Trade Count: (1)
Posts: 444
Threads: 6
Joined: May 2018
Location: SW Ontario, CA
Find Reply
04-11-2023, 11:24 PM
#4
RE: ClassiCube-IRIX, Minecraft clone.
-mabi=n32 error means GCC doesn't understand the flag. You need to verify what mabis are supported for your GCC release.

To fix your libX11 issue my suggestion is to probably put their include path in front of the system one.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,254
Threads: 535
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
04-12-2023, 12:41 AM
#5
RE: ClassiCube-IRIX, Minecraft clone.
I have executed this command but no results:

find / -name "*.h" -exec grep "GenericEvent" {} \;

I think some additional include file is necessary.

Indy Indy R4400 150 MHz, 256 MB RAM, 24-bit graphics, 6.5.22
  Octane2 Octane2 R12000 400 MHz, 1024 MB RAM, ODYSSEY V6, 6.5.30

IBM 44p model 170 (7044-170), POWER3-II 64 bits 400 MHz, 1 GB RAM
AlphaServer DS10 466 MHz, 128 MB RAM
HP C3600 PA-RISC 8600 552MHz, 2 GB RAM
HP ProDesk 400 G2 MINI Intel Core i5 6th Gen 2,50GHz 16GB, Debian GNU/Linux (NAS)
HP t610 Debian GNU/Linux, 2 GB RAM (NAS)
Linux-RISC
RISC and Unix lover

Trade Count: (0)
Posts: 51
Threads: 4
Joined: Apr 2022
Location: Spain
Website Find Reply
04-12-2023, 07:53 AM
#6
RE: ClassiCube-IRIX, Minecraft clone.
also make sure you start "sgugshell" before you invoke gcc (for env. variables pointing to SGUG-RSE).
flexion
O2

Trade Count: (0)
Posts: 23
Threads: 0
Joined: Oct 2020
Location: Zurich
Find Reply
04-12-2023, 01:16 PM
#7
RE: ClassiCube-IRIX, Minecraft clone.
It's probable that your installation isn't proper if you can't find the necessary include and even invoking sgugshell at that point won't help you.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,254
Threads: 535
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
04-12-2023, 02:13 PM
#8
RE: ClassiCube-IRIX, Minecraft clone.
Sorry for not responding quickly my email notifications didn't work for some reason. Iv never tried to compile it on 6.5.22 nor on an Indy. Sgug-rse is required because of gcc and there are some really funky issues with x11 and openGL. Honestly im not even sure how it compiled in the first place. Ill send later in the day a binary of it if you want to see if that works.

Altix 350 Altix 350 Altix 350 (Prism) Tezro Rack Tezro Rack (Onyx3 IR4, IR3) Tezro Rack Onyx4 Indigo Indigo  Indigo2 Indigo2 Indigo2 Indy Fuel Personaliris Octane2 Octane O2 O2 Origin2000 Deskside Origin 200 Origin 200 1600SW 
www.4dwm.com
joshyfishy22
O2

Trade Count: (0)
Posts: 13
Threads: 1
Joined: Mar 2022
Location: Illinois, United States
Find Reply
04-17-2023, 01:51 PM
#9
RE: ClassiCube-IRIX, Minecraft clone.
I finally have this up and running on my Tezro, thanks to lots of help from @chulofiasco!

[Image: Ep5DP2q.jpg]

Here, my frame buffer depth was preventing it from starting!

A huge thanks to you @joshyfishy22! It's great to see a new application such as this being made available for our machines! Smile
(This post was last modified: 06-16-2023, 04:29 PM by Irinikus.)
Irinikus
Hardware Connoisseur

Trade Count: (0)
Posts: 3,476
Threads: 320
Joined: Dec 2017
Location: South Africa
Website Find Reply
06-16-2023, 02:32 PM
#10
RE: ClassiCube-IRIX, Minecraft clone.
This is pretty cool to play around with! Smile

[Image: iX0FxaA.png]
(This post was last modified: 06-16-2023, 08:29 PM by Irinikus.)
Irinikus
Hardware Connoisseur

Trade Count: (0)
Posts: 3,476
Threads: 320
Joined: Dec 2017
Location: South Africa
Website Find Reply
06-16-2023, 07:45 PM


Forum Jump:


Users browsing this thread: 1 Guest(s)