[geos-devel] GEOS on Openmoko

Joseph Reeves iknowjoseph at gmail.com
Wed Jul 23 05:20:21 EDT 2008


Thanks Mateusz,

I've tried adding the flags in the way that the Openmoko toolchain
will accept, although make still fails later. I'm not sure if this is
working as it should:

joseph at joseph-work:~$ om-conf CPPFLAGS="-I/usr/local/openmoko/arm/arm-angstrom-l
inux-gnueabi/usr/include/c++/4.1.2" geos-2.2.3/
Source directory: /home/joseph/geos-2.2.3
Extra configure arguments:
automake (GNU automake) 1.10
Written by Tom Tromey <tromey at redhat.com>
       and Alexandre Duret-Lutz <adl at gnu.org>.

Copyright 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
AUTOV is 1
NOTE: Executing autoreconf --verbose --install --force -I /home/joseph/geos-2.2.
3/ -I /home/joseph/geos-2.2.3/macros/ -I/usr/local/openmoko/arm/arm-angstrom-lin
ux-gnueabi/share/aclocal/aclocal-1 -I /usr/local/openmoko/arm/arm-angstrom-linux
-gnueabi/share/aclocal/aclocal
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.in: tracing
autoreconf: running: libtoolize --copy --force
autoreconf: running: /usr/bin/autoconf --include=/home/joseph/geos-2.2.3/ --incl
ude=/home/joseph/geos-2.2.3/macros/ --include=/usr/local/openmoko/arm/arm-angstr
om-linux-gnueabi/share/aclocal/aclocal-1 --include=/usr/local/openmoko/arm/arm-a
ngstrom-linux-gnueabi/share/aclocal/aclocal --force --warnings=cross
autoreconf: running: /usr/bin/autoheader --include=/home/joseph/geos-2.2.3/ --in
clude=/home/joseph/geos-2.2.3/macros/ --include=/usr/local/openmoko/arm/arm-angs
trom-linux-gnueabi/share/aclocal/aclocal-1 --include=/usr/local/openmoko/arm/arm
-angstrom-linux-gnueabi/share/aclocal/aclocal --force --warnings=cross
autoreconf: running: automake --add-missing --copy --force-missing --warnings=cr
oss
automake: unknown warning category `cross'
autoreconf: Leaving directory `.'
NOTE: Running /home/joseph/geos-2.2.3/configure                     --build=i686
-linux              --host=arm-angstrom-linux-gnueabi               --target=arm
-angstrom-linux-gnueabi                     --prefix=/usr                   --ex
ec_prefix=/usr              --bindir=/usr/bin               --sbindir=/usr/sbin
    --libexecdir=/usr/libexec               --datadir=/usr/share
   --sysconfdir=/etc                --sharedstatedir=/usr/com               --lo
calstatedir=/var                    --libdir=/usr/lib               --includedir
=/usr/include               --oldincludedir=/usr/include                    --in
fodir=/usr/share/info               --mandir=/usr/share/man
    ...
checking build system type... i686-pc-linux-gnu
checking host system type... arm-angstrom-linux-gnueabi
checking target system type... arm-angstrom-linux-gnueabi
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-angstrom-linux-gnueabi-strip... arm-angstrom-linux-gnueabi-stri
p
checking for arm-angstrom-linux-gnueabi-gcc... ccache arm-angstrom-linux-gnueabi
-gcc -march=armv4t -mtune=arm920t
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm9
20t accepts -g... yes
checking for ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t
option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t
 -mtune=arm920t... gcc3
checking whether we are using the GNU C++ compiler... yes
checking whether ccache arm-angstrom-linux-gnueabi-g++ -march=armv4t -mtune=arm9
20t accepts -g... yes
checking dependency style of ccache arm-angstrom-linux-gnueabi-g++ -march=armv4t
 -mtune=arm920t... gcc3
checking for library containing strerror... none required
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtu
ne=arm920t... arm-angstrom-linux-gnueabi-ld
checking if the linker (arm-angstrom-linux-gnueabi-ld) is GNU ld... yes
checking for arm-angstrom-linux-gnueabi-ld option to reload object files... -r
checking for BSD-compatible nm... /usr/local/openmoko/arm/bin/arm-angstrom-linux
-gnueabi-nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... arm-angstrom-linux-gnueabi-gcc -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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... ccache arm-angstrom-linux-gnueabi-g+
+ -march=armv4t -mtune=arm920t -E
checking for arm-angstrom-linux-gnueabi-g77... ccache arm-angstrom-linux-gnueabi
-g77 -march=armv4t -mtune=arm920t
checking whether we are using the GNU Fortran 77 compiler... no
checking whether ccache arm-angstrom-linux-gnueabi-g77 -march=armv4t -mtune=arm9
20t accepts -g... no
checking the maximum length of command line arguments... 98304
checking command to parse /usr/local/openmoko/arm/bin/arm-angstrom-linux-gnueabi
-nm -B output from ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=ar
m920t object... ok
checking for objdir... .libs
checking for arm-angstrom-linux-gnueabi-ar... arm-angstrom-linux-gnueabi-ar
checking for arm-angstrom-linux-gnueabi-ranlib... arm-angstrom-linux-gnueabi-ran
lib
checking for arm-angstrom-linux-gnueabi-strip... (cached) arm-angstrom-linux-gnu
eabi-strip
checking if ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t s
upports -fno-rtti -fno-exceptions... no
checking for ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t
option to produce PIC... -fPIC
checking if ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t P
IC flag -fPIC works... yes
checking if ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t s
tatic flag -static works... yes
checking if ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t s
upports -c -o file.o... yes
checking whether the ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=
arm920t linker (arm-angstrom-linux-gnueabi-ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... cross
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by ccache arm-angstrom-linux-gnueabi-g++ -march=armv4t -mtu
ne=arm920t... arm-angstrom-linux-gnueabi-ld
checking if the linker (arm-angstrom-linux-gnueabi-ld) is GNU ld... yes
checking whether the ccache arm-angstrom-linux-gnueabi-g++ -march=armv4t -mtune=
arm920t linker (arm-angstrom-linux-gnueabi-ld) supports shared libraries... yes
checking for ccache arm-angstrom-linux-gnueabi-g++ -march=armv4t -mtune=arm920t
option to produce PIC... -fPIC
checking if ccache arm-angstrom-linux-gnueabi-g++ -march=armv4t -mtune=arm920t P
IC flag -fPIC works... yes
checking if ccache arm-angstrom-linux-gnueabi-g++ -march=armv4t -mtune=arm920t s
tatic flag -static works... yes
checking if ccache arm-angstrom-linux-gnueabi-g++ -march=armv4t -mtune=arm920t s
upports -c -o file.o... yes
checking whether the ccache arm-angstrom-linux-gnueabi-g++ -march=armv4t -mtune=
arm920t linker (arm-angstrom-linux-gnueabi-ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ccache arm-angstrom-linux-gnueabi-g77 -march=armv4t -mtune=arm920t
option to produce PIC... -fPIC
checking if ccache arm-angstrom-linux-gnueabi-g77 -march=armv4t -mtune=arm920t P
IC flag -fPIC works... no
checking if ccache arm-angstrom-linux-gnueabi-g77 -march=armv4t -mtune=arm920t s
tatic flag -static works... no
checking if ccache arm-angstrom-linux-gnueabi-g77 -march=armv4t -mtune=arm920t s
upports -c -o file.o... no
checking whether the ccache arm-angstrom-linux-gnueabi-g77 -march=armv4t -mtune=
arm920t linker (arm-angstrom-linux-gnueabi-ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether long int is 64 bits... configure: WARNING: 64 bit arithmetic di
sabled when cross-compiling
no
checking whether long long int is 64 bits... configure: WARNING: 64 bit arithmet
ic disabled when cross-compiling
no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking whether closedir returns void... yes
checking for working memcmp... no
checking for strftime... yes
checking for vprintf... yes
checking for _doprnt... no
checking for working alloca.h... yes
checking for alloca... yes
checking for dirent.h that defines DIR... (cached) yes
checking for library containing opendir... (cached) none required
checking for ANSI C header files... (cached) yes
checking for memory.h... (cached) yes
checking for unistd.h... (cached) yes
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking for strchr... yes
checking for memcpy... yes
checking whether stat file-mode macros are broken... no
checking whether struct tm is in sys/time.h or time.h... time.h
checking for size_t... yes
checking for an ANSI C-conforming const... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating source/Makefile
config.status: creating source/capi/Makefile
config.status: creating source/geom/Makefile
config.status: creating source/headers/Makefile
config.status: creating source/headers/geos/Makefile
config.status: creating tools/Makefile
config.status: creating tools/geos-config
config.status: creating macros/Makefile
config.status: creating source/test/Makefile
config.status: creating source/bigtest/Makefile
config.status: creating doc/Makefile
config.status: creating source/headers/geos/version.h
config.status: creating doc/Doxyfile
config.status: creating swig/Makefile
config.status: creating swig/python/Makefile
config.status: creating swig/python/tests/Makefile
config.status: creating swig/python/tests/cases/Makefile
config.status: creating swig/ruby/Makefile
config.status: creating swig/ruby/test/Makefile
config.status: creating VisualStudio/Makefile
config.status: creating source/capi/geos_c.h
config.status: creating source/headers/config.h
config.status: source/headers/config.h is unchanged
config.status: creating source/headers/geos/platform.h
config.status: source/headers/geos/platform.h is unchanged
config.status: executing depfiles commands
joseph at joseph-work:~$

Thanks,

Joseph




2008/7/22 Mateusz Loskot <mateusz at loskot.net>:
> Joseph Reeves wrote:
>> Thanks for both replies.
>>
>> C++ reports itself as 4.1.3:
>
> Joseph,
>
> OK, it's very good C++ compiler.
>
>> The openmoko toolchain includes the c++ header files, but I have not
>> managed to get them seen when making GEOS. Copying them the what I
>> thought was the correct location simply produces pages of error
>> messages:
>>
>> joseph at joseph-work:~$ ls -l
>> /usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/include/c++/4.1.2/
>> total 540
>> -rw-r--r-- 1 root root  2822 2008-05-10 19:54 algorithm
>> [...]
>
>
> You may try to specify this location as INCLUDE directory this way:
>
> $
> CPPFLAGS="-I/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/include/c++/4.1.2"
> ./configure && make
>
> Ciao
> --
> Mateusz Loskot, http://mateusz.loskot.net
> Charter Member of OSGeo, http://osgeo.org
> _______________________________________________
> geos-devel mailing list
> geos-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geos-devel
>


More information about the geos-devel mailing list