[ptx] hugin compilation problem

Claudio Soprano Claudio.Soprano at lnf.infn.it
Mon Jun 7 12:41:27 BST 2004


Hi, i'm new about hugin and i would like to try it but i'm having 
problems to make it running under linux redhat 7.3

i have tried to use the rpm for redhat 9, but after i tell hugin to load 
the images it make a segmentation fault

so i tried to compile it from scratch and source

so this is that i have done, but i got lot of erros when compiling hugin

if someone can help me i appreciate it

#
# Installation of wxGTK
#
cd /root/plinux/wxGTK-2.4.2
./configure --prefix=/usr/panorama/wxGTK --with-gtk --with-opengl
make
make install
vi /etc/ldso.conf   (added /usr/panorama/wxGTK/lib)
ldconfig

cd contrib
./configure
cd src/xrc
make
make install

the wxGTK installation go without errors

#
# Installation of fftw
#
cd /root/plinux/fftw-2.1.5
./configure --prefix=/usr/panorama/fftw
make
make install

the fftw installation go without errors

#
# Installation of vigra
#
cd /root/plinux/vigra1.2.0
vi /root/plinux/vigra1.2.0/include/vigra/config.hxx
# add to line 86 "/" after #endif, someone missed a "/"
./configure --prefix=/usr/panorama/vigra --with-fftw=/usr/panorama/fftw
make
make install
make examples

the vigra installation go without errors

#
# Installation of boost
#
cd /root/plinux/boost_1_31_0
cd tools/build/jam_src
make
cp bin.linux86/jam /bin
cp bin.linux86/bjam /bin
cd /root/plinux/boost_1_31_0
bjam "-sTOOLS=gcc" install

the gcc boost installation go without errors

#
# Panorama tools installation
#
i can't find the source.tar.gz of panorama so i used the rpm for fedora

panorama-tools-2.7a-1.i386.rpm
panorama-tools-nonfree-2.7a-1.i386.rpm

rpm -ihv panorama-tools-2.7a-1.i386.rpm 
panorama-tools-nonfree-2.7a-1.i386.rpm

#
# Hugin installation
#
i tried with both the cvs and the tar.gz from source snapshot

#
# Installation of hugin
#
cd /root/plinux/hugin
./configure --prefix=/usr/panorama/hugin
make

After some packages compiled good i get this

Descending directory common to do "make lib"
make[2]: Entering directory `/root/plinux/hugin/src/common'
    ---- Compiling graph.cpp (C++)
g++ -I. -I../include -Wall -O2 -I../ -I/usr/panorama/vigra/include 
-I/usr/panorama/fftw/include   -c -o .obj/graph.o graph.cpp
In file included from ../include/common/stl_utils.h:44,
                 from ../include/common/graph.h:34,
                 from graph.cpp:27:
../include/common/utils.h: In method `void
utils::StreamMultiProgressDisplay::updateProgressDisplay ()':
../include/common/utils.h:368: `snprintf' undeclared (first use this
function)
../include/common/utils.h:368: (Each undeclared identifier is reported
only once for each function it appears in.)
make[2]: *** [.obj/graph.o] Error 1
make[2]: Leaving directory `/root/plinux/hugin/src/common'

Descending directory vigra_ext to do "make lib"
make[2]: Entering directory `/root/plinux/hugin/src/vigra_ext'
    ---- Compiling PointMatching.cpp (C++)
g++ -I. -I../include -Wall -O2 -I../ -I/usr/panorama/vigra/include 
-I/usr/panorama/fftw/include   -c -o .obj/PointMatching.o PointMatching.cpp
In file included from PointMatching.cpp:28:
../include/vigra_ext/PointMatching.h:35:25: ext/algorithm: No such file 
or directory
make[2]: *** [.obj/PointMatching.o] Error 1
make[2]: Leaving directory `/root/plinux/hugin/src/vigra_ext'

Descending directory Panorama to do "make lib"
make[2]: Entering directory `/root/plinux/hugin/src/Panorama'
    ---- Compiling PanoramaMemento.cpp (C++)
g++ -I. -I../include -Wall -O2 -I../ -I/usr/panorama/vigra/include 
-I/usr/panorama/fftw/include   -c -o .obj/PanoramaMemento.o 
PanoramaMemento.cpp
In file included from PointMatching.cpp:28:
../include/vigra_ext/PointMatching.h:35:25: ext/algorithm: No such file 
or directory
make[2]: *** [.obj/PointMatching.o] Error 1
make[2]: Leaving directory `/root/plinux/hugin/src/vigra_ext'

Descending directory Panorama to do "make lib"
make[2]: Entering directory `/root/plinux/hugin/src/Panorama'
    ---- Compiling PanoramaMemento.cpp (C++)
g++ -I. -I../include -Wall -O2 -I../ -I/usr/panorama/vigra/include 
-I/usr/panorama/fftw/include   -c -o .obj/PanoramaMemento.o 
PanoramaMemento.cpp
In file included from PointMatching.cpp:28:
../include/vigra_ext/PointMatching.h:35:25: ext/algorithm: No such file 
or directory
make[2]: *** [.obj/PointMatching.o] Error 1
make[2]: Leaving directory `/root/plinux/hugin/src/vigra_ext'

Descending directory Panorama to do "make lib"
make[2]: Entering directory `/root/plinux/hugin/src/Panorama'
    ---- Compiling PanoramaMemento.cpp (C++)
g++ -I. -I../include -Wall -O2 -I../ -I/usr/panorama/vigra/include 
-I/usr/panorama/fftw/include   -c -o .obj/PanoramaMemento.o 
PanoramaMemento.cpp
PanoramaMemento.cpp: In method `bool PT::PanoramaMemento::loadPTScript
(istream &, const string &)':
PanoramaMemento.cpp:424: `LC_NUMERIC' undeclared (first use this
function)
PanoramaMemento.cpp:424: (Each undeclared identifier is reported only
once for each function it appears in.)
PanoramaMemento.cpp:424: `setlocale' undeclared (first use this
function)
PanoramaMemento.cpp:961: warning: value computed is not used
make[2]: *** [.obj/PanoramaMemento.o] Error 1

then again

make[3]: Leaving directory `/root/plinux/hugin/src/hugin/po'
    ---- Compiling MyProgressDialog.cpp (C++)
g++ -I. -I../include -Wall -O2 
-I/usr/panorama/wxGTK/lib/wx/include/gtk-2.4 
-I/usr/panorama/wxGTK/include -DGTK_NO_CHECK_CASTS -D__WXGTK__ 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/gtk-1.2 
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include 
-I../  -I/usr/panorama/vigra/include -I/usr/panorama/fftw/include   -c 
-o .obj/MyProgressDialog.o MyProgressDialog.cpp
In file included from ../include/PT/PTOptimise.h:33,
                 from MyProgressDialog.cpp:37:
../include/PT/ImageGraph.h:28:40: boost/graph/graph_traits.hpp: No such 
file or directory
../include/PT/ImageGraph.h:29:42: boost/graph/adjacency_list.hpp: No 
such file or directory
../include/PT/ImageGraph.h:30:38: boost/graph/properties.hpp: No such 
file or directory
In file included from MyProgressDialog.cpp:37:
../include/PT/PTOptimise.h:35:48: boost/graph/breadth_first_search.hpp: 
No such file or directory
make[2]: *** [.obj/MyProgressDialog.o] Error 1
make[2]: Leaving directory `/root/plinux/hugin/src/hugin'

Descending directory po to do "make apps"
make[3]: Entering directory `/root/plinux/hugin/src/hugin/po'
make[3]: *** No rule to make target `de/hugin.mo', needed by 
`apps.local'.  Stop.
make[3]: Leaving directory `/root/plinux/hugin/src/hugin/po'

and so on

then when i do make install i got some files under /usr/panorama/hugin, 
but not all also the hugin executable is missing

i have a redhat 7.3 with

gcc-java-2.96-113
GNU.LANG_gcc-alt-3.2.3-2

automake-1.4p5-4
pmake-1.45-4
make-3.79.1-8
automake15-1.5-2
tmake-1.7-3

Maybe i'm doing something wrong if someone can help me i will appreciate it

thanks in advance

Claudio Soprano


More information about the ptX mailing list