Skip to content

Instantly share code, notes, and snippets.

@acmiyaguchi
Forked from jeguzzi/Instructions.md
Created February 25, 2024 18:26
Show Gist options
  • Select an option

  • Save acmiyaguchi/3bee46afc6b6c065c73285a75b1de926 to your computer and use it in GitHub Desktop.

Select an option

Save acmiyaguchi/3bee46afc6b6c065c73285a75b1de926 to your computer and use it in GitHub Desktop.

Revisions

  1. @jeguzzi jeguzzi revised this gist Apr 20, 2023. 1 changed file with 10 additions and 5 deletions.
    15 changes: 10 additions & 5 deletions Instructions.md
    Original file line number Diff line number Diff line change
    @@ -35,6 +35,8 @@ Also the directories:
    - `platforms`
    - `platformthemes`

    TODO: and some more

    4. Create a workspace where to build
    ------------------------------------

    @@ -61,13 +63,10 @@ Set the `COPPELIASIM_ROOT_DIR` to where you saved the original coppeliaSim direc
    ```
    export COPPELIASIM_ROOT_DIR=<COPPELIASIM_DIR>
    ```

    6. Build the coppeliaSim library
    --------------------------------

    TODO: patch coppeliaSim/CMakeLists.txt to add
    ``target_compile_options(coppeliaSim PRIVATE -fvisibility=hidden)``
    else it won't work on arm64.

    ```
    colcon build --packages-select coppeliaSim --cmake-args \
    -DCMAKE_BUILD_TYPE=Release \
    @@ -84,6 +83,10 @@ This may take some minutes.
    7. Build the client application
    -------------------------------

    TODO: patch coppeliaSim/CMakeLists.txt to add
    ``target_compile_options(coppeliaSim PRIVATE -fvisibility=hidden)``
    else it won't work on arm64.

    ```
    colcon build --packages-select simClientApplication --cmake-args \
    -DCMAKE_BUILD_TYPE=Release \
    @@ -122,4 +125,6 @@ colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release -DBullet_2_83=OFF -DVortex=

    ```
    colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-skip-build-finished --packages-select-regex "simExt*" --continue-on-error
    ```
    ```

    Some may fail if you miss dependencies and a few fails anyway on arm64.
  2. @jeguzzi jeguzzi revised this gist Apr 20, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Instructions.md
    Original file line number Diff line number Diff line change
    @@ -23,7 +23,7 @@ Tested on Ubuntu 22.04 (arm64 and x64)
    2. Download CoppeliaSim
    -----------------------

    - https://www.coppeliarobotics.com/downloads
    Get the 4.4 version from https://www.coppeliarobotics.com/downloads

    3. Remove the compiled libraries
    --------------------------------
  3. @jeguzzi jeguzzi revised this gist Apr 20, 2023. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions Instructions.md
    Original file line number Diff line number Diff line change
    @@ -64,6 +64,10 @@ export COPPELIASIM_ROOT_DIR=<COPPELIASIM_DIR>
    6. Build the coppeliaSim library
    --------------------------------

    TODO: patch coppeliaSim/CMakeLists.txt to add
    ``target_compile_options(coppeliaSim PRIVATE -fvisibility=hidden)``
    else it won't work on arm64.

    ```
    colcon build --packages-select coppeliaSim --cmake-args \
    -DCMAKE_BUILD_TYPE=Release \
  4. @jeguzzi jeguzzi revised this gist Apr 20, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Instructions.md
    Original file line number Diff line number Diff line change
    @@ -113,7 +113,7 @@ TODO: patch simExtDyn/CMakeLists.txt
    - to find ``LIBCOPPELIASIM_SOURCE_DIR``

    ```
    colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release -DBullet_2_83=OFF -DMujoco=OFF -DNewton=OFF --packages-select simExtDyn
    colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release -DBullet_2_83=OFF -DVortex=OFF -DMujoco=OFF -DNewton=OFF --packages-select simExtDyn
    ```

    ```
  5. @jeguzzi jeguzzi revised this gist Apr 20, 2023. 1 changed file with 14 additions and 7 deletions.
    21 changes: 14 additions & 7 deletions Instructions.md
    Original file line number Diff line number Diff line change
    @@ -17,6 +17,8 @@ Tested on Ubuntu 22.04 (arm64 and x64)
    - qscintilla2: `sudo apt install libqscintilla2-qt5-dev`
    - eigen: `sudo apt install libeigen3-dev`
    - boost: `sudo apt install libboost-all-dev`
    - xsltproc: `sudo apt install xsltproc`
    - xmlschema: `pip install xmlschema`

    2. Download CoppeliaSim
    -----------------------
    @@ -81,34 +83,39 @@ This may take some minutes.
    ```
    colcon build --packages-select simClientApplication --cmake-args \
    -DCMAKE_BUILD_TYPE=Release \
    -DINSTALL_DIR=$(COPPELIASIM_ROOT_DIR) \
    -DINSTALL_DIR=$COPPELIASIM_ROOT_DIR \
    -DCOPPELIASIM_LIBRARY=$COPPELIASIM_ROOT_DIR
    ```

    8. Install the rocks
    --------------------
    ```
    luarocks --tree $COPPELIASIM_ROOT_DIR/luar install lpeg
    luarocks --tree $COPPELIASIM_ROOT_DIR/luar install lpeglabel
    luarocks --tree $COPPELIASIM_ROOT_DIR/luar install lua-parser
    luarocks --tree $COPPELIASIM_ROOT_DIR/luar install luasocket
    luarocks --tree $COPPELIASIM_ROOT_DIR/luar install org.conman.cbor
    luarocks --tree $COPPELIASIM_ROOT_DIR/luar install lpeg
    luarocks --tree $COPPELIASIM_ROOT_DIR/luar install lpeglabel
    luarocks --tree $COPPELIASIM_ROOT_DIR/luar install lua-parser
    luarocks --tree $COPPELIASIM_ROOT_DIR/luar install luasocket
    luarocks --tree $COPPELIASIM_ROOT_DIR/luar install org.conman.cbor
    ```

    9. Install the plugins
    -----------------------
    TODO: add SciLexer.h

    ```
    colcon build --packages-select simExtCodeEditor --cmake-args \
    -DCMAKE_BUILD_TYPE=Release \
    -DQSCINTILLA_DIR=/usr/include/aarch64-linux-gnu/qt5/Qsci \
    -DQSCINTILLA_LIBRARY=/usr/lib/libqscintilla2_qt5.so
    ```

    TODO: patch simExtDyn/CMakeLists.txt
    - for arm to remove all the ``sse`` flags
    - to find ``LIBCOPPELIASIM_SOURCE_DIR``

    ```
    colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release -DBullet_2_83=OFF -DMujoco=OFF -DNewton=OFF --packages-select simExtDyn
    ```


    ```
    colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-skip-build-finished --packages-select-regex "simExt*" --continue-on-error
    ```
  6. @jeguzzi jeguzzi revised this gist Apr 20, 2023. 1 changed file with 20 additions and 11 deletions.
    31 changes: 20 additions & 11 deletions Instructions.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    How to compile CoppeliaSim from source
    ======================================
    How to compile CoppeliaSim (v4.4) from source on Linux
    ======================================================

    Tested on Ubuntu 22.04 (arm64 and x64)

    1. Install dependicies
    -----------------------
    @@ -9,7 +11,7 @@ How to compile CoppeliaSim from source
    - vcs: `pip install vcstool`
    - git: `sudo apt install git`
    - cmake: `sudo apt install cmake`
    - lua5.3: `sudo apt install lua5.3`
    - lua5.3: `sudo apt install lua5.3 liblua5.3-dev`
    - luarocks: `sudo apt install luarocks`
    - qt@5: `sudo apt install qtbase5-dev`
    - qscintilla2: `sudo apt install libqscintilla2-qt5-dev`
    @@ -20,6 +22,7 @@ How to compile CoppeliaSim from source
    -----------------------

    - https://www.coppeliarobotics.com/downloads

    3. Remove the compiled libraries
    --------------------------------

    @@ -34,7 +37,7 @@ Also the directories:
    ------------------------------------

    - create a directory with subdir `src`
    - download the list of repos `wget wget https://gist.github.com/jeguzzi/1b1ed8c495b7cab54ac4b953243fe669/raw/8ea752cb5a0385d6b9f492527321a93df5438fff/coppeliasim.repos`
    - download the list of repos `wget https://gist.github.com/jeguzzi/1b1ed8c495b7cab54ac4b953243fe669/raw/8ea752cb5a0385d6b9f492527321a93df5438fff/coppeliasim.repos`
    - import the repos: `vcs import src < coppeliasim.repos`
    - patch with this: `https://github.com/CoppeliaRobotics/CoppeliaSimLib/pull/19/files` in case you are installing coppeliaSim <= v4.4

    @@ -45,29 +48,35 @@ Also the directories:
    ```
    eval $(luarocks path)
    export LUA_LIBRARIES=/usr/lib/aarch64-linux-gnu/liblua5.3.so
    export LUA_INCLUDE_DIR=/usr/include
    export LUA_INCLUDE_DIR=/usr/include/lua5.3
    export QSCINTILLA_DIR=/usr/include/aarch64-linux-gnu/qt5/Qsci
    export QSCINTILLA_LIBS="/usr/lib/libqscintilla2_qt5.so"
    export QSCINTILLA_INCLUDEPATH="/usr/include/aarch64-linux-gnu/qt5"
    export COPPELIASIM_ROOT_DIR=<COPPELIASIM_DIR>
    export PATH=$HOME/.local/bin:$PATH
    ```
    6. Build of coppeliasim lib
    ---------------------------

    Set the `COPPELIASIM_ROOT_DIR` to where you saved the original coppeliaSim directory
    ```
    export COPPELIASIM_ROOT_DIR=<COPPELIASIM_DIR>
    ```
    6. Build the coppeliaSim library
    --------------------------------

    ```
    colcon build --packages-select coppeliaSim --cmake-args \
    -DCMAKE_BUILD_TYPE=Release \
    -DINSTALL_DIR=$COPPELIASIM_ROOT_DIR \
    -DCOPPELIASIM_PROGRAMMING_DIR=$PWD/src \
    -DLUA_LIBRARIES=/usr/lib/aarch64-linux-gnu/liblua5.3.so \
    -DLUA_INCLUDE_DIR=/usr/include \
    -DLUA_INCLUDE_DIR=/usr/include/lua5.3 \
    -DQSCINTILLA_DIR=/usr/include/aarch64-linux-gnu/qt5/Qsci \
    -DQSCINTILLA_LIBRARY=/usr/lib/libqscintilla2_qt5.so
    ```

    7. Build of coppeliasim lib
    ---------------------------
    This may take some minutes.

    7. Build the client application
    -------------------------------

    ```
    colcon build --packages-select simClientApplication --cmake-args \
  7. @jeguzzi jeguzzi revised this gist Apr 20, 2023. 2 changed files with 20 additions and 10 deletions.
    26 changes: 16 additions & 10 deletions Instructions.md
    Original file line number Diff line number Diff line change
    @@ -4,19 +4,22 @@ How to compile CoppeliaSim from source
    1. Install dependicies
    -----------------------

    - colcon `pip install -U colcon-common-extensions`
    - vcs `pip install vcstool
    - cmake `sudo apt install cmake`
    - lua5.3 `sudo apt install lua5.3`
    - luarocks `sudo apt install luarocks`
    - qt@5 `sudo apt install luarocks
    - qscintilla2
    - pip: `sudo apt install python3-pip`
    - colcon: `pip install -U colcon-common-extensions`
    - vcs: `pip install vcstool`
    - git: `sudo apt install git`
    - cmake: `sudo apt install cmake`
    - lua5.3: `sudo apt install lua5.3`
    - luarocks: `sudo apt install luarocks`
    - qt@5: `sudo apt install qtbase5-dev`
    - qscintilla2: `sudo apt install libqscintilla2-qt5-dev`
    - eigen: `sudo apt install libeigen3-dev`
    - boost: `sudo apt install libboost-all-dev`

    2. Download CoppeliaSim
    -----------------------

    - https://www.coppeliarobotics.com/downloads

    3. Remove the compiled libraries
    --------------------------------

    @@ -31,8 +34,10 @@ Also the directories:
    ------------------------------------

    - create a directory with subdir `src`
    - download the list of repos
    - download the list of repos `wget wget https://gist.github.com/jeguzzi/1b1ed8c495b7cab54ac4b953243fe669/raw/8ea752cb5a0385d6b9f492527321a93df5438fff/coppeliasim.repos`
    - import the repos: `vcs import src < coppeliasim.repos`
    - patch with this: `https://github.com/CoppeliaRobotics/CoppeliaSimLib/pull/19/files` in case you are installing coppeliaSim <= v4.4


    5. Setup your env
    ------------------
    @@ -45,6 +50,7 @@ export QSCINTILLA_DIR=/usr/include/aarch64-linux-gnu/qt5/Qsci
    export QSCINTILLA_LIBS="/usr/lib/libqscintilla2_qt5.so"
    export QSCINTILLA_INCLUDEPATH="/usr/include/aarch64-linux-gnu/qt5"
    export COPPELIASIM_ROOT_DIR=<COPPELIASIM_DIR>
    export PATH=$HOME/.local/bin:$PATH
    ```
    6. Build of coppeliasim lib
    ---------------------------
    @@ -53,7 +59,7 @@ export COPPELIASIM_ROOT_DIR=<COPPELIASIM_DIR>
    colcon build --packages-select coppeliaSim --cmake-args \
    -DCMAKE_BUILD_TYPE=Release \
    -DINSTALL_DIR=$COPPELIASIM_ROOT_DIR \
    -DCOPPELIASIM_PROGRAMMING_DIR=$(PWD)/src \
    -DCOPPELIASIM_PROGRAMMING_DIR=$PWD/src \
    -DLUA_LIBRARIES=/usr/lib/aarch64-linux-gnu/liblua5.3.so \
    -DLUA_INCLUDE_DIR=/usr/include \
    -DQSCINTILLA_DIR=/usr/include/aarch64-linux-gnu/qt5/Qsci \
    4 changes: 4 additions & 0 deletions coppeliasim.repos
    Original file line number Diff line number Diff line change
    @@ -11,6 +11,10 @@ repositories:
    type: git
    url: https://github.com/CoppeliaRobotics/include.git
    version: coppeliasim-v4.4.0-rev0
    simMath:
    type: git
    url: https://github.com/CoppeliaRobotics/simMath.git
    version: coppeliasim-v4.4.0-rev0
    libPlugin:
    type: git
    url: https://github.com/CoppeliaRobotics/libPlugin.git
  8. @jeguzzi jeguzzi revised this gist Mar 16, 2023. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions Instructions.md
    Original file line number Diff line number Diff line change
    @@ -82,6 +82,13 @@ colcon build --packages-select simClientApplication --cmake-args \

    9. Install the plugins
    -----------------------
    ```
    colcon build --packages-select simExtCodeEditor --cmake-args \
    -DCMAKE_BUILD_TYPE=Release \
    -DQSCINTILLA_DIR=/usr/include/aarch64-linux-gnu/qt5/Qsci \
    -DQSCINTILLA_LIBRARY=/usr/lib/libqscintilla2_qt5.so
    ```

    ```
    colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release -DBullet_2_83=OFF -DMujoco=OFF -DNewton=OFF --packages-select simExtDyn
    ```
  9. @jeguzzi jeguzzi revised this gist Mar 16, 2023. 1 changed file with 10 additions and 0 deletions.
    10 changes: 10 additions & 0 deletions Instructions.md
    Original file line number Diff line number Diff line change
    @@ -80,3 +80,13 @@ colcon build --packages-select simClientApplication --cmake-args \
    luarocks --tree $COPPELIASIM_ROOT_DIR/luar install org.conman.cbor
    ```

    9. Install the plugins
    -----------------------
    ```
    colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release -DBullet_2_83=OFF -DMujoco=OFF -DNewton=OFF --packages-select simExtDyn
    ```


    ```
    colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --packages-skip-build-finished --packages-select-regex "simExt*" --continue-on-error
    ```
  10. @jeguzzi jeguzzi revised this gist Mar 16, 2023. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion Instructions.md
    Original file line number Diff line number Diff line change
    @@ -73,7 +73,6 @@ colcon build --packages-select simClientApplication --cmake-args \
    8. Install the rocks
    --------------------
    ```
    ```
    luarocks --tree $COPPELIASIM_ROOT_DIR/luar install lpeg
    luarocks --tree $COPPELIASIM_ROOT_DIR/luar install lpeglabel
    luarocks --tree $COPPELIASIM_ROOT_DIR/luar install lua-parser
  11. @jeguzzi jeguzzi revised this gist Mar 16, 2023. 1 changed file with 11 additions and 0 deletions.
    11 changes: 11 additions & 0 deletions Instructions.md
    Original file line number Diff line number Diff line change
    @@ -70,3 +70,14 @@ colcon build --packages-select simClientApplication --cmake-args \
    -DCOPPELIASIM_LIBRARY=$COPPELIASIM_ROOT_DIR
    ```

    8. Install the rocks
    --------------------
    ```
    ```
    luarocks --tree $COPPELIASIM_ROOT_DIR/luar install lpeg
    luarocks --tree $COPPELIASIM_ROOT_DIR/luar install lpeglabel
    luarocks --tree $COPPELIASIM_ROOT_DIR/luar install lua-parser
    luarocks --tree $COPPELIASIM_ROOT_DIR/luar install luasocket
    luarocks --tree $COPPELIASIM_ROOT_DIR/luar install org.conman.cbor
    ```

  12. @jeguzzi jeguzzi revised this gist Mar 16, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Instructions.md
    Original file line number Diff line number Diff line change
    @@ -63,6 +63,7 @@ colcon build --packages-select coppeliaSim --cmake-args \
    7. Build of coppeliasim lib
    ---------------------------

    ```
    colcon build --packages-select simClientApplication --cmake-args \
    -DCMAKE_BUILD_TYPE=Release \
    -DINSTALL_DIR=$(COPPELIASIM_ROOT_DIR) \
  13. @jeguzzi jeguzzi revised this gist Mar 16, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Instructions.md
    Original file line number Diff line number Diff line change
    @@ -53,7 +53,7 @@ export COPPELIASIM_ROOT_DIR=<COPPELIASIM_DIR>
    colcon build --packages-select coppeliaSim --cmake-args \
    -DCMAKE_BUILD_TYPE=Release \
    -DINSTALL_DIR=$COPPELIASIM_ROOT_DIR \
    -DCOPPELIASIM_PROGRAMMING_DIR=$(COPPELIASIM_ROOT_DIR) \
    -DCOPPELIASIM_PROGRAMMING_DIR=$(PWD)/src \
    -DLUA_LIBRARIES=/usr/lib/aarch64-linux-gnu/liblua5.3.so \
    -DLUA_INCLUDE_DIR=/usr/include \
    -DQSCINTILLA_DIR=/usr/include/aarch64-linux-gnu/qt5/Qsci \
  14. @jeguzzi jeguzzi revised this gist Mar 16, 2023. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions Instructions.md
    Original file line number Diff line number Diff line change
    @@ -44,15 +44,15 @@ export LUA_INCLUDE_DIR=/usr/include
    export QSCINTILLA_DIR=/usr/include/aarch64-linux-gnu/qt5/Qsci
    export QSCINTILLA_LIBS="/usr/lib/libqscintilla2_qt5.so"
    export QSCINTILLA_INCLUDEPATH="/usr/include/aarch64-linux-gnu/qt5"
    export COPPELIASIM_ROOT_DIR=<COPPELIA_DIR>
    export COPPELIASIM_ROOT_DIR=<COPPELIASIM_DIR>
    ```
    6. Build of coppeliasim lib
    ---------------------------

    ```
    colcon build --packages-select coppeliaSim --cmake-args \
    -DCMAKE_BUILD_TYPE=Release \
    -DINSTALL_DIR=<COPPELIASIM_DIR> \
    -DINSTALL_DIR=$COPPELIASIM_ROOT_DIR \
    -DCOPPELIASIM_PROGRAMMING_DIR=$(COPPELIASIM_ROOT_DIR) \
    -DLUA_LIBRARIES=/usr/lib/aarch64-linux-gnu/liblua5.3.so \
    -DLUA_INCLUDE_DIR=/usr/include \
    @@ -66,6 +66,6 @@ colcon build --packages-select coppeliaSim --cmake-args \
    colcon build --packages-select simClientApplication --cmake-args \
    -DCMAKE_BUILD_TYPE=Release \
    -DINSTALL_DIR=$(COPPELIASIM_ROOT_DIR) \
    -DCOPPELIASIM_LIBRARY=$(COPPELIASIM_ROOT_DIR)
    -DCOPPELIASIM_LIBRARY=$COPPELIASIM_ROOT_DIR
    ```
  15. @jeguzzi jeguzzi revised this gist Mar 16, 2023. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions Instructions.md
    Original file line number Diff line number Diff line change
    @@ -46,7 +46,7 @@ export QSCINTILLA_LIBS="/usr/lib/libqscintilla2_qt5.so"
    export QSCINTILLA_INCLUDEPATH="/usr/include/aarch64-linux-gnu/qt5"
    export COPPELIASIM_ROOT_DIR=<COPPELIA_DIR>
    ```
    5. Build of coppeliasim lib
    6. Build of coppeliasim lib
    ---------------------------

    ```
    @@ -60,12 +60,12 @@ colcon build --packages-select coppeliaSim --cmake-args \
    -DQSCINTILLA_LIBRARY=/usr/lib/libqscintilla2_qt5.so
    ```

    6. Build of coppeliasim lib
    7. Build of coppeliasim lib
    ---------------------------

    colcon build --packages-select simClientApplication --cmake-args \
    -DCMAKE_BUILD_TYPE=Release \
    -DINSTALL_DIR=<COPPELIASIM_DIR> \
    -DINSTALL_DIR=$(COPPELIASIM_ROOT_DIR) \
    -DCOPPELIASIM_LIBRARY=$(COPPELIASIM_ROOT_DIR)
    ```
  16. @jeguzzi jeguzzi revised this gist Mar 16, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Instructions.md
    Original file line number Diff line number Diff line change
    @@ -44,7 +44,7 @@ export LUA_INCLUDE_DIR=/usr/include
    export QSCINTILLA_DIR=/usr/include/aarch64-linux-gnu/qt5/Qsci
    export QSCINTILLA_LIBS="/usr/lib/libqscintilla2_qt5.so"
    export QSCINTILLA_INCLUDEPATH="/usr/include/aarch64-linux-gnu/qt5"
    export COPPELIASIM_ROOT_DIR="<COPPELIA_DIR>/Contents/Resources"
    export COPPELIASIM_ROOT_DIR=<COPPELIA_DIR>
    ```
    5. Build of coppeliasim lib
    ---------------------------
  17. @jeguzzi jeguzzi revised this gist Mar 16, 2023. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Instructions.md
    Original file line number Diff line number Diff line change
    @@ -53,7 +53,7 @@ export COPPELIASIM_ROOT_DIR="<COPPELIA_DIR>/Contents/Resources"
    colcon build --packages-select coppeliaSim --cmake-args \
    -DCMAKE_BUILD_TYPE=Release \
    -DINSTALL_DIR=<COPPELIASIM_DIR> \
    -DCOPPELIASIM_PROGRAMMING_DIR=$(PWD)/src \
    -DCOPPELIASIM_PROGRAMMING_DIR=$(COPPELIASIM_ROOT_DIR) \
    -DLUA_LIBRARIES=/usr/lib/aarch64-linux-gnu/liblua5.3.so \
    -DLUA_INCLUDE_DIR=/usr/include \
    -DQSCINTILLA_DIR=/usr/include/aarch64-linux-gnu/qt5/Qsci \
    @@ -66,6 +66,6 @@ colcon build --packages-select coppeliaSim --cmake-args \
    colcon build --packages-select simClientApplication --cmake-args \
    -DCMAKE_BUILD_TYPE=Release \
    -DINSTALL_DIR=<COPPELIASIM_DIR> \
    -DCOPPELIASIM_LIBRARY=$(PWD)/install/libcoppeliaSim.dylib
    -DCOPPELIASIM_LIBRARY=$(COPPELIASIM_ROOT_DIR)
    ```
  18. @jeguzzi jeguzzi revised this gist Mar 16, 2023. 1 changed file with 25 additions and 3 deletions.
    28 changes: 25 additions & 3 deletions Instructions.md
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,10 @@ How to compile CoppeliaSim from source

    This is only needed if you are compiling for a different architecture, like arm.

    Also the luarock directory `luar`.
    Also the directories:
    - `luar`
    - `platforms`
    - `platformthemes`

    4. Create a workspace where to build
    ------------------------------------
    @@ -43,7 +46,26 @@ export QSCINTILLA_LIBS="/usr/lib/libqscintilla2_qt5.so"
    export QSCINTILLA_INCLUDEPATH="/usr/include/aarch64-linux-gnu/qt5"
    export COPPELIASIM_ROOT_DIR="<COPPELIA_DIR>/Contents/Resources"
    ```
    5. Build of lib and client
    --------------------------
    5. Build of coppeliasim lib
    ---------------------------

    ```
    colcon build --packages-select coppeliaSim --cmake-args \
    -DCMAKE_BUILD_TYPE=Release \
    -DINSTALL_DIR=<COPPELIASIM_DIR> \
    -DCOPPELIASIM_PROGRAMMING_DIR=$(PWD)/src \
    -DLUA_LIBRARIES=/usr/lib/aarch64-linux-gnu/liblua5.3.so \
    -DLUA_INCLUDE_DIR=/usr/include \
    -DQSCINTILLA_DIR=/usr/include/aarch64-linux-gnu/qt5/Qsci \
    -DQSCINTILLA_LIBRARY=/usr/lib/libqscintilla2_qt5.so
    ```

    6. Build of coppeliasim lib
    ---------------------------

    colcon build --packages-select simClientApplication --cmake-args \
    -DCMAKE_BUILD_TYPE=Release \
    -DINSTALL_DIR=<COPPELIASIM_DIR> \
    -DCOPPELIASIM_LIBRARY=$(PWD)/install/libcoppeliaSim.dylib
    ```
  19. @jeguzzi jeguzzi revised this gist Mar 16, 2023. 1 changed file with 24 additions and 6 deletions.
    30 changes: 24 additions & 6 deletions Instructions.md
    Original file line number Diff line number Diff line change
    @@ -5,11 +5,11 @@ How to compile CoppeliaSim from source
    -----------------------

    - colcon `pip install -U colcon-common-extensions`
    - vcs
    - cmake
    - lua5.3
    - luarocks
    - qt@5
    - vcs `pip install vcstool
    - cmake `sudo apt install cmake`
    - lua5.3 `sudo apt install lua5.3`
    - luarocks `sudo apt install luarocks`
    - qt@5 `sudo apt install luarocks
    - qscintilla2

    2. Download CoppeliaSim
    @@ -22,10 +22,28 @@ How to compile CoppeliaSim from source

    This is only needed if you are compiling for a different architecture, like arm.

    Also the luarock directory `luar`.

    4. Create a workspace where to build
    ------------------------------------

    - create a directory with subdir `src`
    - init colcon
    - download the list of repos
    - import the repos: `vcs import src < coppeliasim.repos`

    5. Setup your env
    ------------------

    ```
    eval $(luarocks path)
    export LUA_LIBRARIES=/usr/lib/aarch64-linux-gnu/liblua5.3.so
    export LUA_INCLUDE_DIR=/usr/include
    export QSCINTILLA_DIR=/usr/include/aarch64-linux-gnu/qt5/Qsci
    export QSCINTILLA_LIBS="/usr/lib/libqscintilla2_qt5.so"
    export QSCINTILLA_INCLUDEPATH="/usr/include/aarch64-linux-gnu/qt5"
    export COPPELIASIM_ROOT_DIR="<COPPELIA_DIR>/Contents/Resources"
    ```
    5. Build of lib and client
    --------------------------


  20. @jeguzzi jeguzzi renamed this gist Mar 16, 2023. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions gistfile1.txt → Instructions.md
    Original file line number Diff line number Diff line change
    @@ -25,6 +25,7 @@ This is only needed if you are compiling for a different architecture, like arm.
    4. Create a workspace where to build
    ------------------------------------

    - create a directory
    - create a directory with subdir `src`
    - init colcon
    - download the list of repos
    - download the list of repos
    - import the repos: `vcs import src < coppeliasim.repos`
  21. @jeguzzi jeguzzi created this gist Mar 16, 2023.
    262 changes: 262 additions & 0 deletions coppeliasim.repos
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,262 @@
    repositories:
    coppeliaSimClientApplication:
    type: git
    url: https://github.com/CoppeliaRobotics/coppeliaSimClientApplication.git
    version: coppeliasim-v4.4.0-rev0
    CoppeliaSimLib:
    type: git
    url: https://github.com/CoppeliaRobotics/CoppeliaSimLib.git
    version: coppeliasim-v4.4.0-rev0
    include:
    type: git
    url: https://github.com/CoppeliaRobotics/include.git
    version: coppeliasim-v4.4.0-rev0
    libPlugin:
    type: git
    url: https://github.com/CoppeliaRobotics/libPlugin.git
    version: coppeliasim-v4.4.0-rev0
    coppeliaGeometricRoutines:
    type: git
    url: https://github.com/CoppeliaRobotics/coppeliaGeometricRoutines.git
    version: coppeliasim-v4.4.0-rev0
    coppeliaKinematicsRoutines:
    type: git
    url: https://github.com/CoppeliaRobotics/coppeliaKinematicsRoutines.git
    version: coppeliasim-v4.4.0-rev0
    bubbleRobClient:
    type: git
    url: https://github.com/CoppeliaRobotics/bubbleRobClient.git
    version: coppeliasim-v4.4.0-rev0
    bubbleRobServer:
    type: git
    url: https://github.com/CoppeliaRobotics/bubbleRobServer.git
    version: coppeliasim-v4.4.0-rev0
    bubbleRobZmqServer:
    type: git
    url: https://github.com/CoppeliaRobotics/bubbleRobZmqServer.git
    version: coppeliasim-v4.4.0-rev0
    common:
    type: git
    url: https://github.com/CoppeliaRobotics/common.git
    version: coppeliasim-v4.4.0-rev0
    helpFiles:
    type: git
    url: https://github.com/CoppeliaRobotics/helpFiles.git
    version: coppeliasim-v4.4.0-rev0
    lua:
    type: git
    url: https://github.com/CoppeliaRobotics/lua.git
    version: coppeliasim-v4.4.0-rev0
    # models:
    # type: git
    # url: https://github.com/CoppeliaRobotics/models.git
    # version: coppeliasim-v4.4.0-rev0
    mtbServer:
    type: git
    url: https://github.com/CoppeliaRobotics/mtbServer.git
    version: coppeliasim-v4.4.0-rev0
    python:
    type: git
    url: https://github.com/CoppeliaRobotics/python.git
    version: coppeliasim-v4.4.0-rev0
    rcsServer:
    type: git
    url: https://github.com/CoppeliaRobotics/rcsServer.git
    version: coppeliasim-v4.4.0-rev0
    # scenes:
    # type: git
    # url: https://github.com/CoppeliaRobotics/scenes.git
    # version: coppeliasim-v4.4.0-rev0
    simExtAssimp:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtAssimp.git
    version: coppeliasim-v4.4.0-rev0
    simExtBubbleRob:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtBubbleRob.git
    version: coppeliasim-v4.4.0-rev0
    simExtCHAI3D:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtCHAI3D.git
    version: coppeliasim-v4.4.0-rev0
    simExtCodeEditor:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtCodeEditor.git
    version: coppeliasim-v4.4.0-rev0
    simExtCollada:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtCollada.git
    version: coppeliasim-v4.4.0-rev0
    simExtConvexDecompose:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtConvexDecompose.git
    version: coppeliasim-v4.4.0-rev0
    simExtDataflow:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtDataflow.git
    version: coppeliasim-v4.4.0-rev0
    simExtDyn:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtDyn.git
    version: coppeliasim-v4.4.0-rev0
    simExtEigen:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtEigen.git
    version: coppeliasim-v4.4.0-rev0
    simExtExternalRenderer:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtExternalRenderer.git
    version: coppeliasim-v4.4.0-rev0
    simExtGeom:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtGeom.git
    version: coppeliasim-v4.4.0-rev0
    simExtGLTF:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtGLTF.git
    version: coppeliasim-v4.4.0-rev0
    simExtICP:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtICP.git
    version: coppeliasim-v4.4.0-rev0
    simExtIGL:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtIGL.git
    version: coppeliasim-v4.4.0-rev0
    simExtIK:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtIK.git
    version: coppeliasim-v4.4.0-rev0
    simExtIM:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtIM.git
    version: coppeliasim-v4.4.0-rev0
    simExtK3:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtK3.git
    version: coppeliasim-v4.4.0-rev0
    simExtLuaCmd:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtLuaCmd.git
    version: coppeliasim-v4.4.0-rev0
    simExtLuaParser:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtLuaParser.git
    version: coppeliasim-v4.4.0-rev0
    simExtLuaRemoteApiClient:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtLuaRemoteApiClient.git
    version: coppeliasim-v4.4.0-rev0
    simExtMTB:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtMTB.git
    version: coppeliasim-v4.4.0-rev0
    simExtOctomap:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtOctomap.git
    version: coppeliasim-v4.4.0-rev0
    simExtOMPL:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtOMPL.git
    version: coppeliasim-v4.4.0-rev0
    simExtOpenGL3Renderer:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtOpenGL3Renderer.git
    version: coppeliasim-v4.4.0-rev0
    simExtOpenMesh:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtOpenMesh.git
    version: coppeliasim-v4.4.0-rev0
    simExtPovRay:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtPovRay.git
    version: coppeliasim-v4.4.0-rev0
    simExtQHull:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtQHull.git
    version: coppeliasim-v4.4.0-rev0
    simExtQML:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtQML.git
    version: coppeliasim-v4.4.0-rev0
    simExtRemoteApi:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtRemoteApi.git
    version: coppeliasim-v4.4.0-rev0
    simExtRML2:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtRML2.git
    version: coppeliasim-v4.4.0-rev0
    simExtRRS1:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtRRS1.git
    version: coppeliasim-v4.4.0-rev0
    simExtRuckig:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtRuckig.git
    version: coppeliasim-v4.4.0-rev0
    simExtSDF:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtSDF.git
    version: coppeliasim-v4.4.0-rev0
    simExtSubprocess:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtSubprocess.git
    version: coppeliasim-v4.4.0-rev0
    simExtSurfRec:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtSurfRec.git
    version: coppeliasim-v4.4.0-rev0
    simExtUI:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtUI.git
    version: coppeliasim-v4.4.0-rev0
    simExtURDF:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtURDF.git
    version: coppeliasim-v4.4.0-rev0
    simExtURLDrop:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtURLDrop.git
    version: coppeliasim-v4.4.0-rev0
    simExtWS:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtWS.git
    version: coppeliasim-v4.4.0-rev0
    simExtZMQ:
    type: git
    url: https://github.com/CoppeliaRobotics/simExtZMQ.git
    version: coppeliasim-v4.4.0-rev0
    standAloneKinematicsDemo1:
    type: git
    url: https://github.com/CoppeliaRobotics/standAloneKinematicsDemo1.git
    version: coppeliasim-v4.4.0-rev0
    standAloneKinematicsDemo2:
    type: git
    url: https://github.com/CoppeliaRobotics/standAloneKinematicsDemo2.git
    version: coppeliasim-v4.4.0-rev0
    threejsFrontend:
    type: git
    url: https://github.com/CoppeliaRobotics/threejsFrontend.git
    version: coppeliasim-v4.4.0-rev0
    videoRecorder:
    type: git
    url: https://github.com/CoppeliaRobotics/videoRecorder.git
    version: coppeliasim-v4.4.0-rev0
    wsRemoteApi:
    type: git
    url: https://github.com/CoppeliaRobotics/wsRemoteApi.git
    version: coppeliasim-v4.4.0-rev0
    zmqRemoteApi:
    type: git
    url: https://github.com/CoppeliaRobotics/zmqRemoteApi.git
    version: coppeliasim-v4.4.0-rev0
    simMath:
    type: git
    url: https://github.com/CoppeliaRobotics/simMath.git
    version: coppeliasim-v4.4.0-rev0
    remoteApi:
    type: git
    url: https://github.com/CoppeliaRobotics/remoteApi.git
    version: coppeliasim-v4.4.0-rev0

    30 changes: 30 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    How to compile CoppeliaSim from source
    ======================================

    1. Install dependicies
    -----------------------

    - colcon `pip install -U colcon-common-extensions`
    - vcs
    - cmake
    - lua5.3
    - luarocks
    - qt@5
    - qscintilla2

    2. Download CoppeliaSim
    -----------------------

    - https://www.coppeliarobotics.com/downloads

    3. Remove the compiled libraries
    --------------------------------

    This is only needed if you are compiling for a different architecture, like arm.

    4. Create a workspace where to build
    ------------------------------------

    - create a directory
    - init colcon
    - download the list of repos