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
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
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
No you have to install the required package wxWidgets first ...
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
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.
I tried going into ccmake and setting OPENGL_INCLUDE_DIR as
/usr/include:/usr/include/wx-2.8/wx.
Makes no difference.
Doug
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.
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
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.
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
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
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
I have there also:
/etc/ld.so.conf.d/libc.conf
with content:
# libc default configuration
/usr/local/lib
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