how do you build a project of cmake with epoll-shim.

Hi, im trying to install epoll-shim.

im now using cmake instead of meson since it refuses to use meson.

so far i have the folder an i done this.

git clone GitHub - jiixyj/epoll-shim: small epoll implementation using kqueue; includes all features needed for libinput/libevdev
cd epoll-shim
cmake
cmake … -DCMAKE_BUILD_TYPE=RelWithDebInfo
– The C compiler identification is GNU 13.2.0
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler: /usr/bin/cc - skipped
– Detecting C compile features
– Detecting C compile features - done
– Check size of errno_t
– Check size of errno_t - failed
– Performing Test CMAKE_HAVE_LIBC_PTHREAD
– Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
– Found Threads: TRUE
– Configuring done (0.5s)
– Generating done (0.0s)
– Build files have been written to: /home/talion117/epoll-shim/build
cmake … -DCMAKE_BUILD_TYPE=Debug
– Configuring done (0.0s)
– Generating done (0.1s)
– Build files have been written to: /home/talion117/epoll-shim/build

im stuck on cmake --build /home/talion117/epoll-shim/build

Error: could not load cache

mkdir build
cd build
cmake … -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build .

From readme …

what to type after --build though? does it need a directory to install?

cmake --build
CMake Error: The source directory “/home/talion117/epoll-shim/build/…” does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Usage: cmake --build [options] [-- [native-options]]
cmake --build --preset [options] [-- [native-options]]
Options:

= Project binary directory to be built. --preset , --preset= = Specify a build preset. --list-presets[=] = List available build presets. --parallel [], -j [] = Build in parallel using the given number of jobs. If is omitted the native build tool's default number is used. The CMAKE_BUILD_PARALLEL_LEVEL environment variable specifies a default parallel level when this option is not given. -t ..., --target ... = Build instead of default targets. --config = For multi-configuration tools, choose . --clean-first = Build target 'clean' first, then build. (To clean only, use --target 'clean'.) --resolve-package-references={on|only|off} = Restore/resolve package references during build. -v, --verbose = Enable verbose output - if supported - including the build commands to be executed. -- = Pass remaining options to the native tool.

i got this.

i did that last command.

cmake --build .
.
Error: could not load cache

cd /home/talion117/epoll-shim
mkdir build
cd build
cmake …
– The C compiler identification is GNU 13.2.0
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler: /usr/bin/cc - skipped
– Detecting C compile features
– Detecting C compile features - done
– Check size of errno_t
– Check size of errno_t - failed
– Performing Test CMAKE_HAVE_LIBC_PTHREAD
– Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
– Found Threads: TRUE
– Configuring done (0.4s)
– Generating done (0.0s)
– Build files have been written to: /home/talion117/epoll-shim/build

i think i got it.

whats next?

got most of it complete. not sure how to fix it.

18 - epoll-test.epoll__poll_only_fd (Skipped)
61 - epoll-test-rdhup-linux-def.epoll__poll_only_fd (Skipped)
107 - timerfd-root-test.timerfd_root__zero_read_on_abs_realtime (Skipped)
108 - timerfd-root-test.timerfd_root__read_on_abs_realtime_no_interval (Skipped)
109 - timerfd-root-test.timerfd_root__cancel_on_set (Skipped)
110 - timerfd-root-test.timerfd_root__cancel_on_set_init (Skipped)
111 - timerfd-root-test.timerfd_root__clock_change_notification (Skipped)
112 - timerfd-root-test.timerfd_root__advance_time_no_cancel (Skipped)
113 - timerfd-mock-test.timerfd_mock__mocked_kevent (Skipped)
122 - signalfd-test.signalfd__sigwait_openbsd (Skipped)
126 - perf-many-fds.perf_many_fds__perf (Skipped)
155 - pipe-test.pipe__fifo_connecting_reader (Skipped)
160 - pipe-test.pipe__closed_read_end_of_duplex (Skipped)

I would use:

cmake -B build -S . -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo

first creates buildsystem

cmake —build build —targets all

than start the build steps

git clone GitHub - jiixyj/epoll-shim: small epoll implementation using kqueue; includes all features needed for libinput/libevdev
Cloning into ‘epoll-shim’…
remote: Enumerating objects: 3085, done.
remote: Counting objects: 100% (443/443), done.
remote: Compressing objects: 100% (164/164), done.
remote: Total 3085 (delta 266), reused 380 (delta 226), pack-reused 2642 (from 1)
Receiving objects: 100% (3085/3085), 623.98 KiB | 1.58 MiB/s, done.
Resolving deltas: 100% (2124/2124), done.
talion117@talion117-83e1:~$ cd /home/talion117/epoll-shim
talion117@talion117-83e1:~/epoll-shim$ cmake -B build -S . -G Ninja -DCMAKE_BUIL

LD_TYPE=RelWithDebInfo
cmake —build build —targets all
– The C compiler identification is GNU 13.2.0
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler: /usr/bin/cc - skipped
– Detecting C compile features
– Detecting C compile features - done
– Check size of errno_t
– Check size of errno_t - failed
– Performing Test CMAKE_HAVE_LIBC_PTHREAD
– Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
– Found Threads: TRUE
– Configuring done (0.4s)
– Generating done (0.0s)
– Build files have been written to: /home/talion117/epoll-shim/build
CMake Warning:
Ignoring extra path from command line:

“all”

– Configuring done (0.0s)
– Generating done (0.0s)
– Build files have been written to: /home/talion117/epoll-shim/build

This are 2 cmake calls!

See CMake usage

so what to type in terminal first?

i got it to work. thanks.