[ODE] some patches and packages

Russ Smith russ at q12.org
Thu Apr 22 07:21:37 MST 2004


> I made some patches and packages I need for ode and opcode.

i had already changed some WIN32 to MSVC (for the same reason - to get
opcode to build on non-VC++ compilers). is there any reason to prefer
the _MSC_VER name over MSVC?

russ.

--
Russ Smith
http://www.q12.org/

On Thu, 22 Apr 2004, Andreas Volz wrote:

> Hi,
>
> I made some patches and packages I need for ode and opcode. Perhaps you
> think some are usefull.
>
> Patch for current CVS (works also for 0.039) to build ode and opcode
> with mingw. As I know _MSC_VER is set automatic by VC++, so it should work.
>
>
> Index: OPCODE/Opcode.h
> ===================================================================
> RCS file: /cvsroot/opende/ode/OPCODE/Opcode.h,v
> retrieving revision 1.2
> diff -r1.2 Opcode.h
> 43c43
> < #ifdef WIN32
> ---
> > #ifdef _MSC_VER
> Index: OPCODE/Ice/IceFPU.h
> ===================================================================
> RCS file: /cvsroot/opende/ode/OPCODE/Ice/IceFPU.h,v
> retrieving revision 1.1
> diff -r1.1 IceFPU.h
> 44c44
> < #ifdef WIN32
> ---
> > #ifdef _MSC_VER
> 228c228
> < #ifdef WIN32
> ---
> > #ifdef _MSC_VER
> 245c245
> < #ifdef WIN32
> ---
> > #ifdef _MSC_VER
> 262c262
> < #ifdef WIN32
> ---
> > #ifdef _MSC_VER
> 282c282
> < #ifdef WIN32
> ---
> > #ifdef _MSC_VER
> Index: OPCODE/Ice/IceHPoint.h
> ===================================================================
> RCS file: /cvsroot/opende/ode/OPCODE/Ice/IceHPoint.h,v
> retrieving revision 1.1
> diff -r1.1 IceHPoint.h
> 150c150
> < #ifdef WIN32
> ---
> > #ifdef _MSC_VER
> Index: OPCODE/Ice/IceIndexedTriangle.h
> ===================================================================
> RCS file: /cvsroot/opende/ode/OPCODE/Ice/IceIndexedTriangle.h,v
> retrieving revision 1.1
> diff -r1.1 IceIndexedTriangle.h
> 16c16
> < #ifdef WIN32
> ---
> > #ifdef _MSC_VER
> Index: OPCODE/Ice/IceMemoryMacros.h
> ===================================================================
> RCS file: /cvsroot/opende/ode/OPCODE/Ice/IceMemoryMacros.h,v
> retrieving revision 1.1
> diff -r1.1 IceMemoryMacros.h
> 57c57
> < #ifdef WIN32
> ---
> > #ifdef _MSC_VER
>
>
> Patch for ode to build in Linux Linux environment with opcode installed
> in a system path.
>
> diff -u -r ode-0.039/Makefile ode-0.039_gentoo/Makefile
> --- ode-0.039/Makefile	2003-07-11 08:37:58.000000000 +0200
> +++ ode-0.039_gentoo/Makefile	2004-04-18 01:27:03.000000000 +0200
> @@ -142,7 +142,7 @@
>  ifdef OPCODE_DIRECTORY
>  DEFINES+=$(C_DEF)dTRIMESH_ENABLED
>  INC_OPCODE=$(C_INC)$(OPCODE_DIRECTORY)
> -OPCODE_LIB=$(OPCODE_DIRECTORY)/$(LIB_PREFIX)opcode$(LIB_SUFFIX)
> +OPCODE_LIB=-lopcode
>  endif
>
>  # add some defines depending on the build mode
>
>
> A slightly modified patch for Gentoo Linux is included in the ode-ebuild.
>
> Patch that build opcode with -O1 instead of -O2 (0.039)
>
>
> diff -u -r ode-0.039/OPCODE/Makefile ode-0.039_gentoo/OPCODE/Makefile
> --- ode-0.039/OPCODE/Makefile	2003-07-01 08:58:47.000000000 +0200
> +++ ode-0.039_gentoo/OPCODE/Makefile	2004-04-18 01:24:54.000000000 +0200
> @@ -52,9 +52,9 @@
>  	-rm -f *.o Ice/*.o libopcode.a
>
>  %.o : %.cpp
> -	gcc -c -o $@ -g -O2 -I. -fno-rtti -fno-exceptions $<
> +	$(CC) -c -o $@ -O1 -I. -fno-rtti -fno-exceptions $<
>
>  depend:
> -	gcc -MM -I. $(SRC) > Dependencies
> +	$(CC) -MM -I. $(SRC) > Dependencies
>
>  include Dependencies
>
>
> This patch is also included in the Gentoo opcode ebuild.
>
> Here are the Gentoo Linux ebuild files for ode and opcode:
> ftp://ftp.berlios.de/pub/unimatrix-fulda/linux-devel/ode/
>
> I included also the Gentoo created RPM-files for RPM based distros.
> The rpm files have no build-in dependency information, because Gentoo
> didn't (yet) support this for RPM creation.
>
> Currently ODE is build with SINGLE_PRECISION and opcode dependency. This
> isn't user defineable throught useflags currently, but easy changeable
> in the ebuild file.
>
> Also I build a Win32 Version for mingw of ode and opcode. I put it here:
> ftp://ftp.berlios.de/pub/unimatrix-fulda/win-devel/ode-0.039+opcode-1.3.zip
>
> If anyone is interessted why I need ode and opcode look here: ;-)
> (It's a simulator for the RoboCup smallsize league.)
> ftp://ftp.berlios.de/pub/unimatrix-fulda/pics/RoboSim.png
>
> I tried also to build some shared objects in Linux, but got some unresolved
> symbols. Perhaps I try this again later.
>
> regards
> Andreas
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
>



More information about the ODE mailing list