Code Monkey home page Code Monkey logo

omsens_qt's Introduction

OMSens_Qt

A GUI interface for OMSens which can be loaded into OMEdit as a plugin.

Dependencies

  • OpenModelica - Just the plugin interface header files are needed.

Build instructions

If needed fix paths for the plugin interface headers files in OMSensPlugin.h.

Follow the instructions matching your OS:

Windows MSYS Makefiles

If you used MSYS Makefiles to compile OpenModelica you need one additional step:

Start a MSYS terminal $OMDEV\tools\msys\mingw64.exe (64 bit) or $OMDEV\tools\msys\mingw32.exe (32 bit) and run:

$ cd /path/to/OpenModelica
make -f Makefile.omdev.mingw omsens_qt -j<Nr. of cores>

Bug Reports

omsens_qt's People

Contributors

4562448 avatar adeas31 avatar adrpo avatar alechan avatar anheuermann avatar lochel avatar mahge avatar perost avatar placiana avatar rodrigodcastro avatar wit00 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

omsens_qt's Issues

update dependencies

The dependencies should be more explicit that you need to be building OpenModelica from source; make hangs on:

./OMSensPlugin.h:7:10: fatal error: ../OMEdit/OMEditLIB/Interfaces/InformationInterface.h: No such file or directory
 #include "../OMEdit/OMEditLIB/Interfaces/InformationInterface.h"

This header isn't in OpenModelica/OMEdit's source...and building it failed on not having antlr installed. Though I see that project is archived now and might not provide the correct header. I also needed to install qttools5-dev-tools.

Equivalently, is there a docker image building all of the dependencies?

Installation issue: Makefile not found

Using ./configure generates Makefile.unix. Using make yields "no makefile found".
I tried changing names of Makefile.unix to Makefile, but this seems wrong since it loops into creating "../build/bin".
Thanks for your help !

OmSens_Qt installation

It is suggested to update the binary package libomsensplugin with our manual solution:

  • Create a symlink, because the plugin checks for the presence of pyhton with 'which python'
  • ln –s /usr/bin/python /usr/bin/python3
  • Update source code for OMSensDialog.cpp with the attached patch after you’ve verified the quality of patch

diff --git a/OMSensDialog.cpp b/OMSensDialog.cpp
index 32955b8..43b0c0b 100644
--- a/OMSensDialog.cpp
+++ b/OMSensDialog.cpp
@@ -270,14 +270,14 @@ bool OMSensDialog::runProcessAndShowProgress(QString scriptDirPath, QString comm

// Start process
pythonScriptProcess.start(command);

  • if (pythonScriptProcess.state() == QProcess::Running) {
  • if (pythonScriptProcess.state() >= QProcess::Starting) {
    // Show dialog with progress
    dialog->exec();
    } else {
    dialog->close();
    }
    // Wait for the process to finish in the case that we cancel the process and it doesn't have time to finish correctly
  • pythonScriptProcess.waitForFinished(3000);
  • pythonScriptProcess.waitForFinished(30000);
    //
    // See if the process ended correctly
    QProcess::ExitStatus exitStatus = pythonScriptProcess.exitStatus();

@casella

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.