File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,9 @@ if (NOT APPLE)
2020 link_directories (${GLEW_LIBRARY_DIRS} )
2121endif ()
2222
23- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations" )
23+ if (NOT WIN32 )
24+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations" )
25+ endif ()
2426
2527configure_file (example_config.hh.in ${PROJECT_BINARY_DIR} /example_config.hh)
2628
Original file line number Diff line number Diff line change 3838using namespace gz ;
3939using namespace rendering ;
4040
41+ #if not defined(_WIN32)
4142const std::string RESOURCE_PATH =
4243 common::joinPaths (std::string(PROJECT_BINARY_PATH), "media");
44+ #else
45+ const std::string RESOURCE_PATH =
46+ common::joinPaths (std::string(PROJECT_BINARY_PATH), "..", "media");
47+ #endif
4348
4449void buildScene (ScenePtr _scene)
4550{
Original file line number Diff line number Diff line change @@ -7,7 +7,11 @@ This example shows how to use the depth camera.
77In order to compile this tutorial, you need to install some prerequisites :
88
99``` bash
10+ # Linux
1011sudo apt-get install build-essential freeglut3-dev libglew-dev
12+
13+ # Windows (via conda)
14+ conda install glew --channel conda-forge
1115```
1216
1317## Compile and run the example
@@ -20,13 +24,20 @@ cd gz-rendering/examples/depth_camera
2024mkdir build
2125cd build
2226cmake ..
23- make
27+ # On Linux
28+ cmake --build .
29+ # On Windows
30+ cmake --build . --config Release
2431```
2532
2633Execute the example:
2734
2835``` {.sh}
36+ # Linux
2937./depth_camera ogre
38+
39+ # Windows
40+ .\Release\depth_camera.exe ogre
3041```
3142
3243You'll see:
You can’t perform that action at this time.
0 commit comments