[ODE] Autotools added to UNSTABLE

Rodrigo Hernandez kwizatz at aeongames.com
Tue Apr 12 09:54:04 MST 2005


Ok, I made changes that should make it work now, please test it when you 
get the time and let me know how it goes.

As for DLL's I got one vote for dll as default, static takes a define.

Personally I dont mind either, dll's are required for the LGPL license, 
but due to the dual license of
ODE, this is not an issue, static linking is supposed to be faster, but 
I dont know how much or if it
is even noticeable.

Cheers!

Tanguy Fautre wrote:

>
> Here yo go
>
> PS: I just realised it was a linker error after reading your mail, and 
> not a compiler error... Gee I need some sleep. ;-)
>
>
>
>
> Rodrigo Hernandez wrote:
>
>>
>> Ahh, I understand now, aparently it is ignoring AM_LDFLAGS, and not 
>> adding -ldrawstuff and the
>> OpenGL libraries as well, the makefile seems alright though, and it 
>> works for me, could you send me the makefile that gets created in the 
>> dstest directory?
>>
>> perhaps different architecture, different LDFLAGS?
>>
>> Thanks :)
>>
>------------------------------------------------------------------------
>
># Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
>
># Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
># This Makefile.in is free software; the Free Software Foundation
># gives unlimited permission to copy and/or distribute it,
># with or without modifications, as long as this notice is preserved.
>
># This program is distributed in the hope that it will be useful,
># but WITHOUT ANY WARRANTY, to the extent permitted by law; without
># even the implied warranty of MERCHANTABILITY or FITNESS FOR A
># PARTICULAR PURPOSE.
>
>
>SHELL = /bin/sh
>
>srcdir = .
>top_srcdir = ../..
>
>prefix = /usr/local
>exec_prefix = ${prefix}
>
>bindir = ${exec_prefix}/bin
>sbindir = ${exec_prefix}/sbin
>libexecdir = ${exec_prefix}/libexec
>datadir = ${prefix}/share
>sysconfdir = ${prefix}/etc
>sharedstatedir = ${prefix}/com
>localstatedir = ${prefix}/var
>libdir = ${exec_prefix}/lib
>infodir = ${prefix}/info
>mandir = ${prefix}/man
>includedir = ${prefix}/include
>oldincludedir = /usr/include
>
>DESTDIR =
>
>pkgdatadir = $(datadir)/ODE
>pkglibdir = $(libdir)/ODE
>pkgincludedir = $(includedir)/ODE
>
>top_builddir = ../..
>
>ACLOCAL = aclocal-1.4
>AUTOCONF = autoconf
>AUTOMAKE = automake-1.4
>AUTOHEADER = autoheader
>
>INSTALL = /usr/bin/install -c
>INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
>INSTALL_DATA = ${INSTALL} -m 644
>INSTALL_SCRIPT = ${INSTALL}
>transform = s,x,x,
>
>NORMAL_INSTALL = :
>PRE_INSTALL = :
>POST_INSTALL = :
>NORMAL_UNINSTALL = :
>PRE_UNINSTALL = :
>POST_UNINSTALL = :
>host_alias = 
>host_triplet = x86_64-unknown-linux-gnu
>AR = ar
>AS = as
>CC = gcc
>CXX = g++
>CXXCPP = g++ -E
>DLLTOOL = dlltool
>DRAWSTUFF = 
>ECHO = echo
>EGREP = grep -E
>EXEEXT = 
>F77 = 
>GCJ = @GCJ@
>GCJFLAGS = @GCJFLAGS@
>GL_LIBS =  -lGL -lGLU
>HAVE_LIB = @HAVE_LIB@
>LIB = @LIB@
>LIBTOOL = $(SHELL) $(top_builddir)/libtool
>LIBTOOL_DEPS = ./ltmain.sh
>LN_S = ln -s
>LTLIB = @LTLIB@
>MAKEINFO = /home/tfautre/development/ode_unstable_cvs/ode/missing makeinfo
>OBJDUMP = objdump
>OBJEXT = o
>ODE_AGE = 0
>ODE_CURRENT = 0
>ODE_RELEASE = 0.5.0
>ODE_REVISION = 5
>PACKAGE = ODE
>RANLIB = ranlib
>RC = @RC@
>STRIP = strip
>TOPDIR = /home/tfautre/development/ode_unstable_cvs/ode
>VERSION = 0.5.0
>
>AM_CXXFLAGS = -fomit-frame-pointer -ffast-math -g -O2 -I/home/tfautre/development/ode_unstable_cvs/ode/include
>AM_LDFLAGS = -ldrawstuff   -lGL -lGLU  -lstdc++ -lm -L/home/tfautre/development/ode_unstable_cvs/ode/drawstuff/src
>
>noinst_PROGRAMS = dstest
>
>dstest_SOURCES = dstest.cpp
>#dstest_LDADD = resources.o
>mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
>CONFIG_HEADER = ../../include/ode/config.h
>CONFIG_CLEAN_FILES = 
>noinst_PROGRAMS =  dstest$(EXEEXT)
>PROGRAMS =  $(noinst_PROGRAMS)
>
>
>DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I../../include/ode
>CPPFLAGS = -fomit-frame-pointer -ffast-math 
>LDFLAGS = 
>LIBS =  -lstdc++ -lm
>X_CFLAGS =  -I/usr/X11R6/include
>X_LIBS =  -L/usr/X11R6/lib
>X_EXTRA_LIBS = 
>X_PRE_LIBS =  -lSM -lICE
>dstest_OBJECTS =  dstest.$(OBJEXT)
>#dstest_DEPENDENCIES =  resources.o
>dstest_LDFLAGS = 
>CXXFLAGS = -fomit-frame-pointer -ffast-math -g -O2
>CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
>LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
>CXXLD = $(CXX)
>CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@
>DIST_COMMON =  Makefile.am Makefile.in
>
>
>DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
>
>TAR = tar
>GZIP_ENV = --best
>SOURCES = $(dstest_SOURCES)
>OBJECTS = $(dstest_OBJECTS)
>
>all: all-redirect
>.SUFFIXES:
>.SUFFIXES: .S .c .cpp .lo .o .obj .s
>$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
>	cd $(top_srcdir) && $(AUTOMAKE) --foreign --include-deps drawstuff/dstest/Makefile
>
>Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
>	cd $(top_builddir) \
>	  && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
>
>
>mostlyclean-noinstPROGRAMS:
>
>clean-noinstPROGRAMS:
>	-test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
>
>distclean-noinstPROGRAMS:
>
>maintainer-clean-noinstPROGRAMS:
>
>.c.o:
>	$(COMPILE) -c $<
>
># FIXME: We should only use cygpath when building on Windows,
># and only if it is available.
>.c.obj:
>	$(COMPILE) -c `cygpath -w $<`
>
>.s.o:
>	$(COMPILE) -c $<
>
>.S.o:
>	$(COMPILE) -c $<
>
>mostlyclean-compile:
>	-rm -f *.o core *.core
>	-rm -f *.$(OBJEXT)
>
>clean-compile:
>
>distclean-compile:
>	-rm -f *.tab.c
>
>maintainer-clean-compile:
>
>.c.lo:
>	$(LIBTOOL) --mode=compile $(COMPILE) -c $<
>
>.s.lo:
>	$(LIBTOOL) --mode=compile $(COMPILE) -c $<
>
>.S.lo:
>	$(LIBTOOL) --mode=compile $(COMPILE) -c $<
>
>mostlyclean-libtool:
>	-rm -f *.lo
>
>clean-libtool:
>	-rm -rf .libs _libs
>
>distclean-libtool:
>
>maintainer-clean-libtool:
>
>dstest$(EXEEXT): $(dstest_OBJECTS) $(dstest_DEPENDENCIES)
>	@rm -f dstest$(EXEEXT)
>	$(CXXLINK) $(dstest_LDFLAGS) $(dstest_OBJECTS) $(dstest_LDADD) $(LIBS)
>.cpp.o:
>	$(CXXCOMPILE) -c $<
>.cpp.obj:
>	$(CXXCOMPILE) -c `cygpath -w $<`
>.cpp.lo:
>	$(LTCXXCOMPILE) -c $<
>
>tags: TAGS
>
>ID: $(HEADERS) $(SOURCES) $(LISP)
>	list='$(SOURCES) $(HEADERS)'; \
>	unique=`for i in $$list; do echo $$i; done | \
>	  awk '    { files[$$0] = 1; } \
>	       END { for (i in files) print i; }'`; \
>	here=`pwd` && cd $(srcdir) \
>	  && mkid -f$$here/ID $$unique $(LISP)
>
>TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
>	tags=; \
>	here=`pwd`; \
>	list='$(SOURCES) $(HEADERS)'; \
>	unique=`for i in $$list; do echo $$i; done | \
>	  awk '    { files[$$0] = 1; } \
>	       END { for (i in files) print i; }'`; \
>	test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
>	  || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags  $$unique $(LISP))
>
>mostlyclean-tags:
>
>clean-tags:
>
>distclean-tags:
>	-rm -f TAGS ID
>
>maintainer-clean-tags:
>
>distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
>
>subdir = drawstuff/dstest
>
>distdir: $(DISTFILES)
>	@for file in $(DISTFILES); do \
>	  d=$(srcdir); \
>	  if test -d $$d/$$file; then \
>	    cp -pr $$d/$$file $(distdir)/$$file; \
>	  else \
>	    test -f $(distdir)/$$file \
>	    || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
>	    || cp -p $$d/$$file $(distdir)/$$file || :; \
>	  fi; \
>	done
>info-am:
>info: info-am
>dvi-am:
>dvi: dvi-am
>check-am: all-am
>check: check-am
>installcheck-am:
>installcheck: installcheck-am
>install-exec-am:
>install-exec: install-exec-am
>
>install-data-am:
>install-data: install-data-am
>
>install-am: all-am
>	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
>install: install-am
>uninstall-am:
>uninstall: uninstall-am
>all-am: Makefile $(PROGRAMS)
>all-redirect: all-am
>install-strip:
>	$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
>installdirs:
>
>
>mostlyclean-generic:
>
>clean-generic:
>
>distclean-generic:
>	-rm -f Makefile $(CONFIG_CLEAN_FILES)
>	-rm -f config.cache config.log stamp-h stamp-h[0-9]*
>
>maintainer-clean-generic:
>mostlyclean-am:  mostlyclean-noinstPROGRAMS mostlyclean-compile \
>		mostlyclean-libtool mostlyclean-tags \
>		mostlyclean-generic
>
>mostlyclean: mostlyclean-am
>
>clean-am:  clean-noinstPROGRAMS clean-compile clean-libtool clean-tags \
>		clean-generic mostlyclean-am
>
>clean: clean-am
>
>distclean-am:  distclean-noinstPROGRAMS distclean-compile \
>		distclean-libtool distclean-tags distclean-generic \
>		clean-am
>	-rm -f libtool
>
>distclean: distclean-am
>
>maintainer-clean-am:  maintainer-clean-noinstPROGRAMS \
>		maintainer-clean-compile maintainer-clean-libtool \
>		maintainer-clean-tags maintainer-clean-generic \
>		distclean-am
>	@echo "This command is intended for maintainers to use;"
>	@echo "it deletes files that may require special tools to rebuild."
>
>maintainer-clean: maintainer-clean-am
>
>.PHONY: mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \
>clean-noinstPROGRAMS maintainer-clean-noinstPROGRAMS \
>mostlyclean-compile distclean-compile clean-compile \
>maintainer-clean-compile mostlyclean-libtool distclean-libtool \
>clean-libtool maintainer-clean-libtool tags mostlyclean-tags \
>distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
>dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
>install-exec install-data-am install-data install-am install \
>uninstall-am uninstall all-redirect all-am all installdirs \
>mostlyclean-generic distclean-generic clean-generic \
>maintainer-clean-generic clean mostlyclean distclean maintainer-clean
>
>
>#resources.o: ../src/resources.rc ../src/resource.h
>#	 ../src/resources.rc -o resources.o
>
># Tell versions [3.59,3.63) of GNU make to not export all variables.
># Otherwise a system limit (for SysV at least) may be exceeded.
>.NOEXPORT:
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>ODE mailing list
>ODE at q12.org
>http://q12.org/mailman/listinfo/ode
>  
>



More information about the ODE mailing list