Crystal Space
Welcome, Guest. Please login or register.
October 31, 2014, 03:24:13 pm

Login with username, password and session length
Search:     Advanced search
9011 Posts in 2044 Topics by 8900 Members
Latest Member: Irmobek
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  General Crystal Space Discussion
| | |-+  Help with compiling?
« previous next »
Pages: [1] Print
Author Topic: Help with compiling?  (Read 3409 times)
Sir Be
Guest


Email
« on: January 03, 2006, 05:42:51 am »

Alright, I'm sorry, I am such a n00b. But... HOW THE **** DO YOU COMPILE CS!?!??!?!? I need a complete tutorial with steps like:

1. Go to this site - http://www.siteineedtogoto.com/
2. Download whatineedtodownload.

Ya know? PLEASE HELP A N00B OUT.

Thanks.

*admin: changed the subject from: !!!!!!HELP!!!! to something more descriptive, please use descriptive names in future*
« Last Edit: January 03, 2006, 01:39:11 pm by dingobloo » Logged
Sir Be
Guest


Email
« Reply #1 on: January 03, 2006, 05:57:49 am »

And by the way, my OS is Windows XP.
Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #2 on: January 03, 2006, 06:05:48 am »

Have you consulted the build instructions in the CS manual? There is a section for each supported platform.

http://www.crystalspace3d.org/docs/online/manual/
Logged
Sir Be
Guest


Email
« Reply #3 on: January 03, 2006, 06:59:27 am »

O.K. I'll try that, thanks. =)
Logged
Sir Be
Guest


Email
« Reply #4 on: January 03, 2006, 08:17:24 am »

I tried using MinGW, I started compiling, but then this happened:

Code:
Brandon King@H8G1F4 ~
$ cd /c/CS

Brandon King@H8G1F4 /c/CS
$ ./configure
make -k all
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking for dlltool... dlltool
checking for dllwrap... dllwrap
checking for windres... windres
checking for objcopy... objcopy
checking for flex... no
checking for bison... no
checking for doxygen... no
checking for texi2dvi... texi2dvi
checking for dvips... no
checking for dvipdf... no
checking for makeinfo... makeinfo
checking for install... install
checking for swig... no
checking for libtool... no
checking for glibtool... no
checking for gnulibtool... no
checking for libtool... no
checking how to create a directory... mkdir
checking how to create a directory tree... mkdir -p
checking for jam... no
checking for gnumake... no
checking for gmake... no
checking for make... make
checking for cslibs-config... no
checking for cslibs package... no
checking for nasmw... no
checking for nasm... no
checking how to run the C++ preprocessor... g++ -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking cmath usability... yes
checking cmath presence... yes
checking for cmath... yes
checking for pow in -lm... yes
checking for cosf in -lm... yes
checking for cosf in -lmx... no
checking for dlopen in -ldl... no
checking for gethostbyname in -lnsl... no
checking for pthread... no
checking for RTLD_NOW... no
checking for perl5... no
checking for perl... no
checking for python... no
checking for java... /c/WINDOWS/system32/java
checking for javac... no
checking for ant... no
checking how to enable compilation warnings... -Wall
checking how to treat warnings as errors... -Werror
checking how to ignore unused variables... -Wno-unused
checking how to ignore uninitialized variables... -Wno-uninitialized
checking how to ignore unknown #pragma directives... -Wno-unknown-pragmas
checking how to enable C++ exceptions... -fexceptions
checking how to disable C++ exceptions... -fno-exceptions
checking if -multiply_defined suppress is needed... no
checking if -force_cpusubtype_ALL is needed... no
checking if -fvtable-thunks is needed... no
checking if -pipe is accepted... -pipe
checking if -shared is accepted... -shared
checking if -soname is accepted... yes
checking whether to use CPU-specific optimizations... minimum
checking for code generation flags... -march=i586
checking how to enable optimizations... -O3
checking if g++ recognizes -fomit-frame-pointer... -fomit-frame-pointer
checking if g++ recognizes -ffast-math... -ffast-math
checking how to enable compiler debug output... -g3
checking how to run the C preprocessor... gcc -E
checking for X... disabled
checking for int32... no
checking for windows.h... yes
checking for OpenGL... yes
checking for GLU... yes
checking for GLUT... no
checking for GLX... no
checking for int32... (cached) no
checking for DirectX... no
checking for waveout... yes
checking for libz... no
configure: error: zlib is essential for building CS.

Brandon King@H8G1F4 /c/CS
$ make -k all
make: *** No rule to make target `all'.
Logged
Sir Be
Guest


Email
« Reply #5 on: January 03, 2006, 08:42:20 am »

OMG, lol, O.K. I got past that problem and on to new one. After succesfully checking everything, it had an error in Configuring it all:
Code:
Brandon King@H8G1F4 ~
$ cd /c/CS

Brandon King@H8G1F4 /c/CS
$ ./configure
make -k all
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking for dlltool... dlltool
checking for dllwrap... dllwrap
checking for windres... windres
checking for objcopy... objcopy
checking for flex... no
checking for bison... no
checking for doxygen... no
checking for texi2dvi... texi2dvi
checking for dvips... no
checking for dvipdf... no
checking for makeinfo... makeinfo
checking for install... install
checking for swig... no
checking for libtool... no
checking for glibtool... no
checking for gnulibtool... no
checking for libtool... no
checking how to create a directory... mkdir
checking how to create a directory tree... mkdir -p
checking for jam... /C/Program Files/CrystalSpaceLibs/tools/jam
checking if jam version >= 2.4... yes (version 2.5)
checking for gnumake... no
checking for gmake... no
checking for make... make
checking for cslibs-config... cslibs-config
checking for cslibs package... yes
checking for nasmw... nasmw
checking if nasm is sufficiently recent... yes
checking how to run the C++ preprocessor... g++ -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking cmath usability... yes
checking cmath presence... yes
checking for cmath... yes
checking for pow in -lm... yes
checking for cosf in -lm... yes
checking for cosf in -lmx... no
checking for dlopen in -ldl... no
checking for gethostbyname in -lnsl... no
checking for pthread... no
checking for RTLD_NOW... no
checking for perl5... no
checking for perl... no
checking for python... no
checking for java... /c/WINDOWS/system32/java
checking for javac... no
checking for ant... no
checking how to enable compilation warnings... -Wall
checking how to treat warnings as errors... -Werror
checking how to ignore unused variables... -Wno-unused
checking how to ignore uninitialized variables... -Wno-uninitialized
checking how to ignore unknown #pragma directives... -Wno-unknown-pragmas
checking how to enable C++ exceptions... -fexceptions
checking how to disable C++ exceptions... -fno-exceptions
checking if -multiply_defined suppress is needed... no
checking if -force_cpusubtype_ALL is needed... no
checking if -fvtable-thunks is needed... no
checking if -pipe is accepted... -pipe
checking if -shared is accepted... -shared
checking if -soname is accepted... yes
checking whether to use CPU-specific optimizations... minimum
checking for code generation flags... -march=i586
checking how to enable optimizations... -O3
checking if g++ recognizes -fomit-frame-pointer... -fomit-frame-pointer
checking if g++ recognizes -ffast-math... -ffast-math
checking how to enable compiler debug output... -g3
checking how to run the C preprocessor... gcc -E
checking for X... disabled
checking for int32... no
checking for windows.h... yes
checking for OpenGL... yes
checking for GLU... yes
checking for GLUT... no
checking for GLX... no
checking for int32... (cached) no
checking for DirectX... yes
checking for waveout... yes
checking for libz... yes
checking for libpng... yes
checking for libjpeg... yes
checking for libmng... yes
checking for libmikmod... yes
checking for libogg... yes
checking for libvorbis... yes
checking for libvorbisfile... yes
checking for lib3ds... yes
checking if lib3ds is sufficiently recent... yes
checking for libode... yes
checking if libode is sufficiently recent... yes
checking if extern "C" is needed with libode... yes
checking for OpenAL... yes
checking for freetype-config... freetype-config
checking for FreeType2... yes
checking if freetype2 is sufficiently recent... yes
checking for libmingwex... no
checking for libcal3d... no
checking for sdl12-config... no
checking for sdl11-config... no
checking for sdl-config... no
checking for SDL... no
checking for pkg-config... no
checking for VOS... no
checking for Linux joystick API... no
checking for cgc... no
checking for libCg... yes
checking if Cg is sufficiently recent... yes
checking for libCgGL... yes
checking soundcard.h usability... no
checking soundcard.h presence... no
checking for soundcard.h... no
checking sys/soundcard.h usability... no
checking sys/soundcard.h presence... no
checking for sys/soundcard.h... no
checking machine/soundcard.h usability... no
checking machine/soundcard.h presence... no
checking for machine/soundcard.h... no
checking for libasound... no
checking for DivX4... no
checking for OpenDivX... no
checking for regexp support... no
checking if plugins require main()... no
checking whether byte ordering is bigendian... no
checking for bool... yes
checking for stdint.h... (cached) yes
checking if INT64_C is available... yes
checking for long... yes
checking size of long... 4
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for wchar_t... yes
checking for wcslen... yes
checking for fputws... yes
checking for wchar_t... (cached) yes
checking size of wchar_t... 2
checking for winsock.h... yes
checking for unistd.h... (cached) yes
checking for sys/types.h... (cached) yes
checking sys/socket.h usability... no
checking sys/socket.h presence... no
checking for sys/socket.h... no
checking sys/ioctl.h usability... no
checking sys/ioctl.h presence... no
checking for sys/ioctl.h... no
checking netinet/in.h usability... no
checking netinet/in.h presence... no
checking for netinet/in.h... no
checking arpa/inet.h usability... no
checking arpa/inet.h presence... no
checking for arpa/inet.h... no
checking netdb.h usability... no
checking netdb.h presence... no
checking for netdb.h... no
checking for socket support... yes
checking for socklen_t... no
checking for C++ `explicit' keyword... yes
checking for C++ `typename' keyword... yes
checking for C++ new-style casts... yes
checking for C++ explicit template<> specialization... yes
checking if g++ recognizes -fPIC... -fPIC
checking if qsqrt() compiles... yes
checking if qint() functions correctly... no
checking whether to build plugins... yes
checking whether to embed plugin meta-information... yes
checking build mode... optimize
checking whether to use extensive memory debugger... no
checking whether to use memory tracker... no
checking whether to use new renderer... no
checking whether to emulate makefiles... yes
configure: creating ./config.status
./config.status: Files/CrystalSpaceLibs/tools/jam: No such file or directory
config.status: creating Jamfile
config.status: executing include/volatile.h commands
config.status: executing Jamconfig commands
config.status: executing Makefile commands
config.status: WARNING: failed to create makefile emulation layer

Brandon King@H8G1F4 /c/CS
$ make -k all
make: *** No rule to make target `all'.
Logged
Sir_Be
Newbie
*
Posts: 3


View Profile Email
« Reply #6 on: January 03, 2006, 09:34:47 am »

Alright, I got something working, I typed in:  jam -a all and it seems to be working. *FINGERS CROSSED*
Logged
[SOM]Roberto
Jr. Member
**
Posts: 79


View Profile Email
« Reply #7 on: January 03, 2006, 12:01:22 pm »

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

"1 CS: 0.99r 2005-09-03
2 MinGW 5.0.0                     
3 MSYS-1.0.11-2004.04.30-1
4 cs-win32libs-0.99r0_015

mingw and msys: http://sourceforge.net/project/showfiles.php?group_id=2435
CS and winlibs: https://sourceforge.net/project/showfiles.php?group_id=649"

Or CS SDK for CVS:
http://community.crystalspace3d.org/tiki-read_article.php?articleId=3
cs winlibs 17

Wink
« Last Edit: January 03, 2006, 12:06:44 pm by [SOM]Roberto » Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #8 on: January 03, 2006, 03:14:18 pm »

Code:
configure: creating ./config.status
./config.status: Files/CrystalSpaceLibs/tools/jam: No such file or directory
config.status: creating Jamfile

Unix-style build systems, such as that in CS work a lot better if paths do not contain embedded spaces, such as "c:/Program Files/CrystalSpaceLibs". When you installed cs-win32libs, it should have warned you about this problem and suggested that you choose an alternate location.
Logged
Sir_Be
Newbie
*
Posts: 3


View Profile Email
« Reply #9 on: January 04, 2006, 12:25:31 am »

Finally, I successfully compiled it, but some of the dll's were missing so I just copied them from the CrystalSpaceLibs folder and put them into the CS folder and I got it working. Thanks for all your help.
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 8.258 seconds with 16 queries.