Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build: porting Mac OS X (and othrer BSD systems). #12

Merged
merged 2 commits into from
Jun 4, 2015

Conversation

pandax381
Copy link
Contributor

I wrote a patch to build on Mac OS X.

$ cmake -DWITH_IN_MEM=0 ../
-- The C compiler identification is AppleClang 6.0.0.6000054
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is AppleClang 6.0.0.6000054
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find GTest (missing:  GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY) 
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.5") 
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Performing Test MSGPACK_ENABLE_GCC_CXX_ATOMIC
-- Performing Test MSGPACK_ENABLE_GCC_CXX_ATOMIC - Failed
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- Looking for accept4
-- Looking for accept4 - not found
-- Configuring done
CMake Warning (dev):
  Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run "cmake
  --help-policy CMP0042" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  MACOSX_RPATH is not specified for the following targets:

   fluent-bit-shared

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /Users/yamamoto-ma/LOCAL/src/fluent-bit/build
$ make
Scanning dependencies of target msgpack
[  2%] Building CXX object lib/msgpack-0.5.9/CMakeFiles/msgpack.dir/src/object.cpp.o
[  5%] Building C object lib/msgpack-0.5.9/CMakeFiles/msgpack.dir/src/unpack.c.o
[  8%] Building C object lib/msgpack-0.5.9/CMakeFiles/msgpack.dir/src/objectc.c.o
[ 10%] Building C object lib/msgpack-0.5.9/CMakeFiles/msgpack.dir/src/version.c.o
[ 13%] Building C object lib/msgpack-0.5.9/CMakeFiles/msgpack.dir/src/vrefbuffer.c.o
[ 16%] Building C object lib/msgpack-0.5.9/CMakeFiles/msgpack.dir/src/zone.c.o
Linking CXX static library ../../library/libmsgpack.a
[ 16%] Built target msgpack
Scanning dependencies of target mk_core
[ 18%] Building C object lib/mk_core/CMakeFiles/mk_core.dir/mk_iov.c.o
[ 21%] Building C object lib/mk_core/CMakeFiles/mk_core.dir/mk_rconf.c.o
[ 24%] Building C object lib/mk_core/CMakeFiles/mk_core.dir/mk_string.c.o
[ 27%] Building C object lib/mk_core/CMakeFiles/mk_core.dir/mk_memory.c.o
[ 29%] Building C object lib/mk_core/CMakeFiles/mk_core.dir/mk_event.c.o
[ 32%] Building C object lib/mk_core/CMakeFiles/mk_core.dir/mk_utils.c.o
[ 35%] Building C object lib/mk_core/CMakeFiles/mk_core.dir/mk_rbtree.c.o
Linking C static library ../../library/libmk_core.a
[ 35%] Built target mk_core
Scanning dependencies of target jsmn
[ 37%] Building C object lib/jsmn/CMakeFiles/jsmn.dir/jsmn.c.o
Linking C static library ../../library/libjsmn.a
[ 37%] Built target jsmn
Scanning dependencies of target flb-plugin-in_cpu
[ 40%] Building C object plugins/in_cpu/CMakeFiles/flb-plugin-in_cpu.dir/in_cpu.c.o
Linking C static library ../../library/libflb-plugin-in_cpu.a
[ 40%] Built target flb-plugin-in_cpu
Scanning dependencies of target flb-plugin-in_kmsg
[ 43%] Building C object plugins/in_kmsg/CMakeFiles/flb-plugin-in_kmsg.dir/in_kmsg.c.o
Linking C static library ../../library/libflb-plugin-in_kmsg.a
[ 43%] Built target flb-plugin-in_kmsg
Scanning dependencies of target flb-plugin-out_fluentd
[ 45%] Building C object plugins/out_fluentd/CMakeFiles/flb-plugin-out_fluentd.dir/__/__/src/flb_network.c.o
[ 48%] Building C object plugins/out_fluentd/CMakeFiles/flb-plugin-out_fluentd.dir/fluentd.c.o
Linking C static library ../../library/libflb-plugin-out_fluentd.a
[ 48%] Built target flb-plugin-out_fluentd
Scanning dependencies of target flb-plugin-out_td
[ 51%] Building C object plugins/out_td/CMakeFiles/flb-plugin-out_td.dir/td_http.c.o
[ 54%] Building C object plugins/out_td/CMakeFiles/flb-plugin-out_td.dir/td_config.c.o
[ 56%] Building C object plugins/out_td/CMakeFiles/flb-plugin-out_td.dir/td.c.o
Linking C static library ../../library/libflb-plugin-out_td.a
[ 56%] Built target flb-plugin-out_td
Scanning dependencies of target flb-plugin-out_stdout
[ 59%] Building C object plugins/out_stdout/CMakeFiles/flb-plugin-out_stdout.dir/stdout.c.o
Linking C static library ../../library/libflb-plugin-out_stdout.a
[ 59%] Built target flb-plugin-out_stdout
Scanning dependencies of target fluent-bit-static
[ 62%] Building C object src/CMakeFiles/fluent-bit-static.dir/flb_pack.c.o
[ 64%] Building C object src/CMakeFiles/fluent-bit-static.dir/flb_input.c.o
[ 67%] Building C object src/CMakeFiles/fluent-bit-static.dir/flb_output.c.o
[ 70%] Building C object src/CMakeFiles/fluent-bit-static.dir/flb_config.c.o
[ 72%] Building C object src/CMakeFiles/fluent-bit-static.dir/flb_network.c.o
[ 75%] Building C object src/CMakeFiles/fluent-bit-static.dir/flb_utils.c.o
[ 78%] Building C object src/CMakeFiles/fluent-bit-static.dir/flb_engine.c.o
Linking C static library ../library/libfluent-bit.a
[ 78%] Built target fluent-bit-static
Scanning dependencies of target fluent-bit-bin
[ 81%] Building C object src/CMakeFiles/fluent-bit-bin.dir/fluent-bit.c.o
Linking C executable ../bin/fluent-bit
[ 81%] Built target fluent-bit-bin
Scanning dependencies of target fluent-bit-shared
[ 83%] Building C object src/CMakeFiles/fluent-bit-shared.dir/flb_pack.c.o
[ 86%] Building C object src/CMakeFiles/fluent-bit-shared.dir/flb_input.c.o
[ 89%] Building C object src/CMakeFiles/fluent-bit-shared.dir/flb_output.c.o
[ 91%] Building C object src/CMakeFiles/fluent-bit-shared.dir/flb_config.c.o
[ 94%] Building C object src/CMakeFiles/fluent-bit-shared.dir/flb_network.c.o
[ 97%] Building C object src/CMakeFiles/fluent-bit-shared.dir/flb_utils.c.o
[100%] Building C object src/CMakeFiles/fluent-bit-shared.dir/flb_engine.c.o
Linking C shared library ../library/libfluent-bit.dylib
[100%] Built target fluent-bit-shared

Signed-off-by: pandax381 <pandax381@gmail.com>

Signed-off-by: pandax381 <pandax381@gmail.com>
Signed-off-by: pandax381 <pandax381@gmail.com>
edsiper added a commit that referenced this pull request Jun 4, 2015
Build: porting Mac OS X (and othrer BSD systems).
@edsiper edsiper merged commit 0251287 into fluent:master Jun 4, 2015
@edsiper
Copy link
Member

edsiper commented Jun 4, 2015

thanks!

fujimotos pushed a commit to fujimotos/fluent-bit that referenced this pull request Jul 22, 2019
in_disk: add new documentation about in_disk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants