Skip to content

Commit 5b61e2b

Browse files
committed
Fixed some MSVC and MINGW differences
1 parent af22c0f commit 5b61e2b

12 files changed

+25
-31
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ HunterGate(
1515

1616
# Move binary dir if windows, to shorten the path
1717
if(WIN32)
18-
set(HUNTER_BINARY_DIR "${HUNTER_GATE_ROOT}/_hunter_bin" CACHE STRING "Hunter binary directory")
18+
set(HUNTER_BINARY_DIR "${HUNTER_GATE_ROOT}/_bin" CACHE STRING "Hunter binary directory")
1919
endif()
2020

2121
# Pybindings project

depthai-cpp/shared/depthai-shared

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 5fa3a40a26508b76823c0b3c14a8cb4ca0f0c091

src/device_bindings.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33
//std
44
#include <iostream>
55

6-
76
//depthai-core
87
#include "depthai/host_capture_command.hpp"
98

109
//depthai-shared
1110
#include "depthai-shared/metadata/capture_metadata.hpp"
1211

13-
1412
//project
15-
#include <pybind11/stl.h>
13+
#include "pybind11_common.hpp"
1614
#include <boost/algorithm/string/replace.hpp>
1715

1816

src/device_bindings.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
//pybind11
44
#include "pybind11_common.hpp"
55

6-
#include <pybind11/pybind11.h>
7-
#include <pybind11/numpy.h>
8-
96
// depthai-api
107
#include "depthai/device.hpp"
118

src/host_data_packet_bindings.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
//depthai-shared
77
#include "depthai-shared/object_tracker/object_tracker.hpp"
88

9-
// Binding for HostDataPacket
10-
#include "pybind11/stl.h" // bindings for boost::optional
9+
// pybind11
10+
#include "pybind11_common.hpp"
1111
namespace py = pybind11;
1212

13+
// Binding for HostDataPacket
1314
PYBIND11_MAKE_OPAQUE(std::list<std::shared_ptr<HostDataPacket>>);
14-
1515
void init_binding_host_data_packet(pybind11::module& m){
1616

1717

src/host_data_packet_bindings.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
//pybind11
44
#include "pybind11_common.hpp"
55

6-
#include <pybind11/pybind11.h>
7-
#include <pybind11/numpy.h>
8-
96
// depthai-api
107
#include "depthai/host_data_packet.hpp"
118

src/nnet_packet_bindings.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
//project
99
#include "host_data_packet_bindings.hpp"
1010

11-
#include "pybind11/stl.h" // bindings for boost::optional
11+
// pybind11
12+
#include "pybind11_common.hpp"
13+
1214
namespace py = pybind11;
1315

1416

src/nnet_packet_bindings.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
//pybind11
44
#include "pybind11_common.hpp"
55

6-
#include <pybind11/pybind11.h>
7-
#include <pybind11/numpy.h>
8-
96
// depthai-api
107
#include "depthai/nnet/nnet_packet.hpp"
118

src/py_bindings.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,9 @@
66
#include <string>
77
#include <vector>
88

9+
// pybind11
910
#include "pybind11_common.hpp"
1011

11-
12-
#ifdef _MSC_VER
13-
#define HAVE_SNPRINTF
14-
#endif
15-
#include <pybind11/pybind11.h>
16-
#include <pybind11/stl.h>
17-
#include <pybind11/numpy.h>
18-
1912
#include <boost/algorithm/string/replace.hpp>
2013

2114
// depthai-core

0 commit comments

Comments
 (0)