• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Looking for WINE libraries: [...] not found

Lars007

Newbie
Lars@linux:~/Documents/Downloads/Webradio/xmms-winamp/xmms-winamp-0.4> ./configure
Looking for wine executable: /usr/bin/wine
Looking for WINE libraries: Looking for WINE include path: not found
xmms-winamp configuration aborted


wine und wine-devel sind beide installieren, winesetup wurde eben von mir noch einmal ausgeführt und fehlerfrei abgeschlossen, wine läuft soweit.

Wo sucht er nach den libraries bzw. wo müssen diese hin?
 

Dr. Glastonbury

Advanced Hacker
Hi,
also das "configure"-Script sucht die Stellen deines Systems ab, an denen es am ehesten diese libs vermutet. Am besten schaust du mal in dieses Script, ob da auch der Pfad drinnen ist, in denen die libs auch liegen.

Die libs müsstest du in der RPM von Wine finden (wenn man das RPM einmal anklixt und dann nicht auf "Mit Yast installieren..." sondern auf die Karteikarte "Dateien". Da stehen dann die Pfade in die die Dateien entpackt werden.

(Aber als Tip am Rande: Winamp kannste auch nur über Wine installieren - so wie ich das sehe willst du ja damit Radio hören.)
 
OP
L

Lars007

Newbie
Habe den Pfad im Script nun angpasst und nun folgendes Problem:

Lars@linux:~/Documents/Downloads/Webradio/xmms-winamp/xmms-winamp-0.4> ./configure
Looking for wine executable: /usr/bin/wine
Looking for WINE libraries: Looking for WINE include path: /usr/include/wine
Looking for winemine.exe.so: found, assuming WINE version > 200207xx
not found
xmms-winamp configuration aborted


Code:
[...]

NEWWINE=
NEWWINEDIR=
echo -n "Looking for winemine.exe.so: "
for i in /usr/lib /usr/local/lib /usr/X11R6/lib
do
	if test -e $i/wine/winemine.exe.so
	then
		echo found, assuming WINE version \> 200207xx
		NEWWINE=1
		NEWWINEDIR=$i/wine
	fi
done
if test -z "$NEWWINE"
then
	echo not found, assuming WINE version \< 200207xx
	NEWWINE=0
fi
		
rm -f $TMPFILE $TMPFILE.c
if test ! "$found" = 1
then
	echo not found
	echo xmms-winamp configuration aborted
	exit 2
fi

echo "WINAMPEXEPATH = $WINAMPEXEPATH" >config.mak
echo "WINEBINARY = $WINEBINARY" >>config.mak
echo "WINEINCLUDES = $WINEINCLUDES" >>config.mak
echo "LIBEXT = $LIBEXT" >>config.mak
echo "LIBPATH = $LIBPATH" >>config.mak
echo "NEWWINE = $NEWWINE" >>config.mak
echo "NEWWINEDIR = $NEWWINEDIR" >>config.mak
echo "xmms-winamp configured successfully"
 

Dr. Glastonbury

Advanced Hacker
Hi,
welche Wine-Version haste denn? Der will ja eine die neuer als 200207xx is. Wenn ich mir das recht gemerkt habe, dann ist das erste das Jahr und das zweite der Monat; also 7.2002 - evtl. musste mal die neuere Version draufspielen...

oder du musst auch hier den Pfad anpassen, solltest du das nicht schon getan haben.
 
OP
L

Lars007

Newbie
Ich habe 20040213, das sollte ausreichend sein.

Mir scheint, es mangelt mehr an
Code:
rm -f $TMPFILE $TMPFILE.c 
if test ! "$found" = 1 
then 
   echo not found 
   echo xmms-winamp configuration aborted 
   exit 2 
fi
Wenn ich die if-abfrage nämlich auskommentiere, läuft das Script mit Erfolgsmeldung durch.

Hier nocheinmal der ganze Code wegen den Variablen.
Code:
#!/bin/sh
TMPFILE=/tmp/xmmswinampconf.$$
rm -f config.mak
echo -n "Looking for wine executable: "
for i in /usr/lib/transgaming/bin /usr/local/bin /usr/bin /usr/X11R6/bin
do
	for j in wine
	do
		if test -x $i/$j
		then
			WINAMPEXEPATH=$i
			WINEBINARY=$i/$j
			echo $WINEBINARY
			break 2
		fi
	done
done
if test -z "$WINEBINARY"
then
	echo not found
	echo xmms-winamp configuration aborted
	exit 1
fi
echo -n "Looking for WINE libraries: "
cat >$TMPFILE.c <<EOT
int main(int argc, char** argv){}
EOT
for i in "" ".dll"
do
	for j in "" -L/usr/local/lib -L/usr/lib -L/usr/X11R6/lib
	do
		if gcc -o $TMPFILE $TMPFILE.c $j -lkernel32${i} 2>/dev/null >/dev/null
		then
			echo -n found
			LIBEXT="$i"
			LIBPATH="$j"
			found=1
			test -n "$LIBPATH" && echo -n " at $LIBPATH"
			test -n "$LIBEXT" && echo ", extension \"$LIBEXT\"" || echo ", no extension"
			break 2
		fi
	done
done

echo -n "Looking for WINE include path: "
for i in /usr/include /usr/local/include /usr/X11R6/include
do
	if test -e $i/wine/windows/windows.h
	then
		echo "$i/wine"
		WINEINCLUDES=$i/wine
	fi
done
if test -z "$WINEINCLUDES"
then
	echo "not found"
	echo xmms-winamp configuration aborted
	exit 2
fi

NEWWINE=
NEWWINEDIR=
echo -n "Looking for winemine.exe.so: "
for i in /usr/lib /usr/local/lib /usr/X11R6/lib
do
	if test -e $i/wine/winemine.exe.so
	then
		echo found, assuming WINE version \> 200207xx
		NEWWINE=1
		NEWWINEDIR=$i/wine
	fi
done
if test -z "$NEWWINE"
then
	echo not found, assuming WINE version \< 200207xx
	NEWWINE=0
fi
		
rm -f $TMPFILE $TMPFILE.c
if test ! "$found" = 1
then
	echo not found
	echo xmms-winamp configuration aborted
	exit 2
fi

echo "WINAMPEXEPATH = $WINAMPEXEPATH" >config.mak
echo "WINEBINARY = $WINEBINARY" >>config.mak
echo "WINEINCLUDES = $WINEINCLUDES" >>config.mak
echo "LIBEXT = $LIBEXT" >>config.mak
echo "LIBPATH = $LIBPATH" >>config.mak
echo "NEWWINE = $NEWWINE" >>config.mak
echo "NEWWINEDIR = $NEWWINEDIR" >>config.mak
echo "xmms-winamp configured successfully"
 

Dr. Glastonbury

Advanced Hacker
Das is allerdings interessant: die Variable $found taucht ja in der if-Abfrage zum ersten mal auf! Sprich theoretisch kann die ja garnicht 1 werden. Wobei ja meines Wissens nach durch die Kombination von ! $found ein Dateiname gemeint ist, der mit test abgefragt wird.

Leider kenn ich mich mit Scripten noch nicht wirklich gut aus, weshalb das alles nur sehr wage ist. Funktioniert das Installieren denn auch so, wenn das auskommentiert ist?
 
OP
L

Lars007

Newbie
configure mit auskommentierter Abfrage:
Code:
Lars@linux:~/Documents/Downloads/Webradio/xmms-winamp/xmms-winamp-0.4> ./configure
Looking for wine executable: /usr/bin/wine
Looking for WINE libraries: Looking for WINE include path: /usr/include/wine
Looking for winemine.exe.so: found, assuming WINE version > 200207xx
xmms-winamp configured successfully

Ausgabe make nach obigem configure.
Code:
Lars@linux:~/Documents/Downloads/Webradio/xmms-winamp/xmms-winamp-0.4> make
cc -O2 -Wall -fPIC -DWINAMPEXEPATH=\"/usr/bin\" -D_REENTRANT -DWINELIB -I/usr/include/wine -I/usr/X11R6/include -I/opt/gnome/include -I/opt/gnome/include/gtk-1.2 -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include -I/usr/X11R6/include   -c -o winamp.o winamp.c
winamp.c:19:21: windows.h: Datei oder Verzeichnis nicht gefunden
In file included from winamp.c:20:
vis.h:15: error: parse error before "HWND"
vis.h:15: warning: no semicolon at end of struct or union
vis.h:16: warning: type defaults to `int' in declaration of `hDllInstance'
vis.h:16: warning: data definition has no type or storage class
vis.h:35: error: parse error before '}' token
vis.h:35: warning: type defaults to `int' in declaration of `winampVisModule'
vis.h:35: warning: data definition has no type or storage class
vis.h:40: error: parse error before "winampVisModule"
vis.h:40: warning: no semicolon at end of struct or union
vis.h:41: warning: type defaults to `int' in declaration of `winampVisHeader'
vis.h:41: warning: data definition has no type or storage class
vis.h:44: error: parse error before '*' token
vis.h:44: warning: type defaults to `int' in declaration of `winampVisGetHeaderType'
vis.h:44: warning: data definition has no type or storage class
winamp.c:26: error: parse error before "WinMain"
winamp.c:26: error: parse error before "eins"
winamp.c:27: warning: return type defaults to `int'
winamp.c: In function `WinMain':
winamp.c:28: error: `HINSTANCE' undeclared (first use in this function)
winamp.c:28: error: (Each undeclared identifier is reported only once
winamp.c:28: error: for each function it appears in.)
winamp.c:28: error: parse error before "dll"
winamp.c:29: error: `header' undeclared (first use in this function)
winamp.c:30: error: `module' undeclared (first use in this function)
winamp.c:40: error: parse error before "headerfunc"
winamp.c:45: warning: implicit declaration of function `strcmp'
winamp.c:58: error: `dll' undeclared (first use in this function)
winamp.c:58: warning: implicit declaration of function `LoadLibrary'
winamp.c:66: error: `headerfunc' undeclared (first use in this function)
winamp.c:66: error: parse error before "GetProcAddress"
winamp.c:68: error: `headerfunc' used prior to declaration
winamp.c:68: warning: implicit declaration of function `headerfunc'
winamp.c:106: error: `MSG' undeclared (first use in this function)
winamp.c:106: error: parse error before "msg"
winamp.c:109: warning: implicit declaration of function `memcpy'
winamp.c:122: warning: implicit declaration of function `PeekMessage'
winamp.c:122: error: `msg' undeclared (first use in this function)
winamp.c:122: error: `PM_REMOVE' undeclared (first use in this function)
winamp.c:123: error: `WM_QUIT' undeclared (first use in this function)
winamp.c:124: warning: implicit declaration of function `TranslateMessage'
winamp.c:125: warning: implicit declaration of function `DispatchMessage'
winamp.c:137: warning: implicit declaration of function `FreeLibrary'
make: *** [winamp.o] Fehler 1
 
Oben