Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

How to build from sources on Debian-trixie #2141

Open
johanno opened this issue Nov 22, 2023 · 0 comments
Open

How to build from sources on Debian-trixie #2141

johanno opened this issue Nov 22, 2023 · 0 comments

Comments

@johanno
Copy link

johanno commented Nov 22, 2023

I had to use the build script with docker since it is not easy to get the dependencies right:
./build.sh --docker

but for some reason THREADS was missing I added to the CMakeLists.txt:

set(CMAKE_THREAD_LIBS_INIT "-lpthread")
set(CMAKE_HAVE_THREADS_LIBRARY 1)
set(CMAKE_USE_WIN32_THREADS_INIT 0)
set(CMAKE_USE_PTHREADS_INIT 1)
set(THREADS_PREFER_PTHREAD_FLAG ON)

If it still does not work I added also
libpthread-stubs0-dev \
to the Dockerfile but I don't think it is needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant