-
Notifications
You must be signed in to change notification settings - Fork 265
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
Error during compilation #628
Comments
I got a slightly different error message on Void Linux, that suggested adding cstdint modifying AppImageLauncher-2.2.0/lib/libappimage/src/libappimage/utils/hashlib.cpp in the build process to include cstdint fixed the compilation issues for me #include <cstdint> |
PRs welcome. |
I have a similar error when attempting to build this on Ubuntu 24.04 LTS:
|
I added the line
|
Same issue here, #147 appears to be related |
I'm getting the same errors trying to build it on Gentoo. |
@TheAssassin: I initially put that info in the commit message for 9768162. Also, just commented here to clarify. Sorry for the confusion! |
Pre-submit checks
Describe the bug
Get the following error while compiling, particularly running make:
In file included from /home/sachin/Downloads/AppImageLauncher/lib/libappimage/src/libappimage/utils/hashlib.cpp:9:
/home/sachin/Downloads/AppImageLauncher/lib/libappimage/src/libappimage/utils/hashlib.h:19:25: error: 'uint8_t' was not declared in this scope
19 | std::vector<uint8_t> md5(std::istream& data);
| ^~~~~~~
/home/sachin/Downloads/AppImageLauncher/lib/libappimage/src/libappimage/utils/hashlib.h:1:1: note: 'uint8_t' is defined in header ''; did you forget to '#include '?
+++ |+#include
1 | #pragma once
/home/sachin/Downloads/AppImageLauncher/lib/libappimage/src/libappimage/utils/hashlib.h:19:32: error: template argument 1 is invalid
19 | std::vector<uint8_t> md5(std::istream& data);
| ^
/home/sachin/Downloads/AppImageLauncher/lib/libappimage/src/libappimage/utils/hashlib.h:19:32: error: template argument 2 is invalid
/home/sachin/Downloads/AppImageLauncher/lib/libappimage/src/libappimage/utils/hashlib.h:26:25: error: 'uint8_t' was not declared in this scope
26 | std::vector<uint8_t> md5(const std::string& data);
| ^~~~~~~
/home/sachin/Downloads/AppImageLauncher/lib/libappimage/src/libappimage/utils/hashlib.h:26:25: note: 'uint8_t' is defined in header ''; did you forget to '#include '?
/home/sachin/Downloads/AppImageLauncher/lib/libappimage/src/libappimage/utils/hashlib.h:26:32: error: template argument 1 is invalid
26 | std::vector<uint8_t> md5(const std::string& data);
| ^
/home/sachin/Downloads/AppImageLauncher/lib/libappimage/src/libappimage/utils/hashlib.h:26:32: error: template argument 2 is invalid
/home/sachin/Downloads/AppImageLauncher/lib/libappimage/src/libappimage/utils/hashlib.h:33:43: error: 'uint8_t' was not declared in this scope
33 | std::string toHex(std::vector<uint8_t> digest);
| ^~~~~~~
/home/sachin/Downloads/AppImageLauncher/lib/libappimage/src/libappimage/utils/hashlib.h:33:43: note: 'uint8_t' is defined in header ''; did you forget to '#include '?
/home/sachin/Downloads/AppImageLauncher/lib/libappimage/src/libappimage/utils/hashlib.h:33:50: error: template argument 1 is invalid
33 | std::string toHex(std::vector<uint8_t> digest);
| ^
/home/sachin/Downloads/AppImageLauncher/lib/libappimage/src/libappimage/utils/hashlib.h:33:50: error: template argument 2 is invalid
/home/sachin/Downloads/AppImageLauncher/lib/libappimage/src/libappimage/utils/hashlib.cpp:19:34: error: ambiguating new declaration of 'std::vector appimage::utils::hashlib::md5(std::istream&)'
19 | std::vector<uint8_t> md5(std::istream& data) {
| ^~~
/home/sachin/Downloads/AppImageLauncher/lib/libappimage/src/libappimage/utils/hashlib.h:19:34: note: old declaration 'int appimage::utils::hashlib::md5(std::istream&)'
19 | std::vector<uint8_t> md5(std::istream& data);
| ^~~
/home/sachin/Downloads/AppImageLauncher/lib/libappimage/src/libappimage/utils/hashlib.cpp:42:34: error: ambiguating new declaration of 'std::vector appimage::utils::hashlib::md5(const std::string&)'
42 | std::vector<uint8_t> md5(const std::string& data) {
| ^~~
/home/sachin/Downloads/AppImageLauncher/lib/libappimage/src/libappimage/utils/hashlib.h:26:34: note: old declaration 'int appimage::utils::hashlib::md5(const std::string&)'
26 | std::vector<uint8_t> md5(const std::string& data);
| ^~~
/home/sachin/Downloads/AppImageLauncher/lib/libappimage/src/libappimage/utils/hashlib.cpp: In function 'std::vector appimage::utils::hashlib::md5(const std::string&)':
/home/sachin/Downloads/AppImageLauncher/lib/libappimage/src/libappimage/utils/hashlib.cpp:44:27: error: could not convert 'appimage::utils::hashlib::md5(ss.std::__cxx11::basic_stringstream::.std::basic_iostream::)' from 'int' to 'std::vector'
44 | return md5(ss);
| ~~~^~~~
| |
| int
make[2]: *** [lib/libappimage/src/libappimage/utils/CMakeFiles/appimage_utils.dir/build.make:104: lib/libappimage/src/libappimage/utils/CMakeFiles/appimage_utils.dir/hashlib.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2462: lib/libappimage/src/libappimage/utils/CMakeFiles/appimage_utils.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
Expected behavior
A smmooth compilation
Steps to reproduce the issue
Screenshots
No response
Distribution and desktop environment
Distribution: Void Linux
Kernel: 6.6.16_1
DE: Xfce 4.18
Installed AppImageLauncher version
Latest Release Build v2.2.0 Sep 29, 2020 commit: 0f91801
List of AppImages you tried
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: