💾 Archived View for bbs.geminispace.org › s › Lagrange-Issues › 89 captured on 2024-12-17 at 15:58:57. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

[#89] Compiling with TUI on archlinux

It compile lagrange fine but the last step for the tui gives me a

/usr/bin/ld: cannot find -lncursesw: No such file or directory

#bug ✔︎ #cmake #linux

🐞 Issue #89 in s/Lagrange-Issues

👺 daruma

Sep 28 · 3 months ago

9 Comments ↓

🕹️ skyjake [mod...] · Sep 28 at 17:27:

Any difference if you set ENABLE_STATIC=YES in CMake?

Also, was this v1.18.0 or the dev branch? I made a few tweaks to the linking for the next release.

👺 daruma [OP] · Sep 28 at 18:17:

I did a git clone, as it seemed easier than getting the submodules downloaded one at a time. Using the STATIC gave me an error No rule to make target /libunistring.a needed by lagrange.

🕹️ skyjake [mod...] · Sep 28 at 18:34:

I may need to set up an Arch Linux VM and see what's going wrong here.

👺 daruma [OP] · Sep 28 at 18:35:

I tried on a different machine (still arch) and yeah it dies at 100% :

[100%] Linking C executable clagrange

/usr/bin/ld: cannot find -lncursesw: No such file or directory

collect2: error: ld returned 1 exit status

👺 daruma [OP] · Sep 28 at 18:36:

It seems like arch has a bit of a different way to do ncurses, with no dev packages.

🕹️ skyjake [mod...] · Sep 29 at 09:00:

I tried this in a VM. The tagged v1.18.0 release fails as reported, but the dev branch with my recent changes works as intended. So should be good in v1.18.1.

👺 daruma [OP] · Sep 29 at 09:20:

OK sweet! Sorry to ask, how to I git the dev branch?

🕹️ skyjake [mod...] · Sep 29 at 09:28:

These three commands should do it:

git checkout dev
git pull
git submodule update

👺 daruma [OP] · Sep 29 at 23:14:

this worked! thanks