make 'OS=msvc-arm' libraries failed
Hi,
I am trying to compile the openh264 lib for WP8.
- I use the "Visual Studio 2012 ARM Phone" cmd line tool.
- I run the msys.bat.
- I run the command: make 'OS=msvc-arm' libraries, but the compiling failed at the line 210 of gas-preprocessor.pl: open(INPUT, "-|", @preprocess_c_cmd) || die "Error running preprocessor";
I am not familiar with perl, would anyone please tell me what's wrong with it or how to solve the problem? Thank you in advance!
BTW. I managed to compile it in this way without compiling the asm files.
Brs
Hi, please download gas-preprocessor.pl and put it in some directory in PATH.
Hi, Latest version gas-preprocessor.pl was already used. As I mentioned, it was stuck at the line 210 of this file.
Hi, you should install cpp in your PATH, since gas-preprocessor.pl needs cpp to process the assembly source file. cpp is the preprocessor of GCC.
Hi, licaiguo, Thanks for the quick response :)
After installing the cpp preprocessor to the msys directory of mingw, the running of gas-preprocessor seems to be OK now.
BUT, the linking is failed for cannot finding the neon functions: log example: Creating library wels_dll.lib and object wels_dll.exp deblocking.obj : error LNK2019: unresolved external symbol DeblockLumaLt4V_neon referenced in function "void __cdecl WelsSVCEnc::DeblockingInit(struct WelsSVCEnc::tagDeblockingFunc *,int)" (?DeblockingInit@WelsSVCEnc@@YAXPAUtagDeblockingFunc@1@H@Z)
Looks as if the compiling for the asm source code is not correct, all the generated obj of the asm files are 1K size and having the similar content:

What's wrong with me?...
Brs
I build the library successfully using VS2012 and mingw with latest code. Can you give more information?
Hi,
I was also building with VS2012 and MinGW, quite a lot of errors were printed duing "Creating library wels_dll.lib and object wels_dll.exp", indicating that all the _neon functions were not be able to be found, and the example log has already been pasted in my previous post.
Brs
It seems the assembly files are not compiled correctly. Can you paste your command lines to setup the build environment?
- I used the VS2012's tool 'Visual Studio 2012 ARM Phone 工具命令提示' to enter the command line;
- then ran the 'msys.bat' in MinGW; 3 then make 'OS=msvc-arm' libraries
Hi, I used your steps with additional step to add gas-preprocessor.pl and cpp to the PATH. I can build the libraries successfully.
gas-preprocessor.pl and cpp were also in my PATH too... gas-preprocessor.pl was downloaded from the url in README, cpp.exe was installed together with MinGW. OK, I'll try to move to another environment and do it again...