← Back to team overview

kicad-developers team mailing list archive

Re: Compiling under Windows

 

2006/4/6, wmb314 <wmb@...>:
>
> I had to change the makefiles to get it to compile correctly under
> Windows. See message number 80 in this group.
>
> The cause of the problem is described in message 79, but the correct
> fix is in Message 80.
>
>
> Thank you for your answer, but it is not enough to resolve the problem of
my incompetence.

1) Are either patches in the message #80 and #79 have to be applied ?

2) In which folder do you have installed the wxWidgets, (My self I have that
in c:\wxWidget2-2.6.3, c:\mingw, c:\msys, msys release is 1.0.10) ?

3) What about libs.win definitions ?

Extract of my libs.win
-------------------------------------------------------------------------------------------
#binaries path:
KICAD_BIN = /c/kicad/winexe

#Define the wxWidget path:
ifndef WXWIN
WXWIN=/c/wxWidgets-2.6.3
endif
WXLIBVERSION = -2.6
#define/undef the unicode prefix
UNICODELIB = u

#comment this for static wxWidgets link
#WXUSINGDLL = 1

SRCSUFF = .cpp
OBJSUFF = .o

FINAL = 1

#setup.h is in "$(WXWIN)/lib/wx/include/msw-unicode-release-static-2.6/wx/"
#ALL_CPPFLAGS +=
-I$(WXWIN)/lib/wx/include/msw-unicode-release-static$(WXLIBVERSION)/wx
#ALL_CPPFLAGS += -I$(WXWIN)/include/wx
EXTRACPPFLAGS += -I$(WXWIN)/include/wx

EDACPPFLAGS = $(EXTRACPPFLAGS) $(ALL_CXXFLAGS)

EDALIBS = $(EXTRALIBS)

# Attention: l'ordre des librairies semble avoir de l'importance
#Warning: Library order seems important
WXLIB_BASE = -L$(WXWIN)/lib --subsystem,windows -mwindows\
-lwx_msw$(UNICODELIB)$(WXLIBVERSION) -lwxexpat$(WXLIBVERSION)\
-lwxpng$(WXLIBVERSION) -lwxjpeg$(WXLIBVERSION)\
-lwxzlib$(WXLIBVERSION)

SYSWXLIB = -mthreads $(WXLIB_BASE)\
-lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm\
-lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32\
-lwsock32 -lgdi32

LIBS3D = -lwx_msw$(UNICODELIB)_gl$(WXLIBVERSION) /mingw/lib/libglu32.a
-lopengl32

TIA

--
Danilo Uccelli
CH-2400 Le Locle
danucc@...
 ------=_Part_10662_9626960.1144313741802 Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

2006/4/6, wmb314 &lt;<a href="mailto:wmb@...";>wmb@...</a>&gt;:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I had to change the makefiles to get it to compile correctly under<br>Windows.&nbsp;&nbsp;See message number 80 in this group.<br><br>The cause of theproblem is described in message 79, but the correct<br>fix is in Message 80.<br>
<br><br></blockquote></div>Thank you for your answer, but it is not enough to resolve the problem of my incompetence.<br><br>1) Are either patches in the message #80 and #79 have to be applied ?<br><br>2) In which folder do you have installed the wxWidgets, (My self I have that in c:\wxWidget2-
2.6.3, c:\mingw, c:\msys, msys release is 1.0.10) ?<br><br>3) What about libs.win definitions ?<br><br>Extract of my libs.win<br>-------------------------------------------------------------------------------------------<br>
#binaries path:<br>KICAD_BIN = /c/kicad/winexe<br><br>#Define the wxWidget path:<br>ifndef WXWIN<br>WXWIN=/c/wxWidgets-2.6.3<br>endif<br>WXLIBVERSION = -2.6<br>#define/undef the unicode prefix<br>UNICODELIB = u<br><br><br>
#comment this for static wxWidgets link<br>#WXUSINGDLL = 1<br><br>SRCSUFF= .cpp<br>OBJSUFF = .o<br><br>FINAL = 1<br><br>#setup.h is in &quot;$(WXWIN)/lib/wx/include/msw-unicode-release-static-2.6/wx/&quot;<br>#ALL_CPPFLAGS += -I$(WXWIN)/lib/wx/include/msw-unicode-release-static$(WXLIBVERSION)/wx
<br>#ALL_CPPFLAGS += -I$(WXWIN)/include/wx<br>EXTRACPPFLAGS += -I$(WXWIN)/include/wx<br><br>EDACPPFLAGS = $(EXTRACPPFLAGS) $(ALL_CXXFLAGS)<br><br>EDALIBS = $(EXTRALIBS)<br><br># Attention: l'ordre des librairies semble avoir de l'importance
<br>#Warning: Library order seems important<br>WXLIB_BASE = -L$(WXWIN)/lib --subsystem,windows -mwindows\<br>&nbsp;&nbsp;&nbsp; -lwx_msw$(UNICODELIB)$(WXLIBVERSION) -lwxexpat$(WXLIBVERSION)\<br>&nbsp;&nbsp;&nbsp; -lwxpng$(WXLIBVERSION) -lwxjpeg$(WXLIBVERSION)\
<br>&nbsp;&nbsp;&nbsp; -lwxzlib$(WXLIBVERSION)<br><br>SYSWXLIB =&nbsp; -mthreads $(WXLIB_BASE)\<br>&nbsp;&nbsp;&nbsp; -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm\<br>&nbsp;&nbsp;&nbsp; -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32\<br>&nbsp;&nbsp;&nbsp; -lwsock32 -lgdi32
<br><br>LIBS3D = -lwx_msw$(UNICODELIB)_gl$(WXLIBVERSION) /mingw/lib/libglu32.a -lopengl32<br><br clear="all">TIA<br><br>-- <br>Danilo Uccelli<br>CH-2400 Le Locle<br><a href="mailto:danucc@...";>danucc@...</a>
 ------=_Part_10662_9626960.1144313741802--