View Single Post
Old August 20, 2007, 17:01   #1
TJA
Adept
 
TJA's Avatar
 
Join Date: Aug 2007
Posts: 117
TJA is on a distinguished road
Exclamation Review: Portralis

PART I.
Compilation

Code:
mkdir PortralisSrc
cd PortralisSrc
unzip ../PortralisSrc.zip
cd src
Please note, that PortralisSrc.zip does NOT contain a top-folder - it will extract right where you are (what is a Bad Thing)!

Then, edit two files: Makefile and config.h

Enable this instead of the default-line in Makefile:
CFLAGS = -Wall -O1 -pipe -g -D"USE_GCU"
LIBS = -lncurses

Note: -ltermcap simply does NOT work - although the library is installed!
Very strange ...

Uncomment line in config.h:
#define USE_NCURSES



Lots and lots of warnings - without any end in sight!
BUT: Compiles!


Final Error:

util.o(.text+0x161): In function `path_temp':
/home/archive/RogueLike/MAINTAINED/Portralis/PortralisSrc/src/util.c:284: warning: the use of `tmpnam' is dangerous, better use `mkstemp'


Output is called "testing" :-O

Code:
make install
cd ..
mv testing portralis
./portralis
Works, but needs knowledge of what to change and is a bit dangerous because of the missing top-folder.

First opinion: It asks too much questions that cannot be answered with <Return>

Last edited by TJA; August 20, 2007 at 18:17.
TJA is offline   Reply With Quote