Skip to content

Commit 2976f17

Browse files
committed
Enable and fix qt6 module with MSVC
1 parent a8262fc commit 2976f17

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

CMakePresets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"MOD_MOVIT": "OFF",
2626
"MOD_PLUS": "OFF",
2727
"MOD_PLUSGPL": "OFF",
28-
"MOD_QT6": "OFF",
28+
"MOD_QT6": "ON",
2929
"MOD_SOX": "OFF",
3030
"MOD_GLAXNIMATE_QT6": "OFF",
3131
"MOD_RESAMPLE": "OFF",

src/modules/qt/producer_qimage.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727
#include <stdlib.h>
2828
#include <string.h>
2929
#include <sys/types.h>
30+
31+
#ifndef _MSC_VER
3032
#include <unistd.h>
33+
#endif
3134

3235
static void load_filenames(producer_qimage self, mlt_properties producer_properties);
3336
static int producer_get_frame(mlt_producer parent, mlt_frame_ptr frame, int index);

src/modules/qt/qimage_wrapper.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@
4242
#include <cmath>
4343
#include <sys/stat.h>
4444
#include <sys/types.h>
45+
46+
#ifndef _MSC_VER
4547
#include <unistd.h>
48+
#endif
4649

4750
extern "C" {
4851

vcpkg.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"pkgconf",
99
"pthreads",
1010
"sdl2",
11-
"ffmpeg"
11+
"ffmpeg",
12+
"qtbase",
13+
"qtsvg"
1214
]
1315
}

0 commit comments

Comments
 (0)