Fail with copied compiled Wine from another computer

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
thomthomthom
Newbie
Newbie
Posts: 4
Joined: Thu Jun 09, 2016 7:55 pm

Fail with copied compiled Wine from another computer

Post by thomthomthom »

I've compiled Wine in a computer (let's call it "A") with the following commands:

Code: Select all

./configure --prefix="/tmp/winec" --without-alsa --without-capi --without-cms --without-coreaudio --without-cups --without-curses --without-dbus --without-fontconfig --without-freetype --without-gettext --with-gettextpo --without-gphoto --without-glu --without-gnutls --without-gsm --without-gstreamer --without-hal --without-jpeg --without-ldap --without-mpg123 --without-netapi --without-openal --without-opencl --without-opengl --without-osmesa --without-oss --without-pcap --without-png --without-pulse --without-sane --without-tiff --without-v4l --without-xcomposite --without-xcursor --without-xinerama --without-xinput --without-xinput2 --without-xml --without-xrandr --without-xrender --without-xshape --without-xshm --without-xslt --without-xxf86vm --without-zlib; make -j $(nproc); make install;
It works fine in computer A:

Code: Select all

$ /tmp/winec/bin/wine --version
wine-1.9.9-118-ge1970c8
Now i copied the compiled wine in "A" to the computer "B", in the "/home/user/somewhere/winec" directory. Notice that it's a different directory from the compiled --prefix in "A".

But it does not work. It's complains about missing files:
wine: failed to initialize:/tmp/winec/lib/wine/ntdll.dll.so: cannot open shared object file: No such file or directory
Notice it's complaining about the --prefix path in "A". All files presents in "A" are present in "B".

How do I use this compiled Wine from "A" computer in "B" computer? I don't want to compile it again in "B".

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

Re: Fail with copied compiled Wine from another computer

Post by dimesio »

The obvious thing to try would be to install it to the correct directory in the second machine. The proper way would be to package your build, and install the package on the second machine.

You could also try copying the whole build directory from the first machine to the second and run it from there, without installing it.
thomthomthom
Newbie
Newbie
Posts: 4
Joined: Thu Jun 09, 2016 7:55 pm

Re: Fail with copied compiled Wine from another computer

Post by thomthomthom »

What do you mean by "packaging"? Creating a ".deb" or ".rpm" ? If so, it's is not a possibility, unfortunately.

Copying the whole build directory and run what command from there? make install?

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

Re: Fail with copied compiled Wine from another computer

Post by dimesio »

thomthomthom wrote:What do you mean by "packaging"? Creating a ".deb" or ".rpm" ?
Yes.
Copying the whole build directory and run what command from there?
Run the wine command from there.
thomthomthom
Newbie
Newbie
Posts: 4
Joined: Thu Jun 09, 2016 7:55 pm

Re: Fail with copied compiled Wine from another computer

Post by thomthomthom »

dimesio, I've compiled with the following steps and it works great:

Code: Select all

cd ~/Downloads/wine-1.9.12;
sh configure --disable-tests --prefix='/var/lib/openshift/5761ccb80c1e66f62d0000b7/app-root/runtime/repo/bin/wine/'
make -j $(nproc)
make install DESTDIR='~/Downloads/wine-1.9.12-compiled';
Thank you very much!
Locked