Unable to install hugin 2009.4.0

71 views
Skip to first unread message

Doug

unread,
Dec 24, 2009, 11:43:40 AM12/24/09
to Hugin mailing list
Sorry for the newbie question.
I'm trying to install 2009.4.0 on linux mandrake 2009.1 64-bit from the
2009.4.0 tarball.
Having downloaded it and untarred into ~/downloads/ ; entered
~/downloads/hugin-2009.4.0/
and run "cmake -DCMAKE_INSTALL_PREFIX=/usr/local ." I get the following
error messages:

CMake Error at celeste/CMakeLists.txt:85 (set_target_properties):
set_target_properties called with incorrect number of arguments.
CMake Error at celeste/CMakeLists.txt:96 (INSTALL):
install TARGETS given no RUNTIME DESTINATION for executable target
"celeste_standalone".
CMake Error at celeste/CMakeLists.txt:97 (INSTALL):
install FILES given no DESTINATION!
CMake Error at tools/CMakeLists.txt:29 (install):
install TARGETS given no RUNTIME DESTINATION for executable target
"nona".
CMake Error at matchpoint/CMakeLists.txt:11 (install):
install TARGETS given no RUNTIME DESTINATION for executable target
"matchpoint".
CMake Error at deghosting/CMakeLists.txt:6 (install):
install TARGETS given no RUNTIME DESTINATION for executable target
"hugin_hdrmerge".
CMake Error at lens_calibrate/CMakeLists.txt:19 (INSTALL):
install TARGETS given no RUNTIME DESTINATION for executable target
"calibrate_lens".
CMake Error at translations/CMakeLists.txt:5 (ADD_TRANSLATIONS):
Unknown CMake command "ADD_TRANSLATIONS".
-- Configuring incomplete, errors occurred!

Where do I go from here?

Doug

Kornel Benko

unread,
Dec 24, 2009, 3:31:22 PM12/24/09
to hugi...@googlegroups.com
Am Donnerstag 24 Dezember 2009 schrieb Doug:
> Sorry for the newbie question.
> I'm trying to install 2009.4.0 on linux mandrake 2009.1 64-bit from the
> 2009.4.0 tarball.
> Having downloaded it and untarred into ~/downloads/ ; entered
> ~/downloads/hugin-2009.4.0/
> and run "cmake -DCMAKE_INSTALL_PREFIX=/usr/local ." I get the following
> error messages:
>
> CMake Error at celeste/CMakeLists.txt:85 (set_target_properties):
> set_target_properties called with incorrect number of arguments.

Looks like HUGIN_LIB_VERSION were not set ...

> CMake Error at celeste/CMakeLists.txt:96 (INSTALL):
> install TARGETS given no RUNTIME DESTINATION for executable target
> "celeste_standalone".

Here maybe BINDIR is not set ...

> CMake Error at celeste/CMakeLists.txt:97 (INSTALL):
> install FILES given no DESTINATION!

and here INSTALL_DATA_DIR...

...

All of this would have been set in the main CMakeLists.txt.

You should call cmake with a path to main source as argument.
Already the first error should read "src/celeste/CMakeLists.txt" and not "celeste/CMakeLists.txt".
Therefore you should call:

cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local

> Where do I go from here?

See above.

> Doug
>
Kornel
--
Kornel Benko
Kornel...@berlin.de

signature.asc

Doug

unread,
Dec 29, 2009, 7:53:39 AM12/29/09
to Kornel...@berlin.de, Hugin mailing list
On 29/12/09 05:54, Kornel Benko wrote:
> Am Monday 28 December 2009 schrieb doug:
>> I'm unclear how to get cmake to find the main source.
>> I assume the path ought to be either
>> /home/dougb/downloads/hugin-2009.4.0
>> or /home/dougb/downloads/hugin-2009.4.0/src.
>
> The former.
>
>> But I've tried
>> (1) In /home/dougb/downloads/hugin-2009.4.0/
>> cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local as you suggest
>
> In this directory either "." or
"/home/dougb/downloads/hugin-2009.4.0", e.g.
> cmake "/home/dougb/downloads/hugin-2009.4.0"
-DCMAKE_INSTALL_PREFIX=/usr/local
>
> But I prefer to make a build-directory first.
>
> e.g.
> mkdir /home/dougb/downloads/hugin-build
> cd /home/dougb/downloads/hugin-build
> cmake "/home/dougb/downloads/hugin-2009.4.0"
-DCMAKE_INSTALL_PREFIX=/usr/local
>
>> (2) cd'ing to src/ and repeating
>> (3) in /home/dougb/downloads/hugin-2009.4.0/ or src/
>> cmake /home/dougb/downloads/hugin-2009.4.0
>> -DCMAKE_INSTALL_PREFIX=/usr/local
>> (4) cmake /home/dougb/downloads/hugin-2009.4.0/src
>> -DCMAKE_INSTALL_PREFIX=/usr/local
>>
>> All these result in the same error messages - evidently
>> failing to pick up the source path. How come?
>>
>> Doug
>>
> Kornel
>
Thanks, Kornel.
I removed CmameCache.txt and followed your build
instructions with the following result - some progress, at
least!

cmake "/home/dougb/downloads/hugin-2009.4.0"
-DCMAKE_INSTALL_PREFIX=/usr/local
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Current SVN revision is 4742
-- Looking for log2
-- Looking for log2 - found
CMake Error at
CMakeModules/FindPackageHandleStandardArgs.cmake:51 (MESSAGE):
Could not find REQUIRED package wxWidgets
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindwxWidgets.cmake:782
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:128 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!

I have the package
perl-Alien-wxWidgets-0.42-4mdv2009.1.x86_64 already
installed and a wxWidget Perl script and various wxWidget
folders and files in
/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Alien
or ...../auto/Alien.
I'm unclear whether this is the required wxWidget package or
how to set up the path for finding a Perl package anyway.

Doug

Kornel Benko

unread,
Dec 29, 2009, 9:02:45 AM12/29/09
to hugi...@googlegroups.com
Am Tuesday 29 December 2009 schrieb Doug:
> CMake Error at
> CMakeModules/FindPackageHandleStandardArgs.cmake:51 (MESSAGE):
>    Could not find REQUIRED package wxWidgets
> Call Stack (most recent call first):
>    /usr/share/cmake/Modules/FindwxWidgets.cmake:782
> (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
>    CMakeLists.txt:128 (FIND_PACKAGE)
>

No you have to install the required package wxWidgets first ...

signature.asc

Doug

unread,
Dec 30, 2009, 9:41:15 AM12/30/09
to Kornel Benko, Hugin mailing list

Thanks, I've made quite a bit of progress.
cmake now runs OK.
However 'make' runs until it reaches 70% of building
GLPreviewFrame.cpp.o

then crashes with these error messages:

In file included from
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:47:
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLViewer.h:40:
error: expected class-name before �{� token
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLViewer.h:67:
error: ISO C++ forbids declaration of �wxGLContext� with no type
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLViewer.h:67:
error: expected �;� before �*� token
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:
In constructor �GLPreviewFrame::GLPreviewFrame(wxFrame*,
PT::Panorama&)�:
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:181:
error: �WX_GL_RGBA� was not declared in this scope
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:181:
error: �WX_GL_DOUBLEBUFFER� was not declared in this scope
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:188:
error: invalid conversion from �GLViewer*� to �int�
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:188:
error: initializing argument 1 of �wxSizerItem*
wxSizer::Add(int, int, int, int, int, wxObject*)�
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:
In member function �void
GLPreviewFrame::OnTrackChangeFOV(wxScrollEvent&)�:
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:878:
error: �class GLViewer� has no member named �Refresh�
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:
In member function �void
GLPreviewFrame::OnCrop(wxCommandEvent&)�:
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:1039:
error: �class GLViewer� has no member named �Refresh�
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:
In member function �void
GLPreviewFrame::OnDrag(wxCommandEvent&)�:
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:1053:
error: �class GLViewer� has no member named �Refresh�
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:
In member function �void
GLPreviewFrame::OnIdentify(wxCommandEvent&)�:
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:1068:
error: �class GLViewer� has no member named �Refresh�
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:
In member function �void
GLPreviewFrame::OnControlPoint(wxCommandEvent&)�:
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:1080:
error: �class GLViewer� has no member named �Refresh�
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:
In member function �void
GLPreviewFrame::TurnOffTools(std::set<PreviewTool*,
std::less<PreviewTool*>, std::allocator<PreviewTool*> >)�:
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:1093:
error: �class GLViewer� has no member named �Refresh�
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:1099:
error: �class GLViewer� has no member named �Refresh�
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:1105:
error: �class GLViewer� has no member named �Refresh�
/home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:1112:
error: �class GLViewer� has no member named �Refresh�
make[2]: ***
[src/hugin1/hugin/CMakeFiles/hugin.dir/GLPreviewFrame.cpp.o]
Error 1
make[1]: *** [src/hugin1/hugin/CMakeFiles/hugin.dir/all] Error 2
make: *** [all] Error 2


Doug

Kornel Benko

unread,
Dec 30, 2009, 9:54:05 AM12/30/09
to Hugin mailing list
Am Mittwoch 30 Dezember 2009 schrieb Doug:
> /home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:18
> 1: error: ‘WX_GL_RGBA’ was not declared in this scope
>

Here (ubuntu 9,10) it is defined in /usr/include/wx-2.8/wx/glcanvas.h, which on my system is in package wx2.8-headers.

Don't know about mandrake.

signature.asc

Doug

unread,
Dec 31, 2009, 9:24:09 AM12/31/09
to hugi...@googlegroups.com
On 30/12/09 14:54, Kornel Benko wrote:
> Am Mittwoch 30 Dezember 2009 schrieb Doug:
>> /home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:18
>> 1: error: ‘WX_GL_RGBA’ was not declared in this scope

>>
>
> Here (ubuntu 9,10) it is defined in /usr/include/wx-2.8/wx/glcanvas.h, which on my system is in package wx2.8-headers.
>
> Don't know about mandrake.
>
> Kornel
>
Here it's also defined in /usr/include/wx-2.8/wx/glcanvas.h
but this doesn't seem to be picked up by cmake and make.

I tried going into ccmake and setting OPENGL_INCLUDE_DIR as
/usr/include:/usr/include/wx-2.8/wx.
Makes no difference.


Doug

Kornel Benko

unread,
Dec 31, 2009, 9:53:18 AM12/31/09
to hugi...@googlegroups.com
Am Donnerstag 31 Dezember 2009 schrieb Doug:
> Here it's also defined in /usr/include/wx-2.8/wx/glcanvas.h
> but this doesn't seem to be picked up by cmake and make.
>
> I tried going into ccmake and setting OPENGL_INCLUDE_DIR as
> /usr/include:/usr/include/wx-2.8/wx.
> Makes no difference.
>

Ok, maybe we can trace it down.

Try to make a preprocessed file. Here I get the file ",i" with:
cd /usr/BUILD/BuildHugin/src/hugin1/hugin && /usr/bin/c++ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -O2 -g -I/usr/BUILD/BuildHugin/src -I/usr/src/hugin/hugin/src/hugin_base -
I/usr/src/hugin/hugin/src/foreign -I/usr/src/hugin/hugin/src/foreign/vigra -I/usr/src/hugin/hugin/src/celeste -I/usr/include/OpenEXR -I/usr/local/include -isystem /usr/lib/wx/include/gtk2-unicode-
release-2.8 -isystem /usr/include/wx-2.8 -I/usr/src/hugin/hugin/src/hugin1 /usr/src/hugin/hugin/src/hugin1/hugin/GLPreviewFrame.cpp -E -g3 > ,i
(This command is derived directly from make output, "-g3" is there to be able to see the defines.)

Here I can deduce:
1.) /usr/include/wx-2.8/wx/glcanvas.h is included from /usr/src/hugin/hugin/src/hugin1/hugin/GLViewer.h:27
2.) /usr/src/hugin/hugin/src/hugin1/hugin/GLViewer.h is included from /usr/src/hugin/hugin/src/hugin1/hugin/GLPreviewFrame.cpp:47

The macro wxUSE_GLCANVAS should be now defined: If so, then the enum value WX_GL_RGBA is defined too.
Macro wxUSE_GLCANVAS will be defined in /usr/lib/wx/include/gtk2-unicode-release-2.8/wx/setup.h:447

/usr/lib/wx/include/gtk2-unicode-release-2.8/wx/setup.h is included from /usr/include/wx-2.8/wx/platform.h:196
/usr/include/wx-2.8/wx/platform.h is included from /usr/include/wx-2.8/wx/defs.h:21
/usr/include/wx-2.8/wx/defs.h is included from /usr/include/wx-2.8/wx/wxprec.h:13
/usr/include/wx-2.8/wx/wxprec.h is included from /usr/src/hugin/hugin/src/hugin1/panoinc_WX.h:33
/usr/src/hugin/hugin/src/hugin1/panoinc_WX.h is included from /usr/src/hugin/hugin/src/hugin1/hugin/GLPreviewFrame.cpp:37

You may want to try to track it down on your system.

signature.asc

James Legg

unread,
Dec 31, 2009, 12:16:17 PM12/31/09
to hugi...@googlegroups.com
On Thu, 2009-12-31 at 14:24 +0000, Doug wrote:
> On 30/12/09 14:54, Kornel Benko wrote:
> > Am Mittwoch 30 Dezember 2009 schrieb Doug:
> >> /home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.cpp:18
> >> 1: error: ‘WX_GL_RGBA’ was not declared in this scope
> >>
> >
> > Here (ubuntu 9,10) it is defined in /usr/include/wx-2.8/wx/glcanvas.h, which on my system is in package wx2.8-headers.
> >
> > Don't know about mandrake.
> >
> > Kornel
> >
> Here it's also defined in /usr/include/wx-2.8/wx/glcanvas.h
> but this doesn't seem to be picked up by cmake and make.

wxWidgets should be compiled passing --with-opengl as an argument to
configure for these definitions. Do you know if your wxWidgets was
compiled this way?

-James

Kornel Benko

unread,
Dec 31, 2009, 12:25:26 PM12/31/09
to hugi...@googlegroups.com

He is using cmake, so he should add -DENABLE_LAPACK=YES as argument to cmake. But even this should not be needed.

signature.asc

Doug

unread,
Jan 3, 2010, 10:18:00 AM1/3/10
to Kornel Benko, Hugin mailing list
On 31/12/09 17:25, Kornel Benko wrote:
> Am Donnerstag 31 Dezember 2009 schrieb James Legg:
>> On Thu, 2009-12-31 at 14:24 +0000, Doug wrote:
>>> On 30/12/09 14:54, Kornel Benko wrote:
>>>> Am Mittwoch 30 Dezember 2009 schrieb Doug:
>>>>> /home/dougb/downloads/hugin-2009.4.0/src/hugin1/hugin/GLPreviewFrame.c
>>>>> pp:18 1: error: ‘WX_GL_RGBA’ was not declared in this scope

>>>>
>>>> Here (ubuntu 9,10) it is defined in /usr/include/wx-2.8/wx/glcanvas.h,
>>>> which on my system is in package wx2.8-headers.
>>>>
>>>> Don't know about mandrake.
>>>>
>>>> Kornel
>>>
>>> Here it's also defined in /usr/include/wx-2.8/wx/glcanvas.h
>>> but this doesn't seem to be picked up by cmake and make.
>>
>> wxWidgets should be compiled passing --with-opengl as an argument to
>> configure for these definitions. Do you know if your wxWidgets was
>> compiled this way?
>>
>> -James
>
> He is using cmake, so he should add -DENABLE_LAPACK=YES as argument to cmake. But even this should not be needed.
>
> Kornel
>
Nearly there!
Many thanks to you and James.

As far as I could tell, all the definitions were present and
correct in the right places. But cmake was not picking up
/usr/include/wx-2.8/wx.

So I re-compiled wxWidgets with the following
../configure --with-gtk --enable-unicode --with-opengl

and ran cmake with
cmake "/home/dougb/downloads/hugin-2009.4.0"
-DCMAKE_INSTALL_PREFIX=/usr/local -DENABLE_LAPACK=YES

Hugin installed OK.

However running hugin encountered this problem:
"/usr/local/bin/hugin: error while loading shared libraries:
libhuginbase.so.0.0: cannot open shared object file: No such
file or directory".
Needless to say, libhuginbase is in /usr/local/lib.
I have run ldconfig but still get the error message.

Doug.


Kornel Benko

unread,
Jan 3, 2010, 10:30:33 AM1/3/10
to hugi...@googlegroups.com
Am Sonntag 03 Januar 2010 schrieb Doug:
> However running hugin encountered this problem:
> "/usr/local/bin/hugin: error while loading shared libraries:
> libhuginbase.so.0.0: cannot open shared object file: No such
> file or directory".
> Needless to say, libhuginbase is in /usr/local/lib.
> I have run ldconfig but still get the error message.
>
You may need a symbolic link. Are you sure there is the file /usr/local/lib/libhuginbase.so.0.0?

This is what I have there

# ls /usr/local/lib/libhuginbase.so*
/usr/local/lib/libhuginbase.so /usr/local/lib/libhuginbase.so.0.0
# file /usr/local/lib/libhuginbase.so*
/usr/local/lib/libhuginbase.so: symbolic link to `libhuginbase.so.0.0'
/usr/local/lib/libhuginbase.so.0.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped

signature.asc

Bruno Postle

unread,
Jan 3, 2010, 10:37:13 AM1/3/10
to Hugin mailing list
On Sun 03-Jan-2010 at 15:18 +0000, Doug wrote:
>
>However running hugin encountered this problem:
>"/usr/local/bin/hugin: error while loading shared libraries:
>libhuginbase.so.0.0: cannot open shared object file: No such
>file or directory".
>Needless to say, libhuginbase is in /usr/local/lib.
>I have run ldconfig but still get the error message.

On fedora /usr/local/lib isn't in the linker search path, you may
have to change a setting in /etc/ld.so.conf or set your
LD_LIBRARY_PATH environment.

--
Bruno

Doug

unread,
Jan 4, 2010, 9:03:25 AM1/4/10
to Bruno Postle, Hugin mailing list, Kornel...@berlin.de
Kornel - libhuginbase.so.0.0 is the same as yours. I tried
all manner of links - to lib, lib64, local/lib64 with no result

Bruno - LD_LIBRARY_PATH did nothing for me, either.

I'll need a good deal of hand-holding over editing
/etc/ld.so.conf - I've had my fingers badly burnt with this
in the past.

What do you advise?

My set-up is as follows:

/etc/ld.so.conf has 1 line: "include /etc/ld.so.conf.d/*.conf"

ld.so.conf.d contains
2 files (lib64arts1.conf, lib64kdecore4.conf),
1 link (GL.conf) and
1 folder (GL).

lib64arts1.conf and lib64kdecore4.conf each have 1 line:
"/opt/kde3/lib64"

GL contains the empty file "standard.conf"

GL.conf links via /etc/alternatives/gl_conf to
/etc/nvidia-current/ld.so.conf which has two lines:
"/usr/lib64/nvidia-current
/usr/lib/nvidia-current"


Doug

Kornel Benko

unread,
Jan 4, 2010, 9:09:47 AM1/4/10
to hugi...@googlegroups.com
Am Montag 04 Januar 2010 schrieb Doug:
> What do you advise?
>
> My set-up is as follows:
>
> /etc/ld.so.conf has 1 line: "include /etc/ld.so.conf.d/*.conf"
>
> ld.so.conf.d contains
> 2 files (lib64arts1.conf, lib64kdecore4.conf),
> 1 link (GL.conf) and
> 1 folder (GL).
>

I have there also:
/etc/ld.so.conf.d/libc.conf
with content:
# libc default configuration
/usr/local/lib

signature.asc

Doug

unread,
Jan 4, 2010, 2:40:15 PM1/4/10
to Kornel Benko, Hugin mailing list

I created libc.conf in /etc/ld.so.conf.d/ with the same
content as you.
Rebooted. No joy.

I tried
ldd /usr/local/bin/hugin
to find out what was happening to the libraries and saw that
none of the /usr/local/lib libraries were being found.

Then I ran
/sbin/ldconfig -v

This finally did the trick!

I guess running
ldconfig
previously as root had not been working, but there were no
error messages to indicate that anything was wrong.

Many thanks for your very patient and helpful advice!

Doug

Reply all
Reply to author
Forward
0 new messages