kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #00088
Windows compilation
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
Mitch Bradley <wmb@...>
-
Date:
Thu, 06 Apr 2006 08:15:37 -1000
-
User-agent:
Thunderbird 1.5 (Windows/20051201)
Here's what I did. I made some missteps along the way, but these are
the successful steps:
a) Installed msys at C:\msys
b) Installed various mingw components at C:\msys\1.0\mingw
c) Unpacked kicad-sources at C:\kicad-dev
d) Unpacked wxwidgets sources at C:\wxWidgets-2.6.3\
e) Compiled wxWidgets with:
cd /c/wxWidgets-2.6.3
sh /c/kicad-dev/mybuild_wxWidgets_windows.txt
make
make install
j) In
c:/msys/1.0/local/lib/wx/include/msw-ansi-release-static-2.6/wx/setup.h
, checked
the #defines for WXWIN_COMPATIBILITY_2_4_0 , wxUSE_MOUSEWHEEL ,
wxUSE_HOTKEY , and wxUSE_GLCANVAS (see
kicad-dev/how-to-build-kicad.txt).
I don't remember whether or not I had to change any of them. My
best guess is that
they were already set to the correct values.
k) Edited C:/kicad-dev/libs.win:
Commented out the following lines (by adding # at the beginning):
UNICODELIB = u
SRCSUFF = cpp
OBJSUFF = o
Changed:
ALL_CPPFLAGS +=
-I$(WXWIN)/lib/wx/include/msw-unicode-release-static$(WXLIBVERSION)
to:
#EXTRACPPFLAGS +=
-I$(WXWIN)/lib/wx/include/msw-unicode-release-static$(WXLIBVERSION)
EXTRACPPFLAGS +=
-I$(WXWIN)/lib/wx/include/msw-ansi-release-static$(WXLIBVERSION)
I have not tried to compile the unicode version.
l) In the following files:
3d-viewer/makefile.include , common/makefile.include,
cvpcb/makefile.include ,
eeschema/makefile.include , gerbview/makefile.include,
kicad/makefile.include , pcbnew/makefile.include,
kicad/makefile.g95
Changed
EXTRACPPFLAGS=
to
EXTRACPPFLAGS +=
m) Built kicad with:
cd /c/kicad-dev
export WXWIN=/c/wxWidgets-2.6.3
make -f makefile.g95
Follow ups