Cannot load image .bmp

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
napalm
Level 1
Level 1
Posts: 9
Joined: Thu Oct 23, 2008 12:09 pm

Cannot load image .bmp

Post by napalm »

Hi
I am trying to use a software caller Zelio soft 2, and it runs ok, but when I click to create a new project, I get 8 errors saying it cannot load that image file.
they are inside a folder in the program directory... and they open ok.

This is a PLC software that has only a windows version.

If I run the program from the terminal I get no errors at all in the console, everything else works fine, but I need it to load those images cause I can't start a new project whithout them.

thanks
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Cannot load image .bmp

Post by vitamin »

napalm wrote:If I run the program from the terminal I get no errors at all in the console, everything else works fine, but I need it to load those images cause I can't start a new project whithout them.
What exact command did you use to start this program? And from what directory did you run it?
napalm
Level 1
Level 1
Posts: 9
Joined: Thu Oct 23, 2008 12:09 pm

Post by napalm »

when I installed the program it was installed into the drive_c folder of wine in the user account. I run th program like this:

Code: Select all

~/.wine/drive_c/Programas/Schneider Electric/Zelio Soft 2$ wine Zelio2.exe
but I also have a link to the program in the user folder
this is the content of the link:

Code: Select all

~$ cat Zelio\ Soft\ 2.desktop 
[Desktop Entry]
Name=Zelio Soft 2
Exec=env WINEPREFIX="/home/cachada/.wine" wine "C:\\Programas\\Schneider Electric\\Zelio Soft 2\\Zelio2.exe" 
Type=Application
StartupWMClass=Wine
Path=/home/cachada/.wine/dosdevices/c:/Programas/Schneider Electric/Zelio Soft 2
Icon=d332_iconz2
The behavior is the same if I use one or another way to start the program
napalm
Level 1
Level 1
Posts: 9
Joined: Thu Oct 23, 2008 12:09 pm

Post by napalm »

Something to add...
The bitmap files are inside the directory "Z2Ctlg" and in that dir are other files that Zelio2 needs to open.
I have renamed that dir and the program gave an error about that and didn't open.
So what could this be?
napalm
Level 1
Level 1
Posts: 9
Joined: Thu Oct 23, 2008 12:09 pm

Post by napalm »

you can download the software I'm talking about here
http://www.download.schneider-electric. ... ument&L=EN&
qwertymn
Level 4
Level 4
Posts: 236
Joined: Thu Mar 27, 2008 3:42 am

Post by qwertymn »

hi, i gave this thing a try, and tried to do some debugging, first i thought it was a bug in wine's LoadImage function, but somehow it appears the directory Z2Ctlg
is not in the right place. It looks like the bitmaps should be somewhere in:

"C:\\PROGRAM FILES\\SCHNEIDER ELECTRIC\\ZELIO SOFT 2\\Z2User\\Z2Ctlg\\SR2AB20J.BMP"

Could you try copy the diretory to Z2User:

'cp -rf Z2Ctlg/ Z2User/'

Then it starts fine for me. Also, could you check where the directory is when you install the app on windows, and if wine has put it in the wrong place, please open a bug for it in bugzilla. greetings
napalm
Level 1
Level 1
Posts: 9
Joined: Thu Oct 23, 2008 12:09 pm

Post by napalm »

It worked. thanks a lot.
That's very strange cause in windows the Z2User does not have the folder Z2Ctlg...

Anyway, thanks again
napalm
Level 1
Level 1
Posts: 9
Joined: Thu Oct 23, 2008 12:09 pm

Post by napalm »

Another issue noticed.
Unusual characters/symbols where should be other ones... maybe a font problem...
notice the 2nd and 3rd columns

Image
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Try installing the Windows core fonts. If you have a Windows partition, you can just copy the fonts to your ~/.wine/drive_c/windows/Fonts directory. If not, use winetricks: http://wiki.winehq.org/winetricks
napalm
Level 1
Level 1
Posts: 9
Joined: Thu Oct 23, 2008 12:09 pm

Post by napalm »

Hi thanks.

I 've copied the fonts from the other partition were I have windows XP and the symbols changed but they are not correct:

Image

Also I've installed corefonts from winetricks with the same result...
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Try copying symbol.ttf.
napalm
Level 1
Level 1
Posts: 9
Joined: Thu Oct 23, 2008 12:09 pm

Post by napalm »

there is already a symbol.ttf
napalm
Level 1
Level 1
Posts: 9
Joined: Thu Oct 23, 2008 12:09 pm

Post by napalm »

another problem I'm having is that i can't communicate thought the com1 port (ttyS0)
Ive made the appropriate links ln -s /dev/ttyS0 ~/.wine/dosdevices/com1

But I get an error on the program saying that the module didnt respond and to check cables.

on the console the only error that shows up is this:

fixme:comm:set_queue_size insize 2100 outsize 2100 unimplemented stub


what could be the problem?

Can I test with another linux software to see if there is any type of communication?!
James McKenzie

Cannot load image .bmp

Post by James McKenzie »

napalm wrote:
another problem I'm having is that i can't communicate thought the com1 port (ttyS0)
Ive made the appropriate links ln -s /dev/ttyS0 ~/.wine/dosdevices/com1

But I get an error on the program saying that the module didnt respond and to check cables.

on the console the only error that shows up is this:

fixme:comm:set_queue_size insize 2100 outsize 2100 unimplemented stub

Since no one replied, here goes:

Your application is attempting to set a queue size and this function is
not implemented in Wine. Is this causing your program to fail, quite
possibly.

Is there a way to shut off the ability to set the input and output queue
size in your program?

James McKenzie
Locked