Giter VIP home page Giter VIP logo

Comments (2)

HaseebLUMS avatar HaseebLUMS commented on August 30, 2024

While using cmake to use mvfst in my project, I get the following error during making:

ld: library not found for -lgflags_shared
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I am not able to work around it.

Following is my CMakeLists.txt

cmake_minimum_required(VERSION 3.15)
project(testing)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_MODULE_PATH
"${CMAKE_CURRENT_SOURCE_DIR}/cmake"
${CMAKE_MODULE_PATH})
find_package(mvfst REQUIRED)
add_executable(${PROJECT_NAME} hello.cpp)
target_link_libraries(${PROJECT_NAME} mvfst::mvfst_client)

from mvfst.

HaseebLUMS avatar HaseebLUMS commented on August 30, 2024

turns out i just had to include some find_package commands in my CMakeLists.txt

Here are all of my find_package commands in case some newbie like me would wanna know:

find_package(fizz CONFIG REQUIRED)
find_package(folly CONFIG REQUIRED)
find_package(gflags CONFIG REQUIRED)
find_package(gtest CONFIG REQUIRED)
find_package(mvfst REQUIRED)

from mvfst.

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.