Skip to content

Commit

Permalink
[fix] cli: fix database driver loading for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bgallois committed Nov 21, 2023
1 parent b814a28 commit 2198125
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fasttrack-cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ This file is part of Fast Track.
#include <stdio.h>
#include <stdlib.h>
#include <tracking.h>
#include <QCoreApplication>
#include <QHash>
#include <QHashIterator>
#include <QObject>
Expand Down Expand Up @@ -100,6 +101,7 @@ All arguments are mandatory except --backPath and --cfg. Loading a configuration
}

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

0 comments on commit 2198125

Please sign in to comment.