LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-05-2013, 01:53 PM   #1
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 208

Rep: Reputation: 27
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:ateValue:ate' 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.
 
Old 11-05-2013, 02:49 PM   #2
Nille_kungen
Member
 
Registered: Jul 2005
Posts: 211

Rep: Reputation: 43
My guess is that you need to install wxpython, but i'm only guessing.
 
Old 11-05-2013, 02:56 PM   #3
RichM76
LQ Newbie
 
Registered: Jan 2012
Distribution: Slackware, Slackware64
Posts: 5

Rep: Reputation: Disabled
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/
 
Old 11-06-2013, 12:28 AM   #4
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 208

Original Poster
Rep: Reputation: 27
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:ateValue:ate' 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.
 
Old 11-06-2013, 01:38 AM   #5
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,517

Rep: Reputation: 90
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.
 
Old 11-06-2013, 05:59 AM   #6
RichM76
LQ Newbie
 
Registered: Jan 2012
Distribution: Slackware, Slackware64
Posts: 5

Rep: Reputation: Disabled
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
 
Old 11-07-2013, 01:54 AM   #7
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 208

Original Poster
Rep: Reputation: 27
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 ...

Last edited by rpedrica; 11-07-2013 at 01:56 AM.
 
Old 11-07-2013, 02:34 AM   #8
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 208

Original Poster
Rep: Reputation: 27
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 ...
 
Old 11-07-2013, 06:48 AM   #9
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 208

Original Poster
Rep: Reputation: 27
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?
 
Old 11-07-2013, 07:01 AM   #10
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,517

Rep: Reputation: 90
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?

Last edited by titopoquito; 11-07-2013 at 07:06 AM.
 
Old 11-07-2013, 11:28 AM   #11
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 208

Original Poster
Rep: Reputation: 27
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.
 
Old 11-07-2013, 02:30 PM   #12
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,517

Rep: Reputation: 90
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.

Last edited by titopoquito; 11-07-2013 at 02:37 PM.
 
Old 11-09-2013, 12:58 AM   #13
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 208

Original Poster
Rep: Reputation: 27
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [src2pkg] how can one add a tag to src2pkg pkg name - like slackbuilds do (Sbo) harryhaller Slackware 5 02-13-2013 09:55 AM
problem running hugin 2010.2.0 work with Slack 13.1 kemsiro Slackware 3 11-05-2010 08:37 AM
[ANNOUNCE] src2pkg-2.0 and src2pkg-ng-0.0.1 gnashley Slackware 11 12-21-2009 11:41 AM
New src2pkg release available for download -Introducing the src2pkg WIKI gnashley Slackware 11 05-06-2008 11:09 AM
how about combining src2pkg +slack.build +swaret/slaptget rkrishna Slackware 15 04-17-2008 08:07 AM


All times are GMT -5. The time now is 04:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration