Crystal Space
Welcome, Guest. Please login or register.
October 24, 2014, 04:35:59 pm

Login with username, password and session length
Search:     Advanced search
9011 Posts in 2044 Topics by 8816 Members
Latest Member: Hejduczo
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Need a little help regarding install & compiling...
« previous next »
Pages: [1] Print
Author Topic: Need a little help regarding install & compiling...  (Read 2621 times)
PaulW
Newbie
*
Posts: 2


View Profile Email
« on: November 14, 2007, 07:03:15 pm »

Hi all.

Need a bit of help if you can, I'm new to Crystalspace, and with me using Gentoo Linux, I opted to install via the ebuild within portage.

I've installed the following packages...

dev-games/crystalspace-1.2
dev-games/cel 1.2
dev-games/cegui 0.5.0b-r3

emerge --info returns:

Code:
Portage 2.1.3.18 (default-linux/x86/2007.0, gcc-4.2.2, glibc-2.6.1-r0, 2.6.22-gentoo-r2 i686)
=================================================================
System uname: 2.6.22-gentoo-r2 i686 Intel(R) Pentium(R) M processor 1.70GHz
Timestamp of tree: Tue, 06 Nov 2007 11:46:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python:     2.5.1-r3
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.virginmedia.com/ ftp://gentoo.virginmedia.com/sites/gentoo http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ "
LANG="C"
LINGUAS="en en_GB"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/xeffects"
SYNC="rsync://rsync.hardmilk.com/gentoo-portage"
USE="3ds X a52 aac aalib acl acpi alsa amr apache2 audiofile bash-completion berkdb bitmap-fonts blender-game bluetooth bonobo bzip2 cal3d cdparanoia cdr cegui cg clamav cli cracklib crypt cups curl dbus dga dri dssi dts dvd dvdr dvdread eds en en_GB encode evo examples fbcon ffmpeg flac flash fortran ftp gdbm gif glut gnome gpm gstreamer gtk gtk2 gtkhtml hal iconv icq ieee1394 imap imlib ipv6 isdnlog jack java javascript joystick jpeg jpeg2k ladcca lash lcms libvisual live lmsensors mad matroska midi mikmod mime ming mmx mng mono mp3 mpeg msn mudflap mysqli mythtv nas ncurses nls nptl nptlonly nsplugin oav ode offensive ofx ogg oggvorbis openal openexr opengl openmp pam pcre pdf perl php png pop pop3 portaudio pppd python qt3 quicktime readline reflection samba sdl session skins sndfile spell spl srt sse sse2 ssl startup-notification stream svg tcpd theora tiff tk truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd verse videos visualization vlm vorbis vst wifi win32codecs wmf wxwindows x86 xanim xine xml xorg xosd xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

env settings

Code:
latitude paulw # env | grep crystal
CRYSTAL_CONFIG=/etc/crystalspace-1.2
CRYSTAL_PLUGIN=/usr/lib/crystalspace-1.2

Now, I'm unsure as to what to set the env for CRYSTAL.  Within the user documentation, it was saying about setting the CRYSTAL env, but I have no clue as to where I should be setting it...

I've been following the simple1 tutorial, and it just will not compile using either jam OR make.

Code:
latitude engdemo1 # jam simple1
Jamfile: No such file or directory
don't know how to make simple1
...found 1 target(s)...
...can't find 1 target(s)...

Code:
latitude engdemo1 # make simple
g++     simple.cpp   -o simple
In file included from simple.cpp:1:
simple.h:4:26: error: crystalspace.h: No such file or directory
In file included from simple.cpp:1:
simple.h:6: error: expected class-name before ',' token
simple.h:7: error: expected class-name before '{' token
simple.h:9: error: ISO C++ forbids declaration of 'csRef' with no type
simple.h:9: error: expected ';' before '<' token
simple.h:10: error: ISO C++ forbids declaration of 'csRef' with no type
simple.h:10: error: expected ';' before '<' token
simple.h:11: error: ISO C++ forbids declaration of 'csRef' with no type
simple.h:11: error: expected ';' before '<' token
simple.h:12: error: ISO C++ forbids declaration of 'csRef' with no type
simple.h:12: error: expected ';' before '<' token
simple.h:13: error: ISO C++ forbids declaration of 'csRef' with no type
simple.h:13: error: expected ';' before '<' token
simple.h:24: error: 'iEvent' has not been declared
simple.h:27: error: expected identifier before string constant
simple.h:27: error: expected ',' or '...' before string constant
simple.h:27: error: ISO C++ forbids declaration of 'CS_EVENTHANDLER_NAMES' with no type
simple.h:28: error: expected ';' before 'CS_EVENTHANDLER_NIL_CONSTRAINTS'
simple.h:29: error: expected `;' before '}' token
simple.cpp:3: error: 'CS_IMPLEMENT_APPLICATION' does not name a type
simple.cpp:22: error: 'bool Simple::OnKeyboard' is not a static member of 'class Simple'
simple.cpp:22: error: 'iEvent' was not declared in this scope
simple.cpp:22: error: 'ev' was not declared in this scope
simple.cpp:23: error: expected ',' or ';' before '{' token
make: *** [simple] Error 1

Now, within simple.h, if I set the include for crystalspace from

#include <crystalspace.h>

to

#include <crystalspace-1.2/crystalspace.h>

it then picks up the header file, goes CRAZY and fails on every other dependency called via crystalspace.h as file not found and failes...

I've also used the createproject.sh script, and that fails too...

Code:
latitude engdemo1 # ./createproject.sh simple1
Failed to locate support resources (autoconf, jam, msvcgen)!

Please help!  I'm probably being completely thick about it or the solution is staring me in the face...

walktest does run fine, until it crashes due to this (silly laptop graphics)

Code:
walktest: intel_batchbuffer.c:145: intel_flush_inline_primitive: Assertion `intel->prim.primitive != ~0' failed.
Aborted

Thanks
Logged
res
Develazyoper
CS Developer
Full Member
*****
Posts: 206


View Profile Email
« Reply #1 on: November 15, 2007, 02:36:03 am »

Now, I'm unsure as to what to set the env for CRYSTAL.  Within the user documentation, it was saying about setting the CRYSTAL env, but I have no clue as to where I should be setting it...

In this case setting CRYSTAL should not be necessary, since CRYSTAL_CONFIG and CRYSTAL_PLUGIN should help CS to locate itself.

#include <crystalspace.h>

This is the correct way.

I've also used the createproject.sh script, and that fails too...

Code:
latitude engdemo1 # ./createproject.sh simple1
[/quote]

This looks like you copied createproject.sh to the directory in which you want to create a project - don't. Instead, run it from the location where it was instealled (ie /usr/share/crystalspace-1.2/build/jamtemplate/createproject.sh or something like that). Also, createproject.sh doesn't take parameters, but prompts for some information to input.

[quote author=PaulW link=topic=1520.msg6869#msg6869 date=1195063395]
walktest does run fine, until it crashes due to this (silly laptop graphics)

[code]walktest: intel_batchbuffer.c:145: intel_flush_inline_primitive: Assertion `intel->prim.primitive != ~0' failed.
Aborted

Indeed probably a driver bug ... sorry, but there's not much we can do about these.
[/code]
Logged
PaulW
Newbie
*
Posts: 2


View Profile Email
« Reply #2 on: December 02, 2007, 11:31:04 pm »

Now, I'm unsure as to what to set the env for CRYSTAL.  Within the user documentation, it was saying about setting the CRYSTAL env, but I have no clue as to where I should be setting it...

In this case setting CRYSTAL should not be necessary, since CRYSTAL_CONFIG and CRYSTAL_PLUGIN should help CS to locate itself.

#include <crystalspace.h>

This is the correct way.

I know, but it still wont work...

anyone??
Logged
Xoalin
Newbie
*
Posts: 5


View Profile
« Reply #3 on: December 10, 2007, 01:11:28 am »

Got dev-libs/boost?

I believe you need those libs for CS's smart pointers/etc to function in C++.

I also don't see it being a pre-req in the ebuild or in the docs, so maybe I'm wrong Tongue
« Last Edit: December 10, 2007, 01:18:59 am by Xoalin » Logged
dingobloo
Idle Extrordinare.
Global Moderator
Full Member
*****
Posts: 125


View Profile WWW
« Reply #4 on: December 29, 2007, 05:26:37 pm »

Got dev-libs/boost?

I believe you need those libs for CS's smart pointers/etc to function in C++.

I also don't see it being a pre-req in the ebuild or in the docs, so maybe I'm wrong Tongue

boost is not required, CS uses it's own implementation of smart pointers.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 7.38 seconds with 15 queries.