LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slack 14.1 ( rc ), src2pkg 2.7 and hugin 2013 (http://www.linuxquestions.org/questions/slackware-14/slack-14-1-rc-src2pkg-2-7-and-hugin-2013-a-4175483493/)

rpedrica 11-05-2013 01:53 PM

Slack 14.1 ( rc ), src2pkg 2.7 and hugin 2013
 
I have a lib error when compiling hugin with src2pkg. As follows:

Quote:

[ 53%] Building CXX object src/hugin1/base_wx/CMakeFiles/huginbasewx.dir/wxLensDB.cpp.o
In file included from /usr/include/exiv2/metadatum.hpp:39:0,
from /usr/include/exiv2/exif.hpp:34,
from /tmp/hugin-2013.0.0-src-1/src/hugin_base/panodata/SrcPanoImage.h:51,
from /tmp/hugin-2013.0.0-src-1/src/hugin_base/panodata/PanoramaData.h:41,
from /tmp/hugin-2013.0.0-src-1/src/hugin_base/panodata/Panorama.h:35,
from /tmp/hugin-2013.0.0-src-1/src/hugin1/PT/Panorama.h:27,
from /tmp/hugin-2013.0.0-src-1/src/hugin1/panoinc.h:70,
from /tmp/hugin-2013.0.0-src-1/src/hugin1/base_wx/wxLensDB.cpp:27:
/usr/include/exiv2/value.hpp:984:25: note: attribute for 'struct Exiv2::DateValue::Date' must follow the 'struct' keyword
EXIV2API struct Date
^
Linking CXX shared library libhuginbasewx.so
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../x86_64-slackware-linux/bin/ld: cannot find -lwx_gtk2u_gl-2.8
collect2: error: ld returned 1 exit status
make[2]: *** [src/hugin1/base_wx/libhuginbasewx.so.0.0] Error 1
make[1]: *** [src/hugin1/base_wx/CMakeFiles/huginbasewx.dir/all] Error 2
make: *** [all] Error 2
I'm not sure how to add -lwx_gtk2u_gl-2.8 as an option ( tried -e='-lwx_gtk2u_gl-2.8' but that just gave another error ). The lib is available in /usr/lib64 ...

Any assistance appreciated.

Nille_kungen 11-05-2013 02:49 PM

My guess is that you need to install wxpython, but i'm only guessing.

RichM76 11-05-2013 02:56 PM

I just used the SlackBuild after installing all the dependencies. Just remember to change the version number to 2013.0.0 in the SlackBuild.

http://slackbuilds.org/repository/14.0/graphics/hugin/

rpedrica 11-06-2013 12:28 AM

Same error with slackbuild:

Quote:

[ 53%] Building CXX object src/hugin1/base_wx/CMakeFiles/huginbasewx.dir/wxLensDB.cpp.o
cd /tmp/SBo/hugin-2013.0.0/src/hugin1/base_wx && /usr/bin/c++ -DHUGIN_HSI -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -Dhuginbasewx_EXPORTS -O2 -fPIC -pthread -O3 -DNDEBUG -fPIC -I/tmp/SBo/hugin-2013.0.0/src -I/tmp/SBo/hugin-2013.0.0/src/hugin_base -I/tmp/SBo/hugin-2013.0.0/src/foreign/vigra -I/tmp/SBo/hugin-2013.0.0/src/celeste -I/usr/include/OpenEXR -I/tmp/SBo/hugin-2013.0.0/src/foreign -I/usr/local/include -I/usr/include/python2.7 -isystem /usr/lib64/wx/include/gtk2-unicode-release-2.8 -isystem /usr/include/wx-2.8 -I/tmp/SBo/hugin-2013.0.0/src/hugin1 -o CMakeFiles/huginbasewx.dir/wxLensDB.cpp.o -c /tmp/SBo/hugin-2013.0.0/src/hugin1/base_wx/wxLensDB.cpp
In file included from /usr/include/exiv2/metadatum.hpp:39:0,
from /usr/include/exiv2/exif.hpp:34,
from /tmp/SBo/hugin-2013.0.0/src/hugin_base/panodata/SrcPanoImage.h:51,
from /tmp/SBo/hugin-2013.0.0/src/hugin_base/panodata/PanoramaData.h:41,
from /tmp/SBo/hugin-2013.0.0/src/hugin_base/panodata/Panorama.h:35,
from /tmp/SBo/hugin-2013.0.0/src/hugin1/PT/Panorama.h:27,
from /tmp/SBo/hugin-2013.0.0/src/hugin1/panoinc.h:70,
from /tmp/SBo/hugin-2013.0.0/src/hugin1/base_wx/wxLensDB.cpp:27:
/usr/include/exiv2/value.hpp:984:25: note: attribute for 'struct Exiv2::DateValue::Date' must follow the 'struct' keyword
EXIV2API struct Date
^
Linking CXX shared library libhuginbasewx.so
cd /tmp/SBo/hugin-2013.0.0/src/hugin1/base_wx && /usr/bin/cmake -E cmake_link_script CMakeFiles/huginbasewx.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -O2 -fPIC -pthread -O3 -DNDEBUG -shared -Wl,-soname,libhuginbasewx.so.0.0 -o libhuginbasewx.so.0.0 CMakeFiles/huginbasewx.dir/wxImageCache.cpp.o CMakeFiles/huginbasewx.dir/MyProgressDialog.cpp.o CMakeFiles/huginbasewx.dir/PTWXDlg.cpp.o CMakeFiles/huginbasewx.dir/huginConfig.cpp.o CMakeFiles/huginbasewx.dir/MyExternalCmdExecDialog.cpp.o CMakeFiles/huginbasewx.dir/platform.cpp.o CMakeFiles/huginbasewx.dir/RunStitchPanel.cpp.o CMakeFiles/huginbasewx.dir/LensTools.cpp.o CMakeFiles/huginbasewx.dir/wxLensDB.cpp.o -L/lib64,/usr/lib64 -L/usr/X11R6/lib64 -L/usr/lib64 -pthread -Wl,-O1,-L/lib64,-L/usr/lib64 -L/usr/X11R6/lib64 -lwx_baseu-2.8 -lwx_gtk2u_core-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_html-2.8 -lwx_baseu_xml-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_gl-2.8 -lwx_baseu_net-2.8 ../../hugin_base/libhuginbase.so.0.0 ../../hugin_base/libhuginbase.so.0.0 -lboost_thread -lboost_date_time -lboost_regex -lboost_filesystem -lboost_iostreams -lboost_system -lboost_signals -lpano13 -lGLEW ../../foreign/levmar/libhuginlevmar.a ../../foreign/vigra/vigra_impex/libhuginvigraimpex.so.0.0 -lpthread -ljpeg -lImath -lIlmImf -lIex -lHalf -lIlmThread -lpng -lz ../../hugin_base/makefilelib/libmakefilelib.so.0.0 -lpthread -lexiv2 -lGLU -lGL -lSM -lICE -lX11 -lXext -lglut -lXmu -lXi -lpthread -lexiv2 -lGLU -lGL -lSM -lICE -lX11 -lXext -lglut -lXmu -lXi -lboost_thread -lboost_date_time -lboost_regex -lboost_filesystem -lboost_iostreams -lboost_system -lboost_signals -lpano13 -lGLEW -ltiff -llensfun -Wl,-rpath,/lib64,/usr/lib64:/usr/X11R6/lib64:/tmp/SBo/hugin-2013.0.0/src/hugin_base:/tmp/SBo/hugin-2013.0.0/src/foreign/vigra/vigra_impex:/tmp/SBo/hugin-2013.0.0/src/hugin_base/makefilelib:
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../x86_64-slackware-linux/bin/ld: cannot find -lwx_gtk2u_gl-2.8
collect2: error: ld returned 1 exit status
make[2]: *** [src/hugin1/base_wx/libhuginbasewx.so.0.0] Error 1
make[2]: Leaving directory `/tmp/SBo/hugin-2013.0.0'
make[1]: *** [src/hugin1/base_wx/CMakeFiles/huginbasewx.dir/all] Error 2
make[1]: Leaving directory `/tmp/SBo/hugin-2013.0.0'
make: *** [all] Error 2
The lib is definitely installed:

lrwxrwxrwx 1 root root 27 Oct 21 10:28 /usr/lib64/libwx_gtk2u_gl-2.8.so.0 -> libwx_gtk2u_gl-2.8.so.0.8.0*
-rwxr-xr-x 1 root root 53816 Aug 23 11:45 /usr/lib64/libwx_gtk2u_gl-2.8.so.0.8.0*

Although there seems to be a link missing - added /usr/lib64/libwx_gtk2u_gl-2.8.so -> libwx_gtk2u_gl-2.8.so.0.8.0*. With this I get a different error ( still at the same place though - about 53% ):

Quote:

Linking CXX shared library libhuginbasewx.so
cd /tmp/SBo/hugin-2013.0.0/src/hugin1/base_wx && /usr/bin/cmake -E cmake_link_script CMakeFiles/huginbasewx.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -O2 -fPIC -pthread -O3 -DNDEBUG -shared -Wl,-soname,libhuginbasewx.so.0.0 -o libhuginbasewx.so.0.0 CMakeFiles/huginbasewx.dir/wxImageCache.cpp.o CMakeFiles/huginbasewx.dir/MyProgressDialog.cpp.o CMakeFiles/huginbasewx.dir/PTWXDlg.cpp.o CMakeFiles/huginbasewx.dir/huginConfig.cpp.o CMakeFiles/huginbasewx.dir/MyExternalCmdExecDialog.cpp.o CMakeFiles/huginbasewx.dir/platform.cpp.o CMakeFiles/huginbasewx.dir/RunStitchPanel.cpp.o CMakeFiles/huginbasewx.dir/LensTools.cpp.o CMakeFiles/huginbasewx.dir/wxLensDB.cpp.o -L/lib64,/usr/lib64 -L/usr/X11R6/lib64 -L/usr/lib64 -pthread -Wl,-O1,-L/lib64,-L/usr/lib64 -L/usr/X11R6/lib64 -lwx_baseu-2.8 -lwx_gtk2u_core-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_html-2.8 -lwx_baseu_xml-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_gl-2.8 -lwx_baseu_net-2.8 ../../hugin_base/libhuginbase.so.0.0 ../../hugin_base/libhuginbase.so.0.0 -lboost_thread -lboost_date_time -lboost_regex -lboost_filesystem -lboost_iostreams -lboost_system -lboost_signals -lpano13 -lGLEW ../../foreign/levmar/libhuginlevmar.a ../../foreign/vigra/vigra_impex/libhuginvigraimpex.so.0.0 -lpthread -ljpeg -lImath -lIlmImf -lIex -lHalf -lIlmThread -lpng -lz ../../hugin_base/makefilelib/libmakefilelib.so.0.0 -lpthread -lexiv2 -lGLU -lGL -lSM -lICE -lX11 -lXext -lglut -lXmu -lXi -lpthread -lexiv2 -lGLU -lGL -lSM -lICE -lX11 -lXext -lglut -lXmu -lXi -lboost_thread -lboost_date_time -lboost_regex -lboost_filesystem -lboost_iostreams -lboost_system -lboost_signals -lpano13 -lGLEW -ltiff -llensfun -Wl,-rpath,/lib64,/usr/lib64:/usr/X11R6/lib64:/tmp/SBo/hugin-2013.0.0/src/hugin_base:/tmp/SBo/hugin-2013.0.0/src/foreign/vigra/vigra_impex:/tmp/SBo/hugin-2013.0.0/src/hugin_base/makefilelib:
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../x86_64-slackware-linux/bin/ld: cannot find /usr/lib64:/usr/X11R6/lib64:/tmp/SBo/hugin-2013.0.0/src/hugin_base:/tmp/SBo/hugin-2013.0.0/src/foreign/vigra/vigra_impex:/tmp/SBo/hugin-2013.0.0/src/hugin_base/makefilelib:: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [src/hugin1/base_wx/libhuginbasewx.so.0.0] Error 1
make[2]: Leaving directory `/tmp/SBo/hugin-2013.0.0'
make[1]: *** [src/hugin1/base_wx/CMakeFiles/huginbasewx.dir/all] Error 2
make[1]: Leaving directory `/tmp/SBo/hugin-2013.0.0'
make: *** [all] Error 2
So not sure what's going on.

titopoquito 11-06-2013 01:38 AM

It's on my todo list but I'm not sure when I will find some spare time to test the upgrade. Hopefully the next weekend, but since submissions are closed anyway and will probably stay so for some time, this does not have my highest priority at the moment. I will post if I find a solution and have upgraded my slackbuilds.

RichM76 11-06-2013 05:59 AM

These are all the dependencies you need to have installed.


lensfun, libpano13, tclap, wxPython, enblend-enfuse, libxmi, vigra, gsl, exiftool


If you still get a wxgtk error I would install that too if it fails to build after trying the others. It's also on slackbuilds.org

rpedrica 11-07-2013 01:54 AM

I think it must be something on my system ( although it's a new install ) as I successfully compiled 2012 previously. Now, neither 2012 or 2013 will compile and have the same lib error as above.

RichM76, as mentioned above, the wx library that is indicated as a problem, is installed on my system and a file-listing is shown in my previous post. All dependencies are met as well. I've also tried slackbuilds as well ...

rpedrica 11-07-2013 02:34 AM

Ok I might be getting somewhere. The library complained about is:

libwx_gtk2_gl-2.8.so.0.8.0

But I have:

libwx_gtk2u_gl-2.8.so.0.8.0

Subtle diff there. I made sure I compiled wxwidgets with --with-opengl. I had a quick look on slackbuilds an noticed the following for wxwidgets/wxGTK:

Quote:

This package conflicts with wxPython because wxGTK is already included
there. Both cannot be installed at the same time!
I'm assuming I should use wxpython then ...

rpedrica 11-07-2013 06:48 AM

So I removed wxwidgets and installed wxpython but the lib is still listed as libwx_gtk2u_gl-2.8.so.0.8.0 and hugin compile is looking for libwx_gtk2_gl-2.8.so.0.8.0 - maybe a soft link?

titopoquito 11-07-2013 07:01 AM

Do you see this error when compiling hugin 2012.0.0, too?

EDIT: You don't write how you installed wxPython. If not with the SlackBuild, did you include "--enable-unicode" when configuring it?

rpedrica 11-07-2013 11:28 AM

Yes same error with hugin 2012 - compile opts are:

--enable-gui --enable-shared --with-sdl --with-gtk --with-zlib --with-libpng --with-libjpeg --with-libtiff --with-xpm --with-expat --enable-unicode --with-opengl --disable-static --enable-graphics_ctx --enable-display --enable-mediactrl --enable-sound

I took the opts from the slackbuild - shameless ...

I've managed to get past this error with a fresh wxpython install and now get the following for hugin compile:


Quote:

Linking CXX shared library libhuginbasewx.so
cd /tmp/SBo/hugin-2013.0.0/src/hugin1/base_wx && /usr/bin/cmake -E cmake_link_script CMakeFiles/huginbasewx.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -O2 -fPIC -pthread -O3 -DNDEBUG -shared -Wl,-soname,libhuginbasewx.so.0.0 -o libhuginbasewx.so.0.0 CMakeFiles/huginbasewx.dir/wxImageCache.cpp.o CMakeFiles/huginbasewx.dir/MyProgressDialog.cpp.o CMakeFiles/huginbasewx.dir/PTWXDlg.cpp.o CMakeFiles/huginbasewx.dir/huginConfig.cpp.o CMakeFiles/huginbasewx.dir/MyExternalCmdExecDialog.cpp.o CMakeFiles/huginbasewx.dir/platform.cpp.o CMakeFiles/huginbasewx.dir/RunStitchPanel.cpp.o CMakeFiles/huginbasewx.dir/LensTools.cpp.o CMakeFiles/huginbasewx.dir/wxLensDB.cpp.o -L/lib64,/usr/lib64 -L/usr/X11R6/lib64 -L/usr/lib64 -pthread -Wl,-O1,-L/lib64,-L/usr/lib64 -L/usr/X11R6/lib64 -lwx_baseu-2.8 -lwx_gtk2u_core-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_html-2.8 -lwx_baseu_xml-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_gl-2.8 -lwx_baseu_net-2.8 ../../hugin_base/libhuginbase.so.0.0 ../../hugin_base/libhuginbase.so.0.0 -lboost_thread -lboost_date_time -lboost_regex -lboost_filesystem -lboost_iostreams -lboost_system -lboost_signals -lpano13 -lGLEW ../../foreign/levmar/libhuginlevmar.a ../../foreign/vigra/vigra_impex/libhuginvigraimpex.so.0.0 -lpthread -ljpeg -lImath -lIlmImf -lIex -lHalf -lIlmThread -lpng -lz ../../hugin_base/makefilelib/libmakefilelib.so.0.0 -lpthread -lexiv2 -lGLU -lGL -lSM -lICE -lX11 -lXext -lglut -lXmu -lXi -lpthread -lexiv2 -lGLU -lGL -lSM -lICE -lX11 -lXext -lglut -lXmu -lXi -lboost_thread -lboost_date_time -lboost_regex -lboost_filesystem -lboost_iostreams -lboost_system -lboost_signals -lpano13 -lGLEW -ltiff -llensfun -Wl,-rpath,/lib64,/usr/lib64:/usr/X11R6/lib64:/tmp/SBo/hugin-2013.0.0/src/hugin_base:/tmp/SBo/hugin-2013.0.0/src/foreign/vigra/vigra_impex:/tmp/SBo/hugin-2013.0.0/src/hugin_base/makefilelib:
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../x86_64-slackware-linux/bin/ld: cannot find /usr/lib64:/usr/X11R6/lib64:/tmp/SBo/hugin-2013.0.0/src/hugin_base:/tmp/SBo/hugin-2013.0.0/src/foreign/vigra/vigra_impex:/tmp/SBo/hugin-2013.0.0/src/hugin_base/makefilelib:: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [src/hugin1/base_wx/libhuginbasewx.so.0.0] Error 1
make[2]: Leaving directory `/tmp/SBo/hugin-2013.0.0'
make[1]: *** [src/hugin1/base_wx/CMakeFiles/huginbasewx.dir/all] Error 2
make[1]: Leaving directory `/tmp/SBo/hugin-2013.0.0'
make: *** [all] Error 2
Tested with 2012 and same issue. Trying with slackbuild wxPython now.

titopoquito 11-07-2013 02:30 PM

Compiles with no problem at all here - just updated hugin to 2013.0.0. Used only SlackBuilds from slackbuilds.org.

EDIT: On Slackware64 14.1rc3 as of 2013-11-03.

rpedrica 11-09-2013 12:58 AM

Oh wow got this to build on a fresh install ( in a vm ) now. Only 2 packages from slackbuilds was wxpython and hugin itself. Weird as my desktop was just recently reinstalled - there must be a clash somewhere with another package.


All times are GMT -5. The time now is 05:17 PM.