Compiling OpenJFX on OpenBSD

Vadim Pakhnushev vadim.pakhnushev at oracle.com
Thu Aug 4 19:41:14 UTC 2016


Basically that's the same issue.
If you would look at the start of Platform.h you could see that we 
define POSIX if it's mac or linux and WINDOWS otherwise.
Based on that we include all needed headers.
I guess you need to add ifdef bsd somewhere near linux (I'm sure you 
know how to do that)

Vadim

On 04.08.2016 22:28, Turvamies IT Security Services wrote:
> Vadim,
>
> right on spot again!
>
>> I think that if you would look at the line 1929 of build.gradle then
>> probably there is a line
>> linkParams.addAll(LINUX.launcher.linkFlags)
>> so when you removed the line from the linux.gradle the linkFlags
>> field became null hence the error.
>> So maybe you should remove only "-ldl", not the whole line like this:
>> LINUX.launcher.linkFlags = [];
> Of course - how stupid of me.
>
> We're one step further, entering the lovely c++ compatibility problems:
>
> $ gradle sdk
> [...]
> :fxpackager:compileLinuxLibraryIn file included from /tmp/rt-b41445afa464/modules/fxpackager/src/main/native/library/common/Lock.h:37,
>                   from /tmp/rt-b41445afa464/modules/fxpackager/src/main/native/library/common/Lock.cpp:34:
> /tmp/rt-b41445afa464/modules/fxpackager/src/main/native/library/common/Platform.h:161: error: expected ',' or '...' before 'Application'
> /tmp/rt-b41445afa464/modules/fxpackager/src/main/native/library/common/Platform.h:162: error: ISO C++ forbids declaration of 'TString' with no type
> /tmp/rt-b41445afa464/modules/fxpackager/src/main/native/library/common/Platform.h:164: error: 'TProcessID' does not name a type
> /tmp/rt-b41445afa464/modules/fxpackager/src/main/native/library/common/Platform.h:216: error: expected ',' or '...' before 'Key'
> /tmp/rt-b41445afa464/modules/fxpackager/src/main/native/library/common/Platform.h:216: error: ISO C++ forbids declaration of 'TString' with no type
> /tmp/rt-b41445afa464/modules/fxpackager/src/main/native/library/common/Platform.h:225: error: expected ',' or '...' before 'SectionName'
> /tmp/rt-b41445afa464/modules/fxpackager/src/main/native/library/common/Platform.h:225: error: ISO C++ forbids declaration of 'TString' with no type
> /tmp/rt-b41445afa464/modules/fxpackager/src/main/native/library/common/Platform.h:226: error: expected ',' or '...' before 'SectionName'
> /tmp/rt-b41445afa464/modules/fxpackager/src/main/native/library/common/Platform.h:226: error: ISO C++ forbids declaration of 'TString' with no type
> /tmp/rt-b41445afa464/modules/fxpackager/src/main/native/library/common/Platform.h:227: error: expected ',' or '...' before 'SectionName'
> /tmp/rt-b41445afa464/modules/fxpackager/src/main/native/library/common/Platform.h:227: error: ISO C++ forbids declaration of 'TString' with no type
> /tmp/rt-b41445afa464/modules/fxpackager/src/main/native/library/common/Platform.h:253: error: 'TString' has not been declared
>
> The above rant goes on, complaining of the same issues for every (?)
> file in modules/fxpackager/src/main/native/library/common.
>
> Looking at Lock.cpp and others, I can not find a clear reason nor a
> solution to the problems.
>
> - Jyri
> --
> Turvamies IT Security Services



More information about the openjfx-dev mailing list