add Dockerfile for building opensim-gui on Ubuntu Bionic #1267
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes issue #1255
Brief summary of changes
Add Dockerfile for building
opensim-gui
in a clean environment.Testing I've completed
Tested it under the following Docker version:
CHANGELOG.md
This PR aims to solve the difficulty I encountered when building the
opensim-gui
from source. I found the relevant issue but the discussion there wasn't enough for me to overcome the issues I faced. After building successfully (so so many tries), I wrote this Dockerfile to aid the next Ubuntu Bionic users in their installation process (and debugging).Note 1: One of the main issues encountered, is the usage of
openjdk-8
. In my machine, I had installed theopenjdk-11
and had to remove it. I’m not sure ifupdate alternatives --config java
could be sufficient. I removed the other version, just to be on the safe side.Note 2: For some reason, the proposed installation of
opensim-gui
from the CI configuration file didn’t work. Especially the commandcmake --build . --config Release
foropensim-core
didn’t work correctly, since there was no~/opensim-core-install
directory created. This resulted in some commands in thebuild.xml
ofopensim-gui
to not find some paths, which should have been created from the installation ofopensim-core
. I changed the previous command tomake -j4 && make install
and worked like a charm.