[ptx] Finally hugin works on Redhat 7.3 using .tar.gz stuffs, and questions

Sengen Prasomsouk sengen at 2chatter.com
Thu Oct 13 19:59:22 BST 2005


Hi,

I managed to install the libpano12 from the source without any problem 
using ./configure, make, make install.

Now, I'm having problems compiling hugin. Here are the compile errors:

[root at alpine hugin-0.5-rc2]# make
Making all in src
make[1]: Entering directory `/usr/local/hugin-0.5-rc2/src'
Making all in jhead
make[2]: Entering directory `/usr/local/hugin-0.5-rc2/src/jhead'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/hugin-0.5-rc2/src/jhead'
Making all in common
make[2]: Entering directory `/usr/local/hugin-0.5-rc2/src/common'
if /bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H "-I." 
-I../../src/include -I../../src/include -L/usr/local/lib -g -O2 -MT 
graph.lo -MD -MP -MF ".deps/graph.Tpo" \
-c -o graph.lo `test -f 'graph.cpp' || echo './'`graph.cpp; \
then mv -f ".deps/graph.Tpo" ".deps/graph.Plo"; \
else rm -f ".deps/graph.Tpo"; exit 1; \
fi
g++ -DHAVE_CONFIG_H -I. -I../../src/include -I../../src/include 
-L/usr/local/lib -g -O2 -MT graph.lo -MD -MP -MF .deps/graph.Tpo -c 
graph.cpp -o graph.o
In file included from ../../src/include/common/stl_utils.h:44,
from ../../src/include/common/graph.h:34,
from graph.cpp:29:
../../src/include/common/utils.h: In method `void
utils::StreamMultiProgressDisplay::updateProgressDisplay ()':
../../src/include/common/utils.h:451: `snprintf' undeclared (first use
this function)
../../src/include/common/utils.h:451: (Each undeclared identifier is
reported only once for each function it appears in.)
make[2]: *** [graph.lo] Error 1
make[2]: Leaving directory `/usr/local/hugin-0.5-rc2/src/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/hugin-0.5-rc2/src'
make: *** [all-recursive] Error 1

Here is my configure result:

hugin is configured as follows. Please verify that this configuration
matches your expectations.

Host system type : i686-pc-linux-gnu

Option Value
-------------------------------------------------------------------------
Shared libraries --enable-shared=no
Static libraries --enable-static=yes
JPEG --with-jpeg= have_jpeg = yes
PNG --with-png= have_png = yes
TIFF --with-tiff= have_tiff = yes
ZLIB --with-zlib= have_zlib = yes
PANO --with-pano= have_pano = yes
BOOST --with-boost= have_boost = yes
BOOST --with-boost-version=
Unicode --with-unicode=no
Debug enabled? no
Options used to compile and link:
PREFIX = /usr/local
VERSION = 0.5
CC = gcc
CFLAGS = -g -O2
CPPFLAGS = -L/usr/local/lib
DEFS = -DHAVE_CONFIG_H
LDFLAGS = -L/usr/local/lib
LIBS =
CXX = g++
CXXFLAGS = -g -O2
JPEG_FLAGS = -DHasJPEG
LIB_JPEG = -ljpeg
PNG_FLAGS = -DHasPNG
LIB_PNG = -lpng
TIFF_FLAGS = -DHasTIFF
LIB_TIFF = -ltiff
ZLIB_FLAGS = -DHasZLIB
LIB_ZLIB = -lz
PANO_FLAGS = -DHasPANO
LIB_PANO = -lpano12
WX_CXXFLAGS = -I/usr/local/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS 
-D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
WX_LIBS = -L/usr/local/lib -pthread -lwx_gtk-2.4 -lwx_gtk_xrc-2.4
GTK_CFLAGS = -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 
-I/usr/lib/glib/include -D_REENTRANT -I/usr/X11R6/include
GTK_LIBS = -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule 
-lgthread -lglib -lpthread -ldl -lXi -lXext -lX11 -lm
BOOST_VERSION = 1.31
BOOST_CFLAGS = -I/usr/local/include
BOOST_LIBS = -L/usr/local/lib
BOOST_TEST_LIB =
BUILD = linux
CPU = i686

Any advice? I wonder if I need to update some other libraries for this 
to compile?
You help is greatly appreciated..thank you.

Regards,
Sengen


Bruno Postle wrote:

> On Tue 11-Oct-2005 at 21:01 -0700, Sengen Prasomsouk wrote:
>
>> a). download and tar zxf libpano12-2.7.0.10.tar.gz
>> b). make -f makefile.linux libpano12.so
>> c). cp libpano12.so /usr/local/lib and /usr/lib
>> d). cp /usr/local/libpano12-2.7.0.10/*.h /usr/local/include/pano12
>
>
> The makefile.linux file is out of date, I don't know why it is still 
> in there. You should be ok with these commands:
>
> tar zxf libpano12-2.7.0.10.tar.gz
> cd libpano12-2.7.0.10
> ./configure
> make
> make install
>
> Not sure if this will help with your problem though.
>
> If you have have installed libraries into /usr/local, then you need to 
> build hugin like so:
>
> CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure
> make
> etc...
>
> You might also have some luck rebuilding the latest fedora source RPMs 
> for your system:
>
> http://bugbear.blackfish.org.uk/~bruno/apt/fedora/linux/4/i386/SRPMS.panorama/ 
>
>
> Just rebuild them one by one:
>
> rpmbuild --rebuild libpano12-2.7.0.11-1.fc4.bp.src.rpm etc...
>
> (though you will have to find a boost RPM from somewhere first)
>
> This stuff is going to get more difficult for you, redhat-7.3 was 
> discontinued nearly two years ago - Do you really need to use such an 
> old distribution?
>




More information about the ptx mailing list