Build JUCE on MAC OS X 10.7.3 by Xcode 4.2.1


#1

Hello! I’m newby to developing for MAC OS (and in english, sorry…)
I have a 3D game for my 3D Virtual Reality tool, created by Visual Studio, with using JUCE 1.50. (The update to use 1.50+ required few days…) Now, I must run my code on MAC OS X Lion.
I installed Xcode 4.2.1, downloaded JUCE 1.50, opened Juce.xcodeproj, and after the setting Base SDK and Deployment Target…
http://pasztoipiac.hu/juce/03_project_settings.png
http://pasztoipiac.hu/juce/04_targets_settings.png
… I tried to build JUCE.
The build failed with this error:
http://pasztoipiac.hu/juce/02_juce_SortedSet.h_error.png
Can you give me any advice to solve this problem? Or are there prebuilt binaries for MAC?
Thank you in advance!
Goldmund


#2

1.50 is a couple of years out of date - I’m afraid I can only help with problems in the latest version…


#3

Thanks Jules, for your answer! I downloaded the later version (1.5.3), and the build succeeded (both 32 and 64 bit versions). However I received an error message during the linking process.

Linking LeoBang Undefined symbols for architecture x86_64: "juce::WebBrowserComponent::WebBrowserComponent()", referenced from: AboutBox::AboutBox(Display*)in AboutBox.o AboutBox::AboutBox(Display*)in AboutBox.o [...]" (and thousands of lines)

There is a short part of my makefile:

ifeq ($(CONFIG),Debug) BINDIR := ../../bin LIBDIR := ../../bin OBJDIR := ../../tmp/linux/debug OUTDIR := ../../bin CPPFLAGS += -MMD -D "LINUX=1" -D "DEBUG=1" -D "_DEBUG=1" CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -g -D_DEBUG -ggdb CXXFLAGS := $(CFLAGS) LDFLAGS += -ljuce_debug LDDEPS := RESFLAGS := -D "LINUX=1" -D "DEBUG=1" -D "_DEBUG=1" -I "/usr/include" TARGET := LeoBangd BLDCMD = $(CXX) -o $(OUTDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH) endif

Have you got any idea, where I made a mistake?


#4

Goldmund, just thought I’d let you know that the latest Juce version is now 2.0.21.


#5

You should try again after you’ve downloaded the code with git. That way you will get the code that will be most current.

git://juce.git.sourceforge.net/gitroot/juce/juce (JUCE code git url above)