Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sodium cmake error #520

Open
EgyipTomi425 opened this issue Oct 1, 2024 · 0 comments
Open

Sodium cmake error #520

EgyipTomi425 opened this issue Oct 1, 2024 · 0 comments
Labels

Comments

@EgyipTomi425
Copy link

EgyipTomi425 commented Oct 1, 2024

Hi!
I tried to compile an proxygen project, but I got Sodium error over and over again. I tried install it from apt, source, add prefix path, Sodium_DIR variable etc but I still got the same error. Debian 12. Can you help me out please? Huge thanks. Any idea?

kecyke@Kecyke-Laptop-D:~/my_proxygen_project/build$ cmake .. -DCMAKE_PREFIX_PATH=/usr/local
-- Found folly: /usr/local
-- Found wangle: /usr/local
-- Found folly: /usr/local
CMake Error at /usr/share/cmake-3.25/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
  By not providing "FindSodium.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Sodium", but
  CMake did not find one.

  Could not find a package configuration file provided by "Sodium" with any
  of the following names:

    SodiumConfig.cmake
    sodium-config.cmake

  Add the installation prefix of "Sodium" to CMAKE_PREFIX_PATH or set
  "Sodium_DIR" to a directory containing one of the above files.  If "Sodium"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  /usr/local/lib/cmake/fizz/fizz-config.cmake:58 (find_dependency)
  /usr/share/cmake-3.25/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /home/kecyke/mvfst/_build/lib/cmake/mvfst/mvfst-config.cmake:45 (find_dependency)
  /usr/share/cmake-3.25/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /home/kecyke/proxygen/proxygen/_build/proxygen-config.cmake:47 (find_dependency)
  CMakeLists.txt:9 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/kecyke/my_proxygen_project/build/CMakeFiles/CMakeOutput.log".
kecyke@Kecyke-Laptop-D:~/my_proxygen_project/build$ ls /usr/local
bin  cuda  cuda-12  cuda-12.6  etc  games  include  lib  man  sbin  share  src
kecyke@Kecyke-Laptop-D:~/my_proxygen_project/build$ ls /usr/local/lib
boost_1_83_0        libboost_context.so         libfizz_test_support.a  libfollybenchmark.a   libsodium.a   libsodium.so.26      libwangle.a  python3.11
cmake               libboost_context.so.1.83.0  libfmt.a                libfolly_test_util.a  libsodium.la  libsodium.so.26.2.0  ocaml        R
libboost_context.a  libfizz.a                   libfolly.a              liboqs.a              libsodium.so  libtorch             pkgconfig
kecyke@Kecyke-Laptop-D:~/my_proxygen_project/build$ 

My CMAKE:

cmake_minimum_required(VERSION 3.10)
project(MyProxygenProject)

find_path(SODIUM_INCLUDE_DIR sodium.h HINTS /usr/local/include)
find_library(SODIUM_LIBRARY sodium HINTS /usr/local/lib)


set(CMAKE_PREFIX_PATH /home/kecyke/proxygen/proxygen/_build)
find_package(Proxygen REQUIRED)

add_executable(my_proxy_server main.cpp)

target_link_libraries(my_proxy_server Proxygen::proxygen)
@afrind afrind added the build label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants