timscaffidi / ofxVideoRecorder

A fast multi-threaded video recording extension using ffmpeg
Other
231 stars 97 forks source link

Windows VS2017, 0.10 master branch, added Poco but error about <unistd.h> #62

Open moebiussurfing opened 6 years ago

moebiussurfing commented 6 years ago

hey, I added Poco with Project Generator and

include "ofxXmlPoco.h"

Severity    Code    Description Project File    Line    Suppression State
Error (active)  E1696   cannot open source file "unistd.h"  ofxVideoRecorderExample openframeworks\addons\ofxVideoRecorder\src\ofxVideoRecorder.cpp 10  
Severity    Code    Description Project File    Line    Suppression State
Error (active)  E0020   identifier "ioctl" is undefined ofxVideoRecorderExample openframeworks\addons\ofxVideoRecorder\src\ofxVideoRecorder.cpp 28  
Error (active)  E0020   identifier "FIOBIO" is undefined    ofxVideoRecorderExample \openframeworks\addons\ofxVideoRecorder\src\ofxVideoRecorder.cpp    28  
Error (active)  E0282   the global scope has no "open"  ofxVideoRecorderExample \openframeworks\addons\ofxVideoRecorder\src\ofxVideoRecorder.cpp    80  
Error (active)  E0282   the global scope has no "write" ofxVideoRecorderExample \openframeworks\addons\ofxVideoRecorder\src\ofxVideoRecorder.cpp    96  
Error (active)  E0282   the global scope has no "close" ofxVideoRecorderExample \openframeworks\addons\ofxVideoRecorder\src\ofxVideoRecorder.cpp    133 
Error (active)  E0282   the global scope has no "open"  ofxVideoRecorderExample \openframeworks\addons\ofxVideoRecorder\src\ofxVideoRecorder.cpp    165 
Error (active)  E0282   the global scope has no "write" ofxVideoRecorderExample \openframeworks\addons\ofxVideoRecorder\src\ofxVideoRecorder.cpp    177 
Error (active)  E0282   the global scope has no "close" ofxVideoRecorderExample \openframeworks\addons\ofxVideoRecorder\src\ofxVideoRecorder.cpp    209 
Error (active)  E0020   identifier "usleep" is undefined    ofxVideoRecorderExample \openframeworks\addons\ofxVideoRecorder\src\ofxVideoRecorder.cpp    341 
BenBergman commented 5 years ago

I am experiencing the same issue on Windows 10 with VS2017. It works fine for me on macOS with Xcode 10. I have ffmpeg added to my path (running ffmpeg --version from a cmd prompt gets a proper version number for the version I have installed).

moebiussurfing commented 5 years ago

I am experiencing the same issue on Windows 10 with VS2017. It works fine for me on macOS with Xcode 10. I have ffmpeg added to my path (running ffmpeg --version from a cmd prompt gets a proper version number for the version I have installed).

finally I used this on windows: https://forum.openframeworks.cc/t/screenrecording/7090/18?u=moebiussurfing ofxFastFboReader with ofxFFmpegRecorder from Nick repos