Skip to content

Issue with DeepGTAV/lib/types.h and OpenCVΒ #112

Open
@niqbal996

Description

@niqbal996

Hi Aitor,
Great work with the GTA 5 plugin. It really helped with my research for Master thesis. The plugin works perfectly for me, however, I am trying to use OpenCV in my own project for some image processing.

[Problem] When I include both "types.h" file and <opencv2/opencv.hpp> for my project, I get the following error:
C2371 'uint': redefinition; different basic types

There is double conflict between
a. typedef unsigned uint in

opencv2/core/hal/interface.h

AND
b. typedef DWORD uint in

types.h

file. I tried commenting the one in types.h but πŸ˜„ then the .asi loader does not load my plugin.
ASI: Loading "D:\Applications\steamapps\common\Grand Theft Auto V\LiDAR GTA V.asi"
"LiDAR_GTA_V.asi" failed to load

It might be irrelevant to your project, But I thought you might have an idea how I could get around this problem?

I am using OpenCV3.4 , VS2017, Win SDK 8.1, GTA 5 version(1.0.1604.1).
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions