Giter Site home page Giter Site logo

Comments (16)

waruqi avatar waruqi commented on May 27, 2024

/usr/local/lib/lua/5.3/ltui.so: undefined symbol: COLORS

The definition of the COLORS macro was not found in your curses.h

I tried to modify the ltui source code, and I have done compatibility with this problem. You can try to install ltui again through luarocks.

from ltui.

mvoltz avatar mvoltz commented on May 27, 2024

from ltui.

waruqi avatar waruqi commented on May 27, 2024
    /usr/local/lib/lua/5.3/ltui.so: undefined symbol: COLOR_PAIRS

I have fixed it. You can reinstall ltui and try it again.

from ltui.

mvoltz avatar mvoltz commented on May 27, 2024

If there is anything I can do on my end to help troubleshoot, please let me know. If I can compile ncurses with certain flags set, or compile lcurses, etc.. I'm happy to help.

New error: undefined symbol: winnstr

Lua 5.3.5 Copyright (C) 1994-2018 Lua.org, PUC-Rio

local foo = require ("ltui")
error loading module 'ltui.lcurses' from file '/usr/local/lib/lua/5.3/ltui.so':
/usr/local/lib/lua/5.3/ltui.so: undefined symbol: winnstr
stack traceback:
[C]: in ?
[C]: in function 'require'
/usr/local/share/lua/5.3/ltui/curses.lua:31: in main chunk
[C]: in function 'require'
/usr/local/share/lua/5.3/ltui/application.lua:30: in main chunk
[C]: in function 'require'
/usr/local/share/lua/5.3/ltui.lua:31: in main chunk
[C]: in function 'require'
stdin:1: in main chunk
[C]: in ?

from ltui.

waruqi avatar waruqi commented on May 27, 2024

You can attempt to use xmake to build ltui and run tests.

$ cd ltui
$ xmake
$ xmake run test dialog

from ltui.

mvoltz avatar mvoltz commented on May 27, 2024

I git cloned your code again and followed the instructions. Here is the output:

Script started on Sun 17 Mar 2019 03:13:34 PM UTC
markvoltz@local: /ltui$ xmake
checking for the architecture ... x86_64
note: try installing these packages (pass -y to skip confirm)?
in xmake-repo:
-> ncurses 6.1
please input: y (y/n)
y
=> installing ncurses-6.1 .. ok
[ 0%]: compiling.release src/core/lcurses/lcurses.c
[100%]: linking.release libltui.so
markvoltz@local: /ltui$ xmake run test dialog
error: execv(/usr/local/bin/lua tests/dialog.lua) failed(-1)!
markvoltz@local: /ltui$ exit

-- I also ran the script using 'lua tests/dialog.lua' --

Script done on Sun 17 Mar 2019 03:14:01 PM UTC
markvoltz@local: /ltui$ lua tests/dialog.lua
Segmentation fault

I will also try this from another machine that is not a Chromebook. Maybe the results will be different.

from ltui.

waruqi avatar waruqi commented on May 27, 2024

you can use luajit to run tests.

xmake f --luajit=y -c
xmake
luajit tests/dialog.lua

from ltui.

mvoltz avatar mvoltz commented on May 27, 2024

from ltui.

waruqi avatar waruqi commented on May 27, 2024

? Can you add -v -D arguments to xmake and give me the full error log?

xmake f --luajit=y -c -v -D
xmake -v -D
luajit tests/dialog.lua

from ltui.

mvoltz avatar mvoltz commented on May 27, 2024

from ltui.

waruqi avatar waruqi commented on May 27, 2024

? I didn't see anything.

from ltui.

mvoltz avatar mvoltz commented on May 27, 2024

from ltui.

waruqi avatar waruqi commented on May 27, 2024

I still don't see the complete log error message. I don't know what problem you are currently experiencing. Is there strange text in running dialog.lua?

from ltui.

mvoltz avatar mvoltz commented on May 27, 2024

Replying via email is not working out. I have pasted directly into github. Sorry for the time wasted.

markvoltz@local:~/ltui$ xmake f --luajit=y -c -v -D
checking for the architecture ... x86_64
checking for the unzip ... /usr/bin/unzip
checking for the git ... /usr/bin/git
checking for the gzip ... /bin/gzip
checking for the tar ... /bin/tar
checking for the ping ... /bin/ping
pinging for the host(github.com) ... 37 ms
pinging for the host(gitlab.com) ... 59 ms
pinging for the host(gitee.com) ... 311 ms
finding luajit from xmake ..
checking for the xmake::luajit ... 2.0.5

{
links =
{
luajit
}
, linkdirs =
{
/home/markvoltz/.config/.xmake/prefix/linux/x86_64/release/lib
}
, version = 2.0.5
, includedirs =
{
/home/markvoltz/.config/.xmake/prefix/linux/x86_64/release/include/luajit
}
}
finding ncurses from xmake ..
checking for the xmake::ncurses ... 6.1

{
links =
{
ncurses
, form
, panel
, menu
}
, linkdirs =
{
/home/markvoltz/ltui/.xmake/prefix/linux/x86_64/release_543d989b/lib
}
, version = 6.1
, includedirs =
{
/home/markvoltz/ltui/.xmake/prefix/linux/x86_64/release_543d989b/include/ncurses
, /home/markvoltz/ltui/.xmake/prefix/linux/x86_64/release_543d989b/include
}
}
configure
{
luajit = true
ccache = true
clean = true
plat = linux
kind = static
buildir = build
mode = release
arch = x86_64
host = linux
}


markvoltz@local:~/ltui$ xmake -v -D
configure
{
luajit = true
ccache = true
mode = release
plat = linux
kind = static
buildir = build
arch = x86_64
clean = true
host = linux
}
checking for the gcc ... /usr/bin/gcc
checking for the c compiler (cc) ... gcc
checking for the ccache ... no
checking for the /usr/bin/gcc ... ok
checking for the flags (-Wno-error=deprecated-declarations) ... ok

gcc -Wno-error=deprecated-declarations -m64 -I/usr/local/include -I/usr/include
checking for the flags (-fno-strict-aliasing) ... ok
gcc -fno-strict-aliasing -m64 -I/usr/local/include -I/usr/include
checking for the flags (-Wno-error=nullability-completeness) ... no
gcc -Wno-error=nullability-completeness -m64 -I/usr/local/include -I/usr/include
checkinfo: /home/markvoltz/.local/share/xmake/core/base/os.lua:705: cc1: error: -Werror=nullability-completeness: no option -Wnullability-completeness

stack traceback:
[C]: in function 'error'
[/home/markvoltz/.local/share/xmake/core/base/os.lua:705]: in function 'raise'
[...markvoltz/.local/share/xmake/core/sandbox/modules/os.lua:311]: in function 'runv'
[...local/share/xmake/modules/detect/tools/gcc/has_flags.lua:48]:
checking for the flags (-fomit-frame-pointer) ... ok

gcc -fomit-frame-pointer -m64 -I/usr/local/include -I/usr/include
checking for the flags (-Wno-expansion-to-defined) ... ok
gcc -Wno-expansion-to-defined
checking for the g++ ... /usr/bin/g++
checking for the shared library linker (sh) ... g++


image

from ltui.

waruqi avatar waruqi commented on May 27, 2024

There are some incompatibilities in drawing boundary characters on your system, and you may need to debug the following lua code.

ltui/src/ltui/border.lua

Lines 66 to 74 in e84c9b2

-- the border characters
-- @note acs character will use 2 width on borders (pdcurses), so we use acsii characters instead of them.
local iswin = os.host() == "windows"
local hline = iswin and '-' or "hline"
local vline = iswin and '|' or "vline"
local ulcorner = iswin and ' ' or "ulcorner"
local llcorner = iswin and ' ' or "llcorner"
local urcorner = iswin and ' ' or "urcorner"
local lrcorner = iswin and ' ' or "lrcorner"

from ltui.

mvoltz avatar mvoltz commented on May 27, 2024

from ltui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.