hugin 2013.0.0 build fail: cannot convert ‘const wxString’ to ‘const char*’ in initialization

196 views
Skip to first unread message

Ludo

unread,
Dec 24, 2013, 7:16:33 PM12/24/13
to hugi...@googlegroups.com
Hello

My hugin 2013.0.0 build fails at 75%, upon building target PTPatcherGUI, with this error:

[ 75%] Building CXX object src/hugin1/ptbatcher/
CMakeFiles/PTBatcherGUI.dir/PTBatcherGUI.cpp.o
~/hugin-2013.0.0/src/hugin1/ptbatcher/PTBatcherGUI.cpp: In member function ‘virtual bool PTBatcherGUI::OnInit()’:
~/hugin-2013.0.0/src/hugin1/ptbatcher/PTBatcherGUI.cpp:174:5: error: cannot convert ‘const wxString’ to ‘const char*’ in initialization

I have followed the instructions from:
http://wiki.panotools.org/Hugin_Compiling_Ubuntu

I had compiled wxWidgets 3.0 myself from source, following the instructions from:
http://wiki.wxwidgets.org/Compiling_and_getting_started

I would rather compile hugin myself rather than installing the package, but I am really struggling.

Could someone help me?

Ludo

Harry van der Wolf

unread,
Dec 25, 2013, 11:35:47 AM12/25/13
to hugi...@googlegroups.com
Hi,

(It's not neccessary to post twice, and within 24 hours. It's the christmasdays and people might be busy doing other things.)

I'm afraid that hugin is not ready yet for wxwidgets 3.x. It is ready for 2.9.x and below.
It is of high priority to get hugin ready for wxwidgets 3.0 before the next release cycle so we have to look into it.

best,
Harry




2013/12/25 Ludo <hinoki...@gmail.com>

--
A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ
---
You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hugin-ptx+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hugin-ptx/2b152903-5d43-4a77-980d-f52790b92f26%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Ludo

unread,
Dec 25, 2013, 6:38:29 PM12/25/13
to hugi...@googlegroups.com
Hi Harry,

> I'm afraid that hugin is not ready yet for wxwidgets 3.x. It is ready for
> 2.9.x and below.

Thanks for this key information. I may then try to build hugin against
an earlier version of wxwidgets.

> (It's not neccessary to post twice, and within 24 hours. It's the
> christmasdays and people might be busy doing other things.)

Realizing that on christmas very few member would read this forum, I
deleted my first post and edited the title to include the hugin
version i tried to build. My apologize if this may have sound like
insisting or inappropriate.

> It is of high priority to get hugin ready for wxwidgets 3.0 before the next
> release cycle so we have to look into it.

So it seems wxwidgets isn't backward compatible.

Thank you again,

Ludo

T. Modes

unread,
Dec 26, 2013, 5:36:28 AM12/26/13
to hugi...@googlegroups.com

Hi,

Am Mittwoch, 25. Dezember 2013 17:35:47 UTC+1 schrieb Harry van der Wolf:

I'm afraid that hugin is not ready yet for wxwidgets 3.x. It is ready for 2.9.x and below.

 
Hugin is ready for 2.9.x and 3.x. It compiled fine with MSVC and wxWidgets 3.0. (The 2.9.x series is the development series for 3.0, so there should no incompatibly from 2.9.5 to 3.0).
So I assume that gcc treats the code other than MSVC compiler.
I committed a fix to the default branch (2013.1 series, changeset 383415863131), but this is untested on *nix/gcc toolchain.

Thomas

Kornel Benko

unread,
Dec 26, 2013, 5:43:42 AM12/26/13
to hugi...@googlegroups.com, T. Modes

Am Donnerstag, 26. Dezember 2013 um 02:36:28, schrieb T. Modes <Thomas...@gmx.de>

At least it compiles fine with wx2.8 with gcc/unix.

 

> Thomas

 

Kornel

signature.asc

Harry van der Wolf

unread,
Dec 26, 2013, 9:41:35 AM12/26/13
to hugi...@googlegroups.com
I just built the up-to-date 2013 default branch on Ubuntu 13.10 64bit against libpano13-2.9.19_beta1 and against wxwidgets 3.0.0.

Everything builds fine.

Please check whether you still have your wxwidgets 2.8 and or libwx<library>2.8-dev installed.

And also: did you build against a mercurial latest development 2013 version or against the hugin-2013 release tarball?


Harry

Harry van der Wolf

unread,
Dec 26, 2013, 1:47:02 PM12/26/13
to hugi...@googlegroups.com
I also built the release tarball 2013.0 against the default libpano13-2.9.18 and the wxwidgets 3.0.0, again on Ubuntu 13.10 64bit.
That one built fine as well.

Harry


2013/12/26 Harry van der Wolf <hvd...@gmail.com>

Ludo

unread,
Dec 26, 2013, 10:13:40 PM12/26/13
to hugi...@googlegroups.com
Thanks for your feedbacks.
The build still fails at 75% with the error
In member function ‘virtual bool PTBatcherGUI::OnInit()’:
hugin.hg/src/hugin1/ptbatcher/PTBatcherGUI.cpp:174:5: error: cannot convert ‘const wxString’ to ‘const char*’ in initialization.

The problem is clearly on my side then.
I document step by step what I did, all following http://wiki.panotools.org/Hugin_Compiling_Ubuntu
  • Installed wxwidget3.0 from source.
  • Installed latest libpano13 from source.
  • Installed latest enblend from source.
  • Installed all build time dependencies except libpano13 and wxwidget.
sudo apt-get install libtiff4-dev libpng12-dev \
  libopenexr-dev libexiv2-dev freeglut3-dev libglew-dev libboost-dev \
  libboost-thread-dev libboost-regex-dev libboost-filesystem-dev \
  libboost-iostreams-dev libboost-system-dev libboost-signals-dev \
  gettext liblapack-dev libxi-dev libxmu-dev libtclap-dev liblensfun-dev

  • Used hg to clone hugin 2013.0, updated it.
hg clone http://hg.code.sf.net/p/hugin/hugin hugin.hg (followed by hg update -C 2013.0)
  • Create a separate build directory and prepare the environment for the build:
cmake ../hugin.hg -DENABLE_LAPACK=YES -DCPACK_BINARY_DEB:BOOL=ON -DCPACK_BINARY_NSIS:BOOL=OFF -DCPACK_BINARY_RPM:BOOL=OFF -DCPACK_BINARY_STGZ:BOOL=OFF -DCPACK_BINARY_TBZ2:BOOL=OFF -DCPACK_BINARY_TGZ:BOOL=OFF -DCPACK_BINARY_TZ:BOOL=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_HSI:BOOL=ON -DSWIG_EXECUTABLE=/usr/bin/swig2.0
  • Result of which is:
-- The C compiler identification is GNU 4.7.3
-- The CXX compiler identification is GNU 4.7.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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 HG revision is 4692917e7a55
-- Looking for log2
-- Looking for log2 - found
-- Found wxWidgets: TRUE 
-- Found TIFF: /usr/include
-- Found JPEG: /usr/include
-- Found ZLIB: /usr/include
-- Found PNG: /usr/include
-- WARNING: you are using the obsolete 'PKGCONFIG' macro, use FindPkgConfig
-- Found OPENEXR: /usr/lib/x86_64-linux-gnu/libImath.so;/usr/lib/x86_64-linux-gnu/libIlmImf.so;/usr/lib/x86_64-linux-gnu/libIex.so;/usr/lib/x86_64-linux-gnu/libHalf.so;/usr/lib/x86_64-linux-gnu/libIlmThread.so
-- WARNING: you are using the obsolete 'PKGCONFIG' macro, use FindPkgConfig
-- Found Exiv2 release >= 0.12
-- Found Exiv2: /usr/lib/libexiv2.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so 
-- GLUT Found
-- Found Glew: /usr/lib/x86_64-linux-gnu/libGLEW.so
-- libpano13 version: 2.9.19 major 2 minor 9 patch 19
-- Boost version: 1.49.0
-- Found the following Boost libraries:
--   thread
--   date_time
--   regex
--   filesystem
--   iostreams
--   system
--   signals
-- Program msgfmt found (/usr/bin/msgfmt)
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- ZThread library found
-- flann library found
-- Found Lensfun: /usr/include/lensfun
-- Found PythonInterp: /usr/bin/python (found version "2.7.4")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.4", minimum required is "2.7.4")
-- Found SWIG: /usr/bin/swig2.0 (found suitable version "2.0.8", minimum required is "2.0")
-- LAPACK found (/usr/lib/liblapack.so;/usr/lib/libblas.so)
-- Using shared internal libraries
-- Python libs version: 2.7.4
-- Install Python libs into /usr/lib/python2.7/dist-packages
-- Current source dir = /home/ludovic/Programs/Photography/hugin/hugin.hg
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ludovic/Programs/Photography/hugin/hugin.hg/mybuild

Then make package

But then it fails with the above mentioned error...

Building a big project like hugin is for me a first, but from looking at the result of the cmake, it seems nothing is missing. So I can't understand why this error I get: "convert ‘const wxString’ to ‘const char*’ in initialization"...

Can anyone spot what I missed, or did wrong?

Ludo



Terry Duell

unread,
Dec 26, 2013, 10:33:50 PM12/26/13
to hugi...@googlegroups.com
Hello Ludo,

On Fri, 27 Dec 2013 14:13:40 +1100, Ludo <hinoki...@gmail.com> wrote:

> Thanks for your feedbacks.
> The build still fails at 75% with the error
> In member function ‘virtual bool PTBatcherGUI::OnInit()’:
> hugin.hg/src/hugin1/ptbatcher/PTBatcherGUI.cpp:174:5: error: cannot
> convert
> ‘const wxString’ to ‘const char*’ in initialization.
>

[snip]

> -- Current HG revision is 4692917e7a55

[snip]

> Then make package
>
> But then it fails with the above mentioned error...
>
> Building a big project like hugin is for me a first, but from looking at
> the result of the cmake, it seems nothing is missing. So I can't
> understand
> why this error I get: "convert ‘const wxString’ to ‘const char*’ in
> initialization"...
>
> Can anyone spot what I missed, or did wrong?
>

It looks like you have the 2013.0.0 branch.
The recent revision which includes a fix (if I understand it correctly)
that attempts to overcome wxwidget compile issues, is 6415:383415863131,
and is in the default branch.

Cheers,
--
Regards,
Terry Duell

Ludo

unread,
Dec 27, 2013, 2:33:03 AM12/27/13
to hugi...@googlegroups.com
Hello Terry,


Can anyone spot what I missed, or did wrong?

It looks like you have the 2013.0.0 branch.
The recent revision which includes a fix (if I understand it correctly) that attempts to overcome wxwidget compile issues, is 6415:383415863131, and is in the default branch.

Yes. Thanks a lot. This did it. I did:

hg update -C default

And re-cmake and re - make package and no more issue.
Thank you again.
hugin installed.

But when I run it (from the command line), I get a lot of messages in the consol:

(hugin:16251): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion `height >= -1' failed
[...]
/usr/local/share/hugin/data/plugins/shooting_pattern.py
   CAT:initial distribution
   NAM:6-1-1 Shooting Pattern
/usr/local/share/hugin/data/plugins/crop_cp.py
   CAT:Control Points
   NAM:Crop Control Points
/usr/local/share/hugin/data/plugins/top_five.py
   CAT:Control Points
   NAM:keep 5 CPs per image pair
/usr/local/share/hugin/data/plugins/woa.py
   CAT:Control Points
   NAM:Warped Overlap Analysis
(hugin:16251): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width 0 and height -25
(hugin:16251): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 17
(hugin:16251): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion `height >= -1' failed
(hugin:16251): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width 163 and height -25
(hugin:16251): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width 368 and height -25
(hugin:16251): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion `height >= -1' failed
(hugin:16251): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width 368 and height -25
(hugin:16251): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion `height >= -1' failed
(hugin:16251): GdkPixbuf-CRITICAL **: gdk_pixbuf_new: assertion `width > 0' failed

And when I quit, I get
Segmentation fault (core dumped)

Is this normal behaviour?

Ludo

Reply all
Reply to author
Forward
0 new messages