Building qtiplot-0.9.8.9 in fedora 24

asked 2017-04-07 07:08:30 -0500

Thanos gravatar image

I am trying to build qtiplot-0.9.8.9 on my fedora-24 system. I have downloaded all the necessary dependencies (i.e. Qt, GSL, muParser, zlib, libpng, Qwtand qwtplot3d).

I am running qmake && make but it fails! The first error message is the following

In file included from src/analysis/NonLinearFit.cpp:32:0:
src/scripting/MyParser.cpp: In constructor ‘MyParser::MyParser()’:
src/scripting/MyParser.cpp:57:22: error: ‘getLocale’ was not declared in this scope
  setLocale(getLocale());

I checked the MyParser.cpp and surprisingly I found out that getLocale() is in there, which you can see in the following part of the file.

MyParser::MyParser()
:Parser()
{
    DefineConst("pi", M_PI);
    DefineConst("Pi", M_PI);
    DefineConst("PI", M_PI);

    for (const muParserScripting::mathFunction *i=muParserScripting::math_functions; i->name; i++){
        if (i->numargs == 1 && i->fun1 != NULL)
            DefineFun(i->name, i->fun1);
        else if (i->numargs == 2 && i->fun2 != NULL)
            DefineFun(i->name, i->fun2);
        else if (i->numargs == 3 && i->fun3 != NULL)
            DefineFun(i->name, i->fun3);
    }
    gsl_set_error_handler_off();

    setLocale(getLocale());
}

QLocale MyParser::getLocale()
{
    bool cLocale = true;
    foreach (QWidget *w, QApplication::allWidgets()){
        ApplicationWindow *app = qobject_cast<ApplicationWindow *>(w);
        if (app){
            cLocale = app->d_muparser_c_locale;
            break;
        }
    }

    QLocale locale = QLocale::c();
    if (!cLocale)
        locale = QLocale();

    return locale;
}

So I was wondering, if anyone has any idea on that?

edit retag flag offensive close merge delete

Comments

@Thanos Why you don't use dnf copr search qpilot and see what happened?

hhlp gravatar imagehhlp ( 2017-04-07 08:02:26 -0500 )edit

@hhlp : Maybe I am confused, but I am talking about qtiplot. But If i give dnf copr search qtiplot it finds something. Since I am not familiar with this command (I've been using fedora the latest month) I don't know, how to use it to install qtiplot.

Thanos gravatar imageThanos ( 2017-04-07 08:07:51 -0500 )edit

@hhlp : I added the repository by typing dnf copr enable scorpionit/qtiplot. Then I updated the repositories sudo dnf check-update | grep qtiplot but it cannot synchronize Failed to synchronize cache for repo 'scorpionit-qtiplot', disabling

Thanos gravatar imageThanos ( 2017-04-07 08:19:44 -0500 )edit

@Thanos works in fedora 25 maybe there isn't any packages for fedora 24 see here and ask for build a package for fedora 24

hhlp gravatar imagehhlp ( 2017-04-07 09:49:05 -0500 )edit

@hhlp : Thanks for your suggestion. I've sent an email and asked for it!

Thanos gravatar imageThanos ( 2017-04-07 10:15:05 -0500 )edit