Open Cicorione opened 2 months ago
I think that ccenv
has no valid entry for this case in buildlib.go
. You need to set the environment variable
CC_" + goarch + "_" + goos
in your case probably CC_ arm64_linux
to a path to clang or cc.
Hi Patrick, I didn't really understand what you wrote, but it looks like that arm64
is already contemplated, I found this:
switch goarch {
case "amd64":
cmd = exec.Command(ccenv, "-shared", "-fPIC", "-o", filepath.Join(dylibbuild, "luaglue.so"), "luaglue.c", "-I/usr/include/lua5.3/")
case "arm64":
cmd = exec.Command(ccenv, "-shared", "-fPIC", "-o", filepath.Join(dylibbuild, "luaglue.so"), "luaglue.c", "-I/usr/include/lua5.3/")
}
🤔
Sorry. Set the environment variable CC_arm64_linux
to some kind of c-compiler (clang or cc). For example I have
export CC_arm64_linux=/usr/bin/aarch64-linux-gnu-gcc
in my setup. Then run rake buildlib.
Thank you, it worked! 🙏
Unfortunately I found another obstacle, here my steps:
$ export CC_arm64_linux=/usr/bin/aarch64-linux-gnu-gcc
$ export CGO_CFLAGS="-I /usr/include/texlua53"
$ publisher ) SDPRO=yes rake build
go install -ldflags "-X main.basedir=/home/cicorione/git/publisher -s" speedatapublisher/sphelper/sphelper
/home/cicorione/git/publisher/bin/sphelper build
build pro
$ SDPRO=yes rake buildlib
go install -ldflags "-X main.basedir=/home/cicorione/git/publisher -s" speedatapublisher/sphelper/sphelper
/home/cicorione/git/publisher/bin/sphelper buildlib
arm64
Building dynamic library for linux arm64
Building dynamic lua glue library for linux arm64
then
~/git/publisher/bin/./sp --layout=idx.xml --jobname=idx04 --runs=2
Run speedata publisher 4.19.20 (Pro)
Can't find sdluatex binary
What's wrong now? 😭
Hi Patrick I tried with your binary but it looks like it is for AMD64
architecture...
I had a similar issue with FreeBSD, I believe I need to create a symlink
to /usr/bin/sdluatex
, this is what I have installed:
locate lua53
/usr/include/texlua53
/usr/include/texlua53/lauxlib.h
/usr/include/texlua53/lua.h
/usr/include/texlua53/lua.hpp
/usr/include/texlua53/luaconf.h
/usr/include/texlua53/lualib.h
/usr/lib/aarch64-linux-gnu/libtexlua53.a
/usr/lib/aarch64-linux-gnu/libtexlua53.so
/usr/lib/aarch64-linux-gnu/libtexlua53.so.5
/usr/lib/aarch64-linux-gnu/libtexlua53.so.5.3.6
/usr/lib/aarch64-linux-gnu/pkgconfig/lua53-c++.pc
/usr/lib/aarch64-linux-gnu/pkgconfig/lua53.pc
/usr/lib/aarch64-linux-gnu/pkgconfig/texlua53.pc
/usr/share/doc/libtexlua53-5
/usr/share/doc/libtexlua53-5/changelog.Debian.gz
/usr/share/doc/libtexlua53-5/changelog.gz
/usr/share/doc/libtexlua53-5/copyright
/var/lib/dpkg/info/libtexlua53-5:arm64.list
/var/lib/dpkg/info/libtexlua53-5:arm64.md5sums
/var/lib/dpkg/info/libtexlua53-5:arm64.shlibs
/var/lib/dpkg/info/libtexlua53-5:arm64.triggers
Perhaps /usr/lib/aarch64-linux-gnu/libtexlua53.so
to /usr/bin/sdluatex
🤔
I solved it:
sudo ln -s /usr/bin/luatex /usr/bin/sdluatex
export CC_arm64_linux=/usr/bin/aarch64-linux-gnu-gcc
export CGO_CFLAGS="-I /usr/include/texlua53"
rake build
rake buildlib
Maybe you can change the instruction to look for sdluatex
and luatex
... 🤔
Thanks! 🙏
Reopen for documentation reminder
Hi @pgundlach,
I got stuck here when I try to compile on aarch64:
Here with
--trace
enabled:Thanks… 🙏