Comments (16)
/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.
from ltui.
/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.
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.
You can attempt to use xmake to build ltui and run tests.
$ cd ltui
$ xmake
$ xmake run test dialog
from ltui.
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.
you can use luajit to run tests.
xmake f --luajit=y -c
xmake
luajit tests/dialog.lua
from ltui.
from ltui.
? 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.
from ltui.
? I didn't see anything.
from ltui.
from ltui.
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.
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++
from ltui.
There are some incompatibilities in drawing boundary characters on your system, and you may need to debug the following lua code.
Lines 66 to 74 in e84c9b2
from ltui.
from ltui.
Related Issues (20)
- Problems Running frontpage window example HOT 1
- xmake run test 失败 HOT 4
- Error in Windows 10 HOT 1
- error loading module 'ltui.lcurses' from file '/usr/local/lib/lua/5.1/ltui.so' HOT 6
- Missing top white line in most widgets HOT 2
- Widget not drawing box correctly on size different from initial size HOT 2
- TextBox completion % not showing in proper location while in 80 cols mode HOT 1
- 输入框只能输入一次 HOT 4
- is there utf8 support? HOT 5
- Add Doc Comments to Allow Docs Generation HOT 2
- Mouse support HOT 14
- circular behaviour of views in a panel HOT 2
- making TUI with C HOT 2
- 运行测试程序报错 HOT 1
- ltui/scrollbar not found HOT 1
- error: src/core/lcurses/lcurses.c:71:10: fatal error: 'luaconf.h' file not found HOT 2
- No document? HOT 3
- Unexpected label behaviour
- Error building with xmake: undeclared function HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ltui.