Closed d-tork closed 1 year ago
Hey, thaks for the info. Actually it doesn't look that bad, that's the warning only and the binary program was successfuly created (asciipat).
Warning is printed about string buffer theoretically could be too short for storing curl command line. Practically it won't be too short (1024 chars).
Oh sorry! Forgot the most important part: I can't run it. There is no executable asciipat
, and run.sh
gives
dtork@elsie ~/repos/ascii-patrol (master) $ ./run.sh
Couldn't get a file descriptor referring to the console.
./run.sh: line 2: ./asciipat: No such file or directory
Couldn't get a file descriptor referring to the console.
Ok, try a long shot with:
sudo ./asciipat
Maybe your OS is a bit too defensive :)
Still not the case, asciipat
isn't a file. Here's me trying to rebuild to show that it completed without errors, and the attempts to run as sudo:
dtork@elsie ~/repos/ascii-patrol (master) $ cmake --build build
Consolidate compiler generated dependencies of target asciipat
[100%] Built target asciipat
dtork@elsie ~/repos/ascii-patrol (master) $ sudo ./asciipat
sudo: ./asciipat: command not found
dtork@elsie ~/repos/ascii-patrol (master) $ sudo ./run.sh
./run.sh: 2: ./asciipat: not found
dtork@elsie ~/repos/ascii-patrol (master) $
Maybe you could try building it from the bash script?
./build.sh
then
./asciipat
That worked. Ultimately the cmake
commands did not. Is it better to list that method of installation before CMake in the README? Does the other method have any advantages over a simple shell script?
Cmake thing was a contribution from someone, my bad I haven't tested it 😅 before merging.
Anyway I'm glad I could help.
At the step
cmake --build build
I encountered the following output, which looks like traceback for an error but I can't pinpoint it. There are references to the high score functions, but I have curl installed and it is up-to-date.Platform: Ubuntu Desktop 22.04.2 LTS (Jammy Jellyfish)