At 08:02 23/08/2001 -0400, [EMAIL PROTECTED] wrote:
Hi!
>Are instructions available for building the MySQL source tree on a Win32
>platform for a Win32 target?
Not yet. However here the basic steps.
Minimal Requirements:
- VC++ 6.0 compiler
- MySQL source distribution:
http://www.mysql.com/Downloads/MySQL-3.23/mysql-3.23.41-win-src.zip
Optional Requirements (recommended)
- The MS macro compiler 5.0 (masm.exe) or 6.x (ml.exe).
If you don't have either the Masm 5.x or Masm 6.x you
can obtain the last one from Microsoft according with
the instructions in the URL below:
http://msdn.microsoft.com/vstudio/sp/vs6sp5/faq.asp
Notice that you need to download the Service Package 4 or 5 and
the Macro Assembler Package.
Also after the update verify, if you need to set again the
environment paths for Visual Studio.
- Set the macro assembler in the environment path.
Building the MySQL Stuff
- Create a work directory (e.g.: workdir).
- Unpacked the source distribution in the above directory.
- Run the VC++ 6.0 compiler.
- Using the Menu File. Click on Open Workspace.
- Open the mysql.dsw Workspace that you find on the work directory.
- Preparing the strings.lib compilation
- If you don't have any macro assembler or you don't want to use it,
close the workspace, using the explorer go to \workdir\strings\NoMASM
directory and copy the strings.dsp and strings.dsw files and rewrite
the ones them on \workdir\strings directory. After this repeat the
steps before and go ahead.
- If you have the MASM 5.x, do nothing. Go ahead.
- If you have the MASM 6.x:
- Right click over the strings project and click Set as Active
Project.
- Right click again and click Settings.
- Open the strings tree.
- Click over the Strings.asm file and at right side click the
tab Custom Build.
In the windows Commands, change the line:
masm -Mx -t -DDOS386 -DM_I386
$(InputPath),$(Outdir)\$(InputName).obj,,,
by the below line:
ml /Cx /nologo /DDOS386 /DM_I386 /Zm /coff /c
/Fo $(Outdir)\$(InputName).obj $(InputPath)
- Do the same with the file Strxmov.asm.
- Change the assembler command for the Win32 debug and release
trees.
- Now from the Build menu, select the Set Active Configuration menu.
- Clicking over the screen select mysqld - Win32 Debug and click Ok.
- Press F7. To begin the build of the debug server and libs and some
client applications.
- When the compilation finish, copy the libs and the executables for
a separate directory.
- Compile the release versions that you want, in the same way.
- Create the directory for the MySQL stuff: e.g. c:\mysql
- From the workdir directory copy for the c:\mysql directory the
following directories:
- Data
- Docs
- Share
- Create the directory c:\mysql\bin and copy all the servers and
clients that you had compiled before.
- If you want create also the lib directory and copy the libs that
you had compiled before.
- Make a clean using the Visual Studio.
Only this.
Regards,
Miguel
>---------------------------------------------------------------------
>Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
>posting. To request this thread, e-mail [EMAIL PROTECTED]
>
>To unsubscribe, send a message to the address shown in the
>List-Unsubscribe header of this message. If you cannot see it,
>e-mail [EMAIL PROTECTED] instead.
--
For technical support contracts, goto https://order.mysql.com/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Miguel A. Solórzano <[EMAIL PROTECTED]>
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, FullTime Developer
/_/ /_/\_, /___/\___\_\___/ Mogi das Cruzes - Săo Paulo, Brazil
<___/ www.mysql.com
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php