This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Using the files you provided, I have partial success! "text:" still doesn't compile, but I can now compile and run code containing the "for-each" form. The latter was a much more serious issue for me, so I'm ecstatic! After I calmed down a bit, I tried to determine the differences between the 1.11.1 source you provided and the rev. 6931 source I got from SVN. The attached pre-ant-diff.txt is the diff of freshly downloaded copies of the two sources. post-ant-diff.txt is the diff of the sources after I ran "ant -Denable-android=true" to generate the kawa jar file, then "ant clean" to get rid of the generated files (to avoid cluttering up the diff). I ran diff via "diff -qrbx .* kawa-svn kawa-1.11.1" to ignore space changes and .cvs*/.svn* files. Comparing the two diffs, there are 5 java files that were pre-processed by ant in the 1.11.1 version but not the SVN version. This is also shown in the select-android section of ant-1.11.1.txt and ant-svn.txt, the output captured while running ant on the respective sources. I've attached both versions of the 5 changed java files in 1.11.1-files.tar and svn-files.tar. I don't know why pre-processing behaved differently in the two runs, but I'm guessing this may be why "for-each" works in the 1.11.1 source but not the rev. 6931 source I got from SVN? While looking at the select-android output, I also noticed that in both runs, select-android displayed the following flags: +JAVA5 +JAVA2 -JAVA6 -JAVA6COMPAT5 -JAVA7. I'm not familiar with the workings of ant, but since I'm running JDK 1.6.0_24-b07, does this mean the pre-processing done by select-android was done using the wrong settings? On Fri, Mar 18, 2011 at 10:26 PM, Per Bothner <per@bothner.com> wrote: > On 03/18/2011 06:29 PM, Benny Tsai wrote: >> >> Hi Per, >> >> After reading your responses, I downloaded Android SDK r6 and Android >> Platform 2.2 to make my environment a closer match to yours. ?Also >> downloaded Kawa source rev. 6931 and re-built kawa.jar. ?I then >> created a new test project from scratch as per the steps on your 2010 >> "Hello world" blog post. ?Still no joy on both of my problems, >> unfortunately: >> >> - Still get the same error when using the "text:" keyword. >> - Still cannot compile the test activity with 'for-each' form. >> >> Just out of curiosity, what is your Ant version? > > Apache Ant version 1.7.1 compiled on April 16 2010 > >> If you have access to a Windows system, could you give it a go and see >> if you run into either of my issues? > > I have access to a Windows machines, but it would be a pain installing > everything. ?When I get a new laptop I'll try to install a Windows > VirtualBox setup, but my current laptop is a bit underpowered for that. > > What I did do is make a fresh tar of the sources which you can get from > http://per.bothner.com/tmp/kawa-1.11.1.tar.gz > I uses this tarball, extracted into a fresh directory, and built it using > ant, > and uses this to test the attached hello.scm, using the attached build.xml. > Perhaps you could try using that tarfile. > > I suspect your problem is somehow you're getting an old version of Kawa. > Check the libs directory and build.xml and CLASSPATH - again ... > -- > ? ? ? ?--Per Bothner > per@bothner.com ? http://per.bothner.com/ >
Attachment:
pre-ant-diff.txt
Description: Text document
Attachment:
post-ant-diff.txt
Description: Text document
Attachment:
ant-1.11.1.txt
Description: Text document
Attachment:
ant-svn.txt
Description: Text document
Attachment:
1.11.1-files.tar
Description: Unix tar archive
Attachment:
svn-files.tar
Description: Unix tar archive
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |