Open vindarel opened 4 years ago
Which OS do you have?
And which libraries were loaded by UFFI?
I have OSX and for me it shows:
POFTHEDAY> uffi::*loaded-libraries*
("/usr/lib/libncurses.dylib")
Which is a symlink to /usr/lib/libncurses.5.4.dylib
not Debian actually but Ubuntu, and *loaded-libraries*
returns NIL. I'll try to install more ncurses[-dev] dependencies.
I found that cl-ncurses has these paths built in:
(defvar *ncurses-search-paths*
#-win32'("/usr/local/lib64/" "/usr/local/lib/" "/lib64/" "/lib/" "/usr/lib64/" "/usr/lib/")
#+win32'("/users/jacob/src/pdc31dll/"))
But on Ubuntu Bionic libncurses lies here:
/lib/x86_64-linux-gnu/libncurses.so.5.9
Add this line before (initscr)
in the main function:
(uffi:load-foreign-library "/lib/x86_64-linux-gnu/libncurses.so.5.9"
:module "cl-ncurses")
BTW, thank you, @vindarel! I've added comments to the site!
Great*2! it works for me.
Hello!
As a blog comment, here's my complain: I was excited, thanks for the snippet, but failed to run the ncurses example :(
=>
I installed
ncurses-dev
, aliaslibncurses5-dev libncursesw5-dev
, to no avail. Not searching longer :]ps: if you want blog comments, I like blog comments linked to Github with Uterances: https://utteranc.es/
pps: