Cmake cant find luajit

Cmake cant find luajit

usr_40476@localhost:~/Downloads/keuboard shit/keyleds-master/build> sudo zypper install luajit
Loading repository data...
Reading installed packages...
'luajit' is already installed.
No update candidate for 'luajit-5.1.2.1.0+git.1693350652.41fb94d-2.1.x86_64'. The highest available version is already installed.
Resolving package dependencies...
Nothing to do.
usr_40476@localhost:~/Downloads/keuboard shit/keyleds-master/build> cmake -DCMAKE_BUILD_TYPE=MinSizeRel .. && make
CMake Deprecation Warning at CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at libkeyleds/CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at keyledsctl/CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Using libudev for device enumeration
CMake Deprecation Warning at keyledsd/CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at keyledsd/plugins/CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Checking for one of the modules 'luajit;lua-5.3;lua-5.2'
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:906 (message):
  None of the required 'luajit;lua-5.3;lua-5.2' found
Call Stack (most recent call first):
  keyledsd/plugins/CMakeLists.txt:29 (pkg_search_module)


-- Configuring incomplete, errors occurred!
usr_40476@localhost:~/Downloads/keuboard shit/keyleds-master/build> 

@40476 when compiling it’s always the development package needed… in this case luajit-devel

Thanks :smiley: (I had mega brainfart)

Update:
I dont know what this means or how to fix it. can you help me?

usr_40476@localhost:~/Downloads/keuboard shit/keyleds-master/build> cmake -DCMAKE_BUILD_TYPE=MinSizeRel .. && make
CMake Deprecation Warning at CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at libkeyleds/CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at keyledsctl/CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Using libudev for device enumeration
CMake Deprecation Warning at keyledsd/CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at keyledsd/plugins/CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Checking for one of the modules 'luajit;lua-5.3;lua-5.2'
-- Configuring done (0.3s)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
/home/usr_40476/Downloads/keuboard shit/keyleds-master/keyledsd/X11_Xi_INCLUDE_PATH
   used as include directory in directory /home/usr_40476/Downloads/keuboard shit/keyleds-master/keyledsd
X11_Xi_LIB (ADVANCED)
    linked by target "core" in directory /home/usr_40476/Downloads/keuboard shit/keyleds-master/keyledsd

-- Generating done (0.1s)
CMake Generate step failed.  Build files cannot be regenerated correctly.
usr_40476@localhost:~/Downloads/keuboard shit/keyleds-master/build> 

@40476 If you look at the source there is a spec file with the requires… In openSUSE speak…

BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(libsystemd)
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(libuv)
BuildRequires:  pkgconfig(luajit)
BuildRequires:  pkgconfig(yaml-0.1)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xi)

The code is very old and will have errors to patch. Did you look at something like g15daemon? I built those for a user awhile back https://build.opensuse.org/project/show/home:Mir_ppc:home g and libg files

its for keyled manual install, I wanted to see if this had something that worked with my keyboard so that i could learn more about my situation

@40476 those are the files needed to be installed locally for you to build. Do you have Xi development installed?

no, i didn even know that existed.

EDIT:
I got it installed but now its doing this

sr_40476@localhost:~/Downloads/keuboard ****/keyleds-master/build> cmake -DCMAKE_BUILD_TYPE=MinSizeRel .. && make
CMake Deprecation Warning at CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at libkeyleds/CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at keyledsctl/CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Using libudev for device enumeration
CMake Deprecation Warning at keyledsd/CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at keyledsd/plugins/CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Configuring done (0.1s)
-- Generating done (0.1s)
-- Build files have been written to: /home/usr_40476/Downloads/keuboard ****/keyleds-master/build
[  1%] Building C object libkeyleds/CMakeFiles/libkeyleds.dir/src/device.c.o
[  2%] Building C object libkeyleds/CMakeFiles/libkeyleds.dir/src/error.c.o
[  3%] Building C object libkeyleds/CMakeFiles/libkeyleds.dir/src/feature_core.c.o
[  4%] Building C object libkeyleds/CMakeFiles/libkeyleds.dir/src/feature_gamemode.c.o
[  5%] Building C object libkeyleds/CMakeFiles/libkeyleds.dir/src/feature_gkeys.c.o
[  6%] Building C object libkeyleds/CMakeFiles/libkeyleds.dir/src/feature_layout.c.o
[  7%] Building C object libkeyleds/CMakeFiles/libkeyleds.dir/src/feature_leds.c.o
[  9%] Building C object libkeyleds/CMakeFiles/libkeyleds.dir/src/feature_reportrate.c.o
[ 10%] Building C object libkeyleds/CMakeFiles/libkeyleds.dir/src/feature_version.c.o
[ 11%] Building C object libkeyleds/CMakeFiles/libkeyleds.dir/src/hid_parser.c.o
[ 12%] Building C object libkeyleds/CMakeFiles/libkeyleds.dir/src/keys.c.o
[ 13%] Building C object libkeyleds/CMakeFiles/libkeyleds.dir/src/logging.c.o
[ 14%] Building C object libkeyleds/CMakeFiles/libkeyleds.dir/src/strings.c.o
[ 15%] Linking C shared library ../lib/libkeyleds.so
[ 15%] Built target libkeyleds
[ 17%] Building C object keyledsctl/CMakeFiles/keyledsctl.dir/src/dev_enum.c.o
[ 18%] Building C object keyledsctl/CMakeFiles/keyledsctl.dir/src/logging.c.o
[ 19%] Building C object keyledsctl/CMakeFiles/keyledsctl.dir/src/keyledsctl_gamemode.c.o
[ 20%] Building C object keyledsctl/CMakeFiles/keyledsctl.dir/src/keyledsctl_get_leds.c.o
[ 21%] Building C object keyledsctl/CMakeFiles/keyledsctl.dir/src/keyledsctl_gkeys.c.o
[ 22%] Building C object keyledsctl/CMakeFiles/keyledsctl.dir/src/keyledsctl_info.c.o
[ 23%] Building C object keyledsctl/CMakeFiles/keyledsctl.dir/src/keyledsctl_list.c.o
[ 25%] Building C object keyledsctl/CMakeFiles/keyledsctl.dir/src/keyledsctl_set_leds.c.o
[ 26%] Building C object keyledsctl/CMakeFiles/keyledsctl.dir/src/keyledsctl.c.o
[ 27%] Building C object keyledsctl/CMakeFiles/keyledsctl.dir/src/utils.c.o
[ 28%] Building C object keyledsctl/CMakeFiles/keyledsctl.dir/src/dev_enum_udev.c.o
[ 29%] Linking C executable ../bin/keyledsctl
[ 29%] Built target keyledsctl
[ 30%] Building C object keyledsd/CMakeFiles/common.dir/src/tools/accelerated.c.o
[ 31%] Building C object keyledsd/CMakeFiles/common.dir/src/tools/accelerated_plain.c.o
[ 32%] Building C object keyledsd/CMakeFiles/common.dir/src/tools/accelerated_sse2.c.o
[ 34%] Building C object keyledsd/CMakeFiles/common.dir/src/tools/accelerated_avx2.c.o
[ 35%] Building CXX object keyledsd/CMakeFiles/common.dir/src/tools/utils.cxx.o
[ 36%] Building CXX object keyledsd/CMakeFiles/common.dir/src/KeyDatabase.cxx.o
In file included from /home/usr_40476/Downloads/keuboard ****/keyleds-master/keyledsd/src/KeyDatabase.cxx:17:
/home/usr_40476/Downloads/keuboard ****/keyleds-master/keyledsd/include/keyledsd/KeyDatabase.h:123:34: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  123 |     class iterator : public std::iterator<std::bidirectional_iterator_tag,
      |                                  ^~~~~~~~
In file included from /usr/include/c++/13/bits/stl_construct.h:61,
                 from /usr/include/c++/13/optional:44,
                 from /home/usr_40476/Downloads/keuboard ****/keyleds-master/keyledsd/include/keyledsd/colors.h:22,
                 from /home/usr_40476/Downloads/keuboard ****/keyleds-master/keyledsd/include/keyledsd/RenderTarget.h:21,
                 from /home/usr_40476/Downloads/keuboard ****/keyleds-master/keyledsd/include/keyledsd/KeyDatabase.h:20:
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
[ 37%] Building CXX object keyledsd/CMakeFiles/common.dir/src/RenderTarget.cxx.o
[ 38%] Building CXX object keyledsd/CMakeFiles/common.dir/src/colors.cxx.o
[ 39%] Linking CXX shared library ../lib/keyleds_common.so
[ 39%] Built target common
[ 40%] Building CXX object keyledsd/CMakeFiles/core.dir/src/device/Device.cxx.o
[ 42%] Building CXX object keyledsd/CMakeFiles/core.dir/src/device/LayoutDescription.cxx.o
[ 43%] Building CXX object keyledsd/CMakeFiles/core.dir/src/service/Configuration.cxx.o
/home/usr_40476/Downloads/keuboard ****/keyleds-master/keyledsd/src/service/Configuration.cxx: In member function ‘virtual void keyleds::service::ConfigurationParser::EffectListState::subStateEnd(keyleds::tools::StackYAMLParser&, keyleds::tools::StackYAMLParser::State&)’:
/home/usr_40476/Downloads/keuboard ****/keyleds-master/keyledsd/src/service/Configuration.cxx:296:36: warning: redundant move in initialization [-Wredundant-move]
  296 |         const auto name = std::move(std::get<std::string>(it_name->second));
      |                           ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/usr_40476/Downloads/keuboard ****/keyleds-master/keyledsd/src/service/Configuration.cxx:296:36: note: remove ‘std::move’ call
[ 44%] Building CXX object keyledsd/CMakeFiles/core.dir/src/service/EffectManager.cxx.o
In file included from /home/usr_40476/Downloads/keuboard ****/keyleds-master/keyledsd/include/keyledsd/plugin/interfaces.h:20,
                 from /home/usr_40476/Downloads/keuboard ****/keyleds-master/keyledsd/include/keyledsd/service/EffectManager.h:23,
                 from /home/usr_40476/Downloads/keuboard ****/keyleds-master/keyledsd/src/service/EffectManager.cxx:17:
/home/usr_40476/Downloads/keuboard ****/keyleds-master/keyledsd/include/keyledsd/KeyDatabase.h:123:34: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  123 |     class iterator : public std::iterator<std::bidirectional_iterator_tag,
      |                                  ^~~~~~~~
In file included from /usr/include/c++/13/bits/stl_construct.h:61,
                 from /usr/include/c++/13/optional:44,
                 from /home/usr_40476/Downloads/keuboard ****/keyleds-master/keyledsd/include/keyledsd/colors.h:22,
                 from /home/usr_40476/Downloads/keuboard ****/keyleds-master/keyledsd/include/keyledsd/RenderTarget.h:21,
                 from /home/usr_40476/Downloads/keuboard ****/keyleds-master/keyledsd/include/keyledsd/KeyDatabase.h:20:
/usr/include/c++/13/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
/home/usr_40476/Downloads/keuboard ****/keyleds-master/keyledsd/src/service/EffectManager.cxx:39:48: error: variable ‘constexpr const std::array<unsigned char, 16> keyledsdModuleUUID’ has initializer but incomplete type
   39 | static constexpr std::array<unsigned char, 16> keyledsdModuleUUID = {{
      |                                                ^~~~~~~~~~~~~~~~~~
make[2]: *** [keyledsd/CMakeFiles/core.dir/build.make:118: keyledsd/CMakeFiles/core.dir/src/service/EffectManager.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:245: keyledsd/CMakeFiles/core.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
usr_40476@localhost:~/Downloads/keuboard ****/keyleds-master/build> 

@40476 It’s missing the array include;

diff -Naur a/keyledsd/plugins/src/lua/LuaEffect.cxx b/keyledsd/plugins/src/lua/LuaEffect.cxx
--- a/keyledsd/plugins/src/lua/LuaEffect.cxx	2021-04-08 15:40:49.000000000 -0500
+++ b/keyledsd/plugins/src/lua/LuaEffect.cxx	2024-01-05 11:25:57.348158783 -0600
@@ -23,6 +23,7 @@
 #include <cstring>
 #include <lua.hpp>
 #include <sstream>
+#include <array>
 
 using keyleds::plugin::lua::LuaEffect;
 using namespace keyleds::lua;
diff -Naur a/keyledsd/src/service/EffectManager.cxx b/keyledsd/src/service/EffectManager.cxx
--- a/keyledsd/src/service/EffectManager.cxx	2021-04-08 15:40:49.000000000 -0500
+++ b/keyledsd/src/service/EffectManager.cxx	2024-01-05 11:21:14.463864395 -0600
@@ -21,6 +21,7 @@
 #include "keyledsd/tools/DynamicLibrary.h"
 #include <algorithm>
 #include <unistd.h>
+#include <array>
 
 LOGGING("effect-manager");
 
diff -Naur a/keyledsd/src/tools/Paths.cxx b/keyledsd/src/tools/Paths.cxx
--- a/keyledsd/src/tools/Paths.cxx	2021-04-08 15:40:49.000000000 -0500
+++ b/keyledsd/src/tools/Paths.cxx	2024-01-05 11:23:06.647571920 -0600
@@ -24,6 +24,7 @@
 #include <regex>
 #include <sstream>
 #include <stdexcept>
+#include <array>
 
 using keyleds::tools::paths::XDG;

I’m confused, what do you want me to do?

@40476 you need to add that #include <array> to each of the three files listed.

these?

from /home/usr_40476/Downloads/keuboard ****/keyleds-master/keyledsd/include/keyledsd/colors.h:22,
from /home/usr_40476/Downloads/keuboard ****/keyleds-master/keyledsd/include/keyledsd/RenderTarget.h:21,
from /home/usr_40476/Downloads/keuboard ****/keyleds-master/keyledsd/include/keyledsd/KeyDatabase.h:20:

@40476 from the diff output it’s;

keyledsd/plugins/src/lua/LuaEffect.cxx
keyledsd/src/service/EffectManager.cxx
keyledsd/src/tools/Paths.cxx

what line is it on?

also i am deeply sorry but i noticed an app specifically made for my keyboard and was wonder if i should ditch this and try that, what should i do?

@40476 it’s at the very beginning, look for the word above it…

Do you have a link to this other application?

@40476 more old code… you need some of the files I listed in the build project to build…

what build project? I’m afraid i have hit my comprehension limits and need some help

@40476 the project I linked to above https://build.opensuse.org/project/show/home:Mir_ppc:home else build all the libs locally.