[GRASS-user] Stereo Photo-Metrology

Benjamin Ducke benjamin.ducke at oxfordarch.co.uk
Mon Jul 28 04:47:32 EDT 2008


Terry,

this looks like a very interesting software and I would like to explore
it a little more to see how hard it will be to update the user interface
and add any missing features.

A first try to compile on my Ubuntu 7.04 threw this error at me:

gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  edit.c
In file included from edit.h:26,
                  from edit.c:24:
/usr/include/sys/types.h:39: error: two or more data types in 
declaration specifiers
/usr/include/sys/types.h:39: error: two or more data types in 
declaration specifiers
edit.c: In function ‘edit_execute_command’:
edit.c:1710: warning: passing argument 2 of ‘edit_printf’ makes pointer 
from integer without a cast
make[2]: *** [edit.o] Error 1
make[2]: Leaving directory `/home/benni/download/stereo-0.2b/widget'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/benni/download/stereo-0.2b'
make: *** [all-recursive-hack] Error 2

The culprit is in global.h. If I comment out all declarations for
quad_t (these are in types.h on my system), the software compiles.
I think that the configure script should be modified to detect a
declaration of quad_t on more recent systems.

Attached to this message is a log of the compilation run. There
are some warnings that worry me:

edit.c:1710
mathfuncs.c (asm)
stringtools.c:509
display.c:116
simplex.c:230

I feel that I do not understand enough about stereo to fix these at this
point. Could you look into them?

Anyhow, thanks for breathing new life into a very useful piece of
software!

Cheers,

Ben



Terry Duell wrote:
> Hullo All,
> The photo-metrology software, originally developed by Paul Sheer is now 
> established as a Sourceforge project.
> It is hoped that some help can be found to further develop this software.
> It should be helpful to anyone wishing to build dem data for limited 
> areas, and enables the user to provide their own stereo photo pairs. The 
> fact that camera positions can be arbitrary significantly reduces the 
> difficulties in preparing the raw data needed.
> The web site is at <http://stereo.sourceforge.net>.
> If you know of anyone who might be interested in this software please 
> point them to it.
> Anyone who could help with further development can contact me through 
> this list, or at tduell at users.sourceforge.net.
> 
> Cheers,


-- 
Benjamin Ducke
Senior Applications Support and Development Officer

Oxford Archaeological Unit Limited
Janus House
Osney Mead
OX2 0ES
Oxford, U.K.

Tel: +44 (0)1865 263 800 (switchboard)
Tel: +44 (0)1865 980 758 (direct)
Fax :+44 (0)1865 793 496
benjamin.ducke at oxfordarch.co.uk





------
Files attached to this email may be in ISO 26300 format (OASIS Open Document Format). If you have difficulty opening them, please visit http://iso26300.info for more information.
-------------- next part --------------
make all-recursive
make[1]: Entering directory `/home/benni/download/stereo-0.2b'
for subdir in widget main; do		\
	  target=`echo all-recursive | sed s/-recursive//`; \
	  echo making $target in $subdir;	\
	  (cd $subdir && make $target)	\
	   || case "-w" in *k*) fail=yes;; *) exit 1;; esac; \
	done && test -z "$fail"
making all in widget
make[2]: Entering directory `/home/benni/download/stereo-0.2b/widget'
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  3dinit.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  3dkit.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  3dtext.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  ClientWin.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  bitmapbutton.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  cachedraw.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  clearevents.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  cmdlineopt.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  compatable.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  coolnext.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  coolwidget.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  dialog.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  dirtools.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  disable.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  dnd.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  drawings.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  edit.c
edit.c: In function ‘edit_execute_command’:
edit.c:1710: warning: passing argument 2 of ‘edit_printf’ makes pointer from integer without a cast
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  editcmd.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  editdraw.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  editlearnkeys.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  editmenu.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  editoptions.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  editwidget.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  filebrowser.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  focus.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  grlib.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  hintpos.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  imagewidget.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  initapp.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  loadfile.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  loadtiff.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  mad.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  manpage.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  mathfuncs.c
/tmp/ccZJhTqP.s: Assembler messages:
/tmp/ccZJhTqP.s:128: Warning: translating to `fst %st(1)'
/tmp/ccZJhTqP.s:128: Warning: translating to `fst %st(2)'
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  menu.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  options.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  pipe.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  quickmath.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  regex.c
regex.c: In function ‘re_match_2_internal’:
regex.c:4240: warning: passing argument 1 of ‘bcmp_translate’ discards qualifiers from pointer target type
regex.c:4240: warning: passing argument 2 of ‘bcmp_translate’ discards qualifiers from pointer target type
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  striangle.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  stringtools.c
stringtools.c: In function ‘get_current_wd’:
stringtools.c:163: warning: ‘getwd’ is deprecated (declared at /usr/include/unistd.h:485)
stringtools.c: In function ‘vfmtlen’:
stringtools.c:509: warning: ‘short int’ is promoted to ‘int’ when passed through ‘...’
stringtools.c:509: warning: (so you should pass ‘int’ not ‘short int’ to ‘va_arg’)
stringtools.c:509: note: if this code is reached, the program will abort
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  swtriangle.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  textwidget.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  triangle.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  widget3d.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  wrapsurf.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I..   -g -O2  wtriangle.c
rm -f libcw.a
ar cru libcw.a 3dinit.o 3dkit.o 3dtext.o ClientWin.o bitmapbutton.o cachedraw.o clearevents.o cmdlineopt.o compatable.o coolnext.o coolwidget.o dialog.o dirtools.o disable.o dnd.o drawings.o edit.o editcmd.o editdraw.o editlearnkeys.o editmenu.o editoptions.o editwidget.o filebrowser.o focus.o grlib.o hintpos.o imagewidget.o initapp.o loadfile.o loadtiff.o mad.o manpage.o mathfuncs.o menu.o options.o pipe.o quickmath.o regex.o striangle.o stringtools.o swtriangle.o textwidget.o triangle.o widget3d.o wrapsurf.o wtriangle.o 
ranlib libcw.a
make[2]: Leaving directory `/home/benni/download/stereo-0.2b/widget'
making all in main
make[2]: Entering directory `/home/benni/download/stereo-0.2b/main'
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../widget -I..  -g -O2  calibrate.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../widget -I..  -g -O2  camera.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../widget -I..  -g -O2  display.c
display.c: In function ‘main’:
display.c:116: warning: return type of ‘main’ is not ‘int’
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../widget -I..  -g -O2  desktop.c
In file included from desktop.c:27:
imagehandler.h:24:8: warning: extra tokens at end of #endif directive
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../widget -I..  -g -O2  fitline.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../widget -I..  -g -O2  hugeimage.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../widget -I..  -g -O2  matrix.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../widget -I..  -g -O2  simplex.c
simplex.c: In function ‘simplex_optimise’:
simplex.c:230: warning: incompatible implicit declaration of built-in function ‘memcpy’
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../widget -I..  -g -O2  loadcalfile.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../widget -I..  -g -O2  callback.c
In file included from callback.c:27:
imagehandler.h:24:8: warning: extra tokens at end of #endif directive
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../widget -I..  -g -O2  picsetup.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../widget -I..  -g -O2  imagehandler.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../widget -I..  -g -O2  displaycam.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../widget -I..  -g -O2  marker.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../widget -I..  -g -O2  output.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../widget -I..  -g -O2  imagefit.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../widget -I..  -g -O2  join.c
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I../widget -I..  -g -O2  savewindow.c
gcc  -o display calibrate.o camera.o display.o desktop.o fitline.o hugeimage.o matrix.o simplex.o loadcalfile.o callback.o picsetup.o imagehandler.o displaycam.o marker.o output.o imagefit.o join.o savewindow.o ../widget/libcw.a -lX11 -lm 
../widget/libcw.a(stringtools.o): In function `get_current_wd':
/home/benni/download/stereo-0.2b/widget/stringtools.c:163: warning: the `getwd' function is dangerous and should not be used.
make[2]: Leaving directory `/home/benni/download/stereo-0.2b/main'
make[1]: Leaving directory `/home/benni/download/stereo-0.2b'


More information about the grass-user mailing list