I am trying to compile Fraunhofer Versatile Video Decoder (VVdeC) https://github.com/fraunhoferhhi/vvdec from source code using cmake-gui to run it on windows.
I have successfully compiled it but how do i run vvdec to play VVC codec videos? There are no executable working. I have never compiled and run a software from source code before.
Here is the build log
The C compiler identification is GNU 6.3.0
The CXX compiler identification is GNU 8.1.0
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working C compiler: C:/MinGW/bin/gcc.exe - skipped
Detecting C compile features
Detecting C compile features - done
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Check for working CXX compiler: C:/Program Files/CodeBlocks/MinGW/bin/g++.exe - skipped
Detecting CXX compile features
Detecting CXX compile features - done
CMAKE_MODULE_PATH: updating module path to: C:/temp/vvdec-1.4.0/cmake/modules
Performing Test SUPPORTED_Werror_unused_command_line_argument
Performing Test SUPPORTED_Werror_unused_command_line_argument - Failed
Performing Test SUPPORTED_msse4_1
Performing Test SUPPORTED_msse4_1 - Success
Performing Test SUPPORTED_msse2
Performing Test SUPPORTED_msse2 - Success
Performing Test SUPPORTED_mavx
Performing Test SUPPORTED_mavx - Success
Performing Test HAVE_INTRIN_mm_storeu_si16
Performing Test HAVE_INTRIN_mm_storeu_si16 - Failed
Performing Test HAVE_INTRIN_mm_storeu_si32
Performing Test HAVE_INTRIN_mm_storeu_si32 - Failed
Performing Test HAVE_INTRIN_mm_storeu_si64
Performing Test HAVE_INTRIN_mm_storeu_si64 - Failed
Performing Test HAVE_INTRIN_mm_loadu_si32
Performing Test HAVE_INTRIN_mm_loadu_si32 - Failed
Performing Test HAVE_INTRIN_mm_loadu_si64
Performing Test HAVE_INTRIN_mm_loadu_si64 - Failed
Performing Test HAVE_INTRIN_mm256_zeroupper
Performing Test HAVE_INTRIN_mm256_zeroupper - Success
Looking for pthread.h
Looking for pthread.h - not found
Found Threads: TRUE
Performing Test SUPPORTED_mxsave
Performing Test SUPPORTED_mxsave - Success
Performing Test SUPPORTED_msse4_2
Performing Test SUPPORTED_msse4_2 - Success
Performing Test SUPPORTED_mavx2
Performing Test SUPPORTED_mavx2 - Success
Some bitstream files are missing.
If you want to run tests, reconfigure with -DVVDEC_ENABLE_BITSTREAM_DOWNLOAD=ON
(or using top level Makefile: make test enable-bitstream-download=1)
Configuring done
Generating done
Related
I'm trying to build libssh with vcpkg for windows x86 but i need to enable gssapi support.
With standard command vcpkg install libssh i'm getting an dynamic library but the log files shows that gssapi support isnt build in.
[1/2] cmd /c "cd ../../x86-windows-dbg && "C:/dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/bin/cmake.exe" "C:/dev/vcpkg/buildtrees/libssh/src/b6ec41911d-e3ea74b3ae.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=C:/dev/vcpkg/packages/libssh_x86-windows/debug" "-DWITH_MBEDTLS=ON" "-DWITH_ZLIB=OFF" "-DWITH_EXAMPLES=OFF" "-DUNIT_TESTING=OFF" "-DCLIENT_TESTING=OFF" "-DSERVER_TESTING=OFF" "-DWITH_NACL=OFF" "-DWITH_GSSAPI=OFF" "-DWITH_SYMBOL_VERSIONING=OFF" "-DCMAKE_MAKE_PROGRAM=C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=C:/dev/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x86-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v142" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x86" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=C:/dev/vcpkg" "-D_VCPKG_INSTALLED_DIR=C:/dev/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF""
-- The C compiler identification is MSVC 19.29.30145.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x86/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Could NOT find NSIS (missing: NSIS_MAKE)
-- Performing Test WITH_/D__CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_1_FLAG
-- Performing Test WITH_/D__CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_1_FLAG - Success
-- Performing Test WITH_/D__CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT_1_FLAG
-- Performing Test WITH_/D__CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT_1_FLAG - Success
-- Performing Test WITH_/D__CRT_NONSTDC_NO_WARNINGS_1_FLAG
-- Performing Test WITH_/D__CRT_NONSTDC_NO_WARNINGS_1_FLAG - Success
-- Performing Test WITH_/D__CRT_SECURE_NO_WARNINGS_1_FLAG
-- Performing Test WITH_/D__CRT_SECURE_NO_WARNINGS_1_FLAG - Success
-- Found PThreads4W: optimized;C:/dev/vcpkg/installed/x86-windows/lib/pthreadVC3.lib;debug;C:/dev/vcpkg/installed/x86-windows/debug/lib/pthreadVC3d.lib
-- PThreads4W_DLL_DIR: C:/dev/vcpkg/installed/x86-windows/include/../bin
-- PThreads4W_DEBUG_DLL_DIR: C:/dev/vcpkg/installed/x86-windows/include/../debug/bin
-- Found mbedTLS: C:/dev/vcpkg/installed/x86-windows/include (found version "2.28.0")
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Looking for argp.h
-- Looking for argp.h - not found
-- Looking for pty.h
-- Looking for pty.h - not found
-- Looking for utmp.h
-- Looking for utmp.h - not found
-- Looking for termios.h
-- Looking for termios.h - not found
-- Looking for unistd.h
-- Looking for unistd.h - not found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for util.h
-- Looking for util.h - not found
-- Looking for libutil.h
-- Looking for libutil.h - not found
-- Looking for sys/time.h
-- Looking for sys/time.h - not found
-- Looking for sys/utime.h
-- Looking for sys/utime.h - found
-- Looking for sys/param.h
-- Looking for sys/param.h - not found
-- Looking for arpa/inet.h
-- Looking for arpa/inet.h - not found
-- Looking for byteswap.h
-- Looking for byteswap.h - not found
-- Looking for glob.h
-- Looking for glob.h - not found
-- Looking for valgrind/valgrind.h
-- Looking for valgrind/valgrind.h - not found
-- Looking for io.h
-- Looking for io.h - found
-- Looking for 3 include files winsock2.h, ..., wspiapi.h
-- Looking for 3 include files winsock2.h, ..., wspiapi.h - found
-- Looking for include files winsock2.h, ws2tcpip.h
-- Looking for include files winsock2.h, ws2tcpip.h - found
-- Looking for isblank
-- Looking for isblank - found
-- Looking for strncpy
-- Looking for strncpy - found
-- Looking for strndup
-- Looking for strndup - not found
-- Looking for strtoull
-- Looking for strtoull - found
-- Looking for explicit_bzero
-- Looking for explicit_bzero - not found
-- Looking for memset_s
-- Looking for memset_s - not found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for _vsnprintf_s
-- Looking for _vsnprintf_s - found
-- Looking for _vsnprintf
-- Looking for _vsnprintf - found
-- Looking for _snprintf
-- Looking for _snprintf - found
-- Looking for _snprintf_s
-- Looking for _snprintf_s - found
-- Looking for ntohll
-- Looking for ntohll - found
-- Looking for htonll
-- Looking for htonll - found
-- Looking for select
-- Looking for select - found
-- Looking for getaddrinfo
-- Looking for getaddrinfo - found
-- Looking for _strtoui64
-- Looking for _strtoui64 - found
-- Looking for SecureZeroMemory
-- Looking for SecureZeroMemory - found
-- Performing Test HAVE_GCC_THREAD_LOCAL_STORAGE
-- Performing Test HAVE_GCC_THREAD_LOCAL_STORAGE - Failed
-- Performing Test HAVE_MSC_THREAD_LOCAL_STORAGE
-- Performing Test HAVE_MSC_THREAD_LOCAL_STORAGE - Success
-- Performing Test HAVE_CONSTRUCTOR_ATTRIBUTE
-- Performing Test HAVE_CONSTRUCTOR_ATTRIBUTE - Failed
-- Performing Test HAVE_DESTRUCTOR_ATTRIBUTE
-- Performing Test HAVE_DESTRUCTOR_ATTRIBUTE - Failed
-- Performing Test HAVE_FALLTHROUGH_ATTRIBUTE
-- Performing Test HAVE_FALLTHROUGH_ATTRIBUTE - Failed
-- Performing Test HAVE_GCC_VOLATILE_MEMORY_PROTECTION
-- Performing Test HAVE_GCC_VOLATILE_MEMORY_PROTECTION - Failed
-- Performing Test HAVE_COMPILER__FUNC__
-- Performing Test HAVE_COMPILER__FUNC__ - Success
-- Performing Test HAVE_COMPILER__FUNCTION__
-- Performing Test HAVE_COMPILER__FUNCTION__ - Success
-- Performing Test HAVE_LD_VERSION_SCRIPT
-- Performing Test HAVE_LD_VERSION_SCRIPT - Failed
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Threads_FOUND=TRUE
-- ********************************************
-- ********** libssh build options : **********
-- zlib support: OFF
-- libgcrypt support: OFF
-- libmbedTLS support: ON
-- libnacl support: OFF
-- SFTP support: ON
-- Server support : ON
-- GSSAPI support : OFF
-- GEX support : ON
-- Pcap debugging support : ON
-- Build shared library: ON
-- Unit testing: OFF
-- Client code testing: OFF
-- Blowfish cipher support: OFF
-- Server code testing: OFF
-- Public API documentation generation
-- Benchmarks: OFF
-- Symbol versioning: OFF
-- Allow ABI break: OFF
-- Release is final:
-- Global client config: /etc/ssh/ssh_config
-- Global bind config: /etc/ssh/libssh_server_config
-- ********************************************
-- Configuring done
-- Generating done
I'm new to vcpkg and cmake and i'm figured out, that you can pass option to vcpkg with the triplet files. So i have tried to pass the WITH_GSSAPI opttion in an custom triplet:
set(VCPKG_TARGET_ARCHITECTURE x86)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE dynamic)
set(VCPKG_CXX_FLAGS "/DWITH_GSSAPI")
set(VCPKG_C_FLAGS "/DWITH_GSSAPI")
But that doesn't work neither. So how can i compile libssh with gssapi support using vcpkg?
You can add the features supported by the vcpkg port. Add the features to your vcpkg.json
{
"name": "libssh",
"default-features": true,
"features": [ "zlib" ]
},
You can find the supported features in
https://vcpkg.io/en/packages.html
I don't see gssapi specifically, which means you should make a pull request and add it.
Feature Name: zlib
Description: libssh with zlib
Build-Depends: zlib
Feature Name: openssl
Description: Crypto support (OpenSSL)
Build-Depends: openssl
Feature Name: crypto
Description: Default crypto backend
Build-Depends: [object Object]
Feature Name: mbedtls
Description: Crypto support (mbedTLS)
Build-Depends: [object Object],[object Object]
I'm trying to build postgresql 12 with timescaledb on macOS Big Sur (x86), but the build fails with “error: 'stdio.h' file not found”:
❯ nix-shell -p 'postgresql_12.withPackages (p: [ p.timescaledb ])'
these derivations will be built:
/nix/store/40ln5j15h3393rz6ib3agdjh44zbzq0l-timescaledb-2.1.0.drv
/nix/store/nr2zamck44wmzfiv1qx069l60xmv3flf-postgresql-and-plugins-12.6.drv
building '/nix/store/40ln5j15h3393rz6ib3agdjh44zbzq0l-timescaledb-2.1.0.drv'...
unpacking sources
unpacking source archive /nix/store/q59w20k2wvr2sr2nzzzs99ka82w3az6i-source
source root is source
patching sources
configuring
fixing cmake files...
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/963231s8j5fp2zjx5dhnwy1g9yv8p4pp-timescaledb-2.1.0/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/963231s8j5fp2zjx5dhnwy1g9yv8p4pp-timescaledb-2.1.0/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/963231s8j5fp2zjx5dhnwy1g9yv8p4pp-timescaledb-2.1.0/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/963231s8j5fp2zjx5dhnwy1g9yv8p4pp-timescaledb-2.1.0/share/doc/timescaledb -DCMAKE_INSTALL_INFODIR=/nix/store/963231s8j5fp2zjx5dhnwy1g9yv8p4pp-timescaledb-2.1.0/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/963231s8j5fp2zjx5dhnwy1g9yv8p4pp-timescaledb-2.1.0/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/963231s8j5fp2zjx5dhnwy1g9yv8p4pp-timescaledb-2.1.0/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/963231s8j5fp2zjx5dhnwy1g9yv8p4pp-timescaledb-2.1.0/include -DCMAKE_INSTALL_SBINDIR=/nix/store/963231s8j5fp2zjx5dhnwy1g9yv8p4pp-timescaledb-2.1.0/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/963231s8j5fp2zjx5dhnwy1g9yv8p4pp-timescaledb-2.1.0/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/963231s8j5fp2zjx5dhnwy1g9yv8p4pp-timescaledb-2.1.0/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_SYSROOT= -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/cay94li1m7s8qiigvp6h30l2gf89ys49-cctools-binutils-darwin-949.0.1/bin/strip -DCMAKE_RANLIB=/nix/store/cay94li1m7s8qiigvp6h30l2gf89ys49-cctools-binutils-darwin-949.0.1/bin/ranlib -DCMAKE_AR=/nix/store/cay94li1m7s8qiigvp6h30l2gf89ys49-cctools-binutils-darwin-949.0.1/bin/ar -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX=/nix/store/963231s8j5fp2zjx5dhnwy1g9yv8p4pp-timescaledb-2.1.0 -DSEND_TELEMETRY_DEFAULT=OFF -DREGRESS_CHECKS=OFF -DWARNINGS_AS_ERRORS=OFF
-- The C compiler identification is Clang 7.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/8i0yaj3r82kqcdbr453wzzijnszxg4gx-clang-wrapper-7.1.0/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- TimescaleDB version 2.1.0. Can be updated from version 2.0.2
-- Build type is Release
-- Install method is 'source'
-- CMAKE_BUILD_TYPE does not match Debug
-- Performing Test CC_SUPPORTS_NO_FORMAT_TRUNCATION
-- Performing Test CC_SUPPORTS_NO_FORMAT_TRUNCATION - Failed
-- Compiler does not support -Wno-format-truncation
-- Performing Test CC_STRINGOP_TRUNCATION
-- Performing Test CC_STRINGOP_TRUNCATION - Failed
-- Compiler does not support -Wno-stringop-truncation
-- Performing Test CC_SUPPORTS_IMPLICIT_FALLTHROUGH
-- Performing Test CC_SUPPORTS_IMPLICIT_FALLTHROUGH - Success
-- Performing Test CC_SUPPORTS_VISIBILITY_HIDDEN
-- Performing Test CC_SUPPORTS_VISIBILITY_HIDDEN - Success
-- Using compiler Clang
-- Could NOT find Git (missing: GIT_EXECUTABLE)
-- Using pg_config /nix/store/2dbkk2kv3cb5gzxhyhhxair7c9f6rz9h-postgresql-12.6/bin/pg_config
-- Compiling against PostgreSQL version 12.6
-- Using local clang-format
-- Linter support (clang-tidy) enabled
-- Assertion checks are OFF
-- Found OpenSSL: /nix/store/xxmdw2z5cm1rlcl8n9n91q7356542byw-openssl-1.1.1j/lib/libcrypto.dylib (found version "1.1.1j")
-- OPENSSL_LIBRARIES: /nix/store/xxmdw2z5cm1rlcl8n9n91q7356542byw-openssl-1.1.1j/lib/libssl.dylib;/nix/store/xxmdw2z5cm1rlcl8n9n91q7356542byw-openssl-1.1.1j/lib/libcrypto.dylib
-- Using OpenSSL version 1.1.1j
-- Using nm /nix/store/cay94li1m7s8qiigvp6h30l2gf89ys49-cctools-binutils-darwin-949.0.1/bin/nm
-- Skipping isolation regress checks since program 'pg_regress' was not found
-- Skipping isolation regress checks since program 'pg_isolation_regress' was not found
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
BUILD_TESTING
CMAKE_CXX_COMPILER
CMAKE_EXPORT_NO_PACKAGE_REGISTRY
CMAKE_INSTALL_BINDIR
CMAKE_INSTALL_DOCDIR
CMAKE_INSTALL_INCLUDEDIR
CMAKE_INSTALL_INFODIR
CMAKE_INSTALL_LIBDIR
CMAKE_INSTALL_LIBEXECDIR
CMAKE_INSTALL_LOCALEDIR
CMAKE_INSTALL_MANDIR
CMAKE_INSTALL_OLDINCLUDEDIR
CMAKE_INSTALL_SBINDIR
CMAKE_POLICY_DEFAULT_CMP0025
-- Build files have been written to: /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build
cmake: enabled parallel building
building
build flags: -j1 -l1 SHELL=/nix/store/l25gl3siwmq6gws4lqlyd1040xignvqw-bash-4.4-p23/bin/bash
Scanning dependencies of target sqlupdatescripts
[ 0%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/updates/post-update.sql.processed
[ 0%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--2.0.2--2.1.0.sql
[ 1%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--2.0.1--2.1.0.sql
[ 1%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--2.0.0--2.1.0.sql
[ 2%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--2.0.0-rc4--2.1.0.sql
[ 2%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--2.0.0-rc3--2.1.0.sql
[ 3%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--2.0.0-rc2--2.1.0.sql
[ 3%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--2.0.0-rc1--2.1.0.sql
[ 4%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--1.7.5--2.1.0.sql
[ 4%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--1.7.4--2.1.0.sql
[ 5%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--1.7.3--2.1.0.sql
[ 5%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--1.7.2--2.1.0.sql
[ 6%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--1.7.1--2.1.0.sql
[ 6%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--1.7.0--2.1.0.sql
[ 7%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--1.6.1--2.1.0.sql
[ 7%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--1.6.0--2.1.0.sql
[ 8%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--1.5.1--2.1.0.sql
[ 8%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--1.5.0--2.1.0.sql
[ 9%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--1.4.2--2.1.0.sql
[ 9%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--1.4.1--2.1.0.sql
[ 10%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--1.4.0--2.1.0.sql
[ 10%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--1.3.2--2.1.0.sql
[ 11%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--1.3.1--2.1.0.sql
[ 11%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--1.3.0--2.1.0.sql
[ 12%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--1.2.2--2.1.0.sql
[ 12%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--1.2.1--2.1.0.sql
[ 13%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--1.2.0--2.1.0.sql
[ 13%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--1.1.1--2.1.0.sql
[ 14%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--1.1.0--2.1.0.sql
[ 14%] Built target sqlupdatescripts
Scanning dependencies of target sqlfile
[ 14%] Generating /tmp/nix-build-timescaledb-2.1.0.drv-0/source/build/sql/timescaledb--2.1.0.sql
[ 14%] Built target sqlfile
Scanning dependencies of target timescaledb
[ 15%] Building C object src/CMakeFiles/timescaledb.dir/agg_bookend.c.o
/nix/store/2dbkk2kv3cb5gzxhyhhxair7c9f6rz9h-postgresql-12.6/include/server/c.h:59:10: error: 'stdio.h' file not found [clang-diagnostic-error]
#include <stdio.h>
^
1 error generated.
Error while processing /tmp/nix-build-timescaledb-2.1.0.drv-0/source/src/agg_bookend.c.
make[2]: *** [src/CMakeFiles/timescaledb.dir/build.make:82: src/CMakeFiles/timescaledb.dir/agg_bookend.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:950: src/CMakeFiles/timescaledb.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
builder for '/nix/store/40ln5j15h3393rz6ib3agdjh44zbzq0l-timescaledb-2.1.0.drv' failed with exit code 2
cannot build derivation '/nix/store/nr2zamck44wmzfiv1qx069l60xmv3flf-postgresql-and-plugins-12.6.drv': 1 dependencies couldn't be built
error: build of '/nix/store/nr2zamck44wmzfiv1qx069l60xmv3flf-postgresql-and-plugins-12.6.drv' failed
It looks like cmake is called, but is not able to find stdio.h. How can I debug/fix this?
(What I actually want to build is 'postgresql_12.withPackages (p: [ (p.timescaledb.overrideDerivation (old: { cmakeFlags = [ "-DSEND_TELEMETRY_DEFAULT=OFF" "-DREGRESS_CHECKS=OFF" "-DAPACHE_ONLY=true" ]; })) ])'.)
As Robert Hensing showed in the comments, it's possible to troubleshoot the build process by cloning nixpkgs and use a nix-shell to build the derivation.
In this case it turned out that the culprit was clang-tidy that was called from the Makefile generated by cmake. By overriding the cmakeFlags and adding -DLINTER=OFF it builds successfully:
(postgresql_12.withPackages (p: [
(p.timescaledb.overrideDerivation (old: {
cmakeFlags = [ "-DLINTER=OFF" ];
}))
]))
I want to use CGAL libraries , I'm using :
CGAL 4.10 ,Microsoft visual studio 2013 , CMake 3.9.3 , boost 1.65, QT creator 4.3.1
while Configuring CGAL using Cmake , it is showing the following errors:
Looking for pthread.h
Looking for pthread.h - not found
Found Threads: TRUE
CMake Error at C:/Program Files/CMake/share/cmake-3.9/Modules/FindBoost.cmake:1902 (message):
Unable to find the requested Boost libraries.
Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
cmake/modules/CGAL_SetupBoost.cmake:21 (find_package)
cmake/modules/CGAL_SetupDependencies.cmake:85 (include)
CMakeLists.txt:681 (include)
Boost include: Boost_INCLUDE_DIR-NOTFOUND
Boost libraries:
Boost definitions:
USING BOOST_VERSION = '..'
== Detect external libraries (DONE) ==
== Write compiler_config.h ==
Performing Test CGAL_CFG_DENORMALS_COMPILE_BUG - Success
Performing Test CGAL_CFG_FPU_ROUNDING_MODE_UNWINDING_VC_BUG - Success
Performing Test CGAL_CFG_IEEE_754_BUG - Success
Performing Test CGAL_CFG_ISTREAM_INT_BUG - Success
Performing Test CGAL_CFG_MATCHING_BUG_5 - Success
Performing Test CGAL_CFG_MATCHING_BUG_6 - Failed
Performing Test CGAL_CFG_MATCHING_BUG_7 - Failed
Performing Test CGAL_CFG_MATCHING_BUG_8 - Success
Performing Test CGAL_CFG_NESTED_CLASS_FRIEND_DECLARATION_BUG - Failed
Performing Test CGAL_CFG_NO_LIMITS - Success
Performing Test CGAL_CFG_NO_NEXTAFTER - Failed
Performing Test CGAL_CFG_NO_STL - Success
Performing Test CGAL_CFG_NUMERIC_LIMITS_BUG - Success
Performing Test CGAL_CFG_OUTOFLINE_MEMBER_DEFINITION_BUG - Success
Performing Test CGAL_CFG_TEMPLATE_IN_DEFAULT_PARAMETER_BUG - Success
Performing Test CGAL_CFG_TYPENAME_BEFORE_DEFAULT_ARGUMENT_BUG - Success
Performing Test CGAL_CFG_USING_BASE_MEMBER_BUG_2 - Success
== Write compiler_config.h (DONE) ==
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
Boost_INCLUDE_DIR (ADVANCED)
used as include directory in directory C:/dev/CGAL-4.10/src/CGAL
used as include directory in directory C:/dev/CGAL-4.10/src/CGAL
used as include directory in directory C:/dev/CGAL-4.10/src/CGAL_Core
used as include directory in directory C:/dev/CGAL-4.10/src/CGAL_Core
used as include directory in directory C:/dev/CGAL-4.10/src/CGAL_ImageIO
used as include directory in directory C:/dev/CGAL-4.10/src/CGAL_ImageIO
I added Boost_INCLUDE_DIR,BOOST_ROOT manually to environment vairables
Boost_INCLUDE_DIR=C:\dev\boost_1_65_0;BOOST_ROOT=C:\dev\boost_1_65_0
I tried many versions of boost ,cmake and cgal with visual sutudio 2015 , 2013 and non of the was working
I appreciate any help.thank you
If you are using Cygwin, you can use cmake-gui and use the interface to fill your path, this limits the risk of typos and it is more obvious to find the missing fields.
Another option is to edit hte CMakeCache.txt in your build directory to give the paths, so you don't have to declare the variables as environment variables.
I have download opencv for iOS and run it from terminal using cmake, but it gives errors in everything, and ultimately the opencv2.framework file it makes is empty. Below are the errors terminal show, please help about this
Setting up iPhoneOS toolchain
-- iPhoneOS toolchain loaded
-- Setting up iPhoneOS toolchain
-- iPhoneOS toolchain loaded
-- The CXX compiler identification is Clang 5.0.0
-- The C compiler identification is Clang 5.0.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Performing Test HAVE_CXX_FSIGNED_CHAR
-- Performing Test HAVE_CXX_FSIGNED_CHAR - Failed
-- Performing Test HAVE_C_FSIGNED_CHAR
-- Performing Test HAVE_C_FSIGNED_CHAR - Failed
-- Performing Test HAVE_CXX_W
-- Performing Test HAVE_CXX_W - Failed
-- Performing Test HAVE_C_W
-- Performing Test HAVE_C_W - Failed
-- Performing Test HAVE_CXX_WALL
-- Performing Test HAVE_CXX_WALL - Failed
-- Performing Test HAVE_C_WALL
-- Performing Test HAVE_C_WALL - Failed
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Failed
-- Performing Test HAVE_C_WERROR_RETURN_TYPE
-- Performing Test HAVE_C_WERROR_RETURN_TYPE - Failed
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Failed
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Failed
-- Performing Test HAVE_CXX_WERROR_ADDRESS
-- Performing Test HAVE_CXX_WERROR_ADDRESS - Failed
-- Performing Test HAVE_C_WERROR_ADDRESS
-- Performing Test HAVE_C_WERROR_ADDRESS - Failed
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Failed
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Failed
-- Performing Test HAVE_CXX_WFORMAT
-- Performing Test HAVE_CXX_WFORMAT - Failed
-- Performing Test HAVE_C_WFORMAT
-- Performing Test HAVE_C_WFORMAT - Failed
-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY
-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Failed
-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY
-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Failed
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Failed
-- Performing Test HAVE_C_WMISSING_DECLARATIONS
-- Performing Test HAVE_C_WMISSING_DECLARATIONS - Failed
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed
-- Performing Test HAVE_C_WMISSING_PROTOTYPES
-- Performing Test HAVE_C_WMISSING_PROTOTYPES - Failed
When I perform the PGO optimization step (using LINK.EXE /LTCG:PGU), the Visual Studio 2010 linker complains:
Merging foo!1.pgc
'FOO_EDGE::get_input': Arc 2 --> 4 has negative count (-414343)
Expectation failed: f line 4241
'FOO_DELAY::set_delay': Block 18 outgoing counts differ from block count (-9 diff)
Expectation failed: f line 4261
Expectation failed: f line 4211
'FOO_DELAY::set_delay': Arc 12 --> 23 has negative count (-3)
Expectation failed: f line 4220
Generating code
907 of 4948 ( 18.33%) profiled functions will be compiled for speed
4948 of 4948 functions (100.0%) were optimized using profile data
42912225037 of 42912225037 instructions (100.0%) were optimized using profile data
What's causing these "expectation failures"? How should I address them? It seems like PGO is still optimizing the code, but I'm a little suspicious of the quality/completeness of the optimizations in the presence of these messages.
It seems that these errors occur when performing PGO-instrumented runs of multithreaded applications. They can be avoided by compiling (not linking) with the /PogoSafeMode flag on x64.
I didn't find the MSDN documentation on this flag particularly clear; the correct procedure for performing PGO on multithreaded code is:
Compile with cl.exe /PogoSafeMode
Link with link.exe /LTCG:PGI
Execute your multithreaded profiling run(s)
Re-link with link.exe /LTCG:PGO