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

Won't compile #466

Open
hatesigningup opened this issue Jul 3, 2024 · 2 comments
Open

Won't compile #466

hatesigningup opened this issue Jul 3, 2024 · 2 comments

Comments

@hatesigningup
Copy link

hatesigningup commented Jul 3, 2024

Hello, I can't seem to compile Logid.

Fedora 40, build tools installed as per README.md, source file logiops-0.3.4.tar.gz downloaded and decompressed in ~/Downloads/

Following the supplied instructions (....which sadly does not specify from which folder I need to run them) -
To build this project, run:

bash
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make

.....returns:

me@fedora:~/Downloads/logiops-0.3.4/build$ cmake -DCMAKE_BUILD_TYPE=Release ..
LogiOps Version Number: null
CMake Error at CMakeLists.txt:59 (add_subdirectory):
  The source directory

    /home/me/Downloads/logiops-0.3.4/src/ipcgull

  does not contain a CMakeLists.txt file.


/home/me/Downloads/logiops-0.3.4/src/logid/../ipcgull/src/include
-- systemd units will be installed at /usr/lib/systemd/system
-- dbus system policy will be installed at /usr/share/dbus-1/system.d
-- Configuring incomplete, errors occurred!

That failed, so move into the src folder and try from there -

me@fedora:~/Downloads/logiops-0.3.4/src/build$ cmake -DCMAKE_BUILD_TYPE=Release ..
CMake Warning:
  Ignoring extra path from command line:

   ".."


CMake Error: The source directory "/home/meDownloads/logiops-0.3.4/src" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

That also failed, so move into the logid folder and try from there-

me@fedora:~/Downloads/logiops-0.3.4/src/logid/build$ cmake -DCMAKE_BUILD_TYPE=Release ..
/home/me/Downloads/logiops-0.3.4/src/logid/../ipcgull/src/include
-- systemd units will be installed at /usr/lib/systemd/system
-- dbus system policy will be installed at /usr/share/dbus-1/system.d
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/me/Downloads/logiops-0.3.4/src/logid

Finally, some result, next command -

me@fedora:~/Downloads/logiops-0.3.4/src/logid/build$ make
make: *** No targets specified and no makefile found.  Stop.

The build folder was also completely empty.

What am I doing wrong? Thanks.

UPDATE -

As a test, I moved back to the ~/Downloads/logiops-0.3.4/src/logid/ folder and ran make from there -

me@fedora:~/Downloads/logiops-0.3.4/src/logid/build$ cd ..
me@fedora:~/Downloads/logiops-0.3.4/src/logid$ make
[  1%] Building CXX object CMakeFiles/logid.dir/logid.cpp.o
In file included from /home/me/Downloads/logiops-0.3.4/src/logid/./DeviceManager.h:23,
                 from /home/me/Downloads/logiops-0.3.4/src/logid/logid.cpp:19:
/home/me/Downloads/logiops-0.3.4/src/logid/./Device.h:25:10: fatal error: ipcgull/node.h: No such file or directory
   25 | #include <ipcgull/node.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/logid.dir/build.make:76: CMakeFiles/logid.dir/logid.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/logid.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

I searched the entire folder tree for node.h but found nothing, also the folder /home/me/Downloads/logiops-0.3.4/src/ipcgull is completely empty.

Thanks.

@kada49
Copy link

kada49 commented Jul 9, 2024

Hey, you probably downloaded the autogenerated tar archive from github, not the one the author uploaded with the release. The difference is that git submodules are not included in the autogenerated one (ipcgull is a git submodule). So, at least that issue should be fixed by downloading the other tar archive

@hatesigningup
Copy link
Author

Thanks for the reply and info - I'll try it again when I have the time. Regards.

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

No branches or pull requests

2 participants