kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #00476
Mac OS Build issues + patch
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
"llamatronique" <llamatronique@...>
-
Date:
Sat, 18 Aug 2007 10:56:11 -0000
-
User-agent:
eGroups-EW/0.82
Hi all, I've just built latest svn against wx 2.4.6 and had some
issues. The attached patch includes changes to get it to build on
10.4.8 with latest developer tools.
netlist_form_pads-pcb.cpp required g++ as there are undefined symbols
at the link stage - also for some reason the __UNIX__ flag isn't
recognised, so I just added a __APPLE__ as well.
gestfich.cpp had a typo.
Cheers,
Simon
Index: eeschema/makefile.macosx
===================================================================
--- eeschema/makefile.macosx (revision 171)
+++ eeschema/makefile.macosx (working copy)
@@ -46,7 +46,7 @@
ln -f $(TARGET) $(TARGET).app/Contents/MacOS/$(TARGET)
netlist_form_pads-pcb: plugins/netlist_form_pads-pcb.cpp
- gcc $(CXXFLAGS) -Wall plugins/netlist_form_pads-pcb.cpp -o
netlist_form_pads-pcb
+ g++ $(CXXFLAGS) -Wall plugins/netlist_form_pads-pcb.cpp -o
netlist_form_pads-pcb
install: $(TARGET)
Index: eeschema/plugins/netlist_form_pads-pcb.cpp
===================================================================
--- eeschema/plugins/netlist_form_pads-pcb.cpp (revision 171)
+++ eeschema/plugins/netlist_form_pads-pcb.cpp (working copy)
@@ -14,6 +14,11 @@
#define strnicmp strncasecmp
#endif
+#ifdef __APPLE__
+#define stricmp strcasecmp
+#define strnicmp strncasecmp
+#endif
+
/* Pads-pcb sample:
*PADS-PCB*
*PART*
Index: common/gestfich.cpp
===================================================================
--- common/gestfich.cpp (revision 171)
+++ common/gestfich.cpp (working copy)
@@ -439,7 +439,7 @@
#ifdef __WXMAC__
// Mac part
wxGetEnv("HOME", &FullFileName);
- FullFileName += wxString("/bin/") + newExecFile;
+ FullFileName += wxString("/bin/") + ExecFile;
if (! wxFileExists(FullFileName) )
{
FullFileName = FindKicadFile(ExecFile);