IRIX Network Forums
ClassiCube-IRIX, Minecraft clone. - Printable Version

+- IRIX Network Forums (//forums.irixnet.org)
+-- Forum: SGI/MIPS (//forums.irixnet.org/forum-3.html)
+--- Forum: Development/Porting (//forums.irixnet.org/forum-9.html)
+--- Thread: ClassiCube-IRIX, Minecraft clone. (/thread-3895.html)

Pages: 1 2


ClassiCube-IRIX, Minecraft clone. - joshyfishy22 - 04-10-2023

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


RE: ClassiCube-IRIX, Minecraft clone. - Linux-RISC - 04-11-2023

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 ?


RE: ClassiCube-IRIX, Minecraft clone. - jpstewart - 04-11-2023

(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.


RE: ClassiCube-IRIX, Minecraft clone. - Raion - 04-12-2023

-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.


RE: ClassiCube-IRIX, Minecraft clone. - Linux-RISC - 04-12-2023

I have executed this command but no results:

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

I think some additional include file is necessary.


RE: ClassiCube-IRIX, Minecraft clone. - flexion - 04-12-2023

also make sure you start "sgugshell" before you invoke gcc (for env. variables pointing to SGUG-RSE).


RE: ClassiCube-IRIX, Minecraft clone. - Raion - 04-12-2023

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.


RE: ClassiCube-IRIX, Minecraft clone. - joshyfishy22 - 04-17-2023

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.


RE: ClassiCube-IRIX, Minecraft clone. - Irinikus - 06-16-2023

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


RE: ClassiCube-IRIX, Minecraft clone. - Irinikus - 06-16-2023

This is pretty cool to play around with! Smile

[Image: iX0FxaA.png]