I had earliler experienced some problems with my Mandrake 9.1 installation of
wine, when trying to use the wine libraries.
I have now done the following:
installed wine-20031016-mdk.i586.rpm
My binary programs seemed to run fine, (except for a font problem described in
a separate post).
Since the development tools, winemaker etc were present, I decided to try to
build my application. This proceeded well beyond where I could get to earlier
(wrc failed), but ended as follows:
-------------------------------------------------------------------------------------------------------
[parz@h24-79-72-61 MyWin]$ make
c++ -c -I. -I/usr/local/include/python2.3 -I/usr/include/wine/windows -g -O2
-fpermissive -fno-for-scope -D_REENTRANT -o MyWin.o MyWin.cpp
In file included from /usr/local/include/python2.3/Python.h:8,
from MyWin.cpp:4:
/usr/local/include/python2.3/pyconfig.h:847:1: warning: "_POSIX_C_SOURCE"
redefined
In file included from /usr/include/ctype.h:27,
from /usr/include/wine/windows/winnt.h:27,
from /usr/include/wine/windows/windef.h:203,
from /usr/include/wine/windows/windows.h:38,
from MyWin.cpp:2:
/usr/include/features.h:131:1: warning: this is the location of the previous
definition
LD_LIBRARY_PATH="/usr/lib:$LD_LIBRARY_PATH" /usr/bin/winebuild -fPIC -o
mywin.dll.spec.c --spec mywin.dll.spec MyWin.res MyWin.o -L/usr/lib
-L/usr/lib/wine -ladvapi32 -lcomdlg32 -lgdi32 -lkernel32 -lodbc32 -lole32
-loleaut32 -lshell32 -luser32 -lwinspool
mywin.dll.spec:1: could not open .def file for advapi32
make: *** [mywin.dll.spec.c] Error 1
-------------------------------------------------------------------------------------------------------
So I assumed that the missing library specs were a part of the wine-devel
package, which was not installed. I could not locate any wine-devel rpms for
version 20031016 and Mandrake. So, I dowmloaded the 20031016 source tarball
and installed it with the tools/install. This seemd to work well, except that
at the end of the , the following complaint appears:
-------------------------------------------------------------------------------------------------
mkdir -m 755 -p -- /usr/local/share/aclocal
/usr//bin/install -c -m 644 ./aclocal.m4 /usr/local/share/aclocal/wine.m4
/sbin/ldconfig
*************************************************
*************************************************
The installed Wine libraries will not be found!
You can either:
Add the line '/usr/local/lib' to /etc/ld.so.conf and run /sbin/ldconfig
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
*************************************************
*************************************************
Found existing /home/parz/.wine/config, do you want to overwrite this
existing Wine configuration file?
(yes/no) no
Installation complete for now. Good luck (this is still alpha software).
If you have problems with WINE, please read the documentation first,
as many kinds of potential problems are explained there.
[parz@h24-79-72-61 wine-20031016]$
-----------------------------------------------------------------------------------------------
However, inspecting /etc/ld.so.conf shows that the complained-about path *is*
actually present:
[parz@h24-79-72-61 MyWin]$ cat /etc/ld.so.conf
/usr/X11R6/lib
/usr/lib/qt3/lib
/usr/local/lib
[parz@h24-79-72-61 MyWin]$
So, I tried to build my winelib dll anyways:
--------------------------------------------------------------------------------------------
[parz@h24-79-72-61 Emsview]$ echo $LD_LIBRARY_PATH
[parz@h24-79-72-61 Emsview]$ /sbin/ldconfig
/sbin/ldconfig: Can't create temporary cache file /etc/ld.so.cache~:
Permission denied
[parz@h24-79-72-61 Emsview]$ su
Password:
[root@h24-79-72-61 Emsview]# ldconfig
[root@h24-79-72-61 Emsview]# exit
exit
[parz@h24-79-72-61 Emsview]$ cd MyWin
[parz@h24-79-72-61 MyWin]$ make
LD_LIBRARY_PATH="/usr/lib:$LD_LIBRARY_PATH" /usr/bin/winebuild -fPIC -o
mywin.dll.spec.c --spec mywin.dll.spec MyWin.res MyWin.o -L/usr/lib
-L/usr/lib/wine -ladvapi32 -lcomdlg32 -lgdi32 -lkernel32 -lodbc32 -lole32
-loleaut32 -lshell32 -luser32 -lwinspool
/bin/sh: line 1: /usr/bin/winebuild: No such file or directory
make: *** [mywin.dll.spec.c] Error 127
[parz@h24-79-72-61 MyWin]$
----------------------------------------------------------------------------------------------
So, with the homebuilt wine-20031016, it seems that the development tools are
not installed, and I am stuck. How do I get past these problems?
--
Parzival Herzog