Error During Compile

Asked by Scott Stevens on 2016-07-08

Greetings,

I'm attempting to build Onboard V1.2.0 under Fedora 24. I've followed the instructions for building under Fedora 23 here:

https://nmilosev.svbtle.com/install-onboard-keyboard-in-fedora-23

However, Fedora 24 kicks out this error.

In file included from Onboard/pypredict/lm/lm_python.cpp:50:0:
Onboard/pypredict/lm/lm_dynamic_cached.h:227:46: error: ‘constexpr’ needed for in-class initialization of static data member ‘const double _CachedDynamicModel<TNGRAMS>::DEFAULT_LAMBDA’ of non-integral type [-fpermissive]
         static const double DEFAULT_LAMBDA = 0.3; // Jelinek-Mercer weights

It appears a bug report was filed here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812033

Any suggestions on what I can do to allow the build to complete?

Than

Question information

Language:
English Edit question
Status:
Solved
For:
Onboard Edit question
Assignee:
No assignee Edit question
Solved by:
Francesco Fumanti
Solved:
2016-07-08
Last query:
2016-07-08
Last reply:
2016-07-08
Best Francesco Fumanti (frafu) said : #1

If I get it right, the problem was fixed a few days ago in trunk, but the fixed version has not been released yet. I might perhaps get the current development revision from trunk:
https://code.launchpad.net/~onboard/onboard/trunk

Francesco Fumanti (frafu) said : #2

s/I might/You might

Scott Stevens (u-orders) said : #3

Greetings,

I was able to build successfully from the devel trunk. Also, had to make sure schemas were updated for onboard to run.

Thank you so much for your assistance!

Scott Stevens (u-orders) said : #4

Thanks Francesco Fumanti, that solved my question.

Francesco Fumanti (frafu) said : #5

You're welcome.