Problem with config libvpx for visual studio

387 views
Skip to first unread message

Peter Tatman

unread,
Feb 3, 2014, 5:56:43 PM2/3/14
to webm-d...@webmproject.org
Hello,

I am trying to build libvpx-v1.3.0 (snapshot) in visual studio 2008 in Windows7 64-bit. But it failed at the configuration step. Could someone help to see what the problem might be? Here is my config.log:

# ../configure --target=x86_64-win64-vs9 --enable-static-msvcrt --disable-install-docs
Configuring selected codecs
  enabling vp8_encoder
  enabling vp8_decoder
  enabling vp9_encoder
  enabling vp9_decoder
Configuring for target 'x86_64-win64-vs9'
  enabling x86_64
check_cpp
BEGIN /tmp/vpx-conf-9020-25514.c
    1 #ifndef __ILP32__
    2 #error "not x32"
    3 #endif
END /tmp/vpx-conf-9020-25514.c
-o /tmp/vpx-conf-9020-25514.o /tmp/vpx-conf-9020-25514.c
../build/make/configure.sh: line 285: -E: command not found
  disabling avx
  disabling avx2
  enabling runtime_cpu_detect
  enabling mmx
  enabling sse
  enabling sse2
  enabling sse3
  enabling ssse3
  enabling sse4_1
  using msvs
check_cxxflags -O3
check_cxx -O3
BEGIN /tmp/vpx-conf-9020-25514.cc
    1 int x;
END /tmp/vpx-conf-9020-25514.cc
-O3 -c -o /tmp/vpx-conf-9020-25514.o /tmp/vpx-conf-9020-25514.cc
../build/make/configure.sh: line 285: -O3: command not found
check_cflags -O3
check_cc -O3
BEGIN /tmp/vpx-conf-9020-25514.c
    1 int x;
END /tmp/vpx-conf-9020-25514.c
-O3 -c -o /tmp/vpx-conf-9020-25514.o /tmp/vpx-conf-9020-25514.c
../build/make/configure.sh: line 285: -O3: command not found
  enabling use_x86inc
check_cc
BEGIN /tmp/vpx-conf-9020-25514.c
    1    unsigned int e = 'O'<<24 | '2'<<16 | 'B'<<8 | 'E';
END /tmp/vpx-conf-9020-25514.c
-c -o /tmp/vpx-conf-9020-25514.o /tmp/vpx-conf-9020-25514.c
../build/make/configure.sh: line 285: -c: command not found
check_cc
BEGIN /tmp/vpx-conf-9020-25514.c
    1    static inline function() {}
END /tmp/vpx-conf-9020-25514.c
-c -o /tmp/vpx-conf-9020-25514.o /tmp/vpx-conf-9020-25514.c
../build/make/configure.sh: line 285: -c: command not found
check_cc
BEGIN /tmp/vpx-conf-9020-25514.c
    1    static __attribute__((always_inline)) function() {}
END /tmp/vpx-conf-9020-25514.c
-c -o /tmp/vpx-conf-9020-25514.o /tmp/vpx-conf-9020-25514.c
../build/make/configure.sh: line 285: -c: command not found
  disabling ccache
  enabling postproc
  enabling unit_tests
fake_check_header stdio.h
fake_check_header stdint.h
fake_check_header pthread.h
fake_check_header sys/mman.h
fake_check_header unistd.h
fake_check_header vpx/vpx_integer.h -I..

I've downloaded yasm-1.2.0-win64.exe (for general use), renamed it to yasm.exe and included it in the path. 


Thanks.
Peter


Johann Koenig

unread,
Feb 3, 2014, 7:13:52 PM2/3/14
to webm-d...@webmproject.org
On Mon, Feb 3, 2014 at 2:56 PM, Peter Tatman <peter....@gmail.com> wrote:
> ../build/make/configure.sh: line 285: -E: command not found

It appears that it can't find the compiler. Do you have mingw or
cygwin installed? Can you run 'gcc'?

Brendan Bolles

unread,
Feb 3, 2014, 7:20:31 PM2/3/14
to webm-d...@webmproject.org
On Feb 3, 2014, at 2:56 PM, Peter Tatman wrote:

> I am trying to build libvpx-v1.3.0 (snapshot) in visual studio 2008 in Windows7 64-bit. But it failed at the configuration step. Could someone help to see what the problem might be? Here is my config.log:


Have you tried just building directly from the project in libvpx/build/x86-msvs? Do you have cygwin installed?

I have libvpx building in visual studio 2008 within my project here:

https://github.com/fnordware/AdobeWebM


Brendan

peter....@gmail.com

unread,
Feb 4, 2014, 5:18:53 PM2/4/14
to webm-d...@webmproject.org

Thanks for the reply. I have Cygwin and I can run gcc. I can run make and build VS solution. But I can't run "make test" or "make testdata". The error message is below.

$ ../libvpx-v1.3.0/configure --target=x86_64-win64-vs9 --enable-static-msvcrt --disable-install-docs --enable-unit-tests

$ make test
make[1]: *** No rule to make target 'x64/Release/test_libvpx.exe', needed by 'test_shard.0'.  Stop.
Makefile:17: recipe for target '.DEFAULT' failed
make: *** [.DEFAULT] Error 2

$ make testdata
    [DOWNLOAD] hantro_collage_w352h288.yuv
/bin/sh: line 1: curl: command not found
../libvpx-v1.3.0/libs.mk:398: recipe for target 'hantro_collage_w352h288.yuv' failed
make[1]: *** [hantro_collage_w352h288.yuv] Error 127
Makefile:17: recipe for target '.DEFAULT' failed
make: *** [.DEFAULT] Error 2

I don't have x64/Release/test_libvpx.exe. I only have x64/Debug/test_libvpx.exe. Is there any other way I can get some VP9 bitstreams?

Thanks.
Peter

Johann Koenig

unread,
Feb 4, 2014, 5:44:40 PM2/4/14
to webm-d...@webmproject.org
On Tue, Feb 4, 2014 at 2:18 PM, <peter....@gmail.com> wrote:
> make[1]: *** No rule to make target 'x64/Release/test_libvpx.exe', needed by

Strange. The should probably be a way to run the tests with the Debug
binary. Can you switch manually:
http://msdn.microsoft.com/en-us/library/wx0123s5.aspx

> $ make testdata
> [DOWNLOAD] hantro_collage_w352h288.yuv
> /bin/sh: line 1: curl: command not found

You need to install the 'curl' command so that it can download the files.

> I don't have x64/Release/test_libvpx.exe. I only have
> x64/Debug/test_libvpx.exe. Is there any other way I can get some VP9
> bitstreams?

You can find the file names in libvpx/test/test_vectors.cc and
download them from http://downloads.webmproject.org/test_data/libvpx/

But it's much easier to install curl and run make testdata.

Erik Niemeyer

unread,
Feb 4, 2014, 6:28:52 PM2/4/14
to webm-d...@webmproject.org
From your output it looks as if you need to install the 'curl' package in Cygwin. then do a 'make testdata', then 'make'.

Erik


--
You received this message because you are subscribed to the Google Groups "WebM Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webm-discuss...@webmproject.org.
To post to this group, send email to webm-d...@webmproject.org.
Visit this group at http://groups.google.com/a/webmproject.org/group/webm-discuss/.
For more options, visit https://groups.google.com/a/webmproject.org/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages