platoon-code / libyuv

Automatically exported from code.google.com/p/libyuv
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

add cmake support #366

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Follow the build instructions from the wiki for mac. 

What is the expected output? What do you see instead?
A working library.

What version of the product are you using? On what operating system?
Mac 10.9.3, revision 1101 of libyuv svn.

Original issue reported on code.google.com by diederi...@gmail.com on 2 Oct 2014 at 9:13

GoogleCodeExporter commented 9 years ago
Works for me.  Can you clarify?

Original comment by fbarch...@google.com on 2 Oct 2014 at 5:58

GoogleCodeExporter commented 9 years ago
Seems to be a bad runhooks

This is the error diederickh reports:
+ set 'GYP_DEFINES=clang=1 target_arch=x64'
+ ./gyp_libyuv -fninja --depth=. libyuv.gyp
Traceback (most recent call last):
  File "./gyp_libyuv", line 22, in <module>
    import gyp_chromium
ImportError: No module named gyp_chromium
+ mkdir -p out/Release
+ ninja -j7 -C out/Release
ninja: Entering directory `out/Release'
ninja: error: loading 'build.ninja': No such file or directory

Original comment by fbarch...@google.com on 2 Oct 2014 at 6:44

GoogleCodeExporter commented 9 years ago
looks like gclient config was not done and should resolve this issue.  I'll 
make that line bold in the Getting Started :-)

diederickh did a cmake file as a work around.  Get cmake from here:
http://www.cmake.org/

Original comment by fbarch...@google.com on 2 Oct 2014 at 8:41

GoogleCodeExporter commented 9 years ago
cmake file does not work on Windows?

Original comment by fbarch...@google.com on 6 Oct 2014 at 5:54

GoogleCodeExporter commented 9 years ago
Attached version works on Windows (didn't test it on Mac yet).

Original comment by diederi...@gmail.com on 6 Oct 2014 at 5:56

Attachments:

GoogleCodeExporter commented 9 years ago
Instructions are on https://code.google.com/p/libyuv/wiki/GettingStarted
install goes here:
fbarchard@g36:/usr/local/google/libyuv/trunk/out$ sudo cmake --build . --target 
install --config Release
[sudo] password for fbarchard:
[100%] Built target yuv
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/lib/lib/libyuv.a
-- Installing: /usr/lib/include/libyuv/basic_types.h
-- Installing: /usr/lib/include/libyuv/compare.h
-- Installing: /usr/lib/include/libyuv/convert.h
-- Installing: /usr/lib/include/libyuv/convert_argb.h
-- Installing: /usr/lib/include/libyuv/convert_from.h
-- Installing: /usr/lib/include/libyuv/convert_from_argb.h
-- Installing: /usr/lib/include/libyuv/cpu_id.h
-- Installing: /usr/lib/include/libyuv/format_conversion.h
-- Installing: /usr/lib/include/libyuv/planar_functions.h
-- Installing: /usr/lib/include/libyuv/rotate.h
-- Installing: /usr/lib/include/libyuv/rotate_argb.h
-- Installing: /usr/lib/include/libyuv/row.h
-- Installing: /usr/lib/include/libyuv/scale.h
-- Installing: /usr/lib/include/libyuv/scale_argb.h
-- Installing: /usr/lib/include/libyuv/scale_row.h
-- Installing: /usr/lib/include/libyuv/version.h
-- Installing: /usr/lib/include/libyuv/video_common.h
-- Installing: /usr/lib/include/libyuv/mjpeg_decoder.h
-- Installing: /usr/lib/include/libyuv.h

Original comment by fbarch...@google.com on 6 Oct 2014 at 10:38

GoogleCodeExporter commented 9 years ago
maintanence and more doc required, but the initial mac build issue and cmake 
support are done.

Original comment by fbarch...@google.com on 6 Oct 2014 at 10:42

GoogleCodeExporter commented 9 years ago
Reopening due to new issues with cmake.

Original comment by fbarch...@google.com on 28 Oct 2014 at 11:23

GoogleCodeExporter commented 9 years ago
Fixed in r1146

Original comment by fbarch...@google.com on 28 Oct 2014 at 11:50