- Index
- » Developer
- » OpenModelica development
- » Compilation problem
Compilation problem
Compilation problem
I compiled the software with these commands under the ubantu system
echo Linux name: `lsb_release --short --codename`
echo deb http://build.openmodelica.org/apt `lsb_release --short --codename` nightly | sudo tee -a /etc/apt/sources.list.d/openmodelica.list
echo deb-src http://build.openmodelica.org/apt nightly contrib | sudo tee -a /etc/apt/sources.list.d/openmodelica.list
# You'll also need to import the GPG key used to sign the releases:
wget -q http://build.openmodelica.org/apt/openmodelica.asc -O- | sudo apt-key add -
# To verify that your key is installed correctly
apt-key fingerprint
# Gives output:
# pub 2048R/64970947 2010-06-22
# Key fingerprint = D229 AF1C E5AE D74E 5F59 DF30 3A59 B536 6497 0947
# uid OpenModelica Build System
sudo apt-get update
sudo apt-get build-dep openmodelica
git clone --recursive https://openmodelica.org/git-readonly/OpenModelica.git OpenModelica
cd OpenModelica
autoconf
./configure --with-cppruntime --without-omc
make -j4
but,When I run in QT, I lack header files, such as omplot.h:no such file or direcitory
what should i do?
- 278067605
- 28 Posts
Re: Compilation problem
Without seeing the log it is hard to tell what exactly went wrong. Can you include it here (run make with an additional `--output-sync` to have the log file readable).
What OS and version are you using?
What version (commit) of OpenModelica are you trying to build?
In the build-deps for openmodelica `qttools5-dev-tools` is listed, at least on my Ubuntu Focal. So you should have all needed QT libs and headers.
You could try to checkout all submodules to the version saved in the master branch:
Code:
git submodule update --force --init --recursive
Or pull the latest version of the master branch and all submodules.
- AnHeuermann
- 52 Posts
Re: Compilation problem
AnHeuermann wrote:
Without seeing the log it is hard to tell what exactly went wrong. Can you include it here (run make with an additional `--output-sync` to have the log file readable).
What OS and version are you using?
What version (commit) of OpenModelica are you trying to build?
In the build-deps for openmodelica `qttools5-dev-tools` is listed, at least on my Ubuntu Focal. So you should have all needed QT libs and headers.
You could try to checkout all submodules to the version saved in the master branch:Code:
git submodule update --force --init --recursiveOr pull the latest version of the master branch and all submodules.
hi! I use Ubuntu Focal ,too.
i want to use qt creator debug the openmodelica,but always has something wrong like Missing plotting.h such header files,what should I do in QT?
I have compiled the source code according to the above
- 278067605
- 28 Posts
- Index
- » Developer
- » OpenModelica development
- » Compilation problem