Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Compile OMedit in QT

Compile OMedit in QT

I have compiled all the widgets with OMDev, but when I compiled omEdit with QT, I was prompted with errors such as missing headers.I am running this command mak-f makefile.omdev.mingw-J8 QTclients. Should I run any other commands?
https://s3.ax1x.com/2020/11/17/DVPGj0.png
https://s3.ax1x.com/2020/11/17/DVPNHU.png

Re: Compile OMedit in QT

You need to have bootstrapped omc, too. I guess the make target you were looking for is "all" (or "omc" before qt clients)

Re: Compile OMedit in QT

you mean I need to recompile OMC?

Re: Compile OMedit in QT

If it's missing the header, you didn't compile it or it failed halfway through and you need to restart.

Re: Compile OMedit in QT

OK,Thanks
I compiled OpenModelica from MSYS, but when I did the simulation, I had some problems
https://s3.ax1x.com/2020/11/17/DZSgPA.png

Re: Compile OMedit in QT

That is just a notice. See ticket:
https://trac.openmodelica.org/OpenModelica/ticket/6179

Re: Compile OMedit in QT

Ok, thanks! I've solved it

Re: Compile OMedit in QT

I remember when I tried to compile OMEdit with qtcreator you need to set a lot of paths and stuff. Hopefully @adeas31 can answer this.

Re: Compile OMedit in QT

Yes, compiling OMEdit with QT is very troublesome, so I changed the code in QT and compiled with MSYS!

Re: Compile OMedit in QT

Recommended way is to compile in MSYS.
Which Qt creator you are using? The one that comes with OMDev?

Adeel.

Re: Compile OMedit in QT

Yes, many errors occur during compilation, such as missing header files

Re: Compile OMedit in QT

Yes you need to set an environment in Qt creator.

I personally use Qt creator for debugging purposes. My process is following,

- Compile everything form msys first time. So all dependencies are compiled as well.
- Set the environment in Qt Creator
- Set the tool chain in Qt Creator.
- Compile from Qt creator again. Note that Qt creator will only compile OMEdit and not the dependencies.

Adeel.

Re: Compile OMedit in QT

How do I set up if I want to compile OpenModelica in QT?

Re: Compile OMedit in QT

Hi, how to set the environment and the tool chain in Qt Creator?

Re: Compile OMedit in QT

adeas wrote:


Yes you need to set an environment in Qt creator.

I personally use Qt creator for debugging purposes. My process is following,

- Compile everything form msys first time. So all dependencies are compiled as well.
- Set the environment in Qt Creator
- Set the tool chain in Qt Creator.
- Compile from Qt creator again. Note that Qt creator will only compile OMEdit and not the dependencies.

Adeel.

IF i want to use QT to debuger,what should i do in qt? I have someting wrong in QT

Re: Compile OMedit in QT

You need to set the build environment. Tell Qt creator where to look for header files by setting OMBUILDIR variable.

https://openmodelica.org/images/agorapro/attachments/782/build-environment.png

Adeel.

There are 0 guests and 0 other users also viewing this topic
You are here: