Archlinux project build error 2

Im trying to build V5 C++ code but it cant access the libtinfo.so.5 library for some reason. Ive tried editing the c_pp_properties file for linux and I still cant seem to get it to work. Ive verified I have libtinfo.so.5 installed.

`unix build for platform vexv5 on Linux x86_64
CXX src/robot-config.cpp
clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
make: *** [build/src/robot-config.o] Error 127
vex/mkrules.mk:11: recipe for target ‘build/src/robot-config.o’ failed

Build Failed: Make process closed with exit code: 2`

Make sure the compiler has the proper permissions to the file and the folders it is held in. Use
chmod 755 [file/folder name] to allow permissions.

I don’t believe we ever released a toolchain for linux. Which version of clang/binutils are you using ?

1 Like

clang 16.0.6-1 and binutils 2.41-3

Thanks, I recursively gave my project folder chmod 755 and it had no effect.

Im also having trouble building on Windows and im suspecting it may be a problem in Vscodium

Using normal VS code in a windows 11 VM I still cant build my code.

Are you still having this issue, i managed to get the build system working with vexcode

Yes I am sorry havent checked forums through christmas. I am also getting errors missing headerfiles on archlinux.

could you send the error you are currently getting

Log
unix build for platform vexv5 on Linux x86_64
CXX src/main.cpp
clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
make: *** [build/src/main.o] Error 127
vex/mkrules.mk:11: recipe for target 'build/src/main.o' failed

Build Failed: Make process closed with exit code: 2

from my notes on linux.

If clang fails with libtinfo.so.5 not found, then in terminal
sudo apt install libncurses5

1 Like

@nightwolf3140 For Arch, you’ll probably need to grab the ncurses5-compat-libs package from the AUR
https://aur.archlinux.org/packages/ncurses5-compat-libs

1 Like

Package seems a little out of date, last updated march 3rd 2023

Ok? It’s an older version of the ncurses library (newest is 6.4), why would it matter if it has been updated recently or not? Did it solve your problem?

No it didn’t sadly (sorry for late reply)

Why is that relevant, you cannot debug on V5 using gdb.

Im not sure why the error is happening for libtinfo.so.5
I checked the symlinks and it seems to point to the right place

[will@switch lib]$ ls -l libtinfo.so.5
lrwxrwxrwx 1 root root 24 Jan 30 16:40 libtinfo.so.5 -> /usr/lib/libncurses.so.5
[will@switch lib]$ ls -l /usr/lib/libncurses.so.5
lrwxrwxrwx 1 root root 17 Jan 30 16:40 /usr/lib/libncurses.so.5 -> libncurses.so.5.9
[will@switch lib]$ ls -l /usr/lib/libncurses.so.5.9
-rwxr-xr-x 1 root root 371760 Jan 30 16:40 /usr/lib/libncurses.so.5.9
[will@switch lib]$ 


This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.