blend2d: Have problems building the library
I’m under Arch Linux (btw) and I have downloaded the source code from the download page.
When I’m trying to run cmake using the following configuration: cmake .. -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/home/rempas/.local \
I do get the following error:
** AsmJit Summary **
ASMJIT_DIR=/home/rempas/Projects/Programming/blend2d/3rdparty/asmjit
ASMJIT_TEST=FALSE
ASMJIT_TARGET_TYPE=EMBED
ASMJIT_DEPS=pthread;rt
ASMJIT_LIBS=pthread;rt
ASMJIT_CFLAGS=-DASMJIT_STATIC;-DASMJIT_NO_FOREIGN
ASMJIT_PRIVATE_CFLAGS=-DASMJIT_STATIC;-DASMJIT_NO_FOREIGN
ASMJIT_PRIVATE_CFLAGS_DBG=
ASMJIT_PRIVATE_CFLAGS_REL=
** Blend2D Summary **
BLEND2D_DIR=/home/rempas/Projects/Programming/blend2d
BLEND2D_TEST=FALSE
BLEND2D_TARGET_TYPE=SHARED
BLEND2D_DEPS=c;m;pthread;rt
BLEND2D_LIBS=blend2d;c;m;pthread;rt
BLEND2D_CFLAGS=
BLEND2D_PRIVATE_CFLAGS=-msse2;-DBL_BUILD_OPT_AVX2;-DASMJIT_STATIC;-DASMJIT_NO_FOREIGN;-DASMJIT_NO_STDCXX
BLEND2D_PRIVATE_CFLAGS_DBG=
BLEND2D_PRIVATE_CFLAGS_REL=
CMake Error at CMakeLists.txt:153 (target_compile_features):
target_compile_features no known features for CXX compiler
""
version .
Call Stack (most recent call first):
CMakeLists.txt:791 (blend2d_add_target)
-- Configuring incomplete, errors occurred!
Should I try with the “git” version?
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 20 (8 by maintainers)
Glad it works, there will be a new version soon 😃
Blend2D git repository doesn’t bundle asmjit library, only releases do. For convenience, Blend2D would look in either parent directory or 3rdparty directory for asmjit - if it cannot find it, it would error.
BTW this is documented here in a section called “Building From Source”:
It does two configurations - Debug and Release. Basically it’s used mostly for development to configure the project quickly.
The output seems good, there are no errors, so I’m not really sure what was the problem initially. Does it build?
You can try git master, but I don’t think it would be any different.
This log is btw not sufficient to diagnose the error - full log would be nice (without cmake cache) and the C++ compiler you are using as well (and target architecture).