Skip to content

Commit 2198125

Browse files
committed
[fix] cli: fix database driver loading for windows
1 parent b814a28 commit 2198125

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/fasttrack-cli.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ This file is part of Fast Track.
1919
#include <stdio.h>
2020
#include <stdlib.h>
2121
#include <tracking.h>
22+
#include <QCoreApplication>
2223
#include <QHash>
2324
#include <QHashIterator>
2425
#include <QObject>
@@ -100,6 +101,7 @@ All arguments are mandatory except --backPath and --cfg. Loading a configuration
100101
}
101102

102103
int main(int argc, char **argv) {
104+
QCoreApplication app(argc, argv);
103105
char env[] = "OPENCV_OPENCL_DEVICE=disabled";
104106
putenv(env); // disable OpenCL to fix windows memory leaks and increase performance
105107
static struct option long_options[] =

0 commit comments

Comments
 (0)