Code Monkey home page Code Monkey logo

Comments (3)

tim-eves avatar tim-eves commented on August 28, 2024

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.

jeroen avatar jeroen commented on August 28, 2024

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.

spl avatar spl commented on August 28, 2024

I ran into this, too. I believe #54 should fix it.

from graphite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.