Problems building

Jann Schneider jann.schneider at googlemail.com
Mon Apr 29 08:27:28 PDT 2013


Thanks for your hints! You where both right :) One thing was the wrong
build.arch setting, the other one a messed up vs.properties .. Looks
like it isn't re-generated ??? I deleted it manually and launched ant
-Dbuild.arch=x64 again and now it passes the initialization phase!
Unfortunately it fails at compilation time now giving these errors:

(...)
compile:
    [javac] Compiling 97 source files to
C:\Users\jann\open-jfx\master\rt\glass\glass\build\classes
    [javac] warning: [options] bootstrap class path not set in
conjunction with -source 1.7
    [javac] C:\Users\jann\open-jfx\master\rt\glass\glass\src\com\sun\glass\ui\accessible\mac\MacAccessibleSelectionItemProvider.java:120:
error: incompatible types: AccessibleProvider cannot be converted to
MacAccessibleBaseProvider
    [javac]
(MacAccessibleBaseProvider)((SelectionItemProvider)node).getSelectionContainer();
    [javac]
                                   ^
    [javac] C:\Users\jann\open-jfx\master\rt\glass\glass\src\com\sun\glass\ui\accessible\win\WinAccessibleSelectionItemProvider.java:113:
error: incompatible types: AccessibleProvider cannot be converted to
WinAccessibleBaseProvider
    [javac]
(WinAccessibleBaseProvider)((SelectionItemProvider)node).getSelectionContainer();
    [javac]
                                   ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 2 errors
    [javac] 1 warning

(...)

I'm confused by the first warning:
    [javac] warning: [options] bootstrap class path not set in
conjunction with -source 1.7

Do i need to specify something like source=1.8 ?

- Jann


2013/4/29, Kevin Rushforth <kevin.rushforth at oracle.com>:
> It looks like you've stumbled on one of the oddities of our build system.
>>       [echo] OS arch: amd64
>>       [echo] Build arch: x86
>
> I think this is the problem.
>
> If you are building on Windows with a 64-bit JDK, you need to specify
> "ant -Dbuild.arch=x64 ..." (now one might ask why we don't either set
> this automatically, or at least do an early check and abort with an
> informative error message, but we currently don't; the gradle build will
> do this automatically).
>
> -- Kevin
>
>
> Artem Ananiev wrote:
>> Hi, Jann,
>>
>> you don't need SWT/Qt installed on your system, they are only required
>> to build JavaFX web component and JavaFX/SWT interoperability classes
>> (FXCanvas).
>>
>> Something is wrong with your configuration, it's hard to say what
>> exactly. Could you provide contents of your master/build/vs.properties
>> file, please? Do you have Windows SDK 7.1 installed, or just 7.0a,
>> which is shipeed with VS 2010 Express?
>>
>> Thanks,
>>
>> Artem
>>
>> On 4/26/2013 9:01 PM, Jann Schneider wrote:
>>> Hi All,
>>>
>>> I have some issues building the rt project. I tried both variants:
>>> ant and
>>> gradle (dunno how fahr the gradle support is currently). First of all I
>>> installed the latest cygwin incl. g++ and make and all these things
>>> which
>>> where mentioned on the wiki page. Then Icloned the master and the rt
>>> stuff,
>>> copied the jfxrt.jar from my jdk 1.8  and launched ant. This is what
>>> it said
>>> (running from the cygwin shell):
>>>
>>> Buildfile: C:\Users\jann\open-jfx\master\rt\build.xml
>>>
>>> -init-nativelibs-dir:
>>>
>>> -init-platform:
>>>       [echo] OS name: windows
>>>       [echo] OS arch: amd64
>>>       [echo] Build arch: x86
>>>       [echo] Build nativelib dir: bin
>>>
>>> -init-defs:
>>>       [echo] Property=Value
>>>       [echo] --------------
>>>       [echo] jfx.root.dir = C:\Users\jann\open-jfx\master
>>>       [echo] jfx.sdk.dir = C:\Users\jann\open-jfx\master/artifacts/sdk
>>>       [echo] jfx.deployed.dir =
>>> C:\Users\jann\open-jfx\master/artifacts/deployed
>>>       [echo] platform.home = C:\Program Files\Java\jdk1.8.0
>>>       [echo] platform6u10.home = C:\Program Files\Java\jdk1.8.0
>>>       [echo] dxsdk.path =
>>>       [echo] qtsdk.path =
>>>       [echo] wmsdk.path =
>>>       [echo] swt.path =
>>>
>>> needs-vs-properties:
>>>
>>> needs-gplusplus:
>>>
>>> needs-make:
>>>
>>> needs-devenv:
>>>       [echo] Using C:\VCExpress.exe.
>>>
>>> BUILD FAILED
>>> C:\Users\jann\open-jfx\master\build-src\build-windows-defs.xml:232: The
>>> following error occurred while executing this line:
>>> C:\Users\jann\open-jfx\master\build-defs.xml:187: ERROR: File check
>>> failed,
>>> missing: C:\VCExpress.exe
>>>
>>> Total time: 0 seconds
>>>
>>> Do I need to install all these libs like QT and SWT and these things
>>> which
>>> are mentioned in the properties section of the output? Also I'm a
>>> little bit
>>> confused bc it says: os arch = amd 64 but build arch x86 ??? I've also
>>> checked that %VS100COMNTOoLS% points to the directory of Visual Studio.
>>>
>>> I used this environment:
>>> OS: windows 7 X64
>>> JDK: 1.8.0 X64
>>> Ant: 1.9.0
>>> Visual Studio: 2010 Express
>>> G++: 4.5
>>>
>>> What else do you need to know about my setup?
>>>
>>> - Jann
>>>
>


More information about the openjfx-dev mailing list