Compiling For Mac

Building and customizing Audacity from the source code.

Re: Compiling For Mac

Permanent link to this post Posted by guitarguy91403 » Wed Nov 25, 2009 5:53 pm

Hi Paul

Mac OS X 10.5.8

Xcode Version 3.0

Thank you
Max respect
GuitarGuy91403
guitarguy91403
 
Posts: 10
Joined: Fri Nov 20, 2009 5:21 pm

Re: Compiling For Mac

Permanent link to this post Posted by plivesey » Wed Nov 25, 2009 7:08 pm

That's peculiar as it's almost exactly what my build machine is.

Are you quite sure that this is the first error that gets output?

Paul.
plivesey
 
Posts: 29
Joined: Thu Jan 03, 2008 1:19 pm

Re: Compiling For Mac

Permanent link to this post Posted by guitarguy91403 » Wed Nov 25, 2009 8:01 pm

Hi Paul,

I think it is the only error...
I'm attaching 2 screenshots -

The first is using Xcode 3.0: that returns the ImportQT.cpp error.

Then on another system, Xcode 3.1.3 seems to compile ImportQT.cpp fine, but it gets caught up in:

Code: Select all
/usr/local/lib/libwxexpat-2.8.a: No such file or directory
/usr/local/lib/libwxpng-2.8.a: No such file or directory


The above error is returned twice.

So here's what seems to be happening: my particular Xcode 3.0 fails on ImportQT.cpp.
my particular Xcode 3.1.3 fails on libwxexpat-2.8.a and libwxpng-2.8.a...

Thanks for your help!
Max respect,
GuitarGuy91403
Attachments
Xcode3_0.png
Xcode 3.0 ImportQT.cpp error
Xcode3_0.png (227.16 KiB) Viewed 2083 times
Xcode_3_1_3.png
Xcode 3.1.3 error
Xcode_3_1_3.png (156.73 KiB) Viewed 2079 times
guitarguy91403
 
Posts: 10
Joined: Fri Nov 20, 2009 5:21 pm

Re: Compiling For Mac

Permanent link to this post Posted by plivesey » Wed Nov 25, 2009 11:44 pm

Right, when you built wxMac did you add "--with-expat=builtin" to the configure line? You should have done, it helps.
Also, did you patch wxMac before building it? This is important for later.

Look in the wxMac install directory and check that the relevant libs were built and are there. libwxexpat-2.8.a for example should be present.

Building via Xcode gui is harder than the command line so for starters I suggest getting things to build from the command line.

Do this from within audacity/mac directory.

xcodebuild -target Audacity -configuration "Debug Static" WX_PREFIX=/location/wxMac/was/installed/in

configuration can be "Debug Static" "Release Static" "Debug shared" or "Release Shared" but should match an installed version of wxMac.
I do not advise the shared versions.

Try this and see where you get.

Paul.
plivesey
 
Posts: 29
Joined: Thu Jan 03, 2008 1:19 pm

Re: Compiling For Mac

Permanent link to this post Posted by guitarguy91403 » Thu Nov 26, 2009 12:29 am

plivesey wrote:Right, when you built wxMac did you add "--with-expat=builtin" to the configure line? You should have done, it helps.
Also, did you patch wxMac before building it? This is important for later.


Paul -
thank you for catching that - I did not add "--with-expat=builtin" to the configure line...

So I tried to configure it again with the following...

Code: Select all
../configure --prefix=/usr/local --with-macosx-sdk=/Developer/SDKs/MacOSX10.4u.sdk \
--with-macosx-version-min=10.4 --disable-compat26 --with-expat=builtin --with-zlib=builtin \
--with-regex=builtin --enable-universal_binary=yes --enable-unicode=yes \
--enable-static=yes --enable-shared=no --enable-debug=yes


it gets pretty far, but I ultimately get the error:

Code: Select all
  "wxAppConsole::CleanUp()", referenced from:
      vtable for XmlResAppin wxrc_wxrc.o
  "wxFFile::Write(void const*, unsigned long)", referenced from:
      wxFFile::Write(wxString const&, wxMBConv const&)in wxrc_wxrc.o
ld: symbol(s) not found for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/VM/VMbiJ4DrHtyXE2Piw7i0AE+++TI/-Tmp-//ccjYw27d.out (No such file or directory)
make[1]: *** [wxrc] Error 1
make: *** [wxrc] Error 2


Thanks again -
max respect
GuitarGuy91403
guitarguy91403
 
Posts: 10
Joined: Fri Nov 20, 2009 5:21 pm

Re: Compiling For Mac

Permanent link to this post Posted by plivesey » Thu Nov 26, 2009 12:41 am

Did you patch wxMac before trying to build it?

Paul.
plivesey
 
Posts: 29
Joined: Thu Jan 03, 2008 1:19 pm

Re: Compiling For Mac

Permanent link to this post Posted by plivesey » Thu Nov 26, 2009 12:53 am

You had enough disk space to build this, right?

Have seen similar errors when disk space ran out.

Paul.
plivesey
 
Posts: 29
Joined: Thu Jan 03, 2008 1:19 pm

Re: Compiling For Mac

Permanent link to this post Posted by plivesey » Thu Nov 26, 2009 1:15 am

Replying to myself again, I tried a clean build of wxMac-2.8.10 on an intel machine running 10.5.8 and Xcode 3.1.3 and it went without a hitch using your configure line, so I'm at a bit of a loss here.

Any more information is always useful.

Paul.
plivesey
 
Posts: 29
Joined: Thu Jan 03, 2008 1:19 pm

Re: Compiling For Mac

Permanent link to this post Posted by guitarguy91403 » Thu Nov 26, 2009 1:43 am

Hi Paul,

yep I'm stumped.
Alas, I restarted. I made sure I patched wxMac. Then I made sure my drive had plenty of space: 29.01GB.

I was able to run the configure line successfully:

Code: Select all
../configure --prefix=/usr/local --with-macosx-sdk=/Developer/SDKs/MacOSX10.4u.sdk \
--with-macosx-version-min=10.4 --disable-compat26 --with-expat=builtin --with-zlib=builtin \
--with-regex=builtin --enable-universal_binary=yes --enable-unicode=yes \
--enable-static=yes --enable-shared=no --enable-debug=yes



But when I ran the "make" command, I received:

Code: Select all
  "wxAppConsole::CleanUp()", referenced from:
      vtable for XmlResAppin wxrc_wxrc.o
  "wxFFile::Write(void const*, unsigned long)", referenced from:
      wxFFile::Write(wxString const&, wxMBConv const&)in wxrc_wxrc.o
ld: symbol(s) not found for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/VM/VMbiJ4DrHtyXE2Piw7i0AE+++TI/-Tmp-//ccZT2ATj.out (No such file or directory)
make[1]: *** [wxrc] Error 1
make: *** [wxrc] Error 2


I'm going to try a completely clean install on a partitioned drive, with a new system to see how it goes..
Thanks for all your patience and suggestions -
Max respect
GuitarGuy91403
guitarguy91403
 
Posts: 10
Joined: Fri Nov 20, 2009 5:21 pm

Re: Compiling For Mac

Permanent link to this post Posted by guitarguy91403 » Sun Nov 29, 2009 2:21 am

Hi Paul,

FINALLY, got it to work -

Here's what I did to make it work on my laptop:

patched wxMac-2.8.10 so that the result yielded:
Code: Select all
patching file include/wx/mac/carbon/sound.h
patching file src/mac/carbon/sound.cpp


Then configured and installed wxMac-2.8.10 with the following options:

I included the line:
Code: Select all
--with-libpng=builtin \


I omitted the option:
Code: Select all
--enable-universal_binary=yes \


... because the universal_binary line was yielding the error...
Code: Select all
  "wxFFile::Write(void const*, unsigned long)", referenced from:
      wxFFile::Write(wxString const&, wxMBConv const&)in wxrc_wxrc.o
ld: symbol(s) not found for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/VM/VMbiJ4DrHtyXE2Piw7i0AE+++TI/-Tmp-//ccAoYCyO.out (No such file or directory)
make[1]: *** [wxrc] Error 1
make: *** [wxrc] Error 2


The resulting ./configure command is as follows:
Code: Select all
../configure --prefix=/usr/local \
--with-libpng=builtin \
--with-macosx-sdk=/Developer/SDKs/MacOSX10.4u.sdk \
--with-macosx-version-min=10.4 \
--disable-compat26 \
--with-expat=builtin \
--with-zlib=builtin \
--with-regex=builtin \
--enable-unicode=yes \
--enable-static=yes --enable-shared=no --enable-debug=yes


My system:
Mac OS X 10.5.8
Xcode 3.1.3

Thank you for all your help.

Maximum respect,
GuitarGuy91403
guitarguy91403
 
Posts: 10
Joined: Fri Nov 20, 2009 5:21 pm

Previous

Return to Compiling Audacity



Who is online

Users browsing this forum: No registered users and 1 guest