Any idea how to get this Emacs package to build and run correctly in FreeBSD?

https://melpa.org/#/rime
https://github.com/DogLooksGood/emacs-rime
https://github.com/DogLooksGood/emacs-rime/blob/master/README_EN.org

It's not available in the FreeBSD repository so I had to install it through Emacs' Melpa repository (unlike pdf-tools, which also requires building but is available in FreeBSD)

So I have installed gcc and gmake in FreeBSD, and looked through some of the files for rime and noticed rime.el has function that was running the 'make lib' command, I changed that to 'gmake lib' hoping that it will then use gmake in place of make but that didn't work.

Code:
(if (zerop (shell-command “make lib”))
(if (zerop (shell-command “gmake lib”))

After which I tried going to that package's directory ~/.emacs.d/elpa/rime-20230212.1425 and ran 'gmake lib' manually and it gave the entry
gcc lib.c -o librime-emacs.so -fPIC -O2 -Wall -shared -lrime

That seems to have done something as now when i press '\' to trigger rime in emacs it's asking me to press (y)es to create the rime directory (which is normal behavior when using this package for the first time... similar to pdf-tools building the package the first time around). Albeit, it didn't seem to work as it should and showed an error: 'wrong-type-argument stringp nil'

Code:
Debugger entered–Lisp error: (wrong-type-argument stringp nil)

expand-file-name(nil)
rime–load-dynamic-module()
rime-activate(“rime”)
apply(rime-activate “rime” nil)
activate-input-method(“rime”)
toggle-input-method(nil 1)
funcall-interactively(toggle-input-method nil 1)
call-interactively(toggle-input-method nil nil)
command-execute(toggle-input-method)

Anyone know how to get something like this to work in FreeBSD? I'm not really a programmer so I'm not familiar with Makefiles.
I thought getting gcc and gmake and using gmake instead of FreeBSD's make would be all that's required to get it to work. :(
 
Back
Top