forked from xLightsSequencer/xLights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.windows
79 lines (61 loc) · 3.6 KB
/
README.windows
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
xLights/Nutcracker Version 3.x Windows build instructions
------------------------------------------------------------------------------
xLights/Nutcracker can be built and run on Linux, Mac OS/X, or Windows. This
document describes how **developers** should set up their tool chain to build
xLights/Nutcracker on Windows.
If you are a Windows user, installation packages are available at
http://www.nutcracker123.com/nutcracker/releases/
xLights/Nutcracker is written in C++ and uses the wxWidgets library as a
compatibility layer across operating systems. The minimum required version
of wxWidgets for xLights/Nutcracker is 2.9.4. Precompiled Windows binaries
can be downloaded from
http://sourceforge.net/projects/wxwindows/files/2.9.4/binaries/
Here are the steps to compile xLights/Nutcracker for Windows.
a) Install Code::Blocks for Windows
Version 10.05 can be used to compile xLights, but it will not work
for changing the visual layout. I strongly recommend using one of the
daily builds. I am using SVN 8484 which is discussed here:
http://forums.codeblocks.org/index.php/topic,17019.0.html
Important points from this thread:
If you already have codeblocks 10.05 and/or the mingw compiler installed
on your system they should be removed/uninstalled.
Download the following items:
wxWidget dll for Code::Blocks http://prdownload.berlios.de/codeblocks/wxmsw28u_gcc_cb_wx2812_gcc471-TDM.7z
the mingw10m.dll http://prdownload.berlios.de/codeblocks/mingwm10_gcc471-TDM.7z
the 28 October 2012 build of codeblocks http://prdownload.berlios.de/codeblocks/CB_20121028_rev8484_win32.7z
Unzip codeblocks, the wxWidget dll, and the mingwm10 dll to the same folder.
Do not reuse any other folder, create a new folder and put the files from
all three archives into that new folder.
Get the mingw compiler here: http://tdm-gcc.tdragon.net/
and extract it so that the path to it is C:\mingw
Then run the codeblocks exe in the folder you created.
From the menu, select Settings -> Compiler -> Toolchain executables
Set the path to C:\mingw\bin
And then click "auto-detect" You may have to exit codeblocks and
restart it before auto detect works correctly.
c) wxWidgets for Windows (currently using version 2.9.4)
Download the version with the Windows installer from here:
http://www.wxwidgets.org/downloads/
The installer only puts the wxWidgets source code on your system, you will need
to compile it yourself to create the dll. To compile it yourself:
1) Open a command prompt
2) cd to the build\msw directory under your wxWidgets base directory
3) run: mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=debug
4) run: mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release
d) In Code::Blocks:
1) select Settings > Compiler & Debugger
2) click Search Directories tab
3) Under Compiler sub-tab should be:
$(#wx)\include
$(#wx)\contrib\include
4) Under Linker sub-tab should be:
$(#wx)\lib\gcc_dll
5) Make sure "wx" is defined under Settings > Global Variables
as described in the Code::Blocks documentation. It should be
set to your wxWidgets base directory.
e) Now you are ready to use Code::Blocks to build xLights
by double-clicking on the cbp file in the version2/xLights directory.
Windows Installer
We use Inno Setup to create the setup.exe for xLights/Nutcracker
http://www.jrsoftware.org/isinfo.php
You will find a xLights.iss file that is used to create the release setup.exe