openh264 icon indicating copy to clipboard operation
openh264 copied to clipboard

make 'OS=msvc-arm' libraries failed

Open takikoma opened this issue 12 years ago • 10 comments

Hi,

I am trying to compile the openh264 lib for WP8.

  1. I use the "Visual Studio 2012 ARM Phone" cmd line tool.
  2. I run the msys.bat.
  3. 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

takikoma avatar Mar 29 '14 07:03 takikoma

Hi, please download gas-preprocessor.pl and put it in some directory in PATH.

licaiguo avatar Mar 31 '14 00:03 licaiguo

Hi, Latest version gas-preprocessor.pl was already used. As I mentioned, it was stuck at the line 210 of this file.

takikoma avatar Mar 31 '14 02:03 takikoma

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.

licaiguo avatar Mar 31 '14 06:03 licaiguo

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: snip20140331_8

What's wrong with me?...

Brs

takikoma avatar Mar 31 '14 10:03 takikoma

I build the library successfully using VS2012 and mingw with latest code. Can you give more information?

licaiguo avatar Apr 01 '14 02:04 licaiguo

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

takikoma avatar Apr 02 '14 08:04 takikoma

It seems the assembly files are not compiled correctly. Can you paste your command lines to setup the build environment?

licaiguo avatar Apr 03 '14 00:04 licaiguo

  1. I used the VS2012's tool 'Visual Studio 2012 ARM Phone 工具命令提示' to enter the command line;
  2. then ran the 'msys.bat' in MinGW; 3 then make 'OS=msvc-arm' libraries

takikoma avatar Apr 03 '14 02:04 takikoma

Hi, I used your steps with additional step to add gas-preprocessor.pl and cpp to the PATH. I can build the libraries successfully.

licaiguo avatar Apr 03 '14 02:04 licaiguo

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...

takikoma avatar Apr 03 '14 03:04 takikoma