OSX 10.6 Compiling Error

i building process for Mac

i have a MacBook Pro running OSX 10.6.4
i installed SDK 10.4,10.4u,10.5,10.6 and Xcode 3.2.4
i use WxMac 2.8.11

i follow step to Compile Audacity 13.1.12 beta “http://wiki.audacityteam.org/wiki/Developing_On_Mac
i create wx directory in my audacity directory “/Users/Ibos/audacity/wx”
i skip step 1.2 over and then i did the next step 1.3 by

./configure --disable-shared --enable-universal_binary --prefix=/Users/Ibos/audacity/wx --enable-static --enable-unicode 
--disable-dependency-tracking --disable-monolithic --enable-debug

until i found some error while i was doing in step 2 by Make command

“THIS ERROR”

gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -c -o wxregex_regcomp.o -D__WXMAC__   -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -I//Users/Ibos/audacity/wx/lib/wx/include/mac-unicode-debug-static-2.8 -I./include -fpascal-strings -I./src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon -Wall -Wundef -g -O0 -arch ppc -arch i386 -fno-common ./src/regex/regcomp.c
In file included from ./include/wx/wxchar.h:60,
                 from ./include/wx/debug.h:22,
                 from ./include/wx/defs.h:521,
                 from ./src/regex/regcustom.h:39,
                 from ./src/regex/regguts.h:38,
                 from ./src/regex/regcomp.c:33:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
In file included from ./src/regex/regcustom.h:39,
                 from ./src/regex/regguts.h:38,
                 from ./src/regex/regcomp.c:33:
./include/wx/defs.h:1015: error: conflicting types for ‘ssize_t’
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/string.h:70: error: previous declaration of ‘ssize_t’ was here
In file included from ./src/regex/regcomp.c:2179:
./src/regex/regc_locale.c: In function ‘element’:
./src/regex/regc_locale.c:706: warning: implicit declaration of function ‘wcslen’
./src/regex/regc_locale.c:706: warning: implicit declaration of function ‘wcsncmp’
In file included from ./include/wx/wxchar.h:60,
                 from ./include/wx/debug.h:22,
                 from ./include/wx/defs.h:521,
                 from ./src/regex/regcustom.h:39,
                 from ./src/regex/regguts.h:38,
                 from ./src/regex/regcomp.c:33:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
In file included from ./src/regex/regcustom.h:39,
                 from ./src/regex/regguts.h:38,
                 from ./src/regex/regcomp.c:33:
./include/wx/defs.h:1015: error: conflicting types for ‘ssize_t’
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/string.h:70: error: previous declaration of ‘ssize_t’ was here
In file included from ./src/regex/regcomp.c:2179:
./src/regex/regc_locale.c: In function ‘element’:
./src/regex/regc_locale.c:706: warning: implicit declaration of function ‘wcslen’
./src/regex/regc_locale.c:706: warning: implicit declaration of function ‘wcsncmp’
lipo: can't figure out the architecture type of: /var/folders/+h/+hxfEIaRGyucx6HqUNBqxU+++TI/-Tmp-//ccjnD8BR.out
make: *** [wxregex_regcomp.o] Error 1

i really need your help please let me know how to compelete this task and really thank to y’all.
i have to hand this project in the end of semester.

Thanks
Bos

Sorry I don’t know much about building on Mac, and it may be arbitrary if anyone who can help is available on this Forum at the moment.

There are a lot of tips in this thread:
https://forum.audacityteam.org/t/compiling-for-mac/7133/1

but your problem is obviously with building wxWidgets. Have you looked carefully at the Mac compile instructions that came with wxWidgets? In particular I wonder about the conflicting and older SDKs. I would try using only the 10.6 SDK unless you have a good reason otherwise.

If you don’t get any joy here, try on the Widgets forum:
http://wxforum.shadonet.com/

As a last resort you can subscribe to audacity-devel and ask there but they may expect you to have tried to fix the Widgets problem yourself first.

Good luck with it.



Gale

are you building Audacity with gcc 4.0? XCode may be using the system default, which is 4.2 on 10.6.

If you aren’t sure, go to the project settings and change the compiler to GCC 4.0.