smasherprog / screen_capture_lite

cross platform screen/window capturing library
MIT License
638 stars 156 forks source link

'PW_RENDERFULLCONTENT': undeclared identifier in file GDIFrameProcessor.cpp #163

Open dotcomtnu opened 7 months ago

dotcomtnu commented 7 months ago

hi there, I try to build screen_capture_lite with Windows 7 support but PW_RENDERFULLCONTENT require WINVER set to 0x0603 (Win 8.1) Is there any option/switch to compile with Windows 7 support? I'm using VS 2019 and Windows 10 SDK Thank you.

smasherprog commented 7 months ago

I dont run win7. I remember that win7 should be super easy. I accept PR's!

Artur202030 commented 1 month ago

I checked the last one. The library is built and available from the Example_CPP example, on windows 7 and 10. Except: - there is no support check for DirectX Desktop Duplication, in the release build. It's probably here:

https://github.com/smasherprog/screen_capture_lite/blob/master/src_cpp/windows/ThreadRunner.cpp#L87

if defined _DEBUG || !defined NDEBUG

https://github.com/smasherprog/screen_capture_lite/blob/master/src_cpp/windows/ThreadRunner.cpp#L92

if defined _DEBUG || !defined NDEBUG

I never use CMAKE.exe, but I always read CMakeLists.txt, so

for staticLib:

`

` ` ` ` Level3 ` ` ` ` ` ` MinSpace ` ` true ` ` true ` ` WIN32;NDEBUG;%(PreprocessorDefinitions) ` ` true ` ` ../include;../include/windows; ` ` MultiThreaded ` ` stdcpplatest ` ` 4996; ` ` ` ` ` ` Console ` ` true ` ` true ` ` true ` ` ` ` ` ` /SAFESEH:NO %(AdditionalOptions) ` ` ` ` ` ` kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;Dwmapi.lib;%(AdditionalDependencies) ` ` ` `

` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `

` ` ` ` ` ` ` `

` `

`

change for sharedDLL:

`

WIN32;NDEBUG;SC_LITE_DLL;%(PreprocessorDefinitions)

`