Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 43 |
Nodes: | 6 (0 / 6) |
Uptime: | 28:08:20 |
Calls: | 286 |
Calls today: | 1 |
Files: | 899 |
Messages: | 76,593 |
So I am able to setup Linux to compile and use updated source code just fine, however I'm not very good with simlinks, and do not seem to get it
to work using the instructions in docs for various reason being either
I'm not running my WWIV in /opt/wwiv or I'm missing a step in where the binaries are to be placed when done. As a result when I compile I find myself having to dig for each and manually mv or cp them to my /dedicated/wwiv directory.
Does someone have a simple way they compile and locate binaries without using simlinks? I realize it may be a few of the .sh scripts that may require simple fixes, however I am not sure. I prefer to download the
.zip of the latest source, compile, and then move the binaries over. I guess I'm old school that way ...
Does someone have a simple way they compile and locate binaries without using simlinks? I realize it may be a few of the .sh scripts that may require simple fixes, however I am not sure. I prefer to download the
.zip of the latest source, compile, and then move the binaries over. I guess I'm old school that way ...
RE: Re: Compiling source in Linux
BY: Recon #1 @126
On Saturday,October 12, 2024 at 06:19 AM, Recon wrote:
So I am able to setup Linux to compile and use updated source
code just
fine, however I'm not very good with simlinks, and do not seem
to get it
to work using the instructions in docs for various reason being
either
I'm not running my WWIV in /opt/wwiv or I'm missing a step in
where the
binaries are to be placed when done. As a result when I
compile I find
myself having to dig for each and manually mv or cp them to my /dedicated/wwiv directory.
Does someone have a simple way they compile and locate binaries
without
using simlinks? I realize it may be a few of the .sh scripts
that may
require simple fixes, however I am not sure. I prefer to
download the
.zip of the latest source, compile, and then move the binaries
over. I
guess I'm old school that way ...
What directory do you build in?
What directory is your BBS root?
-x
♦1
♦2 A .-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
♦3 /*\ | /\liens' /\lcove! WWIV on Linux, Taguig, Metro
Manila, Philippines |
♦4/ v \`-=-=-=-=-=-=-=-=-=-=-=-[ WWIV Development ]-=-=--=-=-=-=-=-=-=-=-=-=-'
♦5
RE: Re: Compiling source in Linux
BY: Recon #1 @126
Does someone have a simple way they compile and locate binaries
without
using simlinks? I realize it may be a few of the .sh scripts
that may
require simple fixes, however I am not sure. I prefer to
download the
.zip of the latest source, compile, and then move the binaries
over. I
guess I'm old school that way ...
Just cp the files over instead of a symlink.
Let's assuming the wwiv is built in $HOME/git/wwiv/_build
export BUILT_BIN=$HOME/git/wwiv/_build
cp $BUILT_BIN/bbs/bbs .
cp $BUILD_BIN/wwivd/wwivd
...
depending on what you change you only copy of the binaries you change, I usually am only changing one thing at a time.
rushfan
/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'); | ^~~~~~~~~~~~~~ninja: build stopped: subcommand failed.
RE: Re: Compiling source in Linux
BY: Recon #1 @126
/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'); |
^~~~~~~~~~~~~~ninja: build stopped: subcommand failed.
That seems like something else is going on, that array is defined on
line 36 (and also referenced on line 51 and others). Was there any
other error that is messing up the compiler?
rushfan
I think so, yes. Can you refresh my memory on what I delete to rerun
it, all in _build? I think so, but just want to be sure I'm not over killing it. I will note every error next time. At the moment it is
stuck on this one.
RE: Re: Compiling source in Linux
BY: Recon #1 @126
I think so, yes. Can you refresh my memory on what I delete to rerun
it, all in _build? I think so, but just want to be sure I'm not over killing it. I will note every error next time. At the moment it is stuck on this one.
Yes, you could delete the _build directory and then re-run cmake
commands (from the readme)
mkdir _build
cd _build
../cmake-config.sh
cmake --build .
RE: Re: Compiling source in Linux
RE: Re: Compiling source in Linux
BY: Recon #1 @126
RE: Re: Compiling source in Linux
I just logged an issue on this.
Try adding this:
#incude <cstdint>
before this line:
#include <string>
Let me know if that fixes it.
I logged the following on github:
https://github.com/wwivbbs/wwiv/issues/1632
rushfan
Ok so the first time I added #include <cstdint> to input.cpp (I don't
recall why, I'm tired, but think I saw it below as one of the problem childs..) That produced the below fail. Then I added the same to
childs..) /home/git/wwiv/sdk/ansi/makeansi.cpp and it compiled without childs..) error. I suppose the question will be if I need to go back childs..) and remove tcstdint from input.cpp, I can't imagine it hurts childs..) being there?
RE: Re: Compiling source in Linux
BY: Recon #1 @126
Ok so the first time I added #include <cstdint> to input.cpp (I don't recall why, I'm tired, but think I saw it below as one of the problem childs..) That produced the below fail. Then I added the same to childs..) /home/git/wwiv/sdk/ansi/makeansi.cpp and it compiled
without
childs..) error. I suppose the question will be if I need to go back childs..) and remove tcstdint from input.cpp, I can't imagine
it hurts
childs..) being there?
It doesn't hurt. Sounds like the GCC build there is more pedantic, including it is good. I'll check in a change to put it in both input.cpp
and also makeansi.cpp
rushfan