Skip to content

Commit 8eb868b

Browse files
committed
Tweak minor details in cpack demo notes
1 parent 6ff8238 commit 8eb868b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

03_building_and_packaging/cpack_demo.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Example code is in [`03_building_and_packaging/examples/cpack`](https://github.c
55
- Show `main.cpp`, `sse/*`: same example as last week
66
- Goal of this lecture: How can we give this software to somebody else in a proper way? Remember lecture on packaging for Python; now C++ code
77
- Build and start Docker container:
8-
- `docker build -t "cpack_demo"`
9-
- `docker run -it cpack_demo`
8+
- `docker build -t "cpack_demo" .`
9+
- `docker run --rm -it cpack_demo`
1010

1111
## Add Install Target to CMake Configuration
1212

@@ -32,7 +32,7 @@ Example code is in [`03_building_and_packaging/examples/cpack`](https://github.c
3232
mkdir build && cd build
3333
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release ..
3434
make -j
35-
sudo make install
35+
make install
3636
```
3737

3838
- Installs in `/usr/local` which is the default value of `CMAKE_INSTALL_PREFIX` when using CMake.
@@ -95,7 +95,7 @@ Example code is in [`03_building_and_packaging/examples/cpack`](https://github.c
9595
- `CPACK_DEBIAN_PACKAGE_SHLIBDEPS` tries to extract dependencies automatically. We can also set dependencies manually (`CPACK_DEBIAN_PACKAGE_DEPENDS`).
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`
98-
- Install the package: `sudo apt install ./helloworld_0.1.0_amd64.deb`
98+
- Install the package: `apt install ./helloworld_0.1.0_amd64.deb`
9999
- `helloworld` and `which helloworld`: now `/usr`, not `/usr/local`, since we use package manager.
100100

101101
## Check Debian Package

0 commit comments

Comments
 (0)