Building WebKit CVS with XCode 2.1
I ran into a few problems building CVS with XCode 2.1. The first was a "well-known" (to Google, anyway) warning with xcodebuild needing it's option changed to "-configuration". I hacked Makefile.am to fix that. Of more interest is that JavaScriptCore would immediately fail when it hit source that includes some headers from JavaScriptCore/bindings/ jni. Specifically, those headers that reference <JavaVM/jni.h>. This would in turn cause a long list of errors related to important Java defines like jstring and the like. My solution was to softlink the contents of /Library/Java/Home/ include to some valid include path. I chose WebKitBuild/Deployment/ include/JavaVM. I'm hoping to confirm whether or not there is some problem with my devtools setup, or if this is a known problem. Thanks. -- John
On Jun 17, 2005, at 5:53 AM, Clever Monkey wrote:
I ran into a few problems building CVS with XCode 2.1. The first was a "well-known" (to Google, anyway) warning with xcodebuild needing it's option changed to "-configuration".
I hacked Makefile.am to fix that.
You shouldn't be using makefiles at all, so you won't be using Makefile.am; that file is currently part of a legacy build system only used by people on the Safari team. You should be invoking the "build-webkit" script, which calls "xcodebuild" for you with the proper options.
Of more interest is that JavaScriptCore would immediately fail when it hit source that includes some headers from JavaScriptCore/ bindings/jni. Specifically, those headers that reference <JavaVM/ jni.h>. This would in turn cause a long list of errors related to important Java defines like jstring and the like.
My solution was to softlink the contents of /Library/Java/Home/ include to some valid include path. I chose WebKitBuild/Deployment/ include/JavaVM.
I'm hoping to confirm whether or not there is some problem with my devtools setup, or if this is a known problem.
Others are building successfully without having to do this. I'm not sure why you ran into this problem; clearly something to do with the Java installation, but not obvious to me what's wrong. -- Darin
On Jun 17, 2005, at 12:41 PM, Darin Adler wrote:
On Jun 17, 2005, at 5:53 AM, Clever Monkey wrote:
I ran into a few problems building CVS with XCode 2.1. The first was a "well-known" (to Google, anyway) warning with xcodebuild needing it's option changed to "-configuration".
I hacked Makefile.am to fix that.
You shouldn't be using makefiles at all, so you won't be using Makefile.am; that file is currently part of a legacy build system only used by people on the Safari team.
You should be invoking the "build-webkit" script, which calls "xcodebuild" for you with the proper options.
This *was* from running "build-webkit". I don't think I'm the only one who has run into this. I found the "solution", such as it is, on Google. build-webkit is invoking xcodebuild, but with a deprecated option.
Of more interest is that JavaScriptCore would immediately fail when it hit source that includes some headers from JavaScriptCore/ bindings/jni. Specifically, those headers that reference <JavaVM/ jni.h>. This would in turn cause a long list of errors related to important Java defines like jstring and the like.
My solution was to softlink the contents of /Library/Java/Home/ include to some valid include path. I chose WebKitBuild/ Deployment/include/JavaVM.
I'm hoping to confirm whether or not there is some problem with my devtools setup, or if this is a known problem.
Others are building successfully without having to do this. I'm not sure why you ran into this problem; clearly something to do with the Java installation, but not obvious to me what's wrong.
It looks like the upgrade to XCode 2.1 did not fix some softlinks in / System/Library/Frameworks. I've had this sort of thing happen before, and should know by now to completely remove previous release prior to installing new ones.
On Jun 18, 2005, at 6:14 AM, Clever Monkey wrote:
On Jun 17, 2005, at 12:41 PM, Darin Adler wrote:
On Jun 17, 2005, at 5:53 AM, Clever Monkey wrote:
I ran into a few problems building CVS with XCode 2.1. The first was a "well-known" (to Google, anyway) warning with xcodebuild needing it's option changed to "-configuration".
I hacked Makefile.am to fix that.
You shouldn't be using makefiles at all, so you won't be using Makefile.am; that file is currently part of a legacy build system only used by people on the Safari team.
You should be invoking the "build-webkit" script, which calls "xcodebuild" for you with the proper options.
This *was* from running "build-webkit". I don't think I'm the only one who has run into this. I found the "solution", such as it is, on Google.
build-webkit is invoking xcodebuild, but with a deprecated option.
OK. I was misled by your "I hacked Makefile.am" comment, and I still don't understand what that means. In any case, I changed build-webkit to use -configuration with newer versions of Xcode a few days back, so this should be fixed by now. If it's not working for you, please let me know what's wrong (ideally via bugzilla in the Tools component of WebKit). -- Darin
On Jun 19, 2005, at 9:40 PM, Darin Adler wrote:
On Jun 18, 2005, at 6:14 AM, Clever Monkey wrote:
On Jun 17, 2005, at 12:41 PM, Darin Adler wrote:
On Jun 17, 2005, at 5:53 AM, Clever Monkey wrote:
I ran into a few problems building CVS with XCode 2.1. The first was a "well-known" (to Google, anyway) warning with xcodebuild needing it's option changed to "-configuration". ...
In any case, I changed build-webkit to use -configuration with newer versions of Xcode a few days back, so this should be fixed by now. If it's not working for you, please let me know what's wrong (ideally via bugzilla in the Tools component of WebKit).
Thank you, Darin, I just updated my source tree, ran "build-webkit" on XCode 2.1 and it compiled flawlessly (in development mode). Robert -- --- - .-. -- -- --- / \ ---- tin:b Software .-. / \ --- .-. __o .-. (i) / \ / \ / \ _`\<,_ / \ Robert Fischer / \ / \ / \ (*)/ (*) / `--------------- / `---' `-' `-----------'
participants (3)
-
Clever Monkey
-
Darin Adler
-
Robert Fischer