Comments (8)
@Aetf 总算正常运行了! 谢谢了!
汉字正常显示 ,也可以缩放。
from kmscon.
Please include the full console starting from ./configure
. And please use the ```
tag to properly format the output (I've edited your initial message).
from kmscon.
Move path of libdrm.so.2 behind ./.libs/libuterm.a ,ld OK !
gcc -Wall -pipe -fno-common -ffast-math -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -ffunction-sections -fdata-sections -fstack-protector -g -O2 -g -O2 -std=gnu99 -Wl,--as-needed -Wl,--gc-sections -Wl,-z -Wl,relro -Wl,-z -Wl,now -rdynamic -o kmscon src/kmscon-conf.o src/kmscon-pty.o src/kmscon-font.o src/kmscon-font_8x16.o src/kmscon-text.o src/kmscon-text_bblit.o src/kmscon-kmscon_module.o src/kmscon-kmscon_seat.o src/kmscon-kmscon_conf.o src/kmscon-kmscon_main.o src/kmscon-kmscon_dummy.o src/kmscon-kmscon_terminal.o -L/usr/local/lib /usr/local/lib/libtsm.so ./.libs/libeloop.a ./.libs/libuterm.a /lib/x86_64-linux-gnu/libdrm.so.2 -ludev -l
systemd ./.libs/libshl.a -lxkbcommon -lGLESv2 -lpthread -ldl -pthread
from kmscon.
Ok. So this is a link ordering problem. I'll see what I can do with it.
from kmscon.
@Aetf My english is not good. so I just ctrl C and Ctrl V
./configure : warn not find libdrm. prompt export DRM_LIB
I do : export DRM_LIBS=/lib/x86_64-linux-gnu/libdrm.so.2 .
This is paragraphs of makefile made by configure.
CCDEPMODE = depmode=gcc3
CC_FOR_BUILD = gcc
CFLAGS = -g -O2 -std=gnu99
CFLAGS_FOR_BUILD = -g -O2
CPP = gcc -E
CPPFLAGS =
CPPFLAGS_FOR_BUILD =
CPP_FOR_BUILD = gcc -E
CSCOPE = cscope
CTAGS = ctags
CYGPATH_W = echo
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
DLLTOOL = false
DRM_CFLAGS = -I/usr/include/drm -I/usr/include/libdrm
DRM_LIBS = -l/lib/x86_64-linux-gnu/libdrm.so.2
DSYMUTIL =
.........
am__append_12 = $(DRM_CFLAGS)
am__append_13 = $(DRM_LIBS)
#am__append_14 = \
# src/uterm_drm3d_internal.h \
# src/uterm_drm3d_video.c \
# src/uterm_drm3d_render.c
........
kmscon_SOURCES = src/conf.h src/conf.c src/pty.h src/pty.c src/font.h \
src/font.c src/font_8x16.c src/text.h src/text.c \
src/text_bblit.c src/kmscon_module_interface.h \
src/kmscon_module.h src/kmscon_module.c src/kmscon_terminal.h \
src/kmscon_dummy.h src/kmscon_seat.h src/kmscon_seat.c \
src/kmscon_conf.h src/kmscon_conf.c src/kmscon_main.c \
$(am__append_25) $(am__append_26)
nodist_kmscon_SOURCES =
kmscon_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(XKBCOMMON_CFLAGS) \
$(TSM_CFLAGS)
kmscon_LDADD = \
$(XKBCOMMON_LIBS) \
$(TSM_LIBS) \
libeloop.la \
libuterm.la \
$(am__append_13) \
libshl.la \
-lpthread \
-ldl
#$(am__append_13) \
kmscon_LDFLAGS = \
$(AM_LDFLAGS) \
-rdynamic
In kmscon_LDADD ,configure not $(am__append_13) .
After I add $(am__append_13) ,ld option is .... /lib/x86_64-linux-gnu/libdrm.so.2 .. ./.libs/libuterm.a ,but ld error!
I try move /lib/x86_64-linux-gnu/libdrm.so.2 behind ./.libs/libuterm.a in ld line, ld OK !
So .you need change configure.
from kmscon.
libuterm
本来就依赖drm
,libtool
应该会自动处理依赖关系把 -ldrm
放到最后的。看样子大概率是你只安装了 libdrm
,没有装libdrm-dev
,所以 ./configure
找不到系统的 libdrm
,你手动指定了路径导致的问题。
装上 libdrm-dev
然后再编译应该就可以。如果还是不行,完全重新编译一次然后把完整输出以及config.log
,libuterm.la
的内容贴过来。
make distclean && ./autogen.sh && make V=99
from kmscon.
@Aetf you are right.
sudo apt list libdrm*
正在列表... 完成
libdrm-amdgpu1/impish,now 2.4.107-8ubuntu1 amd64 [已安装]
libdrm-common/impish,now 2.4.107-8ubuntu1 all [已安装,自动]
libdrm-dev/impish 2.4.107-8ubuntu1 amd64
libdrm-intel1/impish,now 2.4.107-8ubuntu1 amd64 [已安装]
libdrm-nouveau2/impish,now 2.4.107-8ubuntu1 amd64 [已安装]
libdrm-radeon1/impish,now 2.4.107-8ubuntu1 amd64 [已安装]
libdrm-tests/impish 2.4.107-8ubuntu1 amd64
libdrm2/impish,now 2.4.107-8ubuntu1 amd64 [已安装,自动]
libdrmaa1.0-java-doc/impish 8.1.9+dfsg-10 all
libdrmaa1.0-java/impish 8.1.9+dfsg-10 all
libdrmaa1.0-ruby/impish 8.1.9+dfsg-10 all
sudo apt install libdrm-dev
./configure
make
OK!
this is kmscon command line
link: gcc -Wall -pipe -fno-common -ffast-math -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -ffunction-sections -fdata-sections -fstack-protector -g -O2 -g -O2 -Wl,--as-needed -Wl,--gc-sections -Wl,-z -Wl,relro -Wl,-z -Wl,now -rdynamic -o kmscon src/kmscon-conf.o src/kmscon-pty.o src/kmscon-font.o src/kmscon-font_8x16.o src/kmscon-text.o src/kmscon-text_bblit.o src/kmscon-kmscon_module.o src/kmscon-kmscon_seat.o src/kmscon-kmscon_conf.o src/kmscon-kmscon_main.o src/kmscon-kmscon_dummy.o src/kmscon-kmscon_terminal.o -L/usr/local/lib /usr/local/lib/libtsm.so ./.libs/libeloop.a ./.libs/libuterm.a -ludev -lsystemd -ldrm ./.libs/libshl.a -lxkbcommon -lGLESv2 -lpthread -ldl -pthread
depbase=`echo src/genunifont.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
you are great!
在同时安装原版kmscon 和 本改进版时,遇到 lib/kmscon/*.so 版本冲突问题, 建议改进版 选择一个 新的目录 或者 动态库带上版本号。 但不知道为啥 运行这个改进版本, 汉字都显示 ?? 呢?
sudo kmsconY --vt tty4 --font-name "Sans"
[0000.000000] NOTICE: kmscon Revision kmscon-8 Jul 7 2020 14:00:10
[0000.010060] ERROR: module: incompatible module /usr/lib/kmscon/mod-pango.so (kmscon-8-40-g01dd0a2 != kmscon-8)
[0000.016107] ERROR: module: incompatible module /usr/lib/kmscon/mod-gltex.so (kmscon-8-40-g01dd0a2 != kmscon-8)
[0000.017403] ERROR: module: incompatible module /usr/lib/kmscon/mod-unifont.so (kmscon-8-40-g01dd0a2 != kmscon-8)
[0000.019005] ERROR: module: incompatible module /usr/lib/kmscon/mod-bbulk.so (kmscon-8-40-g01dd0a2 != kmscon-8)
[0000.030385] NOTICE: vt: using tty /dev/tty4
from kmscon.
在同时安装原版kmscon 和 本改进版时,遇到 lib/kmscon/*.so 版本冲突问题, 建议改进版 选择一个 新的目录 或者 动态库带上版本号
为什么需要同时安装两个版本?
运行这个改进版本, 汉字都显示 ?? 呢?
字体配置,或者是 locale 编码问题吧。也有可能是因为你强行装了两个版本有些库的版本不对,建议你完全卸载原版之后再试试。
from kmscon.
Related Issues (20)
- Read layout from `/etc/vconsole.conf` HOT 2
- Window manager crashes when pressing Ctrl+Shift+C HOT 1
- Way to specify bold font HOT 8
- Mouse support? HOT 14
- Mouse cursor from the graphical session not cleared when switch to VT HOT 2
- Allow quoting to preserve spaces in the login option in config file
- Can't use backspace & CTRL+backspace as intended HOT 7
- Bad rendering of font width and incomplete rendering of glyphs with pango font engine HOT 1
- wrong install path for .service files HOT 1
- Line height has extra padding
- meson.build fails to respect pkg-config xkbcommon --cflags HOT 1
- Errors on building because of missing HOT 3
- Build error
- Still multiple issues with multi-head
- Can antialiasing be disabled with pango? HOT 2
- The color of the default text is too bright, how to change it HOT 1
- Console screen is not updated, but kmscon is working HOT 2
- Bugs of `Esc[nE` and `Esc[nF` HOT 3
- Function not implemented (display_activate() in ../kmscon-9.0.0/src/uterm_drm3d_video.c:171) HOT 1
- kmscon enters zombie state 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 kmscon.