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

Improve trybuild to build 3rd source library using xmake-repo scripts #2859

Closed
waruqi opened this issue Sep 23, 2022 · 2 comments
Closed

Improve trybuild to build 3rd source library using xmake-repo scripts #2859

waruqi opened this issue Sep 23, 2022 · 2 comments

Comments

@waruqi
Copy link
Member

waruqi commented Sep 23, 2022

Is your feature request related to a problem? Please describe.

Although trybuild is good enough to try to build third party libraries, some libraries have their own problems and we often encounter compilation errors during the build process, so we need to fix them by patching.

Now xmake-repo has a large collection of third-party package build scripts that allow us to try to build third-party libraries, such as automatic patching, fixing library source errors, pulling dependencies and so on.

As a result, we can continue to improve trybuild for smarter automated builds, so that xmake can build third-party libraries perfectly, including cross-compiling, even without any xmake.lua configuration.

尽管 trybuild 已经可以很好的尝试构建第三方库,但是由于一些库自身存在问题,我们常常会在构建过程中遇到各种编译错误,因此需要通过打补丁的方式去修复它们。

而现在 xmake-repo 已经收录了大量的第三方包构建脚本,通过这些脚本,我们可以更好的尝试构建第三方库,比如自动打补丁,自动修复库源码错误,自动拉取依赖等等。

因此,我们能够继续改进 trybuild,实现更加智能的自动化构建,即使没有任何 xmake.lua 配置,xmake 也能完美的构建第三方库,包括交叉编译。

Describe the solution you'd like

Related implementation patches

#2858

How to do it?

Download a 3rd library first

$ wget https://jaist.dl.sourceforge.net/project/libjpeg-turbo/2.1.4/libjpeg-turbo-2.1.4.tar.gz
$ tar -xvf libjpeg-turbo-2.1.4.tar.gz
$ cd libjpeg-turbo-2.1.4

Just run xmake command

Xmake will detect build script from xmake-repo

ruki-2:libjpeg-turbo-2.1.4 ruki$ xmake
note: libjpeg-turbo 2.1.4 in xmake-repo found, try building it or you can run `xmake f --trybuild=` to set buildsystem (pass -y or --confirm=y/n/d to skip confirm)?
please input: y (y/n)

checking for platform ... macosx
checking for architecture ... x86_64
checking for Xcode directory ... /Applications/Xcode.app
checking for Codesign Identity of Xcode ... Apple Development: waruqi@gmail.com (T3NA4MRVPU)
checking for SDK version of Xcode for macosx (x86_64) ... 11.3
checking for Minimal target version of Xcode for macosx (x86_64) ... 11.4
xmake f -c --require=n -v -p macosx -a x86_64 -m release -k static --ndk=~/files/android-ndk-r20b/ --xcode=/Applications/Xcode.app
checking for Xcode directory ... /Applications/Xcode.app
checking for Codesign Identity of Xcode ... Apple Development: waruqi@gmail.com (T3NA4MRVPU)
checking for SDK version of Xcode for macosx (x86_64) ... 11.3
checking for Minimal target version of Xcode for macosx (x86_64) ... 11.4
checking for dmd ... /usr/local/bin/dmd
checking for zig ... /usr/local/bin/zig
configure
{
    plat = macosx
    arch = x86_64
    ccache = true
    mode = release
    xcode_codesign_identity = Apple Development: waruqi@gmail.com (T3NA4MRVPU)
    xcode = /Applications/Xcode.app
    proxy_pac = pac.lua
    pkg_searchdirs = ~/Downloads/
    ndk = ~/files/android-ndk-r20b/
    theme = default
    network = public
    ndk_stdcxx = true
    kind = static
    host = macosx
    buildir = build
    clean = true
}
xmake require -v -j 10 --debugdir=/Users/ruki/Downloads/libjpeg-turbo-2.1.4 --force --shallow --build --extra={system=false} "libjpeg-turbo 2.1.4"
configure
{
    arch = x86_64
    plat = macosx
    mode = release
    kind = static
    proxy_pac = pac.lua
    buildir = build
    pkg_searchdirs = ~/Downloads/
    ccache = true
    ndk = ~/files/android-ndk-r20b/
    host = macosx
    network = public
    xcode_codesign_identity = Apple Development: waruqi@gmail.com (T3NA4MRVPU)
    clean = true
    ndk_stdcxx = true
    xcode = /Applications/Xcode.app
    theme = default
}
checking for unzip ... /usr/bin/unzip
checking for git ... /usr/bin/git
checking for gzip ... /usr/bin/gzip
checking for tar ... /usr/bin/tar
updating repositories .. 
pulling repository(build-artifacts): https://gitee.com/xmake-mirror/build-artifacts.git to /Users/ruki/.xmake/repositories/build-artifacts ..
/usr/bin/git pull origin main
hint: Pulling without specifying how to reconcile divergent branches is
hint: discouraged. You can squelch this message by running one of the following
hint: commands sometime before your next pull:
hint: 
hint:   git config pull.rebase false  # merge (the default strategy)
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint: 
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
From https://gitee.com/xmake-mirror/build-artifacts
 * branch            main       -> FETCH_HEAD
Already up to date.
pulling repository(xmake-repo): https://gitee.com/tboox/xmake-repo.git to /Users/ruki/.xmake/repositories/xmake-repo ..
/usr/bin/git pull origin master
hint: Pulling without specifying how to reconcile divergent branches is
hint: discouraged. You can squelch this message by running one of the following
hint: commands sometime before your next pull:
hint: 
hint:   git config pull.rebase false  # merge (the default strategy)
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint: 
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
From https://gitee.com/tboox/xmake-repo
 * branch            master     -> FETCH_HEAD
Already up to date.
ok
/usr/bin/git rev-parse HEAD
checking for cmake ... /usr/local/bin/cmake
checking for cmake ... /usr/local/bin/cmake
checking for nasm ... /usr/local/bin/nasm
checking for nasm ... /usr/local/bin/nasm
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
  -> libjpeg-turbo 2.1.4 
please input: y (y/n/m)

checking for ping ... /sbin/ping
pinging for the host(github.com) ... 65535 ms
checking for cmake ... /usr/local/bin/cmake
/usr/local/bin/cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_SHARED=OFF -DENABLE_STATIC=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_LIBDIR:PATH=lib -DCMAKE_INSTALL_PREFIX=/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2 -G "Unix Makefiles" -DCMAKE_POSITION_INDEPENDENT_CODE=ON /Users/ruki/Downloads/libjpeg-turbo-2.1.4
-- CMAKE_BUILD_TYPE = Release
-- VERSION = 2.1.4, BUILD = 20220923
-- 64-bit build (x86_64)
-- CMAKE_INSTALL_PREFIX = /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2
-- CMAKE_INSTALL_BINDIR = bin (/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/bin)
-- CMAKE_INSTALL_DATAROOTDIR = share (/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/share)
-- CMAKE_INSTALL_DOCDIR = share/doc/libjpeg-turbo (/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/share/doc/libjpeg-turbo)
-- CMAKE_INSTALL_INCLUDEDIR = include (/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/include)
-- CMAKE_INSTALL_LIBDIR = lib (/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/lib)
-- CMAKE_INSTALL_MANDIR = share/man (/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/share/man)
-- Shared libraries disabled (ENABLE_SHARED = 0)
-- Static libraries enabled (ENABLE_STATIC = 1)
-- 12-bit JPEG support disabled (WITH_12BIT = 0)
-- Arithmetic decoding support enabled (WITH_ARITH_DEC = 1)
-- Arithmetic encoding support enabled (WITH_ARITH_ENC = 1)
-- TurboJPEG API library enabled (WITH_TURBOJPEG = 1)
-- TurboJPEG Java wrapper disabled (WITH_JAVA = 0)
-- In-memory source/destination managers enabled (WITH_MEM_SRCDST = 1)
-- Emulating libjpeg API/ABI v6.2 (WITH_JPEG7 = 0, WITH_JPEG8 = 0)
-- libjpeg API shared library version = 62.3.0
-- Compiler flags =  -O3 -DNDEBUG
-- Linker flags =  
-- INLINE = __inline__ __attribute__((always_inline)) (FORCE_INLINE = 1)
-- THREAD_LOCAL = __thread
-- CMAKE_EXECUTABLE_SUFFIX = 
-- CMAKE_ASM_NASM_COMPILER = /usr/local/bin/nasm
-- CMAKE_ASM_NASM_OBJECT_FORMAT = macho64
-- CMAKE_ASM_NASM_FLAGS =  -DMACHO -D__x86_64__ -DPIC 
-- SIMD extensions: x86_64 (WITH_SIMD = 1)
-- FLOATTEST = sse
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build_646b7957
make -j10
[  2%] Built target md5cmp
[ 19%] Built target wrjpgcom
[ 20%] Built target simd
[ 21%] Built target strtest
[ 22%] Built target rdjpgcom
[ 80%] Built target jpeg-static
[ 84%] Built target turbojpeg-static
[ 90%] Built target tjbench-static
[ 90%] Built target tjunittest-static
[ 91%] Built target jpegtran-static
[ 98%] Built target djpeg-static
[100%] Built target cjpeg-static
make install
[  1%] Built target strtest
[  3%] Built target wrjpgcom
[ 19%] Built target simd
[ 52%] Built target turbojpeg-static
[ 53%] Built target rdjpgcom
[ 82%] Built target jpeg-static
[ 85%] Built target jpegtran-static
[ 90%] Built target djpeg-static
[ 93%] Built target tjunittest-static
[ 97%] Built target cjpeg-static
[ 98%] Built target tjbench-static
[100%] Built target md5cmp
Install the project...
-- Install configuration: "Release"
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/lib/libturbojpeg.a
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/bin/tjbench
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/include/turbojpeg.h
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/lib/libjpeg.a
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/bin/cjpeg
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/bin/djpeg
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/bin/jpegtran
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/bin/rdjpgcom
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/bin/wrjpgcom
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/share/doc/libjpeg-turbo/README.ijg
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/share/doc/libjpeg-turbo/README.md
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/share/doc/libjpeg-turbo/example.txt
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/share/doc/libjpeg-turbo/tjexample.c
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/share/doc/libjpeg-turbo/libjpeg.txt
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/share/doc/libjpeg-turbo/structure.txt
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/share/doc/libjpeg-turbo/usage.txt
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/share/doc/libjpeg-turbo/wizard.txt
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/share/doc/libjpeg-turbo/LICENSE.md
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/share/man/man1/cjpeg.1
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/share/man/man1/djpeg.1
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/share/man/man1/jpegtran.1
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/share/man/man1/rdjpgcom.1
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/share/man/man1/wrjpgcom.1
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/lib/pkgconfig/libjpeg.pc
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/lib/pkgconfig/libturbojpeg.pc
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/lib/cmake/libjpeg-turbo/libjpeg-turboConfig.cmake
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/lib/cmake/libjpeg-turbo/libjpeg-turboConfigVersion.cmake
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/lib/cmake/libjpeg-turbo/libjpeg-turboTargets.cmake
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/lib/cmake/libjpeg-turbo/libjpeg-turboTargets-release.cmake
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/include/jconfig.h
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/include/jerror.h
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/include/jmorecfg.h
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/include/jpeglib.h
checking for xmake::libjpeg-turbo ... libjpeg-turbo 2.1.4
{ 
  sysincludedirs = { 
    "/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/include" 
  },
  license = "BSD-3-Clause",
  static = true,
  libfiles = { 
    "/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/lib/libturbojpeg.a",
    "/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/lib/libjpeg.a" 
  },
  linkdirs = { 
    "/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/lib" 
  },
  links = { 
    "turbojpeg",
    "jpeg" 
  },
  version = "2.1.4" 
}

checking for xcrun -sdk macosx clang ... /usr/bin/xcrun -sdk macosx clang
checking for the c compiler (cc) ... xcrun -sdk macosx clang
checking for /usr/bin/xcrun -sdk macosx clang ... ok
checking for flags (-fPIC) ... ok
checking for flags (-fdiagnostics-color=always) ... ok
checking for xcrun -sdk macosx clang++ ... /usr/bin/xcrun -sdk macosx clang++
checking for the linker (ld) ... xcrun -sdk macosx clang++
checking for /usr/bin/xcrun -sdk macosx clang++ ... ok
checking for flags (-fPIC) ... ok
> checking for c includes(turbojpeg.h)
> checking for c funcs(tjSaveImage)
> checking for c links(turbojpeg, jpeg)
> checking for c snippet(has_cfuncs)
  => install libjpeg-turbo 2.1.4 .. ok
xmake f -c --require=n -v -p macosx -a x86_64 -m release -k static
checking for Xcode directory ... /Applications/Xcode.app
checking for Codesign Identity of Xcode ... Apple Development: waruqi@gmail.com (T3NA4MRVPU)
checking for SDK version of Xcode for macosx (x86_64) ... 11.3
checking for Minimal target version of Xcode for macosx (x86_64) ... 11.4
checking for dmd ... /usr/local/bin/dmd
checking for zig ... /usr/local/bin/zig
configure
{
    clean = true
    network = public
    buildir = build
    host = macosx
    pkg_searchdirs = ~/Downloads/
    xcode = /Applications/Xcode.app
    kind = static
    proxy_pac = pac.lua
    ndk_stdcxx = true
    ndk = ~/files/android-ndk-r20b/
    ccache = true
    plat = macosx
    mode = release
    arch = x86_64
    xcode_codesign_identity = Apple Development: waruqi@gmail.com (T3NA4MRVPU)
    theme = default
}
xmake require --export -v --shallow --packagedir=/Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts --extra={system=false} "libjpeg-turbo 2.1.4"
configure
{
    host = macosx
    ccache = true
    ndk = ~/files/android-ndk-r20b/
    mode = release
    buildir = build
    xcode = /Applications/Xcode.app
    kind = static
    ndk_stdcxx = true
    plat = macosx
    xcode_codesign_identity = Apple Development: waruqi@gmail.com (T3NA4MRVPU)
    theme = default
    network = public
    pkg_searchdirs = ~/Downloads/
    proxy_pac = pac.lua
    clean = true
    arch = x86_64
}
checking for unzip ... /usr/bin/unzip
checking for git ... /usr/bin/git
checking for gzip ... /usr/bin/gzip
checking for tar ... /usr/bin/tar
/usr/bin/git rev-parse HEAD
checking for xmake::libjpeg-turbo ... libjpeg-turbo 2.1.4
exporting libjpeg-turbo-2.1.4 
  -> /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2
output to /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts
build ok!

Get build artifacts

$ ls -l build/artifacts/l/libjpeg-turbo/2.1.4/646b795702e34be89c5745333d052aa2/lib/
total 3616
drwxr-xr-x  3 ruki  staff      96  9 23 09:46 cmake
-rw-r--r--  1 ruki  staff  854504  9 23 09:46 libjpeg.a
-rw-r--r--  1 ruki  staff  991600  9 23 09:46 libturbojpeg.a
drwxr-xr-x  4 ruki  staff     128  9 23 09:46 pkgconfig

Describe alternatives you've considered

No response

Additional context

No response

@waruqi
Copy link
Member Author

waruqi commented Sep 23, 2022

Build for android

we just switch to android platform, and pass --trybuild=xrepo to use xrepo as trybuild mode.

ruki-2:libjpeg-turbo-2.1.4 ruki$ xmake
xmake f -c --require=n -v -p android -a armeabi-v7a -m release -k static --ndk=/Users/ruki/files/android-ndk-r20b
checking for Android SDK directory ... ~/Library/Android/sdk
checking for Build Tools Version of Android SDK ... 33.0.0
checking for NDK directory ... /Users/ruki/files/android-ndk-r20b
checking for SDK version of NDK ... 21
checking for clang++ ... /Users/ruki/files/android-ndk-r20b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++
checking for the shared library linker (sh) ... clang++
checking for clang++ ... /Users/ruki/files/android-ndk-r20b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++
checking for the linker (ld) ... clang++
configure
{
    ndk = /Users/ruki/files/android-ndk-r20b
    host = macosx
    ndk_sdkver = 21
    ndk_toolchains_ver = 4.9
    network = public
    ndk_stdcxx = true
    proxy_pac = pac.lua
    kind = static
    plat = android
    ccache = true
    clean = true
    theme = default
    mode = release
    pkg_searchdirs = ~/Downloads/
    android_sdk = ~/Library/Android/sdk
    buildir = build
    ndkver = 20
    build_toolver = 33.0.0
    arch = armeabi-v7a
}
xmake require -v -j 10 --debugdir=/Users/ruki/Downloads/libjpeg-turbo-2.1.4 --force --shallow --build --extra={system=false} "libjpeg-turbo 2.1.4"
checking for the shared library linker (sh) ... clang++
checking for the linker (ld) ... clang++
configure
{
    theme = default
    ndk = /Users/ruki/files/android-ndk-r20b
    android_sdk = ~/Library/Android/sdk
    plat = android
    build_toolver = 33.0.0
    buildir = build
    proxy_pac = pac.lua
    ccache = true
    ndkver = 20
    clean = true
    ndk_sdkver = 21
    mode = release
    host = macosx
    ndk_toolchains_ver = 4.9
    arch = armeabi-v7a
    ndk_stdcxx = true
    network = public
    pkg_searchdirs = ~/Downloads/
    kind = static
}
checking for unzip ... /usr/bin/unzip
checking for git ... /usr/bin/git
checking for gzip ... /usr/bin/gzip
checking for tar ... /usr/bin/tar
/usr/bin/git rev-parse HEAD
checking for cmake ... /usr/local/bin/cmake
checking for cmake ... /usr/local/bin/cmake
checking for nasm ... /usr/local/bin/nasm
checking for nasm ... /usr/local/bin/nasm
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
  -> libjpeg-turbo 2.1.4 
please input: y (y/n/m)

checking for ping ... /sbin/ping
pinging for the host(github.com) ... 65535 ms
checking for cmake ... /usr/local/bin/cmake
/usr/local/bin/cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_SHARED=OFF -DENABLE_STATIC=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_LIBDIR:PATH=lib -DCMAKE_INSTALL_PREFIX=/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=/Users/ruki/files/android-ndk-r20b/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_NATIVE_API_LEVEL=21 -DCMAKE_POSITION_INDEPENDENT_CODE=ON /Users/ruki/Downloads/libjpeg-turbo-2.1.4
-- CMAKE_BUILD_TYPE = Release
-- VERSION = 2.1.4, BUILD = 20220923
-- 32-bit build (arm)
-- CMAKE_INSTALL_PREFIX = /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e
-- CMAKE_INSTALL_BINDIR = bin (/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/bin)
-- CMAKE_INSTALL_DATAROOTDIR = share (/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/share)
-- CMAKE_INSTALL_DOCDIR = share/doc/libjpeg-turbo (/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/share/doc/libjpeg-turbo)
-- CMAKE_INSTALL_INCLUDEDIR = include (/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/include)
-- CMAKE_INSTALL_LIBDIR = lib (/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/lib)
-- CMAKE_INSTALL_MANDIR = share/man (/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/share/man)
-- Shared libraries disabled (ENABLE_SHARED = 0)
-- Static libraries enabled (ENABLE_STATIC = 1)
-- 12-bit JPEG support disabled (WITH_12BIT = 0)
-- Arithmetic decoding support enabled (WITH_ARITH_DEC = 1)
-- Arithmetic encoding support enabled (WITH_ARITH_ENC = 1)
-- TurboJPEG API library enabled (WITH_TURBOJPEG = 1)
-- TurboJPEG Java wrapper disabled (WITH_JAVA = 0)
-- In-memory source/destination managers enabled (WITH_MEM_SRCDST = 1)
-- Emulating libjpeg API/ABI v6.2 (WITH_JPEG7 = 0, WITH_JPEG8 = 0)
-- libjpeg API shared library version = 62.3.0
-- Compiler flags = -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -march=armv7-a -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -Oz -DNDEBUG 
-- Linker flags = -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--exclude-libs,libunwind.a -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -Wl,--gc-sections  
-- INLINE = __inline__ __attribute__((always_inline)) (FORCE_INLINE = 1)
-- THREAD_LOCAL = __thread
-- Linker supports GNU-style version scripts
-- CMAKE_EXECUTABLE_SUFFIX = 
-- Use full Neon SIMD intrinsics implementation (NEON_INTRINSICS = ON)
-- SIMD extensions: arm (WITH_SIMD = 1)
-- FLOATTEST = no-fp-contract
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build_79c2e21f
make -j10
[  1%] Built target rdjpgcom
[  5%] Built target wrjpgcom
[  5%] Built target strtest
[  7%] Built target md5cmp
[ 16%] Built target simd
[ 80%] Built target jpeg-static
[ 83%] Built target turbojpeg-static
[ 86%] Built target jpegtran-static
[ 92%] Built target tjbench-static
[ 94%] Built target cjpeg-static
[ 97%] Built target djpeg-static
[100%] Built target tjunittest-static
make install
[  2%] Built target strtest
[  4%] Built target wrjpgcom
[  5%] Built target rdjpgcom
[ 14%] Built target simd
[ 45%] Built target jpeg-static
[ 48%] Built target jpegtran-static
[ 84%] Built target turbojpeg-static
[ 90%] Built target djpeg-static
[ 93%] Built target tjunittest-static
[ 97%] Built target cjpeg-static
[ 98%] Built target tjbench-static
[100%] Built target md5cmp
Install the project...
-- Install configuration: "Release"
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/lib/libturbojpeg.a
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/bin/tjbench
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/include/turbojpeg.h
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/lib/libjpeg.a
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/bin/cjpeg
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/bin/djpeg
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/bin/jpegtran
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/bin/rdjpgcom
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/bin/wrjpgcom
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/share/doc/libjpeg-turbo/README.ijg
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/share/doc/libjpeg-turbo/README.md
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/share/doc/libjpeg-turbo/example.txt
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/share/doc/libjpeg-turbo/tjexample.c
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/share/doc/libjpeg-turbo/libjpeg.txt
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/share/doc/libjpeg-turbo/structure.txt
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/share/doc/libjpeg-turbo/usage.txt
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/share/doc/libjpeg-turbo/wizard.txt
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/share/doc/libjpeg-turbo/LICENSE.md
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/share/man/man1/cjpeg.1
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/share/man/man1/djpeg.1
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/share/man/man1/jpegtran.1
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/share/man/man1/rdjpgcom.1
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/share/man/man1/wrjpgcom.1
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/lib/pkgconfig/libjpeg.pc
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/lib/pkgconfig/libturbojpeg.pc
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/lib/cmake/libjpeg-turbo/libjpeg-turboConfig.cmake
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/lib/cmake/libjpeg-turbo/libjpeg-turboConfigVersion.cmake
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/lib/cmake/libjpeg-turbo/libjpeg-turboTargets.cmake
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/lib/cmake/libjpeg-turbo/libjpeg-turboTargets-release.cmake
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/include/jconfig.h
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/include/jerror.h
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/include/jmorecfg.h
-- Installing: /Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/include/jpeglib.h
checking for xmake::libjpeg-turbo ... libjpeg-turbo 2.1.4
{ 
  sysincludedirs = { 
    "/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/include" 
  },
  license = "BSD-3-Clause",
  links = { 
    "turbojpeg",
    "jpeg" 
  },
  linkdirs = { 
    "/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/lib" 
  },
  libfiles = { 
    "/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/lib/libturbojpeg.a",
    "/Users/ruki/.xmake/packages/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e/lib/libjpeg.a" 
  },
  version = "2.1.4",
  static = true 
}

checking for clang ... /Users/ruki/files/android-ndk-r20b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang
checking for the c compiler (cc) ... clang
checking for /Users/ruki/files/android-ndk-r20b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang ... ok
checking for flags (-fPIC) ... ok
checking for flags (-fdiagnostics-color=always) ... ok
checking for /Users/ruki/files/android-ndk-r20b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ ... ok
checking for flags (-fPIC) ... no
> checking for c includes(turbojpeg.h)
> checking for c funcs(tjSaveImage)
> checking for c links(turbojpeg, jpeg)
> checking for c snippet(has_cfuncs)
  => install libjpeg-turbo 2.1.4 .. ok
xmake f -c --require=n -v -p android -a armeabi-v7a -m release -k static
checking for Android SDK directory ... ~/Library/Android/sdk
checking for Build Tools Version of Android SDK ... 33.0.0
checking for NDK directory ... /Users/ruki/files/android-ndk-r20b
checking for SDK version of NDK ... 21
checking for clang++ ... /Users/ruki/files/android-ndk-r20b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++
checking for the shared library linker (sh) ... clang++
checking for clang++ ... /Users/ruki/files/android-ndk-r20b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++
checking for the linker (ld) ... clang++
configure
{
    host = macosx
    ndk_stdcxx = true
    clean = true
    ndkver = 20
    proxy_pac = pac.lua
    network = public
    ndk_toolchains_ver = 4.9
    ccache = true
    ndk_sdkver = 21
    plat = android
    buildir = build
    theme = default
    arch = armeabi-v7a
    kind = static
    ndk = /Users/ruki/files/android-ndk-r20b
    mode = release
    build_toolver = 33.0.0
    pkg_searchdirs = ~/Downloads/
    android_sdk = ~/Library/Android/sdk
}
xmake require --export -v --shallow --packagedir=/Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts --extra={system=false} "libjpeg-turbo 2.1.4"
checking for the shared library linker (sh) ... clang++
checking for the linker (ld) ... clang++
configure
{
    theme = default
    android_sdk = ~/Library/Android/sdk
    arch = armeabi-v7a
    network = public
    plat = android
    ndk = /Users/ruki/files/android-ndk-r20b
    kind = static
    buildir = build
    clean = true
    ccache = true
    pkg_searchdirs = ~/Downloads/
    mode = release
    host = macosx
    build_toolver = 33.0.0
    proxy_pac = pac.lua
    ndk_sdkver = 21
    ndk_toolchains_ver = 4.9
    ndk_stdcxx = true
    ndkver = 20
}
checking for unzip ... /usr/bin/unzip
checking for git ... /usr/bin/git
checking for gzip ... /usr/bin/gzip
checking for tar ... /usr/bin/tar
/usr/bin/git rev-parse HEAD
checking for xmake::libjpeg-turbo ... libjpeg-turbo 2.1.4
exporting libjpeg-turbo-2.1.4 
  -> /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/l/libjpeg-turbo/2.1.4/79c2e21f436b4ab08a3c23a6cbae8c0e
output to /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts
build ok!

@waruqi
Copy link
Member Author

waruqi commented Sep 23, 2022

Fallback to cmake/autoconf

If we don't want to use the xmake-repo build scripts, we can fall back to cmake/autoconf and try to build them directly.

But this may have a certain failure rate and may compile additional binary targets that are not needed. The build script in xmake-repo is optimised to streamline many unnecessary build parameters, such as disabling tests/examples builds, etc.

如果我们不想使用 xmake-repo 的构建脚本,我们也能回退到 cmake/autoconf 直接去尝试构建它们。

但是这样可能会存在一定的失败率,并且有可能会额外编译一些不需要的二进制目标。而 xmake-repo 里面的构建脚本是最优化的,精简了很多没必要的构建参数,比如禁用 tests/examples 构建等等。

$ xmake 
note: libjpeg-turbo 2.1.4 in xmake-repo found, try building it or you can run `xmake f --trybuild=` to set buildsystem (pass -y or --confirm=y/n/d to skip confirm)?
please input: y (y/n)
n
note: CMakeLists.txt found, try building it or you can run `xmake f --trybuild=` to set buildsystem (pass -y or --confirm=y/n/d to skip confirm)?
please input: y (y/n)

checking for platform ... macosx
checking for architecture ... x86_64
checking for Xcode directory ... /Applications/Xcode.app
checking for Codesign Identity of Xcode ... Apple Development: waruqi@gmail.com (T3NA4MRVPU)
checking for SDK version of Xcode for macosx (x86_64) ... 11.3
checking for Minimal target version of Xcode for macosx (x86_64) ... 11.4
-- The C compiler identification is AppleClang 12.0.5.12050022
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- CMAKE_BUILD_TYPE = Release
-- VERSION = 2.1.4, BUILD = 20220923
-- 64-bit build (x86_64)
-- CMAKE_INSTALL_PREFIX = /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts
-- CMAKE_INSTALL_BINDIR = bin (/Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/bin)
-- CMAKE_INSTALL_DATAROOTDIR = share (/Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/share)
-- CMAKE_INSTALL_DOCDIR = share/doc/libjpeg-turbo (/Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/share/doc/libjpeg-turbo)
-- CMAKE_INSTALL_INCLUDEDIR = include (/Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/include)
-- CMAKE_INSTALL_LIBDIR = /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/lib
-- CMAKE_INSTALL_MANDIR = share/man (/Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/share/man)
-- Shared libraries enabled (ENABLE_SHARED = 1)
-- Static libraries enabled (ENABLE_STATIC = 1)
-- 12-bit JPEG support disabled (WITH_12BIT = 0)
-- Arithmetic decoding support enabled (WITH_ARITH_DEC = 1)
-- Arithmetic encoding support enabled (WITH_ARITH_ENC = 1)
-- TurboJPEG API library enabled (WITH_TURBOJPEG = 1)
-- TurboJPEG Java wrapper disabled (WITH_JAVA = 0)
-- In-memory source/destination managers enabled (WITH_MEM_SRCDST = 1)
-- Emulating libjpeg API/ABI v6.2 (WITH_JPEG7 = 0, WITH_JPEG8 = 0)
-- libjpeg API shared library version = 62.3.0
-- Compiler flags =  -O3 -DNDEBUG
-- Linker flags =  
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of size_t
-- Check size of size_t - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Performing Test HAVE_BUILTIN_CTZL
-- Performing Test HAVE_BUILTIN_CTZL - Success
-- Performing Test RIGHT_SHIFT_IS_UNSIGNED
-- Performing Test RIGHT_SHIFT_IS_UNSIGNED - Failed
-- Performing Test INLINE_WORKS
-- Performing Test INLINE_WORKS - Success
-- INLINE = __inline__ __attribute__((always_inline)) (FORCE_INLINE = 1)
-- Performing Test HAVE_THREAD_LOCAL
-- Performing Test HAVE_THREAD_LOCAL - Success
-- THREAD_LOCAL = __thread
-- CMAKE_EXECUTABLE_SUFFIX = 
-- Looking for a ASM_NASM compiler
-- Looking for a ASM_NASM compiler - /usr/local/bin/nasm
-- The ASM_NASM compiler identification is NASM
-- Found assembler: /usr/local/bin/nasm
-- CMAKE_ASM_NASM_COMPILER = /usr/local/bin/nasm
-- CMAKE_ASM_NASM_OBJECT_FORMAT = macho64
-- CMAKE_ASM_NASM_FLAGS =  -DMACHO -D__x86_64__ -DPIC 
-- SIMD extensions: x86_64 (WITH_SIMD = 1)
-- FLOATTEST = sse
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build
Scanning dependencies of target wrjpgcom
Scanning dependencies of target strtest
Scanning dependencies of target rdjpgcom
Scanning dependencies of target md5cmp
Scanning dependencies of target simd
[  0%] Building C object CMakeFiles/wrjpgcom.dir/wrjpgcom.c.o
[  0%] Building C object CMakeFiles/rdjpgcom.dir/rdjpgcom.c.o
[  0%] Building C object CMakeFiles/strtest.dir/strtest.c.o
[  0%] Building C object md5/CMakeFiles/md5cmp.dir/md5cmp.c.o
[  0%] Building C object md5/CMakeFiles/md5cmp.dir/md5.c.o
[  0%] Building C object md5/CMakeFiles/md5cmp.dir/md5hl.c.o
[  0%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jfdctflt-sse.asm.o
[  1%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jsimdcpu.asm.o
[  1%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jccolor-sse2.asm.o
[  2%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jcgray-sse2.asm.o
[  2%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jchuff-sse2.asm.o
[  2%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jcphuff-sse2.asm.o
[  3%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jcsample-sse2.asm.o
[  3%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jdcolor-sse2.asm.o
[  3%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jdmerge-sse2.asm.o
[  3%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jdsample-sse2.asm.o
[  4%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jfdctfst-sse2.asm.o
[  4%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jfdctint-sse2.asm.o
[  4%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jidctflt-sse2.asm.o
[  5%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jidctfst-sse2.asm.o
[  5%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jidctint-sse2.asm.o
[  5%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jidctred-sse2.asm.o
[  6%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jquantf-sse2.asm.o
[  6%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jquanti-sse2.asm.o
[  6%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jccolor-avx2.asm.o
[  6%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jcgray-avx2.asm.o
[  7%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jcsample-avx2.asm.o
[  7%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jdcolor-avx2.asm.o
[  8%] Linking C executable strtest
[  8%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jdmerge-avx2.asm.o
[  9%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jdsample-avx2.asm.o
[  9%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jfdctint-avx2.asm.o
[  9%] Linking C executable rdjpgcom
[  9%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jidctint-avx2.asm.o
[ 10%] Building ASM_NASM object simd/CMakeFiles/simd.dir/x86_64/jquanti-avx2.asm.o
[ 10%] Built target strtest
[ 11%] Linking C executable md5cmp
[ 11%] Building C object simd/CMakeFiles/simd.dir/x86_64/jsimd.c.o
[ 12%] Linking C executable wrjpgcom
[ 12%] Built target rdjpgcom
[ 12%] Built target md5cmp
[ 12%] Built target wrjpgcom
[ 12%] Built target simd
Scanning dependencies of target turbojpeg-static
Scanning dependencies of target jpeg-static
Scanning dependencies of target turbojpeg
Scanning dependencies of target jpeg
[ 13%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcapistd.c.o
[ 13%] Building C object CMakeFiles/jpeg-static.dir/jcapimin.c.o
[ 13%] Building C object CMakeFiles/jpeg-static.dir/jcapistd.c.o
[ 13%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcapimin.c.o
[ 13%] Building C object CMakeFiles/jpeg-static.dir/jccoefct.c.o
[ 13%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jccoefct.c.o
[ 15%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jccolor.c.o
[ 15%] Building C object CMakeFiles/jpeg-static.dir/jccolor.c.o
[ 16%] Building C object CMakeFiles/turbojpeg-static.dir/jcapimin.c.o
[ 16%] Building C object CMakeFiles/turbojpeg.dir/jcapimin.c.o
[ 16%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcdctmgr.c.o
[ 16%] Building C object CMakeFiles/turbojpeg-static.dir/jcapistd.c.o
[ 16%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jchuff.c.o
[ 16%] Building C object CMakeFiles/turbojpeg-static.dir/jccoefct.c.o
[ 17%] Building C object CMakeFiles/turbojpeg.dir/jcapistd.c.o
[ 18%] Building C object CMakeFiles/turbojpeg-static.dir/jccolor.c.o
[ 18%] Building C object CMakeFiles/jpeg-static.dir/jcdctmgr.c.o
[ 18%] Building C object CMakeFiles/turbojpeg.dir/jccoefct.c.o
[ 19%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcicc.c.o
[ 19%] Building C object CMakeFiles/turbojpeg-static.dir/jcdctmgr.c.o
[ 19%] Building C object CMakeFiles/turbojpeg.dir/jccolor.c.o
[ 19%] Building C object CMakeFiles/turbojpeg-static.dir/jchuff.c.o
[ 19%] Building C object CMakeFiles/jpeg-static.dir/jchuff.c.o
[ 19%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcinit.c.o
[ 20%] Building C object CMakeFiles/turbojpeg.dir/jcdctmgr.c.o
[ 21%] Building C object CMakeFiles/jpeg-static.dir/jcicc.c.o
[ 21%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcmainct.c.o
[ 21%] Building C object CMakeFiles/turbojpeg.dir/jchuff.c.o
[ 22%] Building C object CMakeFiles/turbojpeg-static.dir/jcicc.c.o
[ 22%] Building C object CMakeFiles/turbojpeg.dir/jcicc.c.o
[ 22%] Building C object CMakeFiles/turbojpeg-static.dir/jcinit.c.o
[ 23%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcmarker.c.o
[ 23%] Building C object CMakeFiles/jpeg-static.dir/jcinit.c.o
[ 24%] Building C object CMakeFiles/turbojpeg.dir/jcinit.c.o
[ 24%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcmaster.c.o
[ 24%] Building C object CMakeFiles/turbojpeg.dir/jcmainct.c.o
[ 24%] Building C object CMakeFiles/jpeg-static.dir/jcmainct.c.o
[ 24%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcomapi.c.o
[ 24%] Building C object CMakeFiles/turbojpeg-static.dir/jcmainct.c.o
[ 25%] Building C object CMakeFiles/turbojpeg.dir/jcmarker.c.o
[ 25%] Building C object CMakeFiles/jpeg-static.dir/jcmarker.c.o
[ 26%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcparam.c.o
[ 26%] Building C object CMakeFiles/jpeg-static.dir/jcmaster.c.o
[ 27%] Building C object CMakeFiles/turbojpeg-static.dir/jcmarker.c.o
[ 27%] Building C object CMakeFiles/turbojpeg.dir/jcmaster.c.o
[ 27%] Building C object CMakeFiles/jpeg-static.dir/jcomapi.c.o
[ 27%] Building C object CMakeFiles/turbojpeg-static.dir/jcmaster.c.o
[ 27%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcphuff.c.o
[ 28%] Building C object CMakeFiles/turbojpeg.dir/jcomapi.c.o
[ 28%] Building C object CMakeFiles/turbojpeg-static.dir/jcomapi.c.o
[ 28%] Building C object CMakeFiles/jpeg-static.dir/jcparam.c.o
[ 28%] Building C object CMakeFiles/turbojpeg.dir/jcparam.c.o
[ 28%] Building C object CMakeFiles/turbojpeg-static.dir/jcparam.c.o
[ 28%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcprepct.c.o
[ 29%] Building C object CMakeFiles/jpeg-static.dir/jcphuff.c.o
[ 30%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcsample.c.o
[ 30%] Building C object CMakeFiles/turbojpeg-static.dir/jcphuff.c.o
[ 30%] Building C object CMakeFiles/jpeg-static.dir/jcprepct.c.o
[ 30%] Building C object CMakeFiles/turbojpeg.dir/jcphuff.c.o
[ 30%] Building C object CMakeFiles/turbojpeg-static.dir/jcprepct.c.o
[ 30%] Building C object CMakeFiles/jpeg-static.dir/jcsample.c.o
[ 31%] Building C object CMakeFiles/turbojpeg.dir/jcprepct.c.o
[ 31%] Building C object CMakeFiles/turbojpeg-static.dir/jcsample.c.o
[ 32%] Building C object CMakeFiles/jpeg-static.dir/jctrans.c.o
[ 33%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jctrans.c.o
[ 33%] Building C object CMakeFiles/turbojpeg.dir/jcsample.c.o
[ 33%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdapimin.c.o
[ 33%] Building C object CMakeFiles/jpeg-static.dir/jdapimin.c.o
[ 33%] Building C object CMakeFiles/turbojpeg.dir/jctrans.c.o
[ 34%] Building C object CMakeFiles/turbojpeg-static.dir/jctrans.c.o
[ 34%] Building C object CMakeFiles/jpeg-static.dir/jdapistd.c.o
[ 34%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdapistd.c.o
[ 34%] Building C object CMakeFiles/turbojpeg-static.dir/jdapimin.c.o
[ 35%] Building C object CMakeFiles/jpeg-static.dir/jdatadst.c.o
[ 36%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdatadst.c.o
[ 36%] Building C object CMakeFiles/turbojpeg-static.dir/jdapistd.c.o
[ 36%] Building C object CMakeFiles/jpeg-static.dir/jdatasrc.c.o
[ 37%] Building C object CMakeFiles/turbojpeg.dir/jdapimin.c.o
[ 38%] Building C object CMakeFiles/turbojpeg-static.dir/jdatadst.c.o
[ 38%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdatasrc.c.o
[ 38%] Building C object CMakeFiles/turbojpeg.dir/jdapistd.c.o
[ 38%] Building C object CMakeFiles/jpeg-static.dir/jdcoefct.c.o
[ 38%] Building C object CMakeFiles/turbojpeg-static.dir/jdatasrc.c.o
[ 38%] Building C object CMakeFiles/turbojpeg.dir/jdatadst.c.o
[ 38%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdcoefct.c.o
[ 39%] Building C object CMakeFiles/turbojpeg.dir/jdatasrc.c.o
[ 40%] Building C object CMakeFiles/jpeg-static.dir/jdcolor.c.o
[ 40%] Building C object CMakeFiles/turbojpeg-static.dir/jdcoefct.c.o
[ 41%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdcolor.c.o
[ 41%] Building C object CMakeFiles/jpeg-static.dir/jddctmgr.c.o
[ 42%] Building C object CMakeFiles/turbojpeg-static.dir/jdcolor.c.o
[ 42%] Building C object CMakeFiles/turbojpeg.dir/jdcoefct.c.o
[ 42%] Building C object CMakeFiles/jpeg-static.dir/jdhuff.c.o
[ 42%] Building C object CMakeFiles/turbojpeg.dir/jdcolor.c.o
[ 42%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jddctmgr.c.o
[ 42%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdhuff.c.o
[ 42%] Building C object CMakeFiles/turbojpeg.dir/jddctmgr.c.o
[ 42%] Building C object CMakeFiles/turbojpeg-static.dir/jddctmgr.c.o
[ 42%] Building C object CMakeFiles/jpeg-static.dir/jdicc.c.o
[ 43%] Building C object CMakeFiles/turbojpeg-static.dir/jdhuff.c.o
[ 43%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdicc.c.o
[ 44%] Building C object CMakeFiles/turbojpeg.dir/jdhuff.c.o
[ 45%] Building C object CMakeFiles/jpeg-static.dir/jdinput.c.o
[ 45%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdinput.c.o
[ 45%] Building C object CMakeFiles/turbojpeg.dir/jdicc.c.o
[ 45%] Building C object CMakeFiles/turbojpeg-static.dir/jdicc.c.o
[ 45%] Building C object CMakeFiles/jpeg-static.dir/jdmainct.c.o
[ 45%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdmainct.c.o
[ 45%] Building C object CMakeFiles/jpeg-static.dir/jdmarker.c.o
[ 45%] Building C object CMakeFiles/turbojpeg.dir/jdinput.c.o
[ 46%] Building C object CMakeFiles/turbojpeg-static.dir/jdinput.c.o
[ 46%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdmarker.c.o
[ 47%] Building C object CMakeFiles/jpeg-static.dir/jdmaster.c.o
[ 48%] Building C object CMakeFiles/turbojpeg.dir/jdmainct.c.o
[ 48%] Building C object CMakeFiles/turbojpeg-static.dir/jdmainct.c.o
[ 48%] Building C object CMakeFiles/jpeg-static.dir/jdmerge.c.o
[ 48%] Building C object CMakeFiles/turbojpeg.dir/jdmarker.c.o
[ 48%] Building C object CMakeFiles/turbojpeg-static.dir/jdmarker.c.o
[ 49%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdmaster.c.o
[ 49%] Building C object CMakeFiles/jpeg-static.dir/jdphuff.c.o
[ 50%] Building C object CMakeFiles/turbojpeg-static.dir/jdmaster.c.o
[ 50%] Building C object CMakeFiles/turbojpeg.dir/jdmaster.c.o
[ 50%] Building C object CMakeFiles/turbojpeg-static.dir/jdmerge.c.o
[ 51%] Building C object CMakeFiles/turbojpeg.dir/jdmerge.c.o
[ 51%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdmerge.c.o
[ 52%] Building C object CMakeFiles/jpeg-static.dir/jdpostct.c.o
[ 52%] Building C object CMakeFiles/turbojpeg-static.dir/jdphuff.c.o
[ 52%] Building C object CMakeFiles/turbojpeg.dir/jdphuff.c.o
[ 52%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdphuff.c.o
[ 52%] Building C object CMakeFiles/turbojpeg.dir/jdpostct.c.o
[ 52%] Building C object CMakeFiles/jpeg-static.dir/jdsample.c.o
[ 53%] Building C object CMakeFiles/turbojpeg-static.dir/jdpostct.c.o
[ 53%] Building C object CMakeFiles/jpeg-static.dir/jdtrans.c.o
[ 54%] Building C object CMakeFiles/turbojpeg.dir/jdsample.c.o
[ 55%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdpostct.c.o
[ 55%] Building C object CMakeFiles/turbojpeg-static.dir/jdsample.c.o
[ 55%] Building C object CMakeFiles/turbojpeg.dir/jdtrans.c.o
[ 56%] Building C object CMakeFiles/jpeg-static.dir/jerror.c.o
[ 56%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdsample.c.o
[ 56%] Building C object CMakeFiles/jpeg-static.dir/jfdctflt.c.o
[ 56%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdtrans.c.o
[ 56%] Building C object CMakeFiles/turbojpeg-static.dir/jdtrans.c.o
[ 56%] Building C object CMakeFiles/turbojpeg.dir/jerror.c.o
[ 57%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jerror.c.o
[ 57%] Building C object CMakeFiles/turbojpeg.dir/jfdctflt.c.o
[ 57%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jfdctflt.c.o
[ 57%] Building C object CMakeFiles/jpeg-static.dir/jfdctfst.c.o
[ 58%] Building C object CMakeFiles/turbojpeg-static.dir/jerror.c.o
[ 58%] Building C object CMakeFiles/jpeg-static.dir/jfdctint.c.o
[ 58%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jfdctfst.c.o
[ 58%] Building C object CMakeFiles/turbojpeg-static.dir/jfdctflt.c.o
[ 59%] Building C object CMakeFiles/turbojpeg.dir/jfdctfst.c.o
[ 59%] Building C object CMakeFiles/turbojpeg-static.dir/jfdctfst.c.o
[ 60%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jfdctint.c.o
[ 61%] Building C object CMakeFiles/jpeg-static.dir/jidctflt.c.o
[ 61%] Building C object CMakeFiles/turbojpeg.dir/jfdctint.c.o
[ 61%] Building C object CMakeFiles/jpeg-static.dir/jidctfst.c.o
[ 61%] Building C object CMakeFiles/turbojpeg.dir/jidctflt.c.o
[ 61%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jidctflt.c.o
[ 61%] Building C object CMakeFiles/turbojpeg-static.dir/jfdctint.c.o
[ 62%] Building C object CMakeFiles/turbojpeg.dir/jidctfst.c.o
[ 62%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jidctfst.c.o
[ 63%] Building C object CMakeFiles/turbojpeg-static.dir/jidctflt.c.o
[ 63%] Building C object CMakeFiles/turbojpeg.dir/jidctint.c.o
[ 63%] Building C object CMakeFiles/jpeg-static.dir/jidctint.c.o
[ 63%] Building C object CMakeFiles/turbojpeg-static.dir/jidctfst.c.o
[ 63%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jidctint.c.o
[ 64%] Building C object CMakeFiles/jpeg-static.dir/jidctred.c.o
[ 64%] Building C object CMakeFiles/turbojpeg.dir/jidctred.c.o
[ 64%] Building C object CMakeFiles/jpeg-static.dir/jquant1.c.o
[ 65%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jidctred.c.o
[ 65%] Building C object CMakeFiles/turbojpeg-static.dir/jidctint.c.o
[ 65%] Building C object CMakeFiles/jpeg-static.dir/jquant2.c.o
[ 66%] Building C object CMakeFiles/turbojpeg-static.dir/jidctred.c.o
[ 66%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jquant1.c.o
[ 67%] Building C object CMakeFiles/jpeg-static.dir/jutils.c.o
[ 67%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jquant2.c.o
[ 68%] Building C object CMakeFiles/turbojpeg.dir/jquant1.c.o
[ 69%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jutils.c.o
[ 69%] Building C object CMakeFiles/turbojpeg.dir/jquant2.c.o
[ 69%] Building C object CMakeFiles/turbojpeg-static.dir/jquant1.c.o
[ 69%] Building C object CMakeFiles/jpeg-static.dir/jmemmgr.c.o
[ 69%] Building C object CMakeFiles/turbojpeg.dir/jutils.c.o
[ 69%] Building C object CMakeFiles/jpeg-static.dir/jmemnobs.c.o
[ 69%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jmemmgr.c.o
[ 69%] Building C object CMakeFiles/turbojpeg.dir/jmemmgr.c.o
[ 69%] Building C object CMakeFiles/turbojpeg-static.dir/jquant2.c.o
[ 69%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jmemnobs.c.o
[ 70%] Building C object CMakeFiles/turbojpeg.dir/jmemnobs.c.o
[ 71%] Building C object CMakeFiles/turbojpeg-static.dir/jutils.c.o
[ 72%] Building C object CMakeFiles/jpeg-static.dir/jaricom.c.o
[ 73%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jaricom.c.o
[ 73%] Building C object CMakeFiles/turbojpeg.dir/jaricom.c.o
[ 73%] Building C object CMakeFiles/turbojpeg-static.dir/jmemmgr.c.o
[ 73%] Building C object CMakeFiles/jpeg-static.dir/jcarith.c.o
[ 73%] Building C object CMakeFiles/turbojpeg.dir/jcarith.c.o
[ 73%] Building C object CMakeFiles/turbojpeg-static.dir/jmemnobs.c.o
[ 73%] Building C object CMakeFiles/jpeg-static.dir/jdarith.c.o
[ 74%] Building C object CMakeFiles/turbojpeg.dir/jdarith.c.o
[ 74%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcarith.c.o
[ 75%] Building C object CMakeFiles/turbojpeg-static.dir/jaricom.c.o
[ 75%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdarith.c.o
[ 75%] Building C object CMakeFiles/turbojpeg.dir/turbojpeg.c.o
[ 75%] Building C object CMakeFiles/turbojpeg.dir/transupp.c.o
[ 75%] Building C object CMakeFiles/turbojpeg-static.dir/jcarith.c.o
[ 75%] Linking C static library libjpeg.a
[ 75%] Building C object CMakeFiles/turbojpeg-static.dir/jdarith.c.o
[ 75%] Building C object CMakeFiles/turbojpeg-static.dir/turbojpeg.c.o
[ 76%] Building C object CMakeFiles/turbojpeg.dir/jdatadst-tj.c.o
[ 76%] Built target jpeg-static
[ 77%] Building C object CMakeFiles/turbojpeg-static.dir/transupp.c.o
Scanning dependencies of target jpegtran-static
[ 77%] Building C object CMakeFiles/turbojpeg.dir/jdatasrc-tj.c.o
[ 77%] Linking C shared library ../libjpeg.dylib
[ 77%] Building C object CMakeFiles/jpegtran-static.dir/jpegtran.c.o
Scanning dependencies of target cjpeg-static
[ 77%] Building C object CMakeFiles/cjpeg-static.dir/cjpeg.c.o
[ 77%] Built target jpeg
[ 78%] Building C object CMakeFiles/jpegtran-static.dir/cdjpeg.c.o
[ 78%] Building C object CMakeFiles/turbojpeg.dir/rdbmp.c.o
Scanning dependencies of target djpeg-static
[ 79%] Building C object CMakeFiles/cjpeg-static.dir/cdjpeg.c.o
[ 79%] Building C object CMakeFiles/jpegtran-static.dir/rdswitch.c.o
[ 79%] Building C object CMakeFiles/djpeg-static.dir/djpeg.c.o
[ 80%] Building C object CMakeFiles/turbojpeg.dir/rdppm.c.o
[ 80%] Building C object CMakeFiles/jpegtran-static.dir/transupp.c.o
[ 80%] Building C object CMakeFiles/cjpeg-static.dir/rdgif.c.o
[ 80%] Building C object CMakeFiles/turbojpeg-static.dir/jdatadst-tj.c.o
[ 81%] Building C object CMakeFiles/djpeg-static.dir/cdjpeg.c.o
[ 81%] Building C object CMakeFiles/cjpeg-static.dir/rdppm.c.o
Scanning dependencies of target djpeg
[ 81%] Building C object CMakeFiles/djpeg-static.dir/rdcolmap.c.o
[ 82%] Building C object sharedlib/CMakeFiles/djpeg.dir/__/djpeg.c.o
[ 82%] Building C object CMakeFiles/turbojpeg.dir/wrbmp.c.o
[ 82%] Building C object CMakeFiles/djpeg-static.dir/rdswitch.c.o
Scanning dependencies of target jcstest
[ 82%] Building C object sharedlib/CMakeFiles/jcstest.dir/__/jcstest.c.o
[ 82%] Building C object sharedlib/CMakeFiles/djpeg.dir/__/cdjpeg.c.o
[ 83%] Building C object CMakeFiles/djpeg-static.dir/wrgif.c.o
[ 84%] Linking C executable ../jcstest
[ 84%] Building C object sharedlib/CMakeFiles/djpeg.dir/__/rdcolmap.c.o
[ 84%] Building C object CMakeFiles/cjpeg-static.dir/rdswitch.c.o
[ 84%] Built target jcstest
[ 84%] Building C object CMakeFiles/turbojpeg.dir/wrppm.c.o
[ 85%] Building C object sharedlib/CMakeFiles/djpeg.dir/__/rdswitch.c.o
[ 85%] Building C object CMakeFiles/djpeg-static.dir/wrppm.c.o
[ 85%] Building C object CMakeFiles/turbojpeg-static.dir/jdatasrc-tj.c.o
[ 85%] Building C object sharedlib/CMakeFiles/djpeg.dir/__/wrgif.c.o
[ 85%] Building C object CMakeFiles/djpeg-static.dir/wrbmp.c.o
[ 85%] Building C object sharedlib/CMakeFiles/djpeg.dir/__/wrppm.c.o
[ 86%] Building C object CMakeFiles/cjpeg-static.dir/rdbmp.c.o
[ 87%] Building C object CMakeFiles/djpeg-static.dir/wrtarga.c.o
[ 88%] Building C object CMakeFiles/turbojpeg-static.dir/rdbmp.c.o
[ 88%] Building C object CMakeFiles/cjpeg-static.dir/rdtarga.c.o
Scanning dependencies of target cjpeg
[ 89%] Building C object sharedlib/CMakeFiles/djpeg.dir/__/wrbmp.c.o
[ 89%] Linking C executable djpeg-static
[ 89%] Building C object sharedlib/CMakeFiles/cjpeg.dir/__/cjpeg.c.o
[ 89%] Built target djpeg-static
[ 89%] Building C object sharedlib/CMakeFiles/djpeg.dir/__/wrtarga.c.o
Scanning dependencies of target jpegtran
[ 89%] Building C object sharedlib/CMakeFiles/cjpeg.dir/__/cdjpeg.c.o
[ 90%] Building C object sharedlib/CMakeFiles/jpegtran.dir/__/jpegtran.c.o
[ 90%] Linking C executable cjpeg-static
[ 90%] Building C object CMakeFiles/turbojpeg-static.dir/rdppm.c.o
[ 90%] Linking C executable ../djpeg
[ 90%] Building C object sharedlib/CMakeFiles/jpegtran.dir/__/cdjpeg.c.o
[ 90%] Building C object sharedlib/CMakeFiles/cjpeg.dir/__/rdgif.c.o
[ 90%] Built target cjpeg-static
[ 90%] Building C object CMakeFiles/turbojpeg-static.dir/wrbmp.c.o
[ 90%] Building C object sharedlib/CMakeFiles/jpegtran.dir/__/rdswitch.c.o
[ 90%] Built target djpeg
[ 91%] Building C object sharedlib/CMakeFiles/cjpeg.dir/__/rdppm.c.o
[ 92%] Building C object sharedlib/CMakeFiles/jpegtran.dir/__/transupp.c.o
[ 93%] Building C object CMakeFiles/turbojpeg-static.dir/wrppm.c.o
[ 93%] Building C object sharedlib/CMakeFiles/cjpeg.dir/__/rdswitch.c.o
[ 93%] Building C object sharedlib/CMakeFiles/cjpeg.dir/__/rdbmp.c.o
[ 94%] Building C object sharedlib/CMakeFiles/cjpeg.dir/__/rdtarga.c.o
[ 94%] Linking C executable ../cjpeg
[ 94%] Built target cjpeg
[ 94%] Linking C shared library libturbojpeg.dylib
[ 94%] Linking C static library libturbojpeg.a
[ 94%] Built target turbojpeg
Scanning dependencies of target tjunittest
Scanning dependencies of target tjbench
Scanning dependencies of target tjexample
[ 94%] Building C object CMakeFiles/tjbench.dir/tjbench.c.o
[ 94%] Building C object CMakeFiles/tjunittest.dir/tjunittest.c.o
[ 95%] Building C object CMakeFiles/tjbench.dir/tjutil.c.o
[ 95%] Building C object CMakeFiles/tjunittest.dir/tjutil.c.o
[ 95%] Building C object CMakeFiles/tjunittest.dir/md5/md5.c.o
[ 96%] Building C object CMakeFiles/tjunittest.dir/md5/md5hl.c.o
[ 96%] Building C object CMakeFiles/tjexample.dir/tjexample.c.o
[ 96%] Built target turbojpeg-static
Scanning dependencies of target tjbench-static
[ 97%] Building C object CMakeFiles/tjbench-static.dir/tjutil.c.o
Scanning dependencies of target tjunittest-static
[ 97%] Building C object CMakeFiles/tjbench-static.dir/tjbench.c.o
[ 97%] Building C object CMakeFiles/tjunittest-static.dir/tjunittest.c.o
[ 97%] Building C object CMakeFiles/tjunittest-static.dir/tjutil.c.o
[ 98%] Linking C executable jpegtran-static
[ 98%] Building C object CMakeFiles/tjunittest-static.dir/md5/md5.c.o
[ 99%] Building C object CMakeFiles/tjunittest-static.dir/md5/md5hl.c.o
[ 99%] Built target jpegtran-static
[ 99%] Linking C executable tjexample
[ 99%] Built target tjexample
[ 99%] Linking C executable tjbench
[ 99%] Linking C executable tjbench-static
[100%] Linking C executable tjunittest
[100%] Built target tjbench
[100%] Linking C executable tjunittest-static
[100%] Built target tjbench-static
[100%] Built target tjunittest
[100%] Built target tjunittest-static
[100%] Linking C executable ../jpegtran
[100%] Built target jpegtran
[  1%] Built target strtest
[  2%] Built target wrjpgcom
[  2%] Built target rdjpgcom
[ 11%] Built target simd
[ 29%] Built target turbojpeg
[ 31%] Built target tjunittest
[ 47%] Built target jpeg-static
[ 49%] Built target jpegtran-static
[ 51%] Built target cjpeg-static
[ 52%] Built target tjexample
[ 71%] Built target turbojpeg-static
[ 72%] Built target tjbench-static
[ 73%] Built target tjunittest-static
[ 76%] Built target djpeg-static
[ 76%] Built target tjbench
[ 91%] Built target jpeg
[ 94%] Built target djpeg
[ 95%] Built target jcstest
[ 97%] Built target cjpeg
[ 99%] Built target jpegtran
[100%] Built target md5cmp
Install the project...
-- Install configuration: "Release"
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/lib/libturbojpeg.0.2.0.dylib
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/lib/libturbojpeg.0.dylib
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/lib/libturbojpeg.dylib
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/bin/tjbench
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/lib/libturbojpeg.a
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/include/turbojpeg.h
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/lib/libjpeg.a
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/bin/rdjpgcom
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/bin/wrjpgcom
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/share/doc/libjpeg-turbo/README.ijg
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/share/doc/libjpeg-turbo/README.md
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/share/doc/libjpeg-turbo/example.txt
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/share/doc/libjpeg-turbo/tjexample.c
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/share/doc/libjpeg-turbo/libjpeg.txt
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/share/doc/libjpeg-turbo/structure.txt
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/share/doc/libjpeg-turbo/usage.txt
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/share/doc/libjpeg-turbo/wizard.txt
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/share/doc/libjpeg-turbo/LICENSE.md
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/share/man/man1/cjpeg.1
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/share/man/man1/djpeg.1
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/share/man/man1/jpegtran.1
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/share/man/man1/rdjpgcom.1
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/share/man/man1/wrjpgcom.1
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/lib/pkgconfig/libjpeg.pc
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/lib/pkgconfig/libturbojpeg.pc
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/lib/cmake/libjpeg-turbo/libjpeg-turboConfig.cmake
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/lib/cmake/libjpeg-turbo/libjpeg-turboConfigVersion.cmake
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/lib/cmake/libjpeg-turbo/libjpeg-turboTargets.cmake
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/lib/cmake/libjpeg-turbo/libjpeg-turboTargets-release.cmake
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/include/jconfig.h
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/include/jerror.h
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/include/jmorecfg.h
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/include/jpeglib.h
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/lib/libjpeg.62.3.0.dylib
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/lib/libjpeg.62.dylib
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/lib/libjpeg.dylib
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/bin/cjpeg
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/bin/djpeg
-- Installing: /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts/bin/jpegtran
output to /Users/ruki/Downloads/libjpeg-turbo-2.1.4/build/artifacts
build ok!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant