LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-04-2019, 11:50 AM   #1
jrch
Member
 
Registered: Mar 2006
Posts: 96

Rep: Reputation: 13
Thumbs down SlackBuild 'XnViewMP' bombs


Build the SlackBuild 'XnViewMP' for 14.2 on my x86-64 / multilib system. Package says is installed in /var/log/packages. However, no binary in /usr/bin or /usr/sbin. There *IS* a folder now - /opt/XnView - but none of the binaries in there will execute, giving error,

'XnView: error while loading shared libraries: libopenal.so.1: cannot open shared object file: No such file or directory'

Apparently this Slackbuild is missing some hints or explaination which might help with initializing or running first-time.

jrc

Last edited by jrch; 10-04-2019 at 12:21 PM. Reason: correct critical language
 
Old 10-04-2019, 11:54 AM   #2
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 470

Rep: Reputation: 246Reputation: 246Reputation: 246
I'm not familiar with this application at all, but I just spent about 10 seconds reading the README file for XnViewMP on sbopkg. It is a repackaging of a binary. The binary requires libopenal.so.1 (and possibly other things, who knows). Try building and installing openal from SBO and try again. The .info file for XnViewMP should probably be patched to list its proper dependencies, including OpenAL and anything else it may need that is not listed.

EDIT - or try installing OpenAL from AlienBob's repo - that is where I seem to have pulled it.

Last edited by Poprocks; 10-04-2019 at 11:56 AM.
 
1 members found this post helpful.
Old 10-04-2019, 12:25 PM   #3
jrch
Member
 
Registered: Mar 2006
Posts: 96

Original Poster
Rep: Reputation: 13
Thanx Poprocks. I'm sure that is related to the problem. I tried this build several months back with same experience so my limited knowledge is still a roadblock. I'll try that.

On the xnview(mp) website, they talk about the program being available for linux and their is a discussion group. Maybe that would be a better place to find answers for me and others.

jrc
 
Old 10-04-2019, 12:28 PM   #4
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 470

Rep: Reputation: 246Reputation: 246Reputation: 246
Not a problem at all - give it a try. I think this forum is perfectly appropriate to discuss this. When dealing with packages outside the main distribution, it's good to have an understanding as to how shared library dependencies work. You could also try running 'ldd' on the binary and see if any other libraries are missing.
 
Old 10-04-2019, 12:41 PM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,007

Rep: Reputation: Disabled
I installed XnViewMP from SBo here (slackware64-current) and installed OpenAL too (still from SBo).
then I launched /opt/XnView/xnview.sh (also XnView from the Applications -> Graphics) and it run fine.
as XnView is distributed in binary form and the tarball is not versioned I suppose it has changed since the maintainer on SBo updated it to 0.92: creating a package from SBo actually installs 0.93.1 now.
you should better report this to the maintainer on SBo: he should be the first person to refer to if things doesn't work as expected.
 
1 members found this post helpful.
Old 10-04-2019, 01:02 PM   #6
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 470

Rep: Reputation: 246Reputation: 246Reputation: 246
I installed it as well, testing against AlienBob's build of OpenAL on -current for good measure. Works.

My initial reaction was that 60 MB for an image viewer is a bit much, but what do I know...
 
1 members found this post helpful.
Old 10-04-2019, 02:09 PM   #7
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" & Xfce.
Posts: 4,908
Blog Entries: 1

Rep: Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315
Quote:
Originally Posted by Poprocks View Post
I installed it as well, testing against AlienBob's build of OpenAL on -current for good measure. Works.
Ditto.

Quote:
Originally Posted by Poprocks View Post
My initial reaction was that 60 MB for an image viewer is a bit much, but what do I know...
IMHO, it is the best viewer for Linux I've found to date. For years I used a combination of Gwenview to view an image and then export it to The GIMP if it needed to be edited, i.e., improve contrast, colors, sharpess, etc. So many editng functions can be done with XnView it is rarely necessary to open an image with The GIMP.

Last edited by cwizardone; 10-04-2019 at 02:16 PM.
 
1 members found this post helpful.
Old 10-04-2019, 04:18 PM   #8
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 470

Rep: Reputation: 246Reputation: 246Reputation: 246
Quote:
Originally Posted by cwizardone View Post
Ditto.



IMHO, it is the best viewer for Linux I've found to date. For years I used a combination of Gwenview to view an image and then export it to The GIMP if it needed to be edited, i.e., improve contrast, colors, sharpess, etc. So many editng functions can be done with XnView it is rarely necessary to open an image with The GIMP.
Cool. Depends on your use case I guess. "display" from ImageMagick has been my go-to image viewer for years, along with the GIMP for editing needs. I guess old habits die hard.
 
1 members found this post helpful.
Old 10-05-2019, 05:23 AM   #9
thim
Member
 
Registered: Nov 2013
Location: Greece
Distribution: Slackware64 current
Posts: 59

Rep: Reputation: 26
XnView has a very important feature: you can rearrange the photos as you wish, just by drag and drop.
 
1 members found this post helpful.
Old 10-05-2019, 11:17 AM   #10
jrch
Member
 
Registered: Mar 2006
Posts: 96

Original Poster
Rep: Reputation: 13
Not obvious to me why one would need a '3D audio API' ('OpenAL' SlackBuild webpage) for a visual application, but I'll try it.

Apparently XnViewMP is the nearest thing to Irfanview (windows only) which would make it a vast improvement on most viewers in linux. But a brief look at the 'forum' on xnview webpage shows installation is a disaster for many folks on linux. Glad some on here had success.

jrc

Last edited by jrch; 10-05-2019 at 11:19 AM.
 
1 members found this post helpful.
Old 10-05-2019, 11:47 AM   #11
jrch
Member
 
Registered: Mar 2006
Posts: 96

Original Poster
Rep: Reputation: 13
Well zowie. It works with install of (slackbuild) 'OpenAL'.

(in user terminal, executed as '/opt/Xnview/xnview.sh'. Note this 'xnview.sh' did nothing visible before I installed 'OpenAL')

It works - obviously executing - need to clean up some paths but should be just fine. Thanks for suggestions.

I know my ignorance is hanging out here, but I didn't recognize the clues to '.so' libs, etc. Tho, the error I quoted does mention - precisely - 'libopenal..', I did not recognize 'openal' as anything meaningful. My error.

Now, looking at the 'docs' folder in OpenAL expanded source, it does appear to be mainly an audio facility. And, the wikipedia page on XnViewMP mentions that it can '..read some audio files'. I guess this is part of the functionality of XnViewMP, after all.

Well duh. Consider problem solved - thanks for the suggestions, 'poprocks' provided the solution in the first reply.

jrc
 
Old 10-05-2019, 12:05 PM   #12
jrch
Member
 
Registered: Mar 2006
Posts: 96

Original Poster
Rep: Reputation: 13
Thumbs up XnViewMP - A good viewer!

Well, now that I've spent a few minutes working with XnViewMP, I have to agree with others who say it is a pretty good program. I especially like the image-editing features, including crop, resize, etc. Gimp does indeed have many of these (some online have claimed XnView has more or better such, I don't know). But from personal experience, it's pretty hard for a newbie to find his/her way around in Gimp. XnViewMP - for me - is much more straightforward and intuitive.

I think I'm going to email the SlackBuild author to suggest he include 'needs OpenAL' on the SBo webpage for XnViewMP. Or, if not 'needs', then 'recommends'.

So again, thanks - especially poprocks - for helping.

jrc
 
1 members found this post helpful.
Old 10-05-2019, 12:05 PM   #13
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 470

Rep: Reputation: 246Reputation: 246Reputation: 246
Nice, jrch! Glad you got it working. The Slackbuild for XnViewMP should probably be patched to indicate that OpenAL is required. I'll try to write to the maintainer about that.

Yeah, because Slackware's package management tools (pkgtools) don't have dependency checking, it's good to learn how to troubleshoot these things by hand. What I sometimes do if I'm not familiar with the library in question is just search google for the soname (in this case, libopenal.so.1). This will usually point you in the right direction.

In this case the problem wasn't too difficult to solve because (a) it's just one library and (b) the soname that is required by the app matches that of the most recent version available. Sometimes you have to hunt for an older version when it comes to getting binary apps to work...
 
1 members found this post helpful.
Old 10-05-2019, 12:47 PM   #14
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" & Xfce.
Posts: 4,908
Blog Entries: 1

Rep: Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315Reputation: 2315
Quote:
Originally Posted by jrch View Post
Well, now that I've spent a few minutes working with XnViewMP, I have to agree with others who say it is a pretty good program. I especially like the image-editing features, including crop, resize, etc. Gimp does indeed have many of these (some online have claimed XnView has more or better such, I don't know). But from personal experience, it's pretty hard for a newbie to find his/her way around in Gimp. XnViewMP - for me - is much more straightforward and intuitive.

I think I'm going to email the SlackBuild author to suggest he include 'needs OpenAL' on the SBo webpage for XnViewMP. Or, if not 'needs', then 'recommends'.

So again, thanks - especially poprocks - for helping.

jrc
Overall, I agree, but one should keep in mind that while they can view an image with The GIMP, it is first and foremost an image editor. As such it has far greater capabilities than XnView, but for most of my needs XnView works just fine.

Quote:
...... GIMP is a cross-platform image editor available for GNU/Linux, OS X, Windows and more operating systems. It is free software, you can change its source code and distribute your changes.

Whether you are a graphic designer, photographer, illustrator, or scientist, GIMP provides you with sophisticated tools to get your job done. You can further enhance your productivity with GIMP thanks to many customization options and 3rd party plugins.
https://www.gimp.org/
 
Old 10-07-2019, 03:56 PM   #15
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 562

Rep: Reputation: 155Reputation: 155
Question, does this install of XnView not crash the gimp, as discussed a while back?

The test (on current) was having a picture open in XnView and then try to edit a large/high-resolution file in the gimp, which resulted in a gimp crash. This crash was quite direct but only happened when XnView had opened a picture. As gimp is essential for my work I removed Xnview from my box at the time.

Last edited by brobr; 10-07-2019 at 03:59 PM.
 
  


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
XNVIEWMP installing properly rcorkum Slackware 1 11-26-2013 06:28 AM
slackbuild for xnviewMP? veeall Slackware 5 11-26-2011 11:06 PM
Bombs on pcmcia startup the anti-riced Linux - Laptop and Netbook 2 05-02-2004 01:01 AM
Attempting to modify account profile bombs rnturn LQ Suggestions & Feedback 0 03-24-2004 09:58 PM
Bombs,Nepal Peace and Linux rch General 16 04-08-2003 12:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:45 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration