jeffreyvergara.NET
December 14th, 2005, 02:21 PM
first all, I did not write this guide I just want to share you what I found.
things you need to compile wine:
apt-get install cvs build-essential bison flex-old libasound2-dev x-window-system-dev libpng12-dev libjpeg62-dev libfreetype6-dev libxrender-dev libttf2 libttf-dev msttcorefonts libfontconfig1-dev
Step 1
Download the Wine source code.
Edit the file dlls/wininet/internet.c
Search for the following:
BOOL WINAPI InternetReadFileExA(HINTERNET hFile, LPINTERNET_BUFFERSA lpBuffer,
DWORD dwFlags, DWORD dwContext)
{
FIXME("stub\n");
return FALSE;
}
Replace it with this:
BOOL WINAPI InternetReadFileExA(HINTERNET hFile, LPINTERNET_BUFFERSA lpBuffer,
DWORD dwFlags, DWORD dwContext)
{
return InternetReadFile(hFile, lpBuffer->lpvBuffer,
lpBuffer->dwBufferLength, & lpBuffer->dwBufferLength );
}
Its definately a hack - to get around the fact that the function isn't actually implemented... but it gets you to the login segment ( that is - it doesn't bomb out when tryin to get the dat files and stuff... )...
Next problem is actually getting the login request to send correctly... might look at that later tonight... if so then maybe there will be a step 2 up... and if so - will let ya know what step 3 is for fixing Wine...
Step 2
Edit the file dlls/wininet/internet.c
Search for the following:
client1 = HttpOpenRequestW(client, NULL, path, NULL, NULL, accept, dwFlags, dwContext);
replace it with the following:
WCHAR foobar;
strcpyW(foobar,urlComponents.lpszUrlPath);
strcpyW(foobar + urlComponents.dwUrlPathLength, urlComponents.lpszExtraInfo);
foobar[urlComponents.dwUrlPathLength + urlComponents.dwExtraInfoLength] = (WCHAR) 0;
client1 = HttpOpenRequestW(client, NULL, foobar, NULL, NULL, accept, dwFlags, dwContext);
Then do :
./configure
make depends
make
make install
If you get a strange message about missing or non-compatible X libraries then you're probably trying to build Wine on and AMD64 or Intel extended memory system... so do:
make clean
./configure --x-libraries=/usr/X11R6/lib
make depends
make
make install
That modified configure line should work... unless you have your X windows libs in a strange place... if so, then just change the directory to the appropriate one...
And NOW boys n girls... YOU can run Tantra on Linux
you'll get 20hrs free trial upon registering. www.tantra.ph (http://www.tantra.ph)
source: [url]http://forums.tantra.ph/index.php?showtopic=28321&hl=Linux&st=60#
things you need to compile wine:
apt-get install cvs build-essential bison flex-old libasound2-dev x-window-system-dev libpng12-dev libjpeg62-dev libfreetype6-dev libxrender-dev libttf2 libttf-dev msttcorefonts libfontconfig1-dev
Step 1
Download the Wine source code.
Edit the file dlls/wininet/internet.c
Search for the following:
BOOL WINAPI InternetReadFileExA(HINTERNET hFile, LPINTERNET_BUFFERSA lpBuffer,
DWORD dwFlags, DWORD dwContext)
{
FIXME("stub\n");
return FALSE;
}
Replace it with this:
BOOL WINAPI InternetReadFileExA(HINTERNET hFile, LPINTERNET_BUFFERSA lpBuffer,
DWORD dwFlags, DWORD dwContext)
{
return InternetReadFile(hFile, lpBuffer->lpvBuffer,
lpBuffer->dwBufferLength, & lpBuffer->dwBufferLength );
}
Its definately a hack - to get around the fact that the function isn't actually implemented... but it gets you to the login segment ( that is - it doesn't bomb out when tryin to get the dat files and stuff... )...
Next problem is actually getting the login request to send correctly... might look at that later tonight... if so then maybe there will be a step 2 up... and if so - will let ya know what step 3 is for fixing Wine...
Step 2
Edit the file dlls/wininet/internet.c
Search for the following:
client1 = HttpOpenRequestW(client, NULL, path, NULL, NULL, accept, dwFlags, dwContext);
replace it with the following:
WCHAR foobar;
strcpyW(foobar,urlComponents.lpszUrlPath);
strcpyW(foobar + urlComponents.dwUrlPathLength, urlComponents.lpszExtraInfo);
foobar[urlComponents.dwUrlPathLength + urlComponents.dwExtraInfoLength] = (WCHAR) 0;
client1 = HttpOpenRequestW(client, NULL, foobar, NULL, NULL, accept, dwFlags, dwContext);
Then do :
./configure
make depends
make
make install
If you get a strange message about missing or non-compatible X libraries then you're probably trying to build Wine on and AMD64 or Intel extended memory system... so do:
make clean
./configure --x-libraries=/usr/X11R6/lib
make depends
make
make install
That modified configure line should work... unless you have your X windows libs in a strange place... if so, then just change the directory to the appropriate one...
And NOW boys n girls... YOU can run Tantra on Linux
you'll get 20hrs free trial upon registering. www.tantra.ph (http://www.tantra.ph)
source: [url]http://forums.tantra.ph/index.php?showtopic=28321&hl=Linux&st=60#