This shows you the differences between two versions of the page.
|
crules [2010/03/14 05:19] redbrain |
crules [2010/03/14 05:23] (current) redbrain |
||
|---|---|---|---|
| Line 131: | Line 131: | ||
| === Windows (7) + MSVC 9.0/nmake === | === Windows (7) + MSVC 9.0/nmake === | ||
| + | |||
| + | When installing the GNU win32 dependancies _don't_ install to "C:\Program Files", | ||
| + | currently m4 has issues with paths with files and folders with spaces in their name, | ||
| + | which is lame. | ||
| <code> | <code> | ||
| Line 137: | Line 141: | ||
| * http://gnuwin32.sourceforge.net/packages/bison.htm | * http://gnuwin32.sourceforge.net/packages/bison.htm | ||
| * http://gnuwin32.sourceforge.net/packages/flex.htm | * http://gnuwin32.sourceforge.net/packages/flex.htm | ||
| - | # add the C:\Program Files\gnuwin32\bin to your system PATH | + | # add the C:\gnuwin32\bin to your system PATH |
| # test this by opening a command prompt | # test this by opening a command prompt | ||
| $ bison.exe ... | $ bison.exe ... | ||
| Line 149: | Line 153: | ||
| $ cmake . | $ cmake . | ||
| $ nmake | $ nmake | ||
| - | * for Visual Studio | ||
| - | $ cmake -G <generator-string> . # see cmake --help for the correct generator string | ||
| - | $ open the workspace file | ||
| </code> | </code> | ||
| - | === NOTE (Windows only) === | + | Most win32 hackers will prefer to use Visual Studio but remember using nmake in, |
| + | the shell works easier for Emacs/Vim users. To use Visual Studio, download the | ||
| + | Visual Studio C++ Express Edition and simply run cmake slightly differently and | ||
| + | you will have a project/workspace file visual studio can open. | ||
| + | |||
| + | <code> | ||
| + | $ cmake -G <generator-string> | ||
| + | # see cmake --help for the correct generator string | ||
| + | # for your visual studio version | ||
| + | </code> | ||
| - | I need more time to fix up the windows builds using m4.exe on windows doesn't seem to like the | + | Happy Win32 Hacking there are currently some problems using stdint.h but these are soon to be fixed! |
| - | windows style paths and flex and generating the lexer and parser seems to fail. I have only tested | + | |
| - | this on Windows 7 so far also but there shouldn't be a problem on other win32. If your using cygwin | + | |
| - | it would be prefered to using GCC/mingw and autoconf see README follow those build instructions. | + | |