[ptx] Compiler versions and Hugin

Peter Gawthrop peter at gawthrop.net
Sat Jul 8 14:28:35 BST 2006


Hi Pablo,

1. Putting that line into .hugin solves the problem.

2. Without that line there:

$ strace hugin 2>&1 | grep xrc | head -5
open("/usr/local/lib/libwx_gtk2u_xrc-2.6.so.0", O_RDONLY) = 3
stat64("/xrc/main_frame.xrc", 0xbfffe424) = -1 ENOENT (No such file or directory)
stat64("${datarootdir}/hugin/xrc/main_frame.xrc", 0xbfffe424) = -1 ENOENT (No such file or directory)
stat64("/image_center.xrc", 0xbfffe364) = -1 ENOENT (No such file or directory)
stat64("/image_center.xrc", 0xbfffe264) = -1 ENOENT (No such file or directory)
   
3. As I said before, I now have 2 versions of hugin 

   A. compiled as in Rob's tutorial and

   B. compiled with the version of wx that I compiled myself.

   I thought that they both worked, but in fact the A does not
   optimise correctly - it gives a warning about negative fields of
   view. However, B works fine.

I attach Development/Photo/hugin/src/include/config.h -- I assume that
that is what you wanted.

I'm off to take some panoramas in a week's time so its good to have a
working version of hugin -- thanks for the wonderful software.

Also, thanks for the new projections - I'm looking forward to trying
them out.

     Best wishes,

     Peter.

From: "Pablo d'Angelo" <pablo.dangelo at web.de>
Subject: Re: [ptx] Compiler versions and Hugin
Date: Fri, 07 Jul 2006 23:38:16 +0200

> Subject: Re: [ptx] Compiler versions and Hugin
> From: "Pablo d'Angelo" <pablo.dangelo at web.de>
> To: peter at gawthrop.net
> CC: ptx at email-lists.org
> Date: Fri, 07 Jul 2006 23:38:16 +0200
> User-Agent: Thunderbird 1.5.0.4 (X11/20060615)
> 
> Hi Peter,
> 
> Peter Gawthrop wrote:
> > Hi Rob,
> > 
> >  In fact, libwx was not the main problem. Having followed your
> >  instructions, using g++/gcc4.1, and extracting hugin to
> >  ~/Development/Photo/hugin, I find that:
> > 
> >  ~/Development/Photo/hugin/src/hugin/hugin
> > 
> >  works fine
> > 
> >   /usr/local/bin/hugin
> > 
> >   comes up with the error reported earlier - even though I have done
> >   sudo make install and diff reports that the files are identical.
> 
> Thanks for the comprehensive error report.
> 
> >   I can't understand why that should be -- can you?
> 
> Hmm, this happens if hugin doesn't find its data files. the data files
> are located in the xrc directory, and this is searched in the current
> directory, in the prefix specified during configure. If it is not found
> there, hugin will try to read ~/.hugin and get the directory from there.
> 
> To manually specify the xrc directory open ~/.hugin and add the following
> to the top of the file:
> xrc_path=/my/install/prefix/share/hugin/xrc
> 
> However, it would be interesting to see why hugin fails to find the
> directory on your machine. Can you post your
> ~/Development/Photo/hugin/config.h file?
> 
> Also, can you check where your installed version of hugin actually looks for
> the xrc folder with:
> 

-------------- next part --------------
/* src/include/config.h.  Generated from config.h.in by configure.  */
/* src/include/config.h.in.  Generated from configure.ac by autoheader.  */

/* Define to 1 if translation of program messages to the user's native
   language is requested. */
#define ENABLE_NLS 1

/* define if the Boost library is available */
#define HAVE_BOOST 

/* define if the Boost::Date_Time library is available */
/* #undef HAVE_BOOST_DATE_TIME */

/* define if the Boost::FILESYSTEM library is available */
/* #undef HAVE_BOOST_FILESYSTEM */

/* define if the Boost::IOStreams library is available */
/* #undef HAVE_BOOST_IOSTREAMS */

/* define if the Boost::PROGRAM_OPTIONS library is available */
/* #undef HAVE_BOOST_PROGRAM_OPTIONS */

/* define if the Boost::Regex library is available */
/* #undef HAVE_BOOST_REGEX */

/* define if the Boost::Serialization library is available */
/* #undef HAVE_BOOST_SERIALIZATION */

/* define if the Boost::Signals library is available */
/* #undef HAVE_BOOST_SIGNALS */

/* define if the Boost::THREAD library is available */
#define HAVE_BOOST_THREAD 

/* define if the Boost::Unit_test_framework library is available */
/* #undef HAVE_BOOST_UNIT_TEST_FRAMEWORK */

/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the
   CoreFoundation framework. */
/* #undef HAVE_CFLOCALECOPYCURRENT */

/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in
   the CoreFoundation framework. */
/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */

/* Define if the GNU dcgettext() function is already present or preinstalled.
   */
#define HAVE_DCGETTEXT 1

/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1

/* Define if the GNU gettext() function is already present or preinstalled. */
#define HAVE_GETTEXT 1

/* Define if you have the iconv() function. */
/* #undef HAVE_ICONV */

/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1

/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1

/* Define to 1 if you have the <pano12/queryfeature.h> header file. */
#define HAVE_PANO12_QUERYFEATURE_H 1

/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1

/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1

/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1

/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1

/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1

/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1

/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1

/* Current Version of Hugin */
#define HUGIN_VERSION 0.6

/* Define if you have JPEG library */
#define HasJPEG 1

/* Define if you have Panotools library (pano12) */
#define HasPANO 1

/* Define if you have PNG library */
#define HasPNG 1

/* Define if you have TIFF library */
#define HasTIFF 1

/* Install Location of Hugin */
#define INSTALL_LOCALE_DIR "${datarootdir}/locale"

/* Location for XRC information */
#define INSTALL_XRC_DIR "${datarootdir}/hugin/xrc"

/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "pablo.dangelo at web.de"

/* Define to the full name of this package. */
#define PACKAGE_NAME "hugin"

/* Define to the full name and version of this package. */
#define PACKAGE_STRING "hugin 0.6"

/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "hugin"

/* Define to the version of this package. */
#define PACKAGE_VERSION "0.6"

/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1


More information about the ptx mailing list