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

failed to build on linux #21

Open
jurassicjordan opened this issue Jul 8, 2024 · 1 comment
Open

failed to build on linux #21

jurassicjordan opened this issue Jul 8, 2024 · 1 comment

Comments

@jurassicjordan
Copy link

~/Tools/fujitools/build$ cmake --build .
[ 7%] Building CXX object lib/CMakeFiles/fuji_cam_wifi.dir/src/capabilities.cpp.o
[ 15%] Building CXX object lib/CMakeFiles/fuji_cam_wifi.dir/src/comm.cpp.o
[ 23%] Building CXX object lib/CMakeFiles/fuji_cam_wifi.dir/src/commands.cpp.o
[ 30%] Building CXX object lib/CMakeFiles/fuji_cam_wifi.dir/src/log.cpp.o
In file included from /home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/src/log.cpp:1:
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:11:7: error: ‘uint8_t’ does not name a type
11 | const uint8_t LOG_ERROR = 1;
| ^~~~~~~
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:8:1: note: ‘uint8_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’
7 | #include "platform.hpp"
+++ |+#include
8 |
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:12:7: error: ‘uint8_t’ does not name a type
12 | const uint8_t LOG_WARN = 2;
| ^~~~~~~
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:12:7: note: ‘uint8_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:13:7: error: ‘uint8_t’ does not name a type
13 | const uint8_t LOG_INFO = 3;
| ^~~~~~~
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:13:7: note: ‘uint8_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:14:7: error: ‘uint8_t’ does not name a type
14 | const uint8_t LOG_DEBUG = 4;
| ^~~~~~~
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:14:7: note: ‘uint8_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:15:7: error: ‘uint8_t’ does not name a type
15 | const uint8_t LOG_DEBUG2 = 5;
| ^~~~~~~
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:15:7: note: ‘uint8_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:17:7: error: ‘uint8_t’ does not name a type
17 | const uint8_t LOG_STDOUT = 1;
| ^~~~~~~
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:17:7: note: ‘uint8_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:18:7: error: ‘uint8_t’ does not name a type
18 | const uint8_t LOG_FILE = 2;
| ^~~~~~~
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:18:7: note: ‘uint8_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:21:5: error: ‘uint8_t’ does not name a type
21 | uint8_t level = LOG_DEBUG;
| ^~~~~~~
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:21:5: note: ‘uint8_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:22:5: error: ‘uint8_t’ does not name a type
22 | uint8_t output = LOG_STDOUT;
| ^~~~~~~
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:22:5: note: ‘uint8_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:26:6: error: variable or field ‘log’ declared void
26 | void log(uint8_t level, std::string msg);
| ^~~
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:26:10: error: ‘uint8_t’ was not declared in this scope
26 | void log(uint8_t level, std::string msg);
| ^~~~~~~
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:26:10: note: ‘uint8_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/include/log.hpp:26:37: error: expected primary-expression before ‘msg’
26 | evel, std::string msg);
| ^~~

/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/src/log.cpp: In function ‘void fcwt::log(uint8_t, std::string)’:
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/src/log.cpp:12:25: error: ‘struct fcwt::log_settings’ has no member named ‘level’
12 | evel <= log_conf.level)
| ^~~~~

/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/src/log.cpp:14:12: error: ‘LOG_ERROR’ was not declared in this scope
14 | case LOG_ERROR: {
| ^~~~~~~~~
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/src/log.cpp:18:12: error: ‘LOG_WARN’ was not declared in this scope
18 | case LOG_WARN: {
| ^~~~~~~~
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/src/log.cpp:22:12: error: ‘LOG_INFO’ was not declared in this scope
22 | case LOG_INFO: {
| ^~~~~~~~
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/src/log.cpp:26:12: error: ‘LOG_DEBUG’ was not declared in this scope
26 | case LOG_DEBUG: {
| ^~~~~~~~~
/home/jordancruz/Tools/fujitools/fuji-cam-wifi-tool/lib/src/log.cpp:30:12: error: ‘LOG_DEBUG2’ was not declared in this scope

@jurassicjordan
Copy link
Author

adding the include to log.cpp fixed the issue
#include "platform.hpp"

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

1 participant