cc_staff
284
edits
(Marked this version for translation) |
m (Correctly set rpath for torch libs) |
||
Line 2,184: | Line 2,184: | ||
With the python virtualenv activated, configure the project and compile the program: | With the python virtualenv activated, configure the project and compile the program: | ||
</translate> | </translate> | ||
cmake -B build -S . -DCMAKE_PREFIX_PATH=$VIRTUAL_ENV/lib/python3.10/site-packages | cmake -B build -S . -DCMAKE_PREFIX_PATH=$VIRTUAL_ENV/lib/python3.10/site-packages -DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath=$VIRTUAL_ENV/lib/python3.10/site-packages/torch/lib -DCMAKE_SKIP_RPATH=ON | ||
cmake --build build | cmake --build build | ||
<!--T:56--> | <!--T:56--> |