Page 1 of 1

cannot open xnview

Posted: Sun Nov 20, 2005 3:07 am
by veronika
what I have do to?
I donwload for a few times xnview but it close the programme immetiately when I want do open it :x
I have no idea what the fault is.

Can somebody help me

Re: cannot open xnview

Posted: Sun Nov 20, 2005 12:44 pm
by xnview
veronika wrote:what I have do to?
I donwload for a few times xnview but it close the programme immetiately when I want do open it :x
I have no idea what the fault is.

Can somebody help me
Which OSX do you have?

Posted: Tue Nov 22, 2005 11:03 am
by Veronika
Yes with OSX 10.4.3

Greetings Veronika

Posted: Mon Dec 12, 2005 10:31 am
by yashwanth
Veronika wrote:Yes with OSX 10.4.3

Greetings Veronika
Yashwa wrote: the same problem is happening to me
:(, please give us a solution

Posted: Mon Dec 12, 2005 10:39 am
by xnview
Veronika wrote:Yes with OSX 10.4.3
Could you try to start xnview from a console/shell XnView.app/Contents/MacOS/XnView

Opening XnView

Posted: Tue Mar 14, 2006 6:23 pm
by FishNrib
I had a hard time getting it to load also. I tryed XnView again after trying
other free viewers and discoverd an easy way to start it.

Create a folder with XnView and X11 in it. Then all you have to do is grab
X11 and drop it on top of XnView and they will both open immediately.

XnView has about the same features as Irfan View like creating a
Panorama (linking many pictures together to make one picture), Rename,
Resize, Contact Sheet, and Crop.

Thank You XnView just wish we could start it without X11.
__________________
Tom

XnView and 10.4.6 ?

Posted: Mon Apr 10, 2006 7:46 pm
by FjRond
Hello,
I used XnView for a year. I have the last version of XnView, but it can't open since the last Mac OS update (10.4.6).

Re: XnView and 10.4.6 ?

Posted: Tue Apr 11, 2006 7:09 am
by xnview
FjRond wrote:Hello,
I used XnView for a year. I have the last version of XnView, but it can't open since the last Mac OS update (10.4.6).
Really :-( perhaps to put a link to xnview exe will be good...

Posted: Tue Apr 11, 2006 6:14 pm
by Nathaniel
I have the same trouble as FjRond:
> I used XnView for a year. I have the last version of XnView, but it can't open since the last Mac OS update (10.4.6).

I found the source of the problem: the script used to figure out how to set the $DISPLAY environment variable appears not to work under 10.4.6

Solution:
right-click on XnView.app --> Show Package Contents
open Contents --> Resources --> script
delete or comment out the following section (everything between and including these lines):

# try to figure out DISPLAY cleverly
...
export DISPLAY

add the following instead (at the same place in the script):

# make sure DISPLAY is set
if [ x"$DISPLAY" = x ]; then
DISPLAY=:0.0
export DISPLAY
fi

This should work fine for you unless you are using mulitple DISPLAYS (I think). A second option is to use apple's open-x11, i.e. replace entire script contents with:

#!/bin/sh
XNVIEW="$1/Contents/Resources/xnview"
open-x11 "$XNVIEW"

The downside here is that open-x11 doesn't pass arguments on to xnview, so you can't open an image in XnView by double-clicking the image or using "Open With"; XnView will open, but you'll have to File-->Open your image.

A final option is to use xLaunch-o-matic (http://xlaunch.sourceforge.net/), which you can set up and associate with image files so they'll open in XnView when double-clicked.

Hope that helps!

Posted: Fri Apr 14, 2006 10:18 am
by Guest
I've tried both ways now, and neither work ;(
Nathaniel wrote:I have the same trouble as FjRond:
> I used XnView for a year. I have the last version of XnView, but it can't open since the last Mac OS update (10.4.6).

I found the source of the problem: the script used to figure out how to set the $DISPLAY environment variable appears not to work under 10.4.6

Solution:
right-click on XnView.app --> Show Package Contents
open Contents --> Resources --> script
delete or comment out the following section (everything between and including these lines):

# try to figure out DISPLAY cleverly
...
export DISPLAY

add the following instead (at the same place in the script):

# make sure DISPLAY is set
if [ x"$DISPLAY" = x ]; then
DISPLAY=:0.0
export DISPLAY
fi

This should work fine for you unless you are using mulitple DISPLAYS (I think). A second option is to use apple's open-x11, i.e. replace entire script contents with:

#!/bin/sh
XNVIEW="$1/Contents/Resources/xnview"
open-x11 "$XNVIEW"

The downside here is that open-x11 doesn't pass arguments on to xnview, so you can't open an image in XnView by double-clicking the image or using "Open With"; XnView will open, but you'll have to File-->Open your image.

A final option is to use xLaunch-o-matic (http://xlaunch.sourceforge.net/), which you can set up and associate with image files so they'll open in XnView when double-clicked.

Hope that helps!

Posted: Tue Apr 18, 2006 6:27 am
by Nathaniel
Sorry my suggestions didn't help. Can you run the binary itself from the command line? This command works for me, even if the script in XnView.app is not right: /Applications/XnView.app/Contents/Resources/xnview

If not, then the problem is certainly deeper than the one I had. Good luck!

Posted: Wed Jul 19, 2006 4:49 am
by vlad
Actually, proposed solution works! The problem is in TextEdit,
it screws up new line characters while saving changes into the script.
Use some other text editor and make sure new lines are intact.

Vlad
Anonymous wrote:I've tried both ways now, and neither work ;(
Nathaniel wrote:I have the same trouble as FjRond:
> I used XnView for a year. I have the last version of XnView, but it can't open since the last Mac OS update (10.4.6).

I found the source of the problem: the script used to figure out how to set the $DISPLAY environment variable appears not to work under 10.4.6

Solution:
right-click on XnView.app --> Show Package Contents
open Contents --> Resources --> script
delete or comment out the following section (everything between and including these lines):

# try to figure out DISPLAY cleverly
...
export DISPLAY

add the following instead (at the same place in the script):

# make sure DISPLAY is set
if [ x"$DISPLAY" = x ]; then
DISPLAY=:0.0
export DISPLAY
fi

This should work fine for you unless you are using mulitple DISPLAYS (I think). A second option is to use apple's open-x11, i.e. replace entire script contents with:

#!/bin/sh
XNVIEW="$1/Contents/Resources/xnview"
open-x11 "$XNVIEW"

The downside here is that open-x11 doesn't pass arguments on to xnview, so you can't open an image in XnView by double-clicking the image or using "Open With"; XnView will open, but you'll have to File-->Open your image.

A final option is to use xLaunch-o-matic (http://xlaunch.sourceforge.net/), which you can set up and associate with image files so they'll open in XnView when double-clicked.

Hope that helps!

Posted: Sat Aug 26, 2006 5:40 pm
by Guest
I have same problem as Veronika have

I have MacOs X 10.4.7, Power PC G5

Solutions of Nathaniel doesn't help :-(


When i trying to start from console i get following:
/Applications/XnView.app/Contents/Resources/xnview
dyld: Library not loaded: /usr/X11R6/lib/libXp.6.dylib
Referenced from: /Applications/XnView.app/Contents/Resources/xnview
Reason: image not found


Use XnView on PC before and want to say it's the best viewer i ever use. Hopefully get it for mac working ;-)

can't open in OSX

Posted: Sat Oct 07, 2006 8:08 pm
by gm770
same as the others, it closes right away. Trying to install x11, but it won't let me do that either, and the console says I need an x11 display open to run it. I'm using 10.4.3. The x11 installer says I have a newer version installed. Where can I start x11 to get this software working??

solution look at this

Posted: Mon Oct 09, 2006 10:16 am
by raphael wolfer