MacOS X Build Help
"Michael S. Muegel" <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.wxnet |
|---|---|
| Message-ID | <[email protected]> |
I thought I saw some hints on MacOS X build but can't find them. According
to this screen shot someone has done it!
http://www.gnu.org/projects/dotgnu/screenshot14.html
Does anyone have any build instructions?
I've installed wxWidgets 2.5.1 via DarwinPorts. I've used premake to create
Makefiles. But one glitch is that the premake.lua files know about linix and
windows but not MacOS X. To get started I hard coded in "OS = "linux" into
the wx-c version.
I get warnings and errors right away. When compiling bitmap.cxx:
$ uname -a
Darwin Muegel-Mac-1.local 7.3.0 Darwin Kernel Version 7.3.0: Fri Mar 5
14:22:55 PST 2004; root:xnu/xnu-517.3.15.obj~4/RELEASE_PPC Power Macintosh
powerpc
$ wx-config --cxxflags
-I/usr/local/dports/lib/wx/include/mac-2.5 -I/usr/local/dports/include -D__W
XMAC__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWX_PRECOMP -DNO_GCC_PRAGMA
$ make
==== Building wx-c ====
if [ ! -d obj ]; then mkdir obj; fi
bitmap.cxx
g++ -fPIC `wx-config --cxxflags` -W -Wall -ansi -pedantic -D "WXMAKINGDLL"
`wx-config --cxxflags` -W -Wall -ansi -pedantic -MD -o obj/bitmap.o -c
bitmap.cxx
In file included from /usr/local/dports/include/wx/wx.h:15,
from bitmap.cxx:13:
/usr/local/dports/include/wx/defs.h:801: warning: ISO C++ does not support
`long long'
/usr/local/dports/include/wx/defs.h:802: warning: ISO C++ does not support
`long long'
In file included from /usr/local/dports/include/wx/utils.h:38,
from /usr/local/dports/include/wx/cursor.h:22,
from /usr/local/dports/include/wx/event.h:32,
from /usr/local/dports/include/wx/wx.h:23,
from bitmap.cxx:13:
/usr/local/dports/include/wx/longlong.h:110: warning: ISO C++ does not
support
`long long'
/usr/local/dports/include/wx/longlong.h:126: warning: ISO C++ does not
support
`long long'
/usr/local/dports/include/wx/longlong.h:149: warning: ISO C++ does not
support
`long long'
/usr/local/dports/include/wx/longlong.h:172: warning: ISO C++ does not
support
`long long'
/usr/local/dports/include/wx/longlong.h:174: warning: ISO C++ does not
support
`long long'
/usr/local/dports/include/wx/longlong.h:196: warning: ISO C++ does not
support
`long long'
/usr/local/dports/include/wx/longlong.h:198: warning: ISO C++ does not
support
`long long'
/usr/local/dports/include/wx/longlong.h:301: warning: ISO C++ does not
support
`long long'
/usr/local/dports/include/wx/longlong.h: In constructor `
wxLongLongNative::wxLongLongNative(long int, long unsigned int)':
/usr/local/dports/include/wx/longlong.h:115: warning: ISO C++ does not
support
`long long'
/usr/local/dports/include/wx/longlong.h:116: warning: ISO C++ does not
support
`long long'
/usr/local/dports/include/wx/longlong.h: In member function
`wxLongLongNative&
wxLongLongNative::Assign(double)':
/usr/local/dports/include/wx/longlong.h:132: warning: ISO C++ does not
support
`long long'
/usr/local/dports/include/wx/longlong.h: At global scope:
/usr/local/dports/include/wx/longlong.h:312: warning: ISO C++ does not
support
`long long'
/usr/local/dports/include/wx/longlong.h:328: warning: ISO C++ does not
support
`long long'
/usr/local/dports/include/wx/longlong.h:341: warning: ISO C++ does not
support
`long long'
/usr/local/dports/include/wx/longlong.h:360: warning: ISO C++ does not
support
`long long'
/usr/local/dports/include/wx/longlong.h:362: warning: ISO C++ does not
support
`long long'
/usr/local/dports/include/wx/longlong.h:379: warning: ISO C++ does not
support
`long long'
/usr/local/dports/include/wx/longlong.h:381: warning: ISO C++ does not
support
`long long'
/usr/local/dports/include/wx/longlong.h:484: warning: ISO C++ does not
support
`long long'
/usr/local/dports/include/wx/longlong.h: In constructor `
wxULongLongNative::wxULongLongNative(long unsigned int, long unsigned
int)':
/usr/local/dports/include/wx/longlong.h:317: warning: ISO C++ does not
support
`long long'
/usr/local/dports/include/wx/longlong.h:318: warning: ISO C++ does not
support
`long long'
bitmap.cxx: In function `bool wxBitmap_LoadFile(wxBitmap*, const char*,
int)':
bitmap.cxx:84: error: no matching function for call to `wxBitmap::LoadFile(
wxString, int&)'
/usr/local/dports/include/wx/mac/bitmap.h:172: error: candidates are:
virtual
bool wxBitmap::LoadFile(const wxString&, wxBitmapType =
wxBITMAP_TYPE_BMP_RESOURCE) <near match>
make[1]: *** [obj/bitmap.o] Error 1
make: *** [wx-c] Error 2
I am C++ ignorant :-(.
Thanks for any help,
-Mike
--
Michael S. Muegel
Dallas, TX
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click