libvpx - configure for no Assembly code

262 views
Skip to first unread message

Jeyur Patel

unread,
May 29, 2012, 7:08:10 AM5/29/12
to webm-d...@webmproject.org, codec...@webmproject.org

Hi,

 

I am trying to generate vp8 projects/sln for Visual Studio 10 without any assembly files in the projects. I have tried following configure command and it is still looking for yasm or nasm.

 

../configure --target=x86-win32-vs9 --disable-mmx --disable-sse --disable-sse2 --disable-sse3 --disable-ssse3 --disable-sse4_1 --disable-runtime_cpu_detect

 

 

Do we have any simple command line option for configure to disable assembly codes and have only C files in the projects?

 

I also downloaded the “vpx-vp8-debug-src-x86-win32mt-vs9-v1.1.0” src code with pre-build Visual Studio sln, and tried fiddle around the Vpx_config.h and Vpx_config.asm files, but it still includes the assembly files and uses yasm.

 

My aim is to have C only VP8 decoder which compiles, builds and Run in Visual Studio. Any help would be more than welcome.

 

Regards,

Jey

 

Johann Koenig

unread,
May 29, 2012, 11:54:43 AM5/29/12
to codec...@webmproject.org
On Tue, May 29, 2012 at 4:08 AM, Jeyur Patel <je...@broadcom.com> wrote:
> I am trying to generate vp8 projects/sln for Visual Studio 10 without any
> assembly files in the projects. I have tried following configure command and
> it is still looking for yasm or nasm.

Does it look for yasm at configure time or build time? It is (was?) a
known issue that configure looks for an assembler even though it
doesn't use that assembler during compilation (for visual studio).
This is due to a check in build/make/configure.sh. You may be able to
work around it by specifying --as=yasm to skip the auto detection.
--
- johann koenig
  google

John Koleszar

unread,
May 29, 2012, 12:46:31 PM5/29/12
to codec...@webmproject.org, webm-d...@webmproject.org
Hi,

On Tue, May 29, 2012 at 4:08 AM, Jeyur Patel <je...@broadcom.com> wrote:
> Hi,
>
>
>
> I am trying to generate vp8 projects/sln for Visual Studio 10 without any
> assembly files in the projects. I have tried following configure command and
> it is still looking for yasm or nasm.
>

Agree with Johann's suggestion here to get past the configure stage.
Pass --as=yasm, this check is superfluous in visual studio builds.

>
>
> ../configure --target=x86-win32-vs9 --disable-mmx --disable-sse
> --disable-sse2 --disable-sse3 --disable-ssse3 --disable-sse4_1
> --disable-runtime_cpu_detect
>

That should get you there if your goal is to remove the assembly. You
may need to tweak the builds by hand to remove any remaining asm
references, like x86_abi_support.asm or asm_*_offsets, but it
shouldn't affect the build. If your goal is to remove all platform
specific code, additionally edit the vpx_config.h and *.mk files that
it produces to disable ARCH_X86 and ARCH_X86_64.

> Do we have any simple command line option for configure to disable assembly
> codes and have only C files in the projects?
>

Not on visual studio. If a gcc build (or other posix-like environment)
works for you, you can configure with --target=generic-gnu to get this
configuration. Cross builds are supported in this configuration too.
Reply all
Reply to author
Forward
0 new messages