You are not logged in.

#1 2009-06-23 11:24:09

KViiri
Member
Registered: 2009-06-10
Posts: 32

Curses problem with Wine

When trying to run a program using wineconsole and the Curses backend, the following output is generated

$ wineconsole --backend=curses app.exe 
err:curses:WCCURSES_InitBackend (n)curses was not found at configuration time.
If you want (n)curses support, please install relevant packages.

I have installed ncurses, so what gives?

Thanks for your help!

Offline

#2 2009-06-23 11:25:00

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,393
Website

Re: Curses problem with Wine

ncurses needs to be installed a compile time, not run time...

Offline

#3 2009-06-23 11:28:46

KViiri
Member
Registered: 2009-06-10
Posts: 32

Re: Curses problem with Wine

So recompile might just do the trick?

Offline

#4 2009-06-23 11:30:18

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,393
Website

Re: Curses problem with Wine

probably

Offline

#5 2009-06-23 11:35:05

KViiri
Member
Registered: 2009-06-10
Posts: 32

Re: Curses problem with Wine

Didn't work. sad

Offline

#6 2009-06-23 11:37:17

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,393
Website

Re: Curses problem with Wine

Maybe you need to supply an extra configuration option.

Offline

#7 2009-06-23 11:42:10

KViiri
Member
Registered: 2009-06-10
Posts: 32

Re: Curses problem with Wine

Hmm maybe Wine needs to be told where ncurses can be found?

Offline

#8 2009-06-23 11:58:09

KViiri
Member
Registered: 2009-06-10
Posts: 32

Re: Curses problem with Wine

I haven't got a freaking idea on what to do. winecfg has nothing about curses.

Offline

#9 2009-06-23 12:04:40

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,393
Website

Re: Curses problem with Wine

No, I meant add something here:

  ./configure --prefix=/usr \
              --sysconfdir=/etc \
          --with-x

Maybe --with-curses?

Offline

#10 2009-06-23 14:35:38

KViiri
Member
Registered: 2009-06-10
Posts: 32

Re: Curses problem with Wine

bash: ./configure: No such file or directory

The program doesn't have a conf file either, I'm trying to use the Windows version with Wine.

Offline

#11 2009-06-23 14:52:48

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,393
Website

Re: Curses problem with Wine

I'll try again...

You probably need to rebuild WINE, possibly with an additional configuration flag, to enable curses support in wineconsole.

Offline

#12 2009-06-23 16:29:16

KViiri
Member
Registered: 2009-06-10
Posts: 32

Re: Curses problem with Wine

Oh, I think I got what you meant now. I'll try that. Thanks.

Offline

#13 2009-06-23 17:16:30

KViiri
Member
Registered: 2009-06-10
Posts: 32

Re: Curses problem with Wine

Doesn't quite work, Wine doesn't have ./configure... Or then this might be something really elementary everyone but me knows.

Offline

#14 2009-06-23 17:32:06

FrozenFox
Member
From: College Station, TX
Registered: 2008-03-23
Posts: 422
Website

Re: Curses problem with Wine

KViiri wrote:

Doesn't quite work, Wine doesn't have ./configure... Or then this might be something really elementary everyone but me knows.

http://wiki.archlinux.org/index.php/ABS

If you read it and sync abs (create the abs tree), you will find wine's pkgbuild file(s) in /var/abs/extra/wine/ .. and edit it according to alan's suggestions, and create the package according to the above link.. remember to copy the files to your user's directory, because you can't makepkg or whatnot from /var as a normal user (doing it as admin/root/sudo is bad).

Last edited by FrozenFox (2009-06-23 17:32:41)

Offline

#15 2009-06-24 07:17:40

KViiri
Member
Registered: 2009-06-10
Posts: 32

Re: Curses problem with Wine

Nope, no wine there.

I downloaded the package from the AUR, that does the same trick doesn't it?

Last edited by KViiri (2009-06-24 07:28:19)

Offline

#16 2009-06-24 07:36:54

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,393
Website

Re: Curses problem with Wine

Hmmm....   thanks for giving us that information.  So I assume that you are using x86_64 and the bin32-wine package?   You probably need something like a bin32-ncurses then.

Offline

#17 2009-06-24 07:40:23

FrozenFox
Member
From: College Station, TX
Registered: 2008-03-23
Posts: 422
Website

Re: Curses problem with Wine

KViiri wrote:

Nope, no wine there.

I downloaded the package from the AUR, that does the same trick doesn't it?

If you're on i686, it's there or you did something wrong.

EDIT: Don't bother reading below yet. Try what Allan said first. I doubt that will be the case however, because of the curses "missing at configuration time" error. If that doesn't work as I expect, then you might need to compile with a curses flag of some kind as he originally suggested, which you would be able to do with the following.

If you're on x86_64, bin32-wine from AUR you will notice just takes the arch binary for i686 wine and throws in some extra lib32- dependencies and does some other minor stuff to it. Seeing as it's "bin32", you can't compile it with the given flags, it's already a compiled binary. To answer your question though: Yes, it would be pretty much the same thing, except ABS is used for retrieving official Arch stuff while AUR contains unofficial stuff posted by the community. Both are turned into Arch binaries via makepkg as described in the link I previously posted. Wine is officially supported on i686, but not on x86_64 afaik.

You could presumably compile 32 bit wine from a 32 bit chroot or 32 bit install and throw in the configure flags given by Allan. Then, you would plug that into the existing bin32-wine pkgbuild; you'd effectively chain-build.

IE: In a 32 bit chroot or installation,
1) grab the Wine source from ABS
2) edit it with the desired configure flags
3) compile that with makepkg (you might want to install this to test curses support before #4 if on a 32b install!)
4) grab bin32-wine from AUR
5) plug the binary from #3 into the bin32-wine pkgbuild (unchanged) as the source (comment out the md5sum if there)
.. The resulting binary from THAT would be what you want, to transfer to your 64 bit install, for usual installation with pacman -U.

This would undoubtedly be a pain in the ass, and a little complicated, so I don't know if it's really worth the effort. If you want to though, there's a guide for setting up a 32 bit chroot in the wiki, OR you can just install normal 32 bit to another partition. Either way, you'd do so and then continue as previously mentioned.

Last edited by FrozenFox (2009-06-24 08:04:47)

Offline

#18 2009-06-24 11:56:13

KViiri
Member
Registered: 2009-06-10
Posts: 32

Re: Curses problem with Wine

I have installed only the one vesion of ncurses that pacman offers and haven't found any others. Damn this is challenging.

EDIT:

It seems that Wine isn't the only one with no access to Ncurses. I tried compiling another Curses program from source, and spotted these lines from the output:

checking ncursesw/ncurses.h usability... no
checking ncursesw/ncurses.h presence... no
checking for ncursesw/ncurses.h... no

Last edited by KViiri (2009-06-24 12:55:35)

Offline

#19 2009-06-24 14:18:18

FrozenFox
Member
From: College Station, TX
Registered: 2008-03-23
Posts: 422
Website

Re: Curses problem with Wine

lib32-ncurses is the 32 bit package for ncurses, apparently. Install that and see if you have any luck.

As for that output, there might be configure flags for ncurses for that too, but I don't know.

Last edited by FrozenFox (2009-06-24 14:19:21)

Offline

#20 2009-06-24 14:28:31

KViiri
Member
Registered: 2009-06-10
Posts: 32

Re: Curses problem with Wine

Thank you very much, I'll try that out.

EDIT:

I have installed the Ncurses, now I'm building Wine. Do I have to add the ./configure code somewhere specific or will the end of the PKGBUILD file do?

Last edited by KViiri (2009-06-24 14:34:41)

Offline

#21 2009-06-24 17:32:53

FrozenFox
Member
From: College Station, TX
Registered: 2008-03-23
Posts: 422
Website

Re: Curses problem with Wine

KViiri wrote:

Thank you very much, I'll try that out.

EDIT:

I have installed the Ncurses, now I'm building Wine. Do I have to add the ./configure code somewhere specific or will the end of the PKGBUILD file do?

I take it just installing lib32-ncurses and checking if wine worked with curses didn't make it run correctly then?

Also, ./configure is *already* in the 32 bit wine pkgbuild. Please re-read my last big post carefully (#17) and you should understand what to do. You should be putting the extra configure flags into the original 32 bit wine pkgbuild taken from ABS, not the bin32-wine (64 bit package which wraps 32 bit wine) one taken from AUR. Adding it to the end of either pkgbuild would not do; you need to put it in the proper place.

Most programs on linux are compiled this way:

./configure
make
(as root or sudo) make install

The PKGBUILD is a build script to create an Arch package.. it will do something along the above lines for most (but not all) packages, but export it into a contained folder (pkgdir) to be packaged instead of installing to the actual system with the 'make install' part, plus anything else that needs to be done to make it work properly or inform the system/user about stuff.

Adding the configure stuff to the end of the pkgbuild would be comparable to taking ingredients for cake mix, putting them directly into the oven, taking them out after 20 minutes, and THEN trying to mix them together to make batter while stirring in frosting wink .

./season
bake
chef bake consume, anyone?

Last edited by FrozenFox (2009-06-24 17:40:48)

Offline

#22 2009-06-24 18:56:32

KViiri
Member
Registered: 2009-06-10
Posts: 32

Re: Curses problem with Wine

Abs doesn't have wine, so I'm forced to use the AUR package.

Offline

#23 2009-06-24 21:53:28

FrozenFox
Member
From: College Station, TX
Registered: 2008-03-23
Posts: 422
Website

Re: Curses problem with Wine

Sigh.

Okay, tell me this then. Are you on 64 bit?

Last edited by FrozenFox (2009-06-24 23:05:08)

Offline

#24 2009-06-25 08:45:49

KViiri
Member
Registered: 2009-06-10
Posts: 32

Re: Curses problem with Wine

As far as I know yes.

EDIT:

According to the Arch Linux wiki the 64-bit compatible Wine is coming, so maybe it's best just to wait for it?

Last edited by KViiri (2009-06-25 09:55:08)

Offline

#25 2009-06-25 11:18:29

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Curses problem with Wine

KViiri wrote:

As far as I know yes.

EDIT:

According to the Arch Linux wiki the 64-bit compatible Wine is coming, so maybe it's best just to wait for it?

64-bit wine will only run 64-bit applications. Is that what you want?


neutral

Offline

Board footer

Powered by FluxBB