openh264 icon indicating copy to clipboard operation
openh264 copied to clipboard

Cannot build with MS VS 2010 Express

Open ghost opened this issue 12 years ago • 4 comments

I just tried "AutoBuild_Windows_VS2010.bat" but it couldn't find afxres.h and winres.h, I think they're both part of MFC Library but this is not included in Windows SDK 7 and MS VS 2010 Express as far as I know, is it impossible to compile the encoder binary if I don't have MFC? I tried using windows.h instead but it didn't help, it returns "LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt".

ghost avatar Dec 09 '13 19:12 ghost

You're right. Visual Studio Express versions do not come with the MFC/ATL headers. We should try to remove this dependency since it should not be needed.

Please try removing the .rc files (welsenc.rc, welsdec.rc, welsVP.rc) from your Visual Studio project and see if that removes this dependency. Thanks.

ethanhugg avatar Dec 09 '13 21:12 ethanhugg

It worked like a charm! both decConsole.exe and encConsole.exe were compiled. Shell output: http://paste.ofcode.org/3a8XHxeveAe46X9HNsAjBxq

It still returned the LNK1123 problem though, but it might be something wrong on my side, last time that I tried to compile anything with VS2010 Express was months ago, I guess something got messed somehow during this time, maybe I just need a fresh reinstall solved: https://github.com/cisco/openh264/issues/5#issuecomment-30191400.

ghost avatar Dec 09 '13 21:12 ghost

Thanks for helping us debug this. I'll make sure this dep is removed when we move these builds to gyp.

ethanhugg avatar Dec 09 '13 21:12 ethanhugg

You're welcome, I'll try to compile the debug version later (this was the release, I forgot to mention), that seems to be the problem.


"Error 'LINK : fatal error LNK1123" - Problem Fixed! To get the run the debug, incremental linking must be turned off (or just rename cvtres.exe) in all project files (source: http://bit.ly/IZolkV). This is the content of the debug output folder:

10/12/2013  02:10         4.918.272 decConsole.bsc
10/12/2013  02:10            44.032 decConsole.exe
10/12/2013  02:10           822.272 decConsoled.pdb
10/12/2013  02:09            58.880 encConsole.exe
10/12/2013  02:09           805.888 encConsole.pdb
10/12/2013  02:10         1.036.176 welsdcore.lib
10/12/2013  02:10           201.728 welsdec.dll
10/12/2013  02:10               919 welsdec.exp
10/12/2013  02:10             1.924 welsdec.lib
10/12/2013  02:10           904.192 welsdec.pdb
10/12/2013  02:09           351.232 welsenc.dll
10/12/2013  02:09               935 welsenc.exp
10/12/2013  02:09             1.954 welsenc.lib
10/12/2013  02:09         1.231.872 welsenc.pdb
10/12/2013  02:09           393.728 welsvp.dll
10/12/2013  02:09               999 welsvp.exp
10/12/2013  02:09             1.518 welsvp.lib
10/12/2013  02:09           284.042 welsvp.map
10/12/2013  02:09         2.042.880 welsvp.pdb

It's missing the encoder/decoder binary files, probably need to open a new issue about that.

ghost avatar Dec 10 '13 01:12 ghost