home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Compiling

by C_olin on 03/11/2004 00:47, 101 messages, last message: 04/04/2006 20:25, 57206 views, last view: 05/18/2024 05:23

I'm no noob to VC++ 6.0... but I have not gotten Cube to compile correctly!

I put all of the includes and libs where they are supposed to be in the vc++ folder.

And added the right linking stuff... but I still get unresolved externals.

And why doesn't it include a VC++ workspace?

Does anyone have project/workspace project files they are wiling to send to me?

This would help out me, and a lot of other poeple... thanks!

Go to first 20 messagesGo to previous 20 messages    Board Index    Go to next 20 messagesGo to last 20 messages

#46: ..

by >driAn<. on 04/26/2004 20:54

i run it like the original binarie...
cd in the cube directory then
./bin_unix/cube_client

here the shell output:

drian@linux:~/stuff/cube> ./bin_unix/cube_client
init: sdl
init: net
init: world
game mode is ffa/default
init: video: sdl
init: video: mode
init: video: misc
init: gl
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
drian@linux:~/stuff/cube>

reply to this message

#47: ..

by >driAn<. on 04/26/2004 21:41

i put the make-output (cause of the warnings) and the compiled binarie in a zip file:
http://kiney.homelinux.org/sambaweb/ftp/drian/error.zip

please check if it runs on your pc..
thx

reply to this message

#48: Re: ..

by D.plomat on 04/27/2004 10:11, refers to #47

Those warnings are harmless, i also have them on my system.
You should also try
killall esd ; killall artsd
before starting Cube

reply to this message

#49: ..

by >driAn<. on 04/27/2004 11:30

It also doesnt work with the killall commands...

D.plomat: Runs my compiled cube on your machine?

reply to this message

#50: ..

by >driAn<. on 04/27/2004 12:00

In the main.cpp i added SDL_INIT_NOPARACHUTE
to the SDL_Init() function and compiled it again.
It ignores now this error. I started cube but then it crashes fully cause of an 'memory write error' or however you call that in english...

reply to this message

#51: Re: ..

by D.plomat on 04/28/2004 01:15, refers to #49

Same thing on my machine.

Strange thing with the binary is that with ldd it gives the same output as original cube binary, except that it doesn't link to /usr/lib/libGL.so.1
As the binary is a bit larger on an amount little less than /usr/lib/libGL.so.1, would it be that libGL has been statically linked into the binary?
This is very probable, as strings drian_cube | grep gl | wc returns ~900 lines on your binary, VS only 74 for original Cube binary

maybe this is related, as it seems to crash just after GL initialisation. The strange thing is that this leads to an error physically not in libGL but in libSDL.

You used original source, unmodified Makefile and compiled with a vanilla 'make' in src dir, right?

You should try to check if other GL apps you compile yourself on this machine are compiling and working correctly.

reply to this message

#52: ..

by >driAn<. on 04/28/2004 13:31

Yes, I compiled the original source, unmodified.

Here a gl-screensaver i compiled and started without problems:

http://freshmeat.net/projects/maniwheel/

That is "an other GL app", isnt it?


reply to this message

#53: Re: ..

by D.plomat on 04/29/2004 11:14, refers to #52

Yes.

You should try a ldd on it to see if it is dynamically linked to libGL

reply to this message

#54: ..

by -=:gandalf:=- on 05/02/2004 09:42

I just tried to compile cube under Linux, but there is one problem:
/usr/bin/ld: cannot find -lGLU
collect2: ld returned 1 exit status
make: *** [client] Fehler 1

how can I fix this?
I think there ist just a missing libraray, but I don\'t know wich one, the prebuild binaries are running fine.

reply to this message

#55: is this a good complier?

by jcdpc on 05/06/2004 00:00

is microsoft visual c++ a good complier? i've been using icc-win but i can't figure out how to compile multiple files so i haven't gotten much farther than "hello world" (the fact that i'm using C for dummies to learn it doesn't help much either)
http://msdn.microsoft.com/visualc/

reply to this message

#56: ..

by e:n:i:g:m:a on 05/06/2004 19:59

Visual C++ is EXTREMELY good!! :-)

It beats all freeware compilers that I've found anyways.

If you decide to get VC++ (it's pretty pricy) you might wanna get the .NET edition instead: it comes with alot more features and the cube project file is .NET format

reply to this message

#57: Re: ..

by jcdpc@school on 05/06/2004 20:57, refers to #56

yeah, i'm getting the .net edition, my dad has a friend who is a professional programmer for Lucent (whcih is going downhill, so if you have any stock in that company get it back and invest in something else) any way, i'm getting it for free, because lucent doesn't need it anymore.

reply to this message

#58: ..

by arghvark on 05/06/2004 20:59

use mingw I will be putting together a 'howto' about compiling it soon also probably.

reply to this message

#59: ms C

by jcdpc on 05/07/2004 00:17

it's cool, i got the whole visual studio (basic,foxpro,interdev,j++.C++) it's awesome. I haven't tried compiling yet, but i made a few very minor changes to the code (replaced hellpig with kitty, that sort of thing) and i'll use interdev for my site. HA i'm so happy. :^)

reply to this message

#60: Re: ..

by Thalion on 05/07/2004 05:09, refers to #56

Since you guys seem to not know of that, Microsoft has recently released the compiler for free. It's pretty much the same as the older free Borland C++ compiler - command-line only, standard libraries (including STL) + you can download Platform SDK with all WinAPI headers/libs, but no MFC/ATL. Still, this should be enough to build Cube.

http://msdn.microsoft.com/visualc/vctoolkit2003/

reply to this message

#61: ..

by e:n:i:g:m:a on 05/07/2004 06:14

Speaking of compiling, where do I extract the source if I wanna make my own build?

reply to this message

#62: Re: ..

by Thalion on 05/07/2004 20:07, refers to #61

Wherever you want. Just copy .exe-files once they're generated.

reply to this message

#63: ..

by e:n:i:g:m:a on 05/08/2004 00:13

oh ok

I thought that it needed to access some of the cube files b4 it would compile itself... thx

reply to this message

#64: Re: ..

by pushplay on 05/08/2004 03:33, refers to #63

You want to put the source in something like cube/source.mod/src so that when the make file looks for ../../bin it will find it.

reply to this message

#65: Re: ..

by D.plomat on 05/10/2004 12:34, refers to #60

they released also the latest version?

about loading the project file, then someone having the Visual studio 7 has to cut'n paste the lines of options given to the commands by the project settings window to make a nice .bat that can be used with the command-line tools.

reply to this message

Go to first 20 messagesGo to previous 20 messages    Board Index    Go to next 20 messagesGo to last 20 messages


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
54038486 visitors requested 71818868 pages
page created in 0.047 seconds using 9 queries
hosted by Boost Digital