Comments (3)
I think there must be some difference in the build environment or perhaps version of cmake (I'm on 3.9, but I believe this should work on 3.0) as this works fine on my developer machine (linux). BTW you shouldn't need to pass -DNDEBUG
when building any of the release types (Release
, RelMinSize
or RelWithDebInfo
) as that is already set by cmake by defautl, if you do need to, then that might suggest that your cmake build options aren't getting passed to cmake correctly. Could you check the begining of the cmake output from a clean build directory and check if it output 'Building library: static'. Also is this a clean cmake run? Typically cmake is run in subdir build directory not the toplevel source dir and the only way to clean CMake generated files is to remove it's build dir (or it's contents). One last thing to check is are you using the latest master banch? Since the branch I mentioned in the pr discusion has long since been merged into master and I've upped the minimum version of CMake required to the oldest documented version (3.0) which mentions BUILD_SHARE_LIBS.
Here is my cmake output:
cmake .. -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_BUILD_TYPE=Release
-- Found PythonInterp: /usr/bin/python (found version "2.7.14")
-- The C compiler identification is GNU 7.2.0
-- The CXX compiler identification is GNU 7.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build: Release
-- Building library: static
-- File Face support: enabled
-- Tracing support: enabled
-- Using vm machine type: direct
-- Compiler ID is: GNU
-- 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
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version "2.8.0")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tim/workspace/graphitedev/master/build-static
Here's the section of src/CMakeLists.txt
that should be preventing the problem you're having:
Line 129:
if (BUILD_SHARED_LIBS)
nolib_test(stdc++ $<TARGET_SONAME_FILE:graphite2>)
endif (BUILD_SHARED_LIBS)
The error message you're getting suggests that BUILD_SHARED_LIBS isn't being set despite your command line doing exactly that.
from graphite.
I see the problem now. I am on MacOS and currently the BUILD_SHARED_LIBS
is defined only for Linux. Can you do the same inside the if (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
block?
from graphite.
I ran into this, too. I believe #54 should fix it.
from graphite.
Related Issues (20)
- Tamil font features not working on LibO 6 (working on LibO 5) HOT 1
- What MPL license version? HOT 1
- fix to build with Intel compiler HOT 1
- Better integration with HarfBuzz font functions HOT 1
- Partial graphite support
- Linking of libraries is inconsistent on Linux vs BSD HOT 2
- Positioning a non-base should position the whole cluster
- set_property could not find CACHE variable CMAKE_BUILD_TYPE. HOT 1
- Graphite fails to build on Darwin with M1 processor HOT 3
- Cmake versions and deprecation warnings HOT 1
- Remove the workaround for llvm.39241?
- Deprecation warnings when building with VS 2019 with `/std:c++17` HOT 1
- Graphite Fails to Compile in recent Electronite version 20 - std::iterator deprecated HOT 4
- Graphite Fails to Compile in recent Electronite version 22 - arithmetic between different enumeration types ('status_t' and 'graphite2::errors') is deprecated
- jsontestOutput newline issue
- padauk3Output test failure
- Access denied when opening the docs HOT 3
- Remove unnecessary null pointer checks
- Don't override `GR2_API` macro if user defined it
- cross build failed, use mips-linux-gnu-gcc
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphite.