Hello,
I'm working with the DLP2000 EVM and the DLP2600. What I'm looking to accomplish is use 40 bmp images that represent a mask that I would like to load up onto the DMD. Like others, I came across Kyle Rakos' code for doing this. I am, however, having some issues I can't seem to figure out.
I'm hoping to integrate this into the code I've already been writing via Visual studio, so I'll need to build it out specificly for that, but I can't seem to build it stand alone via Visual Studio, I keep getting this error. T
1>C:\Users\mascenzi\source\repos\DMDMask\DMDMask\display_core.c(73,72): error : ‘MAP_ANONYMOUS’ undeclared (first use in this function) 1>C:\Users\mascenzi\source\repos\DMDMask\DMDMask\display_core.c(73,72): error : *buffer = mmap (0, *screensize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, (off_t)0); // Second buffer 1>C:\Users\mascenzi\source\repos\DMDMask\DMDMask\display_core.c(73,72): error :
I'm also getting a lot of warnings.
Obviously, because I'm using VS, I'm not in the opt/scripts/device/bone/capes/DLPDLCR200/structure_light folder. Correct me if I'm wrong, but this shouldn't matter as there are no other references to any of the other directories.
I'm assuming that it has something to do with how its being built.
First thing I noticed was that the make file is using gcc instead of g++ that VS is using. The 2nd thing that I noticed was the CFLAG. Could someone point me in the right direction for building this via Visual Studio?
In regards to my VS setup, I'm using VS2017. I created the project as an Empty Linux project, under the Cross Platform > Linux template. Added each of the header and source files into the project under a "Headers" and "Source" folders.
Thank you in advance.
Michael