Crystal Space
Welcome, Guest. Please login or register.
August 20, 2014, 05:40:54 pm

Login with username, password and session length
Search:     Advanced search
9008 Posts in 2046 Topics by 8329 Members
Latest Member: Rachelsantiago
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  CrystalSpace and ODE CVS compile help
« previous next »
Pages: [1] Print
Author Topic: CrystalSpace and ODE CVS compile help  (Read 3818 times)
trigger-happy
Newbie
*
Posts: 9


trigger_happy_elite
View Profile
« on: November 30, 2005, 03:32:07 pm »

I have the latest version of ODE and CrystalSpace form CVS.. ODE compiles fine and I installed it as required. But the problem is that when i configure CrystalSpace, it keeps telling me that it couldn't find libode. I already made use of the --with-ode option and pointed it to the source folder and the installation folder already. Any ideas on how to get CS to detect ODE?

--trigger-happy
Logged

What meaning does one's existence have when one is insignifacant to this universe.
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #1 on: November 30, 2005, 03:32:51 pm »

I have the latest version of ODE and CrystalSpace form CVS.. ODE compiles fine and I installed it as required. But the problem is that when i configure CrystalSpace, it keeps telling me that it couldn't find libode. I already made use of the --with-ode option and pointed it to the source folder and the installation folder already. Any ideas on how to get CS to detect ODE?

--trigger-happy

Did you compile ODE with OPCODE support?

Greetings,
Logged
trigger-happy
Newbie
*
Posts: 9


trigger_happy_elite
View Profile
« Reply #2 on: November 30, 2005, 10:21:41 pm »

Yes of course. I took that into account.
Logged

What meaning does one's existence have when one is insignifacant to this universe.
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #3 on: December 01, 2005, 07:12:08 am »

It would be useful to see two bits of information:

1. The relevant output from the configure script.

2. The relevant chunk of config.log containing the various ODE checks (there should be quite a few of them).
Logged
trigger-happy
Newbie
*
Posts: 9


trigger_happy_elite
View Profile
« Reply #4 on: December 01, 2005, 09:43:47 am »

The configure script goes well. My real problem is that it can't detect ODE as you can see in the output from the configure script:

./configure CC=gcc32 CXX=g++32 --with-ode=/src/ode
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc32
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc32 accepts -g... yes
checking for gcc32 option to accept ANSI C... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether g++32 accepts -g... yes
checking how to run the C++ preprocessor... g++32 -E
checking for ranlib... ranlib
checking for dlltool... dlltool
checking for dllwrap... no
checking for windres... no
checking for flex... flex
checking for bison... bison
checking if bison version >= 1.35... yes (version 2.0)
checking for doxygen... doxygen
checking for texi2dvi... texi2dvi
checking for texi2pdf... no
checking for dvips... dvips
checking for dvipdf... dvipdf
checking for makeinfo... makeinfo
checking for hhc... no
checking for install... install
checking for swig... swig
checking if swig version >= 1.3.21... yes (version 1.3.24)
checking for libtool... libtool
checking for libtool... /usr/bin/libtool
checking classification of /usr/bin/libtool... gnu
checking for libtool... /usr/bin/libtool
checking classification of /usr/bin/libtool... gnu
checking how to create a directory... mkdir
checking how to create a directory tree... mkdir -p
checking for dot... no
checking for jam... /usr/bin/jam
checking if jam version >= 2.4... yes (version 2.5)
checking for gnumake... no
checking for gmake... gmake
checking for nasmw... no
checking for nasm... nasm
checking if nasm is sufficiently recent... yes
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... yes
checking for gethostbyname in -lnsl... yes
checking for pthread... yes
checking for pthread recursive mutexes... PTHREAD_MUTEX_RECURSIVE
checking for RTLD_NOW... yes
checking for perl5... no
checking for perl... perl
checking how to suppress C++ `long double' warnings... no
checking for python... python
checking for python SDK... yes
checking if python SDK is usable... yes
checking for java... /usr/java/jre1.5.0_04/bin/java
checking for javac... /usr/bin/javac
checking if Java2 SDK is usable... no
checking for ant... /usr/bin/ant
checking for STL... yes
checking how to enable C++ compilation warnings... -Wall
checking how to treat C++ warnings as errors... -Werror
checking how to suppress C++ unused variable warnings... -Wno-unused
checking how to suppress C++ uninitialized warnings... -Wno-uninitialized
checking how to suppress C++ unknown #pragma warnings... -Wno-unknown-pragmas
checking how to suppress C++ `long double' warnings... (cached) no
checking how to enable C++ exceptions... -fexceptions -fno-omit-frame-pointer
checking how to disable C++ exceptions... -fno-exceptions
checking how to enforce C++ standards conformance... -ansi -pedantic
checking if -multiply_defined suppress is needed... no
checking if -force_cpusubtype_ALL is needed... no
checking if -pipe is accepted... -pipe
checking if -shared is accepted... -shared
checking if -soname is accepted... yes
checking how to export all dynamic symbols... -Wl,-E
checking if --kill-at is accepted... no
checking how to treat C++ warnings as errors... -Werror
checking how to enable C++ PIC generation... -fPIC
checking how to disable function inlining... -fno-inline-functions
checking for inline visibility flag... no
checking for symbol visibility flag... no
checking how to declare default visibility... no
checking for flag to disable lack of virtual destructor warning... -Wno-non-virtual-dtor
checking whether non-virtual destructor warnings are not annoying... yes
checking whether to use CPU-specific optimizations... minimum
checking for code generation flags... -march=i586
checking how to enable optimizations... -O3
checking if -fomit-frame-pointer is accepted... -fomit-frame-pointer
checking if -ffast-math is accepted... -ffast-math
checking how to enable compiler debug output... -g3
checking if -I/usr/local/include is usable... -I/usr/local/include
checking for va_copy... no
checking for __va_copy... yes
checking how to run the C preprocessor... gcc32 -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for pkg-config... pkg-config
checking if pkg-config recognizes Xxf86vm... no
checking for Xxf86vm-config... no
checking for libXxf86vm... yes
checking if pkg-config recognizes Xaw... no
checking for Xaw-config... no
checking for libXaw... yes
checking for int32... no
checking for windows.h... no
checking for OpenGL... yes
checking for GLU... yes
checking for GLhandleARB... yes
checking for GLX... yes
checking for GLX extensions... yes
checking if pkg-config recognizes z... no
checking for z-config... no
checking if pkg-config recognizes zlib... no
checking for zlib-config... no
checking for libz... yes
checking if pkg-config recognizes png... no
checking for png-config... no
checking if pkg-config recognizes libpng... yes
checking for libpng-config... libpng-config
checking for libpng... yes
checking if pkg-config recognizes jpeg... no
checking for jpeg-config... no
checking if pkg-config recognizes libjpeg... no
checking for libjpeg-config... no
checking for libjpeg... yes
checking if pkg-config recognizes lcms... yes
checking for lcms-config... no
checking for liblcms... yes
checking if pkg-config recognizes mng... no
checking for mng-config... no
checking if pkg-config recognizes libmng... no
checking for libmng-config... no
checking for libmng... yes
checking if pkg-config recognizes mikmod... no
checking for mikmod-config... no
checking for libmikmod... yes
checking if pkg-config recognizes ogg... yes
checking for ogg-config... no
checking for libogg... yes
checking if pkg-config recognizes vorbis... yes
checking for vorbis-config... no
checking for libvorbis... yes
checking if pkg-config recognizes vorbisfile... yes
checking for vorbisfile-config... no
checking for libvorbisfile... yes
checking if pkg-config recognizes 3ds... no
checking for 3ds-config... no
checking if pkg-config recognizes lib3ds... no
checking for lib3ds-config... no
checking if pkg-config recognizes lib3ds-120... no
checking for lib3ds-120-config... no
checking for lib3ds... no
checking for libode... no
checking if pkg-config recognizes bullet... no
checking for bullet-config... no
checking for libbullet... no
checking for OpenAL... yes
checking if pkg-config recognizes freetype2... yes
checking for freetype2-config... no
checking if pkg-config recognizes freetype... no
checking for freetype-config... freetype-config
checking for libfreetype2... yes
checking if freetype2 is sufficiently recent... yes
checking if pkg-config recognizes cal3d... no
checking for cal3d-config... no
checking for libcal3d... no
checking if pkg-config recognizes sdl... no
checking for sdl-config... sdl-config
checking for libsdl... yes
checking if SDL is sufficiently recent... yes
checking if pkg-config recognizes metaobject_a3dl... no
checking for metaobject_a3dl-config... no
checking if pkg-config recognizes libmetaobject_a3dl... no
checking for libmetaobject_a3dl-config... no
checking for libmetaobject_a3dl... no
checking if pkg-config recognizes wx... no
checking for wx-config... wx-config
checking for libwx... yes
checking if wxWidgets is built with OpenGL support... yes
checking if pkg-config recognizes CEGUI... yes
checking for CEGUI-config... no
checking for libCEGUI... yes
checking if CEGUI is sufficiently recent... yes
checking for GNU/Linux joystick API... yes
checking if pkg-config recognizes Cg... no
checking for Cg-config... no
checking if pkg-config recognizes cg... no
checking for cg-config... no
checking if pkg-config recognizes CG... no
checking for CG-config... no
checking for libCg... yes
checking if Cg is sufficiently recent... yes
checking if pkg-config recognizes CgGL... no
checking for CgGL-config... no
checking if pkg-config recognizes cggl... no
checking for cggl-config... no
checking if pkg-config recognizes cgGL... no
checking for cgGL-config... no
checking if pkg-config recognizes CGGL... no
checking for CGGL-config... no
checking if pkg-config recognizes Cg... (cached) no
checking for Cg-config... no
checking if pkg-config recognizes cg... (cached) no
checking for cg-config... no
checking if pkg-config recognizes CG... (cached) no
checking for CG-config... no
checking for libCgGL... yes
checking soundcard.h usability... no
checking soundcard.h presence... no
checking for soundcard.h... no
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking if pkg-config recognizes jackasyn... no
checking for jackasyn-config... no
checking for libjackasyn... no
checking if pkg-config recognizes asound... no
checking for asound-config... no
checking for libasound... yes
checking for DivX4... no
checking for OpenDivX... no
checking if pkg-config recognizes caca... no
checking for caca-config... no
checking if pkg-config recognizes libcaca... no
checking for libcaca-config... no
checking for libcaca... no
checking for regexp support... yes
checking for backtrace... yes
checking for setenv... yes
checking cxxabi.h usability... yes
checking cxxabi.h presence... yes
checking for cxxabi.h... yes
checking for abi::__cxa_demangle... yes
checking for perl5... (cached) perl
checking for TemplateToolkit... no
checking for ttree... no
checking if pkg-config recognizes cppunit... no
checking for cppunit-config... cppunit-config
checking for libcppunit... yes
checking if cppunit is sufficiently recent... yes
checking if plugins require main()... yes
checking for long... yes
checking size of long... 4
checking whether byte ordering is bigendian... no
checking for stdint.h... (cached) yes
checking for INT64_C... yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for intptr_t... yes
checking for intmax_t... yes
checking for inttypes.h... (cached) yes
checking for PRIx99 macros... yes
checking for long... (cached) yes
checking size of long... (cached) 4
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking for wint_t... yes
checking for wchar_t... yes
checking for wcslen... yes
checking for fputws... yes
checking for fwide... yes
checking for wcsrtombs... yes
checking for wchar_t... (cached) yes
checking size of wchar_t... 4
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for MAXPATHLEN... yes
checking for winsock.h... no
checking for unistd.h... (cached) yes
checking for sys/types.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for socket support... yes
checking for socklen_t... yes
checking how to declare deprecations... __attribute__((deprecated))
checking how to declare const functions... __attribute__((const))
checking how to declare pure functions... __attribute__((pure))
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 assembly-coded csQsqrt() compiles... yes
checking elf.h usability... yes
checking elf.h presence... yes
checking for elf.h... yes
checking whether to embed plugin meta-information... yes
checking for windres... no
checking for objcopy... objcopy
checking for elf.h... (cached) yes
checking build mode... optimize
checking whether to use extensive memory debugger... no
checking whether to use memory tracker... no
checking whether to use reference tracker... no
checking whether to use leak guard... no
checking whether to build shared libraries... no
checking whether to emulate makefiles... yes
configure: creating ./config.status
config.status: creating Jamfile
config.status: executing include/csconfig.h commands
config.status: include/csconfig.h is unchanged
config.status: executing Jamconfig commands
config.status: Jamconfig is unchanged
config.status: executing Makefile commands
[trigger@trigger CS]$                                         

Here is the relevant part of the config.log:
configure:36462: checking for libode
configure:36551: g++32 -o conftest -I/src/ode/include  -O2  -I/usr/local/include -L/src/ode/
lib   -L/usr/local/lib conftest.cc -framework ode  -lnsl  >&5
g++32: ode: No such file or directory
cc1plus: unrecognized option `-framework'
Logged

What meaning does one's existence have when one is insignifacant to this universe.
trigger-happy
Newbie
*
Posts: 9


trigger_happy_elite
View Profile
« Reply #5 on: December 01, 2005, 09:45:36 am »

Little update, I tried using gcc 4.0.2 and it detected libode, now the problem is i have no idea if it will compile knowing the warning about gcc 4.0+ and CS >.<

--trigger-happy
Logged

What meaning does one's existence have when one is insignifacant to this universe.
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #6 on: December 02, 2005, 02:44:31 am »

gcc 4.0.2 is reported to work properly. Only 4.0.0 is reported as causing crashes.
Logged
trigger-happy
Newbie
*
Posts: 9


trigger_happy_elite
View Profile
« Reply #7 on: December 02, 2005, 12:13:11 pm »

not on my case T_T. It didn't compile with 4.0.2, but thanks to a lot of hacking in the config file, i got it working with my 3.2 version of gcc Cheesy. Everything is fine now as I got ODE to get detected and compile with CS. Thanks for all the help Smiley
Logged

What meaning does one's existence have when one is insignifacant to this universe.
tjwood
Guest


Email
« Reply #8 on: December 09, 2005, 05:48:30 pm »

I'm having similar problems compiling CrystalSpace with ODE.

As far as I know ODE is compiled with OPCODE. I'm a little confused since one part of the ODE readme says that OPCODE is not compiled when you compile ODE... however, there are references to OPCODE in the ODE makefile and running it seemed to produce a bunch of .o files for OPCODE. I can't find any other makefile or anything similar for OPCODE alone...?

The relevant bits (I think!) of the config.log for CrystalSpace configure are as follows.

Any suggestions?


Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by crystalspace configure 0.99, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ../CS/configure --with-ode=ode

## --------- ##
## Platform. ##
## --------- ##

hostname = (whatever)
uname -m = i686
uname -r = 2.6.9-11.ELsmp
uname -s = Linux
uname -v = #1 SMP Fri May 20 18:26:27 EDT 2005

...snip...

## ----------- ##
## Core tests. ##
## ----------- ##

configure:1494: checking build system type
configure:1512: result: i686-pc-linux-gnu
configure:1520: checking host system type
configure:1534: result: i686-pc-linux-gnu
configure:1606: checking for gcc
configure:1622: found /usr/bin/gcc
configure:1632: result: gcc
configure:1876: checking for C compiler version
configure:1879: gcc --version </dev/null >&5
gcc (GCC) 3.4.3 20050227 (Red Hat 3.4.3-22.1)

...snip...

configure:35158: checking for libode
configure:35247: g++ -o conftest -Iode/include    -I/usr/local/include -Lode/lib   -L/usr/local/lib conftest.cc -framework ode  -lnsl  >&5
cc1plus: error: unrecognized command line option "-framework"
configure:35253: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "crystalspace"
| #define PACKAGE_TARNAME "crystalspace"
| #define PACKAGE_VERSION "0.99"
| #define PACKAGE_STRING "crystalspace 0.99"
| #define PACKAGE_BUGREPORT "crystal-main@lists.sourceforge.net"
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CMATH 1
| #define HAVE_LIBNSL 1
| /* end confdefs.h.  */
| #include <ode/ode.h>
| int
| main ()
| {
| dWorldCreate()
|   ;
|   return 0;
| }
configure:35247: g++ -o conftest -Iode/include    -I/usr/local/include -Lode/lib   -L/usr/local/lib conftest.cc -lode  -lnsl  >&5
configure:35253: $? = 0
configure:35257: test -z
|| test ! -s conftest.err
configure:35260: $? = 0
configure:35263: test -s conftest
configure:35266: $? = 0
configure:35305: result: yes
configure:35328: checking if libode is sufficiently recent
configure:35420: g++ -o conftest  -Iode/include   -I/usr/local/include  -Lode/lib  -L/usr/local/lib conftest.cc  -lode -lnsl  >&5
conftest.cc: In function `int main()':
conftest.cc:28: error: `dGeomTriMeshGetTriangleCount' undeclared (first use this function)
conftest.cc:28: error: (Each undeclared identifier is reported only once for each function it appears in.)
configure:35426: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "crystalspace"
| #define PACKAGE_TARNAME "crystalspace"
| #define PACKAGE_VERSION "0.99"
| #define PACKAGE_STRING "crystalspace 0.99"
| #define PACKAGE_BUGREPORT "crystal-main@lists.sourceforge.net"
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_CMATH 1
| #define HAVE_LIBNSL 1
| /* end confdefs.h.  */
| #include <ode/ode.h>
| int
| main ()
| {
| dGeomTriMeshGetTriangleCount(0);
|   ;
|   return 0;
| }
configure:35479: result: no



Logged
xhyldazhk
Newbie
*
Posts: 6


View Profile
« Reply #9 on: December 09, 2005, 08:33:35 pm »

as I do usually is to grab the latest CVS or latest tarball of ODE, unzip it and build it. then in the CS configure script I simply specify the option --with-ode=<path where is my built ODE distribution> and it compiles with ODE.
Logged
sunshine
Administrator
Sr. Member
*****
Posts: 294


View Profile
« Reply #10 on: December 10, 2005, 12:33:02 am »

Code:
The relevant bits (I think!) of the config.log for CrystalSpace configure are as follows.

The "sufficiently recent" test claims that the version found is outdated. If you haven't, you should install the CVS version of ODE. Another possibility is that it is finding an older version which you have installed. If this is the case, try the previous poster's suggestion.
Logged
tjwood
Newbie
*
Posts: 1


View Profile
« Reply #11 on: December 11, 2005, 06:35:20 pm »

Thanks for your help, I will try again with the latest CVS version...
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.172 seconds with 15 queries.