Compile under MAC OX X 10.8.2

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
zhanghongxin828
In need of some credit
In need of some credit
Posts: 2
Joined: Thu Jan 24, 2013 9:02 pm

Compile under MAC OX X 10.8.2

Post by zhanghongxin828 »

I'm trying install wxWidgets under my mac, it looks like I can pass the compile but when I trying make this file, the error "make: *** [baselib_appbase.o] Error 1" pops up. Could anybody tells me what happened?

In file included from ../include/wx/wxprec.h:13,
from ../src/common/appbase.cpp:21:
../include/wx/defs.h:771:10: error: #error "Unsupported Windows version"
In file included from ../include/wx/wxprec.h:45,
from ../src/common/appbase.cpp:21:
../include/wx/msw/wrapwin.h:51:21: warning: windows.h: No such file or directory
In file included from ../include/wx/wxprec.h:46,
from ../src/common/appbase.cpp:21:
../include/wx/msw/wrapcctl.h:39:22: warning: commctrl.h: No such file or directory
In file included from ../include/wx/utils.h:21,
from ../include/wx/wx.h:27,
from ../include/wx/wxprec.h:68,
from ../src/common/appbase.cpp:21:
../include/wx/filefn.h:62:24: warning: direct.h: No such file or directory
../include/wx/filefn.h:63:21: warning: dos.h: No such file or directory
../include/wx/filefn.h:64:20: warning: io.h: No such file or directory
In file included from ../include/wx/wxprec.h:13,
from ../src/common/appbase.cpp:21:
../include/wx/defs.h:824: error: ‘wxUint32’ does not name a type
In file included from ../include/wx/wxprec.h:46,
from ../src/common/appbase.cpp:21:
../include/wx/msw/wrapcctl.h:45: error: variable or field ‘wxSetCCUnicodeFormat’ declared void
../include/wx/msw/wrapcctl.h:45: error: ‘HWND’ was not declared in this scope
In file included from ../include/wx/msw/wrapcdlg.h:18,
from ../include/wx/wxprec.h:47,
from ../src/common/appbase.cpp:21:
../include/wx/msw/private.h:59: error: ‘HINSTANCE’ does not name a type
../include/wx/msw/private.h:74: error: ‘WNDPROC’ does not name a type
../include/wx/msw/private.h:145: error: ‘LONG’ does not name a type
../include/wx/msw/private.h:184: error: expected `)' before ‘handle’
../include/wx/msw/private.h:187: error: expected type-specifier before ‘HANDLE’
../include/wx/msw/private.h:192: error: ‘HANDLE’ does not name a type
../include/wx/msw/private.h: In member function ‘bool AutoHANDLE::IsOk() const’:
../include/wx/msw/private.h:186: error: ‘m_handle’ was not declared in this scope
../include/wx/msw/private.h:186: error: ‘INVALID_HANDLE_VALUE’ was not declared in this scope
../include/wx/msw/private.h: In destructor ‘AutoHANDLE::~AutoHANDLE()’:
../include/wx/msw/private.h:189: error: ‘::CloseHandle’ has not been declared
../include/wx/msw/private.h:189: error: ‘m_handle’ was not declared in this scope
../include/wx/msw/private.h: In constructor ‘WinStruct<T>::WinStruct()’:
../include/wx/msw/private.h:203: error: ‘::ZeroMemory’ has not been declared
../include/wx/msw/private.h: At global scope:
../include/wx/msw/private.h:767: error: ‘HINSTANCE’ does not name a type
../include/wx/msw/private.h:770: error: variable or field ‘wxSetInstance’ declared void
../include/wx/msw/private.h:770: error: ‘HINSTANCE’ was not declared in this scope
../include/wx/msw/private.h:773: error: ‘wxGetFullModuleName’ declared as an ‘inline’ variable
../include/wx/msw/private.h:773: error: ‘HMODULE’ was not declared in this scope
../include/wx/msw/private.h:774: error: expected ‘,’ or ‘;’ before ‘{’ token
In file included from /usr/include/dirent.h:65,
from ../include/wx/filefn.h:57,
from ../include/wx/utils.h:21,
from ../include/wx/wx.h:27,
from ../include/wx/wxprec.h:68,
from ../src/common/appbase.cpp:21:
/usr/include/sys/dirent.h:89: error: expected declaration before end of line
make: *** [baselib_appbase.o] Error 1
Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Re: Compile under MAC OX X 10.8.2

Post by Auria »

Please show the exact steps you are using to build; it appears for some reason you are trying to build the Windows version of wx on your mac
"Keyboard not detected. Press F1 to continue"
-- Windows
zhanghongxin828
In need of some credit
In need of some credit
Posts: 2
Joined: Thu Jan 24, 2013 9:02 pm

Re: Compile under MAC OX X 10.8.2

Post by zhanghongxin828 »

Auria wrote:Please show the exact steps you are using to build; it appears for some reason you are trying to build the Windows version of wx on your mac
I downloaded the wxWidgets-2.8.12 wxMac-2.8.12, and followed the steps showing in install-mac.txt, these steps are

# For Mac OS X 10.6 Snow Leopard or later, with a 64-bit processor, build the
# Carbon libraries like this
mkdir build-carbon-debug
cd build-carbon-debug
arch_flags="-arch i386"
../configure CFLAGS="$arch_flags" CXXFLAGS="$arch_flags" CPPFLAGS="$arch_flags" LDFLAGS="$arch_flags" OBJCFLAGS="$arch_flags" OBJCXXFLAGS="$arch_flags" --enable-unicode --enable-debug --disable-shared
make;cd ..
# Build the samples and demos
cd build-carbon-debug/samples;make;cd ../..
cd build-carbon-debug/demos; make;cd ../..
Post Reply