Tranquility source
#1
Tranquility source
I am posting the Tranquility 2.0 source for some of you who have requested examples of irisGL code. Since the developer actually came to us for some leads on the source code, i am confident that this won't break copyright. Please feel free to contact me if otherwise.


Attached Files
.gz tranquility-2.x_source.tar.gz Size: 70.7 KB  Downloads: 254
dexter1
Administrator

Trade Count: (1)
Posts: 297
Threads: 17
Joined: May 2018
Location: The Netherlands
Find Reply
05-08-2021, 07:29 PM
#2
RE: Tranquility source
Excellent, thank you very much. Examples with sound are rare.

Cheers,

KB
KayBee
Octane

Trade Count: (0)
Posts: 132
Threads: 40
Joined: Feb 2020
Find Reply
05-12-2021, 03:39 AM
#3
RE: Tranquility source
Still my favorite SGI game ever, certainly in my top five of any games actually.

[Image: bjcqtPvq_o.png]
BackPlaner
Jurassic Technologist

Trade Count: (1)
Posts: 262
Threads: 39
Joined: Sep 2018
Location: Lost Angeles
Find Reply
07-20-2021, 02:51 AM
#4
RE: Tranquility source
do we have any links to IRISGL guides/docs?

Best I could find was http://bitsavers.informatik.uni-stuttgar...y_1990.pdf

not sure if that's basically it
gijoe77
Tezro

Trade Count: (1)
Posts: 644
Threads: 34
Joined: Jun 2018
Find Reply
07-20-2021, 10:27 PM
#5
RE: Tranquility source
There's a newer version of that Graphics Library Programming Guide plus "Volume 2" and a "Tools and Techniques" book in the IRIX 5.3 Developers' documentation from Techpubs.  https://techpubs.jurassic.nl/manuals/0530/developer/

The OpenGL Porting Guide (in the same location) is about going from IRIS GL to OpenGL but you might be able to extrapolate a bit about going the other way.

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
07-20-2021, 11:05 PM
#6
RE: Tranquility source
awesome thanks!
gijoe77
Tezro

Trade Count: (1)
Posts: 644
Threads: 34
Joined: Jun 2018
Find Reply
07-23-2021, 04:24 AM
#7
RE: Tranquility source
For my C learning, I am using MIPSPro to compile and as for the manuals I am using the versions jp linked to. I like how these old manuals are written, and I love the less-abstracted nature of IrisGL. Being new to writing code, and not knowing OpenGL I find OpenGL so "heavy." I am sure it is somewhat cross-platform and is very flexible, but it takes so many lines of code to draw things. Oh, yes the Porting guide does have a few nuggets in it too, as jp said. Equally important to me were the glpg examples in the 4Dgifts directory (that I had to ask others for on the forum, I didn't have them). These are the examples from the manuals, minus the typos from the manuals.
KayBee
Octane

Trade Count: (0)
Posts: 132
Threads: 40
Joined: Feb 2020
Find Reply
07-23-2021, 04:46 AM
#8
RE: Tranquility source
(07-23-2021, 04:46 AM)KayBee Wrote:  For my C learning, I am using MIPSPro to compile and ...

thanks for your input KayBee.. Looks like I really have to set up a separate dedicated machine for MIPSpro compiling without SGUG RSE
flexion
O2

Trade Count: (0)
Posts: 23
Threads: 0
Joined: Oct 2020
Location: Zurich
Find Reply
07-23-2021, 11:16 AM
#9
RE: Tranquility source
(07-23-2021, 11:16 AM)flexion Wrote:  thanks for your input KayBee.. Looks like I really have to set up a separate dedicated machine for MIPSpro compiling without SGUG RSE

why a separate machine?  Just use another account or just setup your env to whatever compiler you want to use.  Here is a much older env file I was using when I was more busy with dev work, I would just copy/paste the section for whatever compiler I wanted to use (sorry I haven't done any dev work in the last 2-3 years so this sort of predates the current SGUG RSE):

Code:
##########################
# to build static binaries
# add -Bstatic to LDFLAGS
##########################

export LDFLAGS="-mips4 -Bstatic -L/usr/local/lib -L/usr/local/lib32 -L/usr/nekoware/lib -L/usr/freeware/lib32 -L/usr/lib32"

##########################
# to see what gcc ican show the program and library search paths:
#    gcc -print-search-dirs
#
# to get include search paths:
#    gcc -E -Wp,-v # means "pass option -v to preprocessor"
#    gcc -Wp,-v hello.c
#
# to examine the preprocessor output with comments about what stuff came from where
#    gcc -save-temps
#
# gcc -save-temps hello.c  - you end up with hello.i (preprocessor output), hello.s (compiler output) and a.out (linker output)
##########################

##########################
# use script to change "/bin/sh" or similar to a more recent gnu shel
#    #!/opt/local/bin/bash
#    for i in `grep -lr /bin/sh .`; do
#        sed s,/bin/sh,/opt/local/bin/bash,g < $i > /tmp/x
#        cat /tmp/x > $i
#    done
##########################

##########################
# many packages might need a "aclocal; autoconf; automake" after
##########################

#########################
# trying these (trying with libsodium)
export CPPFLAGS="-I/usr/local/include -I/usr/nekoware/include -D_SGI_SOURCE -D_SGI_REENTRANT_FUNCTIONS"
#########################

#############
# un-initialize dev env
#############

export CC=
export CXX=
export F77=
export FC=
export CFLAGS=
export CXXFLAGS=
export CPPFLAGS=
export LDFLAGS=
export PKG_CONFIG_PATH=
export PKG_CONFIG_LIBDIR=
export GNUMAKE=gmake
export MAKE=gmake
export AR=
export ARFLAGS=
export AR_FLAGS=
export AS=
export OPT=
export PERL=
export FREETYPE_CFLAGS=
export FREETYPE_LIBS=
export FONTCONFIG_PATH=
export FONTCONFIG_FILE=
#export SHELL=
export SHELL_PATH=
export CONFIG_SHELL=

#############
# MIPSpro
#############
# note - in order for some ./configure tests to pass, you might need to do:
#     export CC=c99
# note - add "-show" in CFLAGS to see internal command lines

export CC=cc
export CXX=CC
export F77=f77
export FC=f90
export CFLAGS="-c99 -g0 -O2 -mips4"
export CXXFLAGS="-g0 -woff all -O2 -mips4"
export CPPFLAGS="-I/usr/local/include -I/usr/nekoware/include -I/usr/freeware/include"
export LDFLAGS="-mips4 -L/usr/local/lib -L/usr/local/lib32 -L/usr/nekoware/lib -L/usr/freeware/lib32 -L/usr/lib32"
#export PKG_CONFIG_PATH=/usr/nekoware/lib/pkgconfig
#export PKG_CONFIG_LIBDIR=/usr/nekoware/lib
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_LIBDIR=/usr/local/lib
#GNOME2_DIR=/usr/nekoware
# set libtool to verbose V=1
#export V=1
export GNUMAKE=gmake
export MAKE=gmake
export AR="CC -ar -o"
export ARFLAGS=""
export AR_FLAGS=""
export AS="as -n32"
export PERL=/usr/local/bin/perl
export FREETYPE_CFLAGS="-I/usr/local/include/freetype2"
export FREETYPE_LIBS="-L/usr/local/lib -lfreetype"
export FONTCONFIG_PATH=/usr/local/etc/fonts/conf.d
export FONTCONFIG_FILE=/usr/local/etc/fonts/fonts.conf
export SHELL=/usr/local/bin/bash
export SHELL_PATH=/usr/local/bin/bash
export CONFIG_SHELL=/usr/local/bin/bash
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/usr/freeware/lib32
export LD_LIBRARYN32_PATH=/usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/usr/freeware/lib32
export PATH=/usr/local/bin:/usr/nekoware/bin:/usr/etc:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/usr/bin/X11

#############
# MIPSpro Optimized
#############
# note - add "-show" in CFLAGS to see internal command lines

export CC=cc
export CXX=CC
export F77=f77
export CFLAGS='-c99 -O3 -mips4 -OPT:Olimit=0:roundoff=3 -TARG:platform=IP35:proc=r16000 -woff all'
export CXXFLAGS='-O3 -mips4 -OPT:Olimit=0:roundoff=3  -TARG:platform=IP35:proc=r16000 -woff all'
export CPPFLAGS='-I/usr/local/include -I/usr/nekoware/include -I/usr/freeware/include'
export LDFLAGS='-mips4 -L/usr/local/lib -L/usr/local/lib32 -L/usr/nekoware/lib -L/usr/freeware/lib32 -rpath /usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/usr/lib32'
#export PKG_CONFIG_PATH='/usr/nekoware/lib/pkgconfig'
#export PKG_CONFIG_LIBDIR='/usr/nekoware/lib'
#export GNOME2_DIR='/usr/nekoware'
export GNUMAKE=gmake
export MAKE=gmake
# prevent configure from adding -O and overriding -O3:
export OPT=-O3
export AR="CC -ar -o"
export ARFLAGS=""
export AR_FLAGS=""
export AS="as -n32"
# set libtool to verbose V=1
#export V=1
export MAKE=gmake
export PERL=/usr/local/bin/perl
export FREETYPE_CFLAGS="-I/usr/local/include/freetype2"
export FREETYPE_LIBS="-L/usr/local/lib -lfreetype"
export FONTCONFIG_PATH=/usr/local/etc/fonts/conf.d
export FONTCONFIG_FILE=/usr/local/etc/fonts/fonts.conf
export SHELL=/usr/local/bin/bash
export SHELL_PATH=/usr/local/bin/bash
export CONFIG_SHELL=/usr/local/bin/bash
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/usr/freeware/lib32
export LD_LIBRARYN32_PATH=/usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/usr/freeware/lib32
#export LD_LIBRARY64_PATH='/usr/nekoware/lib64'
export PATH=/usr/local/bin:/usr/nekoware/bin:/usr/etc:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/usr/bin/X11

#############
# MIPSpro Optimized with
# :roundoff=2:div_split=ON:alias=typed,
# -Ofast=ip35, -IPA, -g0 and -lfastm
# (not INLINE=all)
#############
# note - add "-show" in CFLAGS to see internal command lines

export CC=cc
export CXX=CC
export F77=f77
export CFLAGS='-c99 -g0 -O3 -Ofast=ip35 -mips4 -OPT:Olimit=0:roundoff=2:div_split=ON:alias=typed -TARG:platform=IP35:proc=r16000 -woff all -lfastm -IPA'
export CXXFLAGS='-O3  -g0  -Ofast=ip35 -mips4 -OPT:Olimit=0:roundoff=2:div_split=ON:alias=typed  -TARG:platform=IP35:proc=r16000 -woff all -lfastm -IPA'
export CPPFLAGS='-I/usr/local/include -I/usr/nekoware/include -I/usr/freeware/include'
export LDFLAGS='-mips4 -L/usr/local/lib -L/usr/local/lib32 -L/usr/nekoware/lib -L/usr/freeware/lib32 -rpath /usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/usr/lib32'
#export PKG_CONFIG_PATH='/usr/nekoware/lib/pkgconfig'
#export PKG_CONFIG_LIBDIR='/usr/nekoware/lib'
#export GNOME2_DIR='/usr/nekoware'
export GNUMAKE=gmake
export MAKE=gmake
# prevent configure from adding -O and overriding -O3:
export OPT=-O3
export AR="CC -ar -o"
export ARFLAGS=""
export AR_FLAGS=""
export AS="as -n32"
# set libtool to verbose V=1
#export V=1
export MAKE=gmake
export PERL=/usr/local/bin/perl
export FREETYPE_CFLAGS="-I/usr/local/include/freetype2"
export FREETYPE_LIBS="-L/usr/local/lib -lfreetype"
export FONTCONFIG_PATH=/usr/local/etc/fonts/conf.d
export FONTCONFIG_FILE=/usr/local/etc/fonts/fonts.conf
export SHELL=/usr/local/bin/bash
export SHELL_PATH=/usr/local/bin/bash
export CONFIG_SHELL=/usr/local/bin/bash
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/usr/freeware/lib32
export LD_LIBRARYN32_PATH=/usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/usr/freeware/lib32
#export LD_LIBRARY64_PATH='/usr/nekoware/lib64'
export PATH=/usr/local/bin:/usr/nekoware/bin:/usr/etc:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/usr/bin/X11

#############
# gcc 3.4.6
#############
# note - in order for some ./configure tests to pass, you might need to do:
#     export CC="gcc -std=gnu99"
# note - add "-v" to CFLAGS to see internal command lines

export CC=gcc
export CXX=g++
export CFLAGS="-std=gnu99 -g0 -O2 -mips4"
export CXXFLAGS="-g0 -O2 -mips4"
export CPPFLAGS="-I/usr/local/include -I/usr/nekoware/include"
export LDFLAGS="-L/usr/local/lib -L/usr/local/lib32 -L/usr/nekoware/lib"
export LD_LIBRARYN32_PATH=/usr/local/lib:/usr/local/lib32:/usr/nekoware/lib
export AR=ar
#export AR="ar cr" # worst case use this one
export ARFLAGS=cr
export AR_FLAGS=cr
export MAKE=gmake
export PERL=/usr/local/bin/perl
export FREETYPE_CFLAGS="-I/usr/local/include/freetype2"
export FREETYPE_LIBS="-L/usr/local/lib -lfreetype"
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_LIBDIR=/usr/local/lib
export FONTCONFIG_PATH=/usr/local/etc/fonts/conf.d
export FONTCONFIG_FILE=/usr/local/etc/fonts/fonts.conf
export SHELL=/usr/local/bin/bash
export SHELL_PATH=/usr/local/bin/bash
export CONFIG_SHELL=/usr/local/bin/bash
export PATH=/usr/local/bin:/usr/nekoware/bin:/usr/etc:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/usr/bin/X11

#############
# gcc 4.7.1
#############
# note - add "-v" to CFLAGS to see internal command lines

export CC=/usr/nekoware/gcc-4.7/bin/gcc
export CXX=/usr/nekoware/gcc-4.7/bin/g++
export CFLAGS="-std=gnu99 -g -O2 -mips4"
export CXXFLAGS="-g -O2 -mips4"
export CPPFLAGS="-I/usr/local/include -I/usr/nekoware/include"
export LDFLAGS=" -L/usr/local/lib -L/usr/local/lib32 -L/usr/nekoware/lib"
export AR=ar # worst case use this one
#export AR="ar cr"
export ARFLAGS=cr
export AR_FLAGS=cr
export MAKE=gmake
export PERL=/usr/local/bin/perl
export FREETYPE_CFLAGS="-I/usr/local/include/freetype2"
export FREETYPE_LIBS="-L/usr/local/lib -lfreetype"
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_LIBDIR=/usr/local/lib
export FONTCONFIG_PATH=/usr/local/etc/fonts/conf.d
export FONTCONFIG_FILE=/usr/local/etc/fonts/fonts.conf
export SHELL=/usr/local/bin/bash
export SHELL_PATH=/usr/local/bin/bash
export CONFIG_SHELL=/usr/local/bin/bash
export PATH=/usr/local/bin:/usr/nekoware/bin:/usr/etc:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/usr/bin/X11

#############
# gcc 4.7.4
#############
# note - add "-v" to CFLAGS to see internal command lines

export CC=/opt/local/gcc-4.7.4/bin/gcc
export CXX=/opt/local/gcc-4.7.4/bin/g++
export CFLAGS="-std=gnu99 -g -O2 -mips4"
export CXXFLAGS="-g -O2 -mips4"
export CPPFLAGS="-I/usr/local/include -I/usr/nekoware/include"
export LDFLAGS=" -L/usr/local/lib -L/usr/local/lib32 -L/usr/nekoware/lib"
export AR=ar # worst case use this one
#export AR="ar cr"
export ARFLAGS=cr
export AR_FLAGS=cr
export MAKE=gmake
export PERL=/usr/local/bin/perl
export FREETYPE_CFLAGS="-I/usr/local/include/freetype2"
export FREETYPE_LIBS="-L/usr/local/lib -lfreetype"
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_LIBDIR=/usr/local/lib
export FONTCONFIG_PATH=/usr/local/etc/fonts/conf.d
export FONTCONFIG_FILE=/usr/local/etc/fonts/fonts.conf
export SHELL=/usr/local/bin/bash
export SHELL_PATH=/usr/local/bin/bash
export CONFIG_SHELL=/usr/local/bin/bash
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/usr/freeware/lib32:/opt/local/mpfr/lib:/opt/local/gcc-4.7.4/lib32:/usr/lib32
export LD_LIBRARYN32_PATH=/usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/usr/freeware/lib32:/opt/local/mpfr/lib:/opt/local/gcc-4.7.4/lib32:/usr/lib32
export PATH=/usr/local/bin:/usr/nekoware/bin:/usr/etc:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/usr/bin/X11

#############
# gcc 4.7.4  GNU ld, as
#
#  this one uses GNU ld rather than IRIX ld
#  this is done by setting PATH to see "/opt/local/binutils/bin" first in PATH
#############
# note - add "-v" to CFLAGS to see internal command lines

export CC=/opt/local/gcc-4.7.4/bin/gcc
export CXX=/opt/local/gcc-4.7.4/bin/g++
export CFLAGS="-std=gnu99 -g -O2 -mips4"
export CXXFLAGS="-g -O2 -mips4"
export CPPFLAGS="-I/opt/local/binutils/include -I/usr/local/include -I/usr/nekoware/include"
export LDFLAGS="-L/opt/local/binutils/lib -L/usr/local/lib -L/usr/local/lib32 -L/usr/nekoware/lib -L/usr/lib32"
export AR=ar # worst case use this one
#export AR="ar cr"
export ARFLAGS=cr
export AR_FLAGS=cr
export MAKE=gmake
export PERL=/usr/local/bin/perl
export FREETYPE_CFLAGS="-I/usr/local/include/freetype2"
export FREETYPE_LIBS="-L/usr/local/lib -lfreetype"
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_LIBDIR=/usr/local/lib
export FONTCONFIG_PATH=/usr/local/etc/fonts/conf.d
export FONTCONFIG_FILE=/usr/local/etc/fonts/fonts.conf
export SHELL=/usr/local/bin/bash
export SHELL_PATH=/usr/local/bin/bash
export CONFIG_SHELL=/usr/local/bin/bash
export LD_LIBRARY_PATH=/opt/local/binutils/bin:/usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/usr/freeware/lib32:/opt/local/mpfr/lib:/opt/local/gcc-4.7.4/lib32:/usr/lib32
export LD_LIBRARYN32_PATH=/opt/local/binutils/bin:/usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/usr/freeware/lib32:/opt/local/mpfr/lib:/opt/local/gcc-4.7.4/lib32:/usr/lib32
export PATH=/opt/local/binutils/bin:/usr/local/bin:/usr/nekoware/bin:/usr/etc:/usr/local/bin:/usr/nekoware/bin:/usr/etc:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/usr/bin/X11

#############
# gcc 4.7.4
# with extra flags and GNU ld, as, etc with -D_SGI_SOURCE -D_SGI_REENTRANT_FUNCTIONS -D_XOPEN_SOURCE=1000
#
# export CPPFLAGS="-I/usr/local/include -I/usr/nekoware/include -D_SGI_SOURCE -D_SGI_REENTRANT_FUNCTIONS -D_XOPEN_SOURCE=1000"
# export CFLAGS="-std=gnu99 -g -O2 -mips4 -D_SGI_SOURCE -D_SGI_REENTRANT_FUNCTIONS -D_XOPEN_SOURCE=1000"
#############
# note - add "-v" to CFLAGS to see internal command lines

export CC=/opt/local/gcc-4.7.4/bin/gcc
export CXX=/opt/local/gcc-4.7.4/bin/g++
export CFLAGS="-std=gnu99 -g -O2 -mips4 -D_SGI_SOURCE -D_SGI_REENTRANT_FUNCTIONS -D_XOPEN_SOURCE=1000"
export CXXFLAGS="-g -O2 -mips4"
export CPPFLAGS="-I/opt/local/binutils/include -I/usr/local/include -I/usr/nekoware/include -D_SGI_SOURCE -D_SGI_REENTRANT_FUNCTIONS -D_XOPEN_SOURCE=1000"
export LDFLAGS="-L/opt/local/binutils/lib -L/usr/local/lib -L/usr/local/lib32 -L/usr/nekoware/lib -L/usr/lib32"
export AR=ar # worst case use this one
#export AR="ar cr"
export ARFLAGS=cr
export AR_FLAGS=cr
export MAKE=gmake
export PERL=/usr/local/bin/perl
export FREETYPE_CFLAGS="-I/usr/local/include/freetype2"
export FREETYPE_LIBS="-L/usr/local/lib -lfreetype"
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_LIBDIR=/usr/local/lib
export FONTCONFIG_PATH=/usr/local/etc/fonts/conf.d
export FONTCONFIG_FILE=/usr/local/etc/fonts/fonts.conf
export SHELL=/usr/local/bin/bash
export SHELL_PATH=/usr/local/bin/bash
export CONFIG_SHELL=/usr/local/bin/bash
export LD_LIBRARY_PATH=/opt/local/binutils/lib/:/usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/usr/freeware/lib32:/opt/local/mpfr/lib:/opt/local/gcc-4.7.4/lib32:/usr/lib32
export LD_LIBRARYN32_PATH=/opt/local/binutils/lib/:/usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/usr/freeware/lib32:/opt/local/mpfr/lib:/opt/local/gcc-4.7.4/lib32:/usr/lib32
# use binutils ld instead of IRIX ld
#export PATH=/opt/local/binutils/bin:$PATH
export PATH=/opt/local/binutils/bin:/usr/local/bin:/usr/nekoware/bin:/usr/etc:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/usr/bin/X11:

#############
# gcc 8.2.0
#############

#add /usr/include/internal to include path

export CC=/opt/local/gcc-8.2.0/bin/gcc
export CXX=/opt/local/gcc-8.2.0/bin/g++
export CFLAGS="-std=gnu99 -g -O2 -mips4"
export CXXFLAGS="-g -O2 -mips4"
export CPPFLAGS="-I/usr/include/internal -I/opt/local/binutils/include -I/usr/local/include -I/usr/nekoware/include"
export LDFLAGS="-L/opt/local/binutils/lib -L/usr/local/lib -L/usr/local/lib32 -L/usr/nekoware/lib -L/usr/lib32"
export AR=ar # worst case use this one
#export AR="ar cr"
export ARFLAGS=cr
export AR_FLAGS=cr
export MAKE=gmake
export PERL=/usr/local/bin/perl
export FREETYPE_CFLAGS="-I/usr/local/include/freetype2"
export FREETYPE_LIBS="-L/usr/local/lib -lfreetype"
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_LIBDIR=/usr/local/lib
export FONTCONFIG_PATH=/usr/local/etc/fonts/conf.d
export FONTCONFIG_FILE=/usr/local/etc/fonts/fonts.conf
export SHELL=/usr/local/bin/bash
export SHELL_PATH=/usr/local/bin/bash
export CONFIG_SHELL=/usr/local/bin/bash
export LD_LIBRARY_PATH=/opt/local/binutils/bin:/usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/opt/local/mpfr/lib:/opt/local/mpc/lib/:/opt/local/gcc-8.2.0/lib32:/usr/lib32
export LD_LIBRARYN32_PATH=/opt/local/binutils/bin:/usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/opt/local/mpfr/lib:/opt/local/mpc/lib/:/opt/local/gcc-8.2.0/lib32:/usr/lib32
export PATH=/opt/local/binutils/bin:/usr/local/bin:/usr/nekoware/bin:/usr/etc:/usr/local/bin:/usr/nekoware/bin:/usr/etc:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/usr/bin/X11



#############
# ada95
#############
# need to make sure /usr/gnu/bin is first in the PATH

export PATH=/usr/gnu/bin:/usr/local/bin:/usr/nekoware/bin:/usr/etc:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/usr/bin/X11:

#-bash-4.3$ /usr/gnu/bin/gcc -n32 -mips4 -c hello.adb
#-bash-4.3$ gnatbind hello.ali
#-bash-4.3$ gnatlink hello.ali
#ld32: WARNING 127: Two shared objects with the same soname, /usr/lib32/mips3/libexc.so and /usr/lib32/libexc.so,
#                   have been been linked. This is probably due to a missing -L specification. Ignoring the latter.
#-bash-4.3$ gnatmake hello.adb
#gnatmake: "hello" up to date.
#-bash-4.3$ ./hello
#Hello WORLD!
#-bash-4.3$



####################
## didbs versions ##
####################

#############
# gcc 4.8.2
#############
#
# if you run into strange header issues, always a good idea to "mkheaders" as root
#
# cd /usr/didbs/0_1_0/gbs4_2/libexec/gcc/mips-sgi-irix6.5/4.8.2/install-tools/
# ./mkheaders

export CC=gcc
export CXX=g++
export CFLAGS="-std=gnu99 -g -O2 -mips4"
export CXXFLAGS="-g -O2 -mips4"
#export CFLAGS="-std=gnu99 -g -O2 -mips4 -D_SGI_SOURCE -D_SGI_REENTRANT_FUNCTIONS -D_XOPEN_SOURCE=1000"
export CPPFLAGS="-I/usr/didbs/0_1_0/include -I/usr/local/include -I/usr/nekoware/include"
export LDFLAGS="-L/usr/didbs/0_1_0/lib -L/usr/local/lib -L/usr/local/lib32 -L/usr/nekoware/lib"
export AR=/usr/didbs/0_1_0/gbs4_2/bin/ar # worst case use this one
#export AR="/usr/didbs/0_1_0/gbs4_2/bin/ar cr"
export ARFLAGS=cr
export AR_FLAGS=cr
export MAKE=gmake
export PERL=/usr/local/bin/perl
export FREETYPE_CFLAGS="-I/usr/local/include/freetype2"
export FREETYPE_LIBS="-L/usr/local/lib -lfreetype"
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_LIBDIR=/usr/local/lib
export FONTCONFIG_PATH=/usr/local/etc/fonts/conf.d
export FONTCONFIG_FILE=/usr/local/etc/fonts/fonts.conf
export SHELL=/usr/local/bin/bash
export SHELL_PATH=/usr/local/bin/bash
export CONFIG_SHELL=/usr/local/bin/bash
export LD_LIBRARY_PATH=/usr/didbs/0_1_0/gbs4_2/lib:/usr/didbs/0_1_0/lib:/usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/opt/local/mpfr/lib:/usr/lib32
export LD_LIBRARYN32_PATH=/usr/didbs/0_1_0/gbs4_2/lib:/usr/didbs/0_1_0/lib:/usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/opt/local/mpfr/lib:/usr/lib32
export PATH=/usr/didbs/0_1_0/gbs4_2/bin:/usr/didbs/0_1_0/bin:/usr/local/bin:/usr/nekoware/bin:/usr/etc:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/usr/bin/X11

#############
# gcc 5.4.0
#############
#
# if you run into strange header issues, always a good idea to "mkheaders" as root
#
# cd /usr/didbs/0_1_0/gbs5_0/libexec/gcc/mips-sgi-irix6.5/5.4.0/install-tools/
# ./mkheaders

export CC=gcc
export CXX=g++
export CFLAGS="-std=gnu99 -g -O2 -mips4"
#export CFLAGS="-std=gnu99 -g -O2 -mips4 -D_SGI_SOURCE -D_SGI_REENTRANT_FUNCTIONS -D_XOPEN_SOURCE=1000"
export CXXFLAGS="-g -O2 -mips4"
export CPPFLAGS="-I/usr/didbs/0_1_0/include -I/usr/local/include -I/usr/nekoware/include"
export LDFLAGS="-L/usr/didbs/0_1_0/lib -L/usr/local/lib -L/usr/local/lib32 -L/usr/nekoware/lib"
export AR=ar # worst case use this one
#export AR="/usr/didbs/0_1_0/gbs4_2/bin/ar cr"
export ARFLAGS=cr
export AR_FLAGS=cr
export MAKE=gmake
export PERL=/usr/local/bin/perl
export FREETYPE_CFLAGS="-I/usr/local/include/freetype2"
export FREETYPE_LIBS="-L/usr/local/lib -lfreetype"
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_LIBDIR=/usr/local/lib
export FONTCONFIG_PATH=/usr/local/etc/fonts/conf.d
export FONTCONFIG_FILE=/usr/local/etc/fonts/fonts.conf
export SHELL=/usr/local/bin/bash
export SHELL_PATH=/usr/local/bin/bash
export CONFIG_SHELL=/usr/local/bin/bash
export LD_LIBRARY_PATH=/usr/didbs/0_1_0/gbs5_0/lib:/usr/didbs/0_1_0/gbs4_2/lib:/usr/didbs/0_1_0/lib:/usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/opt/local/mpfr/lib:/usr/lib32
export LD_LIBRARYN32_PATH=/usr/didbs/0_1_0/gbs5_0/lib:/usr/didbs/0_1_0/gbs4_2/lib:/usr/didbs/0_1_0/lib:/usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/opt/local/mpfr/lib:/usr/lib32
export PATH=/usr/didbs/0_1_0/gbs5_0/bin:/usr/didbs/0_1_0/gbs4_2/bin:/usr/didbs/0_1_0/bin:/usr/local/bin:/usr/nekoware/bin:/usr/etc:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/usr/bin/X11



#############
# gcc 8.2.0
#############
#
# if you run into strange header issues, always a good idea to "mkheaders" as root
#
# cd /usr/didbs/0_1_0/gbs8_1/libexec/gcc/mips-sgi-irix6.5/8.2.0/install-tools/
# ./mkheaders


export CC=gcc
export CXX=g++
export CFLAGS="-std=gnu99 -g -O2 -mips4"
#export CFLAGS="-std=gnu99 -g -O2 -mips4 -D_SGI_SOURCE -D_SGI_REENTRANT_FUNCTIONS -D_XOPEN_SOURCE=1000"
export CXXFLAGS="-g -O2 -mips4"
export CPPFLAGS="-I/usr/didbs/0_1_0/include -I/usr/local/include -I/usr/nekoware/include"
export LDFLAGS="-L/usr/didbs/0_1_0/lib -L/usr/local/lib -L/usr/local/lib32 -L/usr/nekoware/lib"
export AR=/usr/didbs/0_1_0/gbs8_1/bin/ar # worst case use this one
#export AR="/usr/didbs/0_1_0/gbs8_1/bin/ar cr"
export ARFLAGS=cr
export AR_FLAGS=cr
export MAKE=gmake
export PERL=/usr/local/bin/perl
export FREETYPE_CFLAGS="-I/usr/local/include/freetype2"
export FREETYPE_LIBS="-L/usr/local/lib -lfreetype"
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_LIBDIR=/usr/local/lib
export FONTCONFIG_PATH=/usr/local/etc/fonts/conf.d
export FONTCONFIG_FILE=/usr/local/etc/fonts/fonts.conf
export SHELL=/usr/local/bin/bash
export SHELL_PATH=/usr/local/bin/bash
export CONFIG_SHELL=/usr/local/bin/bash
export LD_LIBRARY_PATH=/usr/didbs/0_1_0/gbs8_1/lib:/usr/didbs/0_1_0/lib:/usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/opt/local/mpfr/lib:/usr/lib32
export LD_LIBRARYN32_PATH=/usr/didbs/0_1_0/gbs8_1/lib:/usr/didbs/0_1_0/lib:/usr/local/lib:/usr/local/lib32:/usr/nekoware/lib:/opt/local/mpfr/lib:/usr/lib32
export PATH=/usr/didbs/0_1_0/gbs8_1/bin:/usr/didbs/0_1_0/bin:/usr/local/bin:/usr/nekoware/bin:/usr/etc:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/usr/bin/X11
gijoe77
Tezro

Trade Count: (1)
Posts: 644
Threads: 34
Joined: Jun 2018
Find Reply
07-23-2021, 04:59 PM
#10
RE: Tranquility source
yeah, you can add the MIPSPro stuff to your current install without issues, likely, unless RSE has changed and broken core portions of the OS, which I doubt.

All you need is to setup the env vars for dev and paths so that they work.

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,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
07-23-2021, 05:12 PM


Forum Jump:


Users browsing this thread: 1 Guest(s)