Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling JavaScriptCore on Tiger



On Jun 5, 2005, at 10:22 PM, Todd Thomas wrote:

I've downloaded javascriptcore-412 and webcore-413 but the JavaScriptCore doesn't compile..

cc1plus: warnings being treated as errors
cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++
...failed ProcessPCH++ /Users/tthomas/Developer/Source/Apple/ WebCore/common-build/JavaScriptCore.build/JavaScriptCore.build/ PrefixHeaders/JavaScriptCorePrefix-ppc.gch



I'm using XCode 2 on Tiger 10.4.1.

I've done the real obvious things like checked the compiler settings for the build style (Treat warnings as errors isn't even checked). I'm not all that familiar with compiling C++ code and figured released open source should just build.. shouldn't it? :-0

I just wanted to check out WebCore but have been poking around in XCode trying to figure out why JavaScriptCore won't build. Is it just something simple I need to change?

What's happening is you're compiling with gcc 4.0, which is the default for Mac OS X 10.4 installs. We were always compiling with gcc 3.3, because Tiger itself was all built with 3.3, not 4.0. Since the release we've done the work to make sure we work with gcc 4.0 too.


If you want to do it the way we did it, you can do this global switch:

    sudo gcc_select 3.3

Or you can go open the project file in Xcode, and remove the offending option or set the gcc version to 3.3 in the project. Or you can wait just a short time because very soon there will be a solution to compiling with gcc 4.0.

    -- Darin

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webcore-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webcore-dev/email@hidden

This email sent to email@hidden
References: 
 >Compiling JavaScriptCore on Tiger (From: Todd Thomas <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.