@@ -105,6 +105,8 @@ environment, however you are free to follow along on MacOS or Windows too.
105
105
.. tip ::
106
106
On Windows, debug and release builds are not ABI-compatible. If you plan to
107
107
build your project in debug mode, please try the debug version of LibTorch.
108
+ Also, make sure you specify the correct configuration in the ``cmake --build . ``
109
+ line below.
108
110
109
111
The first step is to download the LibTorch distribution locally, via the link
110
112
retrieved from the PyTorch website. For a vanilla Ubuntu Linux environment, this
@@ -201,17 +203,17 @@ corresponding absolute path. Now, we are ready to build our application:
201
203
-- Configuring done
202
204
-- Generating done
203
205
-- Build files have been written to: /home/build
204
- root@fa350df05ecf:/home/build# make -j
206
+ root@fa350df05ecf:/home/build# cmake --build . --config Release
205
207
Scanning dependencies of target dcgan
206
208
[ 50%] Building CXX object CMakeFiles/dcgan.dir/dcgan.cpp.o
207
209
[100%] Linking CXX executable dcgan
208
210
[100%] Built target dcgan
209
211
210
212
Above, we first created a ` ` build` ` folder inside of our ` ` dcgan` ` directory,
211
213
entered this folder, ran the ` ` cmake` ` command to generate the necessary build
212
- (Make) files and finally compiled the project successfully by running ` ` make
213
- -j ` ` . We are now all set to execute our minimal binary and complete this section
214
- on basic project configuration:
214
+ (Make) files and finally compiled the project successfully by running ` ` cmake
215
+ --build . --config Release ` ` . We are now all set to execute our minimal binary
216
+ and complete this section on basic project configuration:
215
217
216
218
.. code-block:: shell
217
219
0 commit comments