Win7 cygwin - build JavaFX Android runtime failed.

146 views
Skip to first unread message

minni...@gmail.com

unread,
Feb 21, 2014, 10:55:23 AM2/21/14
to javafx...@googlegroups.com
Hi.

I try to build JavaFX Android runtime myself by https://bitbucket.org/javafxports/android/wiki/Building%20the%20JavaFX%20Android%20Runtime

Environment:
Win 7 x64
cygwin - ver.2.831 x32
python - ver. 2.7.6 x32
gradle -
------------------------------------------------------------
Gradle 1.8
------------------------------------------------------------

Build time: 2013-09-24 07:32:33 UTC
Build number: none
Revision: 7970ec3503b4f5767ee1c1c69f8b4186c4763e3d

Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.9.2 compiled on July 8 2013
Ivy: 2.2.0
JVM: 1.7.0_51 (Oracle Corporation 24.51-b03)
OS: Windows 7 6.1 x86
------------------------------------------------------------

the sources contained in this repository (https://bitbucket.org/javafxports/android-graphics-rt) was downloaded 17/02/2014

Freetype fonts for Android built successfully.

My last step of build failed.
My build script - http://ur1.ca/go4ja

Logs without --debug --stacktrace
http://ur1.ca/go4kt & http://ur1.ca/go4lb


Logs with --debug --stacktrace
http://ur1.ca/go4lv & http://ur1.ca/go4ly

Help me, please. What is wrong?

Minn

unread,
Feb 22, 2014, 1:53:25 PM2/22/14
to javafx...@googlegroups.com, minni...@gmail.com
Hi.
I run "gradle task" - it failed.
>>>
Build file 'D:\cache\dev\inst\andr19\android-graphics-rt\buildSrc\build.gradle': line 81
The ConfigurationContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead.
:buildSrc:generateGrammarSource UP-TO-DATE
:buildSrc:compileJava UP-TO-DATE
:buildSrc:compileGroovy UP-TO-DATE
:buildSrc:processResources UP-TO-DATE
:buildSrc:classes UP-TO-DATE
:buildSrc:jar UP-TO-DATE
:buildSrc:assemble UP-TO-DATE
:buildSrc:compileTestJava UP-TO-DATE
:buildSrc:compileTestGroovy UP-TO-DATE
:buildSrc:processTestResources UP-TO-DATE
:buildSrc:testClasses UP-TO-DATE
:buildSrc:test UP-TO-DATE
:buildSrc:check UP-TO-DATE
:buildSrc:build UP-TO-DATE
Creating properties on demand (a.k.a. dynamic properties) has been deprecated and is scheduled to be removed in Gradle 2.0. Please read http://gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html for information on the replacement for dynamic properties.
Deprecated dynamic property: "WINDOWS_NATIVE_COMPILE_ENVIRONMENT" on "root project 'android-graphics-rt'", value: "{VCINSTALLDIR=, VSINST...".

FAILURE: Build failed with an exception.

* Where:
Build file 'D:\cache\dev\inst\andr19\android-graphics-rt\build.gradle' line: 622

* What went wrong:
A problem occurred evaluating root project 'android-graphics-rt'.
> Missing or incorrect path to 'java': 'C:/Program Files (x86)/Java/jdk1.7.0_17/bin/java.exe'. Perhaps bad JDK_HOME? C:/Program Files (x86)/Java/jdk1.7.0_17

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 13.511 secs
<<<

Need Java/jdk1.7.0_17? Why? Anywhere this fixed?
I use jdk1.7.0_51.
Well, I try jdk1.7.0_17.

Best wishes.

Minn

unread,
Feb 22, 2014, 3:31:10 PM2/22/14
to javafx...@googlegroups.com, minni...@gmail.com
I run "gradle task" with
jdk1.7.0_17
COMPILE_TARGETS: win
successfull.

>>>
Build file 'D:\cache\dev\inst\andr19\android-graphics-rt\buildSrc\build.gradle': line 81
The ConfigurationContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead.
:buildSrc:generateGrammarSource UP-TO-DATE
:buildSrc:compileJava UP-TO-DATE
:buildSrc:compileGroovy UP-TO-DATE
:buildSrc:processResources UP-TO-DATE
:buildSrc:classes UP-TO-DATE
:buildSrc:jar UP-TO-DATE
:buildSrc:assemble UP-TO-DATE
:buildSrc:compileTestJava UP-TO-DATE
:buildSrc:compileTestGroovy UP-TO-DATE
:buildSrc:processTestResources UP-TO-DATE
:buildSrc:testClasses UP-TO-DATE
:buildSrc:test

:buildSrc:check
:buildSrc:build


Creating properties on demand (a.k.a. dynamic properties) has been deprecated and is scheduled to be removed in Gradle 2.0. Please read http://gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html for information on the replacement for dynamic properties.
Deprecated dynamic property: "WINDOWS_NATIVE_COMPILE_ENVIRONMENT" on "root project 'android-graphics-rt'", value: "{VCINSTALLDIR=, VSINST...".

OS_NAME: windows 7
OS_ARCH: amd64
JAVA_HOME: C:/Program Files/Java/jdk1.7.0_17
JDK_HOME: C:/Program Files/Java/jdk1.7.0_17
java.runtime.version: 1.7.0_17-b02
java version: 1.7.0
java build number: 02
jdk.runtime.version: 1.7.0_17-b02
jdk version: 1.7.0
jdk build number: 02
minimum java build number: 0
COMPILE_TARGETS: win
COMPILE_FLAGS_FILES: buildSrc/win.gradle
HUDSON_JOB_NAME: not_hudson
HUDSON_BUILD_NUMBER: 0000
PROMOTED_BUILD_NUMBER: 00
PRODUCT_NAME: OpenJFX
RAW_VERSION: 8.0.0
RELEASE_NAME: 8.0
RELEASE_MILESTONE: ea
UPDATE_STUB_CACHE: false
The CompileOptions.useAnt property has been deprecated and is scheduled to be removed in Gradle 2.0. There is no replacement for this property.
:tasks

------------------------------------------------------------
All tasks runnable from root project
------------------------------------------------------------

Default tasks: sdk

Basic tasks
-----------
clean - Deletes the build directory and the build directory of all sub projects
javadoc - Generates the JavaDoc for all the public API
jfxrtWin - Creates the jfxrt.jar for the win target
jfxswtWin - Creates the jfxswt.jar for the win target
jmxWin - Creates the javafx-mx.jar
sdkWin - Creates the SDK for win

Build tasks
-----------
assemble - Assembles the outputs of this project.
build - Assembles and tests this project.
buildDependents - Assembles and tests this project and all projects that depend on it.
buildJavaFXPackager - Compiles native sources for javafxpackager.exe
buildNeeded - Assembles and tests this project and all projects it depends on.
ccWinFont - Compiles native sources for font for win
ccWinGlass - Compiles native sources for glass for win
ccWinIio - Compiles native sources for iio for win
ccWinPrism - Compiles native sources for prism for win
ccWinPrismD3D - Compiles native sources for prismD3D for win
ccWinPrismES2 - Compiles native sources for prismES2 for win
ccWinPrismSW - Compiles native sources for prismSW for win
classes - Assembles classes 'main'.
clean - Deletes the build directory.
cleanNative - Clean all native libraries and objects for Graphics
cleanNativeDecora - Clean native objects for Decora
cleanNativeFont - Clean native objects for font
cleanNativeGlass - Clean native objects for glass
cleanNativeIio - Clean native objects for iio
cleanNativePrism - Clean native objects for prism
cleanNativePrismD3D - Clean native objects for prismD3D
cleanNativePrismES2 - Clean native objects for prismES2
cleanNativePrismSW - Clean native objects for prismSW
compileIconSwap - Compiles native sources for the application co-bundle launcher
compileWinLauncher - Compiles native sources for the application co-bundle launcher
generateD3DHeaders - Generate headers by compiling hlsl files
jar - Assembles a jar archive containing the main classes.
jarCompatLib - Creates compat.jar with missing jdk platform classes
javahWinFont - Generates JNI Headers for font for win
javahWinGlass - Generates JNI Headers for glass for win
javahWinIio - Generates JNI Headers for iio for win
javahWinPrism - Generates JNI Headers for prism for win
javahWinPrismD3D - Generates JNI Headers for prismD3D for win
javahWinPrismES2 - Generates JNI Headers for prismES2 for win
javahWinPrismSW - Generates JNI Headers for prismSW for win
linkWinFont - Creates native dynamic library for font for win
linkWinGlass - Creates native dynamic library for glass for win
linkWinIio - Creates native dynamic library for iio for win
linkWinPrism - Creates native dynamic library for prism for win
linkWinPrismD3D - Creates native dynamic library for prismD3D for win
linkWinPrismES2 - Creates native dynamic library for prismES2 for win
linkWinPrismSW - Creates native dynamic library for prismSW for win
native - Compiles and Builds all native libraries for Graphics
nativeDecora - Generates JNI headers, compiles, and builds native dynamic library for Decora
nativeFont - Generates JNI headers, compiles, and builds native dynamic library for font for all compile targets
nativeGlass - Generates JNI headers, compiles, and builds native dynamic library for glass for all compile targets
nativeIio - Generates JNI headers, compiles, and builds native dynamic library for iio for all compile targets
nativePrism - Generates JNI headers, compiles, and builds native dynamic library for prism for all compile targets
nativePrismD3D - Generates JNI headers, compiles, and builds native dynamic library for prismD3D for all compile targets
nativePrismES2 - Generates JNI headers, compiles, and builds native dynamic library for prismES2 for all compile targets
nativePrismSW - Generates JNI headers, compiles, and builds native dynamic library for prismSW for all compile targets
rcFont - Compiles native sources for font
rcGlass - Compiles native sources for glass
rcIio - Compiles native sources for iio
rcPrism - Compiles native sources for prism
rcPrismD3D - Compiles native sources for prismD3D
rcPrismES2 - Compiles native sources for prismES2
rcPrismSW - Compiles native sources for prismSW
stubClasses - Assembles classes 'stub'.
testClasses - Assembles classes 'test'.
toolsClasses - Assembles classes 'tools'.

Build Setup tasks
-----------------
setupBuild - Initializes a new Gradle build. [incubating]
wrapper - Generates Gradle wrapper files. [incubating]

Documentation tasks
-------------------
javadoc - Generates Javadoc API documentation for the main source code.

Help tasks
----------
dependencies - Displays all dependencies declared in root project 'android-graphics-rt'.
dependencyInsight - Displays the insight into a specific dependency in root project 'android-graphics-rt'.
help - Displays a help message
projects - Displays the sub-projects of root project 'android-graphics-rt'.
properties - Displays the properties of root project 'android-graphics-rt'.
tasks - Displays the tasks runnable from root project 'android-graphics-rt' (some of the displayed tasks may belong to subprojects).

Verification tasks
------------------
check - Runs all checks.
test - Runs the unit tests.

Other tasks
-----------
all
appsCleanWin
appsJarWin
buildNativeTargets
checkCache
compileGenerated
drtJar
findbugs
jfxrt
sampleAppsClean
sampleAppsJar
showFlags
verifyJava

To see all tasks and more detail, run with --all.

BUILD SUCCESSFUL

Total time: 18.407 secs
<<<

Minn

unread,
Feb 22, 2014, 3:42:18 PM2/22/14
to javafx...@googlegroups.com
Hi.
I run "gradle task" with
jdk1.7.0_17
COMPILE_TARGETS: dalvik

Failed, the same
Caused by: groovy.lang.MissingPropertyException: Could not find property 'jfxswtDalvik' on root project 'android-graphics-rt'.

>>>
Build file 'D:\cache\dev\inst\andr19\android-graphics-rt\buildSrc\build.gradle': line 81
The ConfigurationContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead.
:buildSrc:generateGrammarSource UP-TO-DATE
:buildSrc:compileJava UP-TO-DATE
:buildSrc:compileGroovy UP-TO-DATE
:buildSrc:processResources UP-TO-DATE
:buildSrc:classes UP-TO-DATE
:buildSrc:jar UP-TO-DATE
:buildSrc:assemble UP-TO-DATE
:buildSrc:compileTestJava UP-TO-DATE
:buildSrc:compileTestGroovy UP-TO-DATE
:buildSrc:processTestResources UP-TO-DATE
:buildSrc:testClasses UP-TO-DATE
:buildSrc:test UP-TO-DATE
:buildSrc:check UP-TO-DATE
:buildSrc:build UP-TO-DATE

d:/pgm/android-sdk-windows
d:/pgm/android-ndk-r9c
ANDROID_SDK: d:/pgm/android-sdk-windows
ANDROID_SDK_TARGET: android-19
ANDROID_NDK: d:/pgm/android-ndk-r9c
ANDROID_NDK_TARGET: android-19
FREETYPE_DIR: d:/cache/dev/inst/freetype/install
Compile native text: true
Android Compiler: D:\pgm\android-ndk-r9c\toolchains\arm-linux-androideabi-4.8\prebuilt\windows\bin\arm-linux-androideabi-gcc
Android Linker: D:\pgm\android-ndk-r9c\toolchains\arm-linux-androideabi-4.8\prebuilt\windows\bin\arm-linux-androideabi-g++


OS_NAME: windows 7
OS_ARCH: amd64
JAVA_HOME: C:/Program Files/Java/jdk1.7.0_17
JDK_HOME: C:/Program Files/Java/jdk1.7.0_17
java.runtime.version: 1.7.0_17-b02
java version: 1.7.0
java build number: 02
jdk.runtime.version: 1.7.0_17-b02
jdk version: 1.7.0
jdk build number: 02
minimum java build number: 0

COMPILE_TARGETS: dalvik
COMPILE_FLAGS_FILES: buildSrc/dalvik.gradle


HUDSON_JOB_NAME: not_hudson
HUDSON_BUILD_NUMBER: 0000
PROMOTED_BUILD_NUMBER: 00
PRODUCT_NAME: OpenJFX
RAW_VERSION: 8.0.0
RELEASE_NAME: 8.0
RELEASE_MILESTONE: ea
UPDATE_STUB_CACHE: false

Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.
org.gradle.listener.ListenerNotificationException: Failed to notify project evaluation listener.
at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java:90)
at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java:30)
at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
at com.sun.proxy.$Proxy13.afterEvaluate(Unknown Source)
at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:67)
at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:61)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:468)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:76)
at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:31)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:142)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:64)
at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)
at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:35)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)
at org.gradle.api.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:201)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:174)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:170)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:139)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
at org.gradle.launcher.Main.doAction(Main.java:46)
at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
at org.gradle.launcher.Main.main(Main.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50)
at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)
at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
Caused by: groovy.lang.MissingPropertyException: Could not find property 'jfxswtDalvik' on root project 'android-graphics-rt'.
at org.gradle.api.internal.AbstractDynamicObject.propertyMissingException(AbstractDynamicObject.java:43)
at org.gradle.api.internal.AbstractDynamicObject.getProperty(AbstractDynamicObject.java:35)
at org.gradle.api.internal.CompositeDynamicObject.getProperty(CompositeDynamicObject.java:94)
at org.gradle.api.internal.project.DefaultProject_Decorated.getProperty(Unknown Source)
at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:156)
at groovy.lang.Closure.getPropertyTryThese(Closure.java:325)
at groovy.lang.Closure.getPropertyDelegateFirst(Closure.java:315)
at groovy.lang.Closure.getProperty(Closure.java:300)
at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:156)
at groovy.lang.Closure.getPropertyTryThese(Closure.java:325)
at groovy.lang.Closure.getPropertyOwnerFirst(Closure.java:319)
at groovy.lang.Closure.getProperty(Closure.java:308)
at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
at dalvik_5eaa4ellm3ghculhv3ts4v9gsm$_run_closure9_closure39.doCall(D:\cache\dev\inst\andr19\android-graphics-rt\buildSrc\dalvik.gradle:397)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.Closure.call(Closure.java:412)
at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:40)
at org.gradle.listener.ClosureBackedMethodInvocationDispatch.dispatch(ClosureBackedMethodInvocationDispatch.java:25)
at org.gradle.listener.BroadcastDispatch.dispatch(BroadcastDispatch.java:81)
... 34 more

FAILURE: Build failed with an exception.

* Where:
Build file 'D:\cache\dev\inst\andr19\android-graphics-rt\build.gradle' line: 784

* What went wrong:
A problem occurred evaluating root project 'android-graphics-rt'.

> java.lang.NullPointerException (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 7.978 secs
<<<

Tomas Brandalik

unread,
Feb 23, 2014, 2:52:35 PM2/23/14
to javafx...@googlegroups.com, minni...@gmail.com
Sorry, the build works only on linux and mac.
-Tomas

Dne sobota, 22. února 2014 21:42:18 UTC+1 Minn napsal(a):

Minn

unread,
Feb 23, 2014, 3:45:45 PM2/23/14
to javafx...@googlegroups.com
Hi.

https://groups.google.com/d/msg/javafxandroid/h_YbOUzYMcE/ZikTt92SrTEJ
This don't run now? Or need use another repo of source?
Reply all
Reply to author
Forward
0 new messages