Skip to content

Commit 91600f7

Browse files
committed
Update lecture demos
1 parent f74c780 commit 91600f7

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

03_building_and_packaging/cmake_more_demo.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- `tree cmake`
99
- If software should be usable (for everybody everywhere), building and packaging is a project by itself
1010
- In `modules`: some `FindX.cmake`, partially third-party, partially developed by preCICE devs
11-
- In `CMakeLists.txt`: `sources.cmake` included (around line 510)
11+
- In `CMakeLists.txt`: `sources.cmake` included (around line 553)
1212
- No glob, but generated externally (some python script)
1313
- Look at `src/sources.cmake`
1414
- Look at `CPackConfig.cmake`
@@ -18,6 +18,7 @@
1818

1919
- There are many tools around CMake, `ccmake` is also developed by KitWare
2020
- Separate package on Ubuntu: `sudo apt-get install cmake-curses-gui`
21+
- If necessary, use Docker recipe in [`03_building_and_packaging/examples/ccmake`](https://github.com/Simulation-Software-Engineering/Lecture-Material/tree/main/03_building_and_packaging/examples/ccmake).
2122
- Delete previous build folder and start from scratch
2223
- `ccmake ..`
2324
- `[c]` if not yet configured before

03_building_and_packaging/cpack_demo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Example code is in [`03_building_and_packaging/examples/cpack`](https://github.c
9696
- `cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release ..` and `cpack -G DEB` ... no complaints
9797
- Different package name: `helloworld_0.1.0_amd64.deb`
9898
- Install the package: `apt install ./helloworld_0.1.0_amd64.deb`
99-
- `helloworld` and `which helloworld`: now `/usr`, not `/usr/local`, since we use package manager.
99+
- `helloworld` and `which helloworld`: we just installed one in `/usr`, not in `/usr/local`, since we used package manager (but the old one could still be called first).
100100

101101
## Check Debian Package
102102

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
From ubuntu:24.04
2+
3+
RUN apt-get -qq update && \
4+
apt-get -qq -y install \
5+
build-essential \
6+
cmake \
7+
g++ \
8+
vim \
9+
tree \
10+
git \
11+
cmake-curses-gui \
12+
libeigen3-dev \
13+
libxml2-dev \
14+
libboost-all-dev \
15+
petsc-dev \
16+
python3-dev \
17+
python3-numpy
18+
19+
# This is some strang Docker problem. Normally, you don't need to add /usr/local/lib to LD_LIBRARY_PATH
20+
ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:/usr/local/lib/
21+
22+
RUN git clone https://github.com/precice/precice.git
23+
24+
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)