• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

README.txtD23-Jun-20152.2 KiB6042

win_dkt.exeD23-Jun-201544.7 KiB

win_monitor.exeD23-Jun-2015234.6 KiB

README.txt

1This folder contains some tools from the Cafe tree which are built as
2part of the "normal" Cygwin / SDK build, but that leaves a dependency
3on the Cygwin1.dll kernel which will cause failures for folks who have
4not installed the Cygwin runtime.  Since CafeX is specifically targeted
5at such folks this dependency is unaccceptable.
6
7The tools can be built from source using the MinGW compiler as-is, but
8most people, including the SDK build lab, do not have MinGW installed.
9As such, these tools are built by hand when necessary by someone who
10does have this compiler installed on their personal workstation.  The
11build script for CafeX includes these prebuilt binaries as Windows
12resources and are deployed dynamically when needed.
13
14
15MinGW can be installed from www.mingw.org using the mingw-get application.
16
17    Once mingw-get is installed, run the following from the command line:
18
19    PATH=C:\MinGW\bin;%PATH%
20    mingw-get.exe install mingw32-base mingw32-gcc-g++ msys
21
22    Now the tools are installed to build both the tools.
23
24
25The tools in question are currently:
26
27    monitor.exe (from system/src/tool/monitor)
28    dkt.exe (from (from system/src/iop/tools/devkit_test)
29
30If changes are made to the source code for these tools, please contact
31paulke02@noa.nintendo.com so he can update these pre-built binary
32resources.
33
34If you have MinGW installed and would like to try building these tools
35yourself, they should build as-is.  Try
36
37    PATH=C:\MinGW\bin;%PATH%
38    cd %CAFE_ROOT%\system\src\tool\monitor
39    gcc.exe -O2 monitor.c -lwsock32 -static-libgcc -o win_monitor.exe
40    copy win_monitor.exe ..\cafex\Properties\binres
41
42    cd %CAFE_ROOT%\system\src\tools\devkit_test
43    g++ -O2 dkt_main.c dkt_socket_methods.c dkt_char_methods.c
44        dkt_block_methods.c -lwsock32 -static-libgcc -o win_dkt.exe
45
46If you have MinGW plus msys you can actually open a Cafe window with msys
47instead of Cygwin and make it a bit easier on yourself:
48
49    set PATH=C:\MinGW\bin;%PATH%
50    set CYGWIN_PATH=C:\MinGW\msys\1.0
51    cafe.bat
52    cd $CAFE_ROOT/system/src/tool/monitor
53    make
54    cd $CAFE_ROOT/system/src/iop/tools/devkit_test
55    make
56
57But, again, it's probably easiest on you to contact Paul for any updates.
58
59Thanks!
60