Crystal Space
Welcome, Guest. Please login or register.
October 25, 2014, 08:16:44 am

Login with username, password and session length
Search:     Advanced search
9011 Posts in 2044 Topics by 8822 Members
Latest Member: Mandrilmar
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  How to compile CS application?
« previous next »
Pages: [1] 2 Print
Author Topic: How to compile CS application?  (Read 6017 times)
froger_666
Newbie
*
Posts: 3


View Profile
« on: November 23, 2005, 02:43:12 pm »

I 've linux. I install cs98_004 correctly (walktest is OK).
How to compile any CS application? I try to compile cs/apps/tutorial/simple1/ and I don't now how to do it.
Please tell me how to do it step by step.

(Sorry if my English is not perfect)
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #1 on: November 23, 2005, 02:49:57 pm »

I 've linux. I install cs98_004 correctly (walktest is OK).
How to compile any CS application? I try to compile cs/apps/tutorial/simple1/ and I don't now how to do it.
Please tell me how to do it step by step.

(Sorry if my English is not perfect)

All CS apps are automatically compiled if you build entire CS. If you want to make your own projects using CS I recommend you read the manual HOWTO on this subject (creating external projects).

Note that 0.98 is very old. I recommend you go to the latest pseudo-stable release.

Greetings,
Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #2 on: November 23, 2005, 03:00:54 pm »

If you switch to the 0.99 version of CS, you will find instructions in the CS manual for creating your own application (such as one of the tutorial programs). For Linux, you will want to look at the section titled "Creating an External Crystal Space Application". Presently, this is section 4.22.1.

http://www.crystalspace3d.org/docs/online/manual/
Logged
froger_666
Newbie
*
Posts: 3


View Profile
« Reply #3 on: November 23, 2005, 04:03:52 pm »

OK. I download the cs-pseudo-stable-2005-09-03.tgz
 
Now I unpack it. I  had three questions after I compile it.
1. What version of gcc/g++ i need ? ( I've got 3.3.5)
2.How to compile it (can I use
./configure --enable-debug-mode --enable-new-renderer
 make
make install

 or

 ./configure --enable-debug-mode --enable-new-renderer
jam all

3.What's different in these methods ? and If I do something wrong - please correct me.

<Sorry if my english is not perfect>
Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #4 on: November 23, 2005, 04:07:28 pm »

1. Many versions of gcc will work, but gcc 4.0.0 generates buggy code, so avoid it.

2. The correct flag is --enable-debug. You don't need the --enable-new-renderer flag anymore since the old renderer was removed from the project, and the new-renderer is now default.

3. 'make' and 'jam' are equivalent. You can use either one. 'make all; make install' is the same as 'jam all; jam install'.
Logged
froger_666
Newbie
*
Posts: 3


View Profile
« Reply #5 on: November 23, 2005, 05:18:45 pm »

I start the engine compile process and I find this (compile process still runing, but I don't what's wrong)
I configure it using
./configure --enable-debug
I compile using
 jam all

./include/csgeom/math3d.h:660: Warning(401): Nothing known about base class 'scfImplementation1<csGeomDebugHelper,iDebugHelper >'. Ignored.
./include/csgeom/math3d.h:660: Warning(401): Maybe you forgot to instantiate 'scfImplementation1<csGeomDebugHelper,iDebugHelper >' using %template.
./include/csgeom/path.h:45: Warning(401): Nothing known about base class 'scfImplementation1<csPath,iPath >'. Ignored.
./include/csgeom/path.h:45: Warning(401): Maybe you forgot to instantiate 'scfImplementation1<csPath,iPath >' using %template.
./include/csgeom/polymesh.h:47: Warning(401): Nothing known about base class 'scfImplementation1<csPolygonMesh,iPolygonMesh >'. Ignored.
./include/csgeom/polymesh.h:47: Warning(401): Maybe you forgot to instantiate 'scfImplementation1<csPolygonMesh,iPolygonMesh >' using %template.
./include/csgeom/polymesh.h:212: Warning(401): Nothing known about base class 'scfImplementation1<csPolygonMeshBox,iPolygonMesh >'. Ignored.
./include/csgeom/polymesh.h:212: Warning(401): Maybe you forgot to instantiate 'scfImplementation1<csPolygonMeshBox,iPolygonMesh >' using %template.

//EDIT:
There are only these warnings in jam all process

jam install was finished without errors

Some problems with ./walktest:
When i start walktest
./walktest flarge -mode=1024x768 -relight
in console was showed very much informations and errors with create some files like this:
SCF_ERROR: metadata retrieval error for /usr/local/lib/crystalspace/aws.so: Warn
ing: /usr/local/lib/crystalspace/aws.so has embedded data and .csplugin file, us
ing embedded.
SCF_NOTIFY: class crystalspace.window.alternatemanager (from /usr/local/lib/crys
talspace/aws.so) has already been registered in a different context: 'crystalspa
ce' vs. '{none}' (from /home/marek/Desktop/gra/CS/aws.so); this message appears
only in debug builds

and this

crystalspace.vfscachemgr.createfile:  Could not create file 'thing_lm/f29be4c6e7
7e5f3bdfbbe00f59fe2fce' in VFS dir '/lev/flarge/cache'

ALERT: crystalspace.vfscachemgr.createfile:  Could not create file 'thing_lm/f29
be4c6e77e5f3bdfbbe00f59fe2fce' in VFS dir '/lev/flarge/cache'

Here I show only bit of these messages.
Please help me!
<sorry if my english is not perfect>
« Last Edit: November 23, 2005, 05:48:22 pm by froger_666 » Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #6 on: November 24, 2005, 06:48:08 am »

Quote
./include/csgeom/math3d.h:660: Warning(401): Nothing known about base class
'scfImplementation1<csGeomDebugHelper,iDebugHelper >'. Ignored.

These are warnings from Swig. We haven't worked out yet how to eliminate these warnings, but you can ignore them. They should not cause harm.

Quote
SCF_ERROR: metadata retrieval error for /usr/local/lib/crystalspace/aws.so: Warn
ing: /usr/local/lib/crystalspace/aws.so has embedded data and .csplugin file, us
ing embedded.

Did you also have 0.98 installed? You will need to clean out the installed files before installing 0.99. See this thread:

http://community.crystalspace3d.org/forum/index.php/topic,520.0.html

Quote
crystalspace.vfscachemgr.createfile:  Could not create file 'thing_lm/f29be4c6e7
7e5f3bdfbbe00f59fe2fce' in VFS dir '/lev/flarge/cache'

Unfortunately, CS tries to write some cache files to the installed data location. You can either ignore this or make the ${prefix}/share/crystalspace/ directory and subdirectories writable.
Logged
Sam N
Guest


Email
« Reply #7 on: November 29, 2005, 07:44:02 pm »

I also have a compilation problem. I use MSVC8 and have installed the PSDK. I cannot compile simple1 after following the tutorial in the pseudo stable release. Compiling generates
Linking...
LINK : fatal error LNK1104: cannot open file 'libcrystalspace_d.lib'

I use win XP
Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #8 on: November 30, 2005, 02:58:36 pm »

Did you verify that libcrystalspace_d.lib was built? Did you tell your simple1 project where it can find libcrystalspace_d.lib?
Logged
Sam N
Guest


Email
« Reply #9 on: November 30, 2005, 10:03:18 pm »

oops.
Logged
kornerr
Full Member
***
Posts: 101


347968356
View Profile WWW Email
« Reply #10 on: December 06, 2005, 06:37:18 pm »

I use Slackware Linux 10.1
I've retyped simple1 code. Compilation succeeded, but:
1) I get the following;
2) no respond to key presses at all. I see only one "stoned" wall.

Thanks.
« Last Edit: December 06, 2005, 06:44:52 pm by kornerr » Logged

jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #11 on: December 07, 2005, 08:30:44 am »

I use Slackware Linux 10.1
I've retyped simple1 code. Compilation succeeded, but:
1) I get the following;
2) no respond to key presses at all. I see only one "stoned" wall.

Thanks.

The warnings are normal. That's a gcc bug.

Can you show me the code you're using?

Greetings,
Logged
kornerr
Full Member
***
Posts: 101


347968356
View Profile WWW Email
« Reply #12 on: December 07, 2005, 11:27:42 am »

simple1.tar.bz2.doc
(remove ".doc" from filename)
BTW, I can't compile it now! scrystalspace.h is not found (
Logged

jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #13 on: December 07, 2005, 11:30:10 am »

simple1.tar.bz2.doc
(remove ".doc" from filename)
BTW, I can't compile it now! scrystalspace.h is not found (

What version of Crystal Space are you using?

Greetings,
Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #14 on: December 07, 2005, 05:56:42 pm »

You can upgrade or downgrade your version of gcc to eliminate those particular linker warnings.
Logged
Pages: [1] 2 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 6.186 seconds with 15 queries.