How to change compiler in Introjucer?

For Apple specific issues

How to change compiler in Introjucer?

Postby Leirbag » Mon Jun 25, 2012 10:49 pm

Hi everyone,

Due to Cryptopp libraries incompatibility, I cannot use LLVM GCC 4.2, this is, com.apple.compilers.llvmgcc42 compiler.
I must use Apple LLVM Compiler 3.1 (com.apple.compilers.llvm.clang.1_0.compiler) (a pity).

My question is, how can I parametrize Introjucer so that I can change compilers?

Thank you as usual,

Gabriel
User avatar
Leirbag
JUCE UberWeenie
 
Posts: 127
Joined: Sun Oct 11, 2009 10:06 am
Location: Madrid

Re: How to change compiler in Introjucer?

Postby dave96 » Mon Jun 25, 2012 11:08 pm

I'm pretty sure newer versions of the Introjucer default to Apple LLVM Compiler 3.1.
dave96
JUCE UberWeenie
 
Posts: 454
Joined: Sat Dec 27, 2008 9:29 pm

Re: How to change compiler in Introjucer?

Postby Salvator » Tue Jun 26, 2012 5:12 am

Most probably possible using the 'Xcode custom flags' field, in Introjucer.

I use that to set many setting like :
ARCHS = "ppc i386 x86_64" ,VALID_ARCHS="ppc i386 x86_64" ,MACOSX_DEPLOYMENT_TARGET_x86_64 = 10.6 ,MACOSX_DEPLOYMENT_TARGET_i386 = 10.5 ,SDKROOT_x86_64 = /Developer/SDKs/MacOSX10.6.sdk ,SDKROOT_ppc = /Developer/SDKs/MacOSX10.5.sdk ,GCC_VERSION_ppc = 4.0

You have to find the one for the compiler.

Salvator
Salvator
JUCE UberWeenie
 
Posts: 179
Joined: Mon May 18, 2009 9:01 pm

Re: How to change compiler in Introjucer?

Postby Leirbag » Tue Jun 26, 2012 7:34 pm

Salvator wrote:Most probably possible using the 'Xcode custom flags' field, in Introjucer.

I use that to set many setting like :
ARCHS = "ppc i386 x86_64" ,VALID_ARCHS="ppc i386 x86_64" ,MACOSX_DEPLOYMENT_TARGET_x86_64 = 10.6 ,MACOSX_DEPLOYMENT_TARGET_i386 = 10.5 ,SDKROOT_x86_64 = /Developer/SDKs/MacOSX10.6.sdk ,SDKROOT_ppc = /Developer/SDKs/MacOSX10.5.sdk ,GCC_VERSION_ppc = 4.0

You have to find the one for the compiler.

Salvator


This is precisely the issue. There is not a setting to change it or, at least, I did not found it.
User avatar
Leirbag
JUCE UberWeenie
 
Posts: 127
Joined: Sun Oct 11, 2009 10:06 am
Location: Madrid

Re: How to change compiler in Introjucer?

Postby jules » Tue Jun 26, 2012 8:12 pm

The latest version of the Introjucer will set projects to use LLVM 3.1 by default now. No need to change any settings.
User avatar
jules
Fearless Leader
 
Posts: 17216
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: How to change compiler in Introjucer?

Postby Salvator » Tue Jun 26, 2012 9:01 pm

OK cool, btw Jules, with the latest git, I've got a smal compile error with gcc 4.0
in juce_CPlusPlusCodeTokeniser.cpp
Code: Select all
juce::CPlusPlusCodeTokeniser::getDefaultColourScheme()::Type' uses local type 'const juce::CPlusPlusCodeTokeniser::getDefaultColourScheme()::Type'

It seems it can't parse
Code: Select all
numElementsInArray (types)

in
Code: Select all
for (int i = 0; i < numElementsInArray (types); ++i)

Hope this is possible to resolve. Maybe I need to switch to gcc4.2 too...

Salvator
Salvator
JUCE UberWeenie
 
Posts: 179
Joined: Mon May 18, 2009 9:01 pm

Re: How to change compiler in Introjucer?

Postby jules » Tue Jun 26, 2012 9:45 pm

Thanks, I already fixed that, it fails in GCC 4.2 too.
User avatar
jules
Fearless Leader
 
Posts: 17216
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK


Return to MacOSX and iOS

Who is online

Users browsing this forum: No registered users and 1 guest