Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Problem with Crystalspace - need for uni - please help!!

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
PaulW21781
n00b
n00b
Posts: 15
Joined: Thu Mar 29, 2007 10:46 am

Problem with Crystalspace - need for uni - please help!!

  • Quote

Post by PaulW21781 » Wed Nov 28, 2007 1:13 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: Select all

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: Select all

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: Select all

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: Select all

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: Select all

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: Select all

walktest: intel_batchbuffer.c:145: intel_flush_inline_primitive: Assertion `intel->prim.primitive != ~0' failed.
Aborted
Thanks
Top
PaulW21781
n00b
n00b
Posts: 15
Joined: Thu Mar 29, 2007 10:46 am

  • Quote

Post by PaulW21781 » Sun Dec 02, 2007 10:27 pm

bttt anyone??

getting a bit desperate now :(
Top
Jimmy Jazz
Guru
Guru
User avatar
Posts: 335
Joined: Mon Oct 04, 2004 5:29 pm
Location: Strasbourg

  • Quote

Post by Jimmy Jazz » Wed Dec 05, 2007 12:18 am

PaulW21781 wrote:bttt anyone??

getting a bit desperate now :(
Hi,

i was just curious and tried to compile crystalspace. It works for me. My configuration differs slightly from yours. The significant difference is that i'm using wxGTK-2.8 instead of 2.6, but i don't think that is relevant anyway. To do it, i just create an overlay and modified the associate ebuild to understand wxGTK 2.8. If you are not used to Gentoo, don't bother about it.

Code: Select all

 
# emerge --info

Portage 2.1.4_rc7 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.7-r0, 2.6.24-rc3-git2 x86_64)
=================================================================
System uname: 2.6.24-rc3-git2 x86_64 AMD Athlon(tm) 64 Processor 3200+
Timestamp of tree: Tue, 04 Dec 2007 08:16:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.5.1-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 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.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
Also, I have compiled it with success without perl and java. In my case, crystalspace was unable to compile with this flags activated.

Code: Select all

# emerge -va =dev-games/crystalspace-1.2

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-games/crystalspace-1.2  USE="cegui alsa jpeg mng  png python sdl truetype vorbis wxwindows -java -perl -3ds -cal3d -cg -doc -javascript -ode"
As dev-games/cegui-0.5.0b-r3 is the only option in portage, crystalspace is compiled with it.

The "make" tool used to compile crystalspace was dev-util/jam-2.5. You will find it in portage too.
To increase you chance to compile the package, you should increase the release of the different tools used with portage (stable release are not always the "best" choice).

Gentoo is really flexible with a bit of practice, some howtos and a lot of beers ;)

Good luck anyway,

Jj
« La seule condition au triomphe du mal, c'est l'inaction des gens de bien » E.Burke

Code: Select all

+----+----+----+
|    |::::|    |
|    |::::|    |
+----+----+----+ 
motto: WeLCRO
WritE Less Code, Repeat Often
Top
Xoalin
n00b
n00b
Posts: 40
Joined: Fri Jun 11, 2004 8:50 pm
Location: North Pole

  • Quote

Post by Xoalin » Tue Dec 11, 2007 4:32 am

Well in case you missed my reply on the crystalspace forums...

I believe you need dev-libs/boost, to make the crystalspace smart pointers work.
Pollution is here to stay. Corporations will sell us the oil to destroy the environment, and soon they will sell us clean air. You don't believe me? Then why are they already selling us clean water?
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic