Board: [WWIVnet] WWIV Development Subject: Re: Compiling source in Linux From: Recon #1 @126 To: Rushfan #1 @513 Date: Tue Oct 15, 2024 19:38 So I deleted the previous _build and attempted another compile. Here are the two places I notice fails. I tried running ./cmake --build . a couple of times to see if it would get past this but it consistently doesn't like something here. Looking at the first error, do I have a dependancy not installed that is needed for the newer kernal/version of Ubuntu / Linux Mint? Ok first error during ../cmake-config.sh -- Platform: Linux-- CMAKE_BUILD_TYPE not set; defaulting to Debug-- Performing Test HAVE_FLAG_ADDRESS_SANITIZER-- Performing Test HAVE_FLAG_ADDRESS_SANITIZER - Failed Next with cmake --build . from within /home/git/wwiv/_build 0 /home/git/wwiv/common/input.cpp:495:16: warning: enumeration value PHONE not handled in switch [-Wswitch][323/525] Building CXX object sdk/CMakeFiles/sdk.dir/ansi/makeansi.cpp.oFAILED: sdk/CMakeFiles/sdk.dir/ansi/makeansi.cpp.o /usr/bin/c++ -DFMT_HEADER_ONLY=1 -D_DEBUG -I/home/git/wwiv -isystem /home/git/wwiv/_build/vcpkg_installed/x64-linux/include -g -std=gnu++17 -Wall -Wextra -MD -MT sdk/CMakeFiles/sdk.dir/ansi/makeansi.cpp.o -MF sdk/CMakeFiles/sdk.dir/ansi/makeansi.cpp.o.d -o sdk/CMakeFiles/sdk.dir/ansi/makeansi.cpp.o -c /home/git/wwiv/sdk/ansi/makeansi.cpp/home/git/wwiv/sdk/ansi/makean si.cpp: In function std::string wwiv::sdk::ansi::makeansi(int, int):/home/git/wwiv/sdk/ansi/makeansi.cpp:36:16: error: uint8_t does not name a type 36 | static const uint8_t ansi_color_map[] = {'0', '4', '2', '6', '1', '5', '3', '7'}; | ^~~~~~~/home/git/wwiv/sdk/ansi/makeansi.cpp:22:1: note: uint8_t is defined in header ; did you forget to #include ? 21 | #include +++ |+#include 22 | /home/git/wwiv/sdk/ansi/makeansi.cpp:46:22: error: ansi_color_map was not declared in this scope 46 | addto(&out, 30 + ansi_color_map[attr & 0x07] - '0'); | ^~~~~~~~~~~~~~/home/git/wwiv/sdk/ansi/makeansi.cpp:51:22: error: ansi_color_map was not declared in this scope 51 | addto(&out, 30 + ansi_color_map[attr & 0x07] - '0'); | ^~~~~~~~~~~~~~/home/git/wwiv/sdk/ansi/makeansi.cpp:54:22: error: ansi_color_map was not declared in this scope 54 | addto(&out, 40 + ansi_color_map[(attr & 0x70) >> 4] - '0'); | ^~~~~~~~~~~~~~[340/525] Building CXX object sdk/CMakeFiles/sdk.dir/subxtr.cpp.oninja: build stopped: subcommand failed. On Monday,October 14, 2024 at 08:49 PM, Rushfan wrote: R> RE: Re: Compiling source in Linux R> BY: Recon #1 @126 R> R> R> I think so, yes. Can you refresh my memory on what I delete to rerun R> R> it, all in _build? I think so, but just want to be sure I'm not over R> R> killing it. I will note every error next time. At the moment it is R> R> stuck on this one. R> R> R> R> Yes, you could delete the _build directory and then re-run cmake R> commands (from the readme) R> R> mkdir _build R> cd _build R> ../cmake-config.sh R> cmake --build . R> R> .