AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-246829

msam's questions

Martin Hope
msam
Asked: 2018-06-16 05:28:40 +0800 CST

cygwin 上的 bspwm - 重绘缓慢问题

  • 0

我已经设法在 cygwin 2.10.0(0.325/5/3) (Windows 7) 下编译 bspwm 平铺窗口管理器,与 Openbox、LXDE 或 fwvm 相比,性能相当糟糕。你能给我一些解决这个问题的想法吗?

有时我需要在 windows 下测试一些 linux bash 脚本和命令,我需要多个终端窗口。将它装箱在 bspwm 的一个窗口中会非常方便,并且允许我根据需要设置我的终端工作区。

症状:

  • 通过 Shift + PgUp 或 PgDown 在终端(urxvt)中滚动时重绘速度较慢
  • Terminator 快一点,但打字很慢。
  • 节点切换、在桌面之间跳转等命令的执行延迟约为 300 毫秒(只是一个猜测)。这是相当小的,但它让工作流程感觉不愉快。

有些应用程序即使在 Openbox 或 Fvwm 下也需要时间才能启动,但 gui 响应速度很快,即使在运行大型 vim 文件等时,urxvt 也能快速启动。

首先这是我的 XWin 启动日志:

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.19.6.0
OS: CYGWIN_NT-6.1 CZCHOWN5022406 2.10.0(0.325/5/3) 2018-02-02 15:16 x86_64
OS: Windows 7 Service Pack 1 [Windows NT 6.1 build 7601] (Win64)
Package: version 1.19.6-2 built 2018-03-12

XWin was started with the following command line:

/usr/bin/X :0 -auth /home/marek/.serverauth.9768 

ddxProcessArgument - Initializing default screens
winInitializeScreenDefaults - primary monitor w 1920 h 1080
winInitializeScreenDefaults - native DPI x 96 y 96
[ 19542.838] (II) xorg.conf is not supported
[ 19542.838] (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
[ 19542.838] LoadPreferences: /home/marek/.XWinrc not found
[ 19542.838] LoadPreferences: Loading /etc/X11/system.XWinrc
[ 19542.838] LoadPreferences: Done parsing the configuration file...
[ 19542.838] winDetectSupportedEngines - RemoteSession: no
[ 19543.087] winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL
[ 19543.087] winDetectSupportedEngines - Returning, supported engines 00000005
[ 19543.087] winSetEngine - Using Shadow DirectDraw NonLocking
[ 19543.087] winScreenInit - Using Windows display depth of 32 bits per pixel
[ 19543.134] winWindowProc - WM_SIZE - new client area w: 1904 h: 1002
[ 19543.150] winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
[ 19543.150] MIT-SHM extension disabled due to lack of kernel support
[ 19543.150] XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel
[ 19543.150] (EE) AIGLX: No native OpenGL in modes with a root window
[ 19543.430] (II) IGLX: enabled GLX_MESA_copy_sub_buffer
[ 19543.446] (II) IGLX: Loaded and initialized swrast
[ 19543.446] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 19544.054] winPointerWarpCursor - Discarding first warp: 952 501
[ 19544.054] (--) 5 mouse buttons found
[ 19544.054] (--) Setting autorepeat to delay=500, rate=31
[ 19544.054] (--) Windows keyboard layout: "00000409" (00000409) "US", type 4
[ 19544.054] (--) Found matching XKB configuration "English (USA)"
[ 19544.054] (--) Model = "pc105" Layout = "us" Variant = "none" Options = "none"
[ 19544.054] Rules = "base" Model = "pc105" Layout = "us" Variant = "none" Options = "none"
[ 19544.725] winProcEstablishConnection - winInitClipboard returned.
[ 19544.725] winClipboardThreadProc - DISPLAY=:0.0
[ 19544.725] OS maintains clipboard viewer chain: yes
[ 19544.741] winClipboardProc - XOpenDisplay () returned and successfully opened the display.
cygwin rxvt
  • 1 个回答
  • 257 Views
Martin Hope
msam
Asked: 2018-05-23 06:59:56 +0800 CST

在 cygwin 下编译 i3 - 找不到 libiconv 库

  • 1

我正在尝试在 Cygwin 2.884 (Windows 7) 下编译 i3 版本 4.14.1。我已经通过 Cygwin 安装程序安装了所需的 libiconv 库,但是在运行 ./configure 时出现此错误:

configure: error: in `/home/msamec/Downloads/i3-4.14.1/x86_64-unknown cygwin':
configure: error: cannot find the required iconv_open() function despite trying 
to link with -liconv
See `config.log' for more details

有什么线索可以帮助它找到图书馆吗?

我曾尝试手动编译库 libiconv-1.13.1 但遇到了一些我不知道如何解决的错误:

libtool: link: /bin/gcc -shared  .libs/localcharset.o .libs/relocatable.o      -o .libs/cygcharset-1.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libcharset.dll.a
.libs/relocatable.o: In function `DllMain':
/home/msamec/Downloads/libiconv-1.13.1/libcharset/lib/./relocatable.c:324: undefined reference to `cygwin_conv_to_posix_path'
/home/msamec/Downloads/libiconv-1.13.1/libcharset/lib/./relocatable.c:324:(.text+0x113): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `cygwin_conv_to_posix_path'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:59: libcharset.la] Error 1
make[2]: Leaving directory '/home/msamec/Downloads/libiconv-1.13.1/libcharset/lib'
make[1]: *** [Makefile:34: all] Error 2
make[1]: Leaving directory '/home/msamec/Downloads/libiconv-1.13.1/libcharset'
make: *** [Makefile:42: lib/localcharset.h] Error 2

我已经 grepped iconv_open() 函数名称并在 cygwin 文件夹中找到它

/usr/i686-pc-cygwin/sys-root/usr/include/iconv.h

并且也在 libiconv 文件夹中

/usr/include/iconv.h

但由于某种原因,配置脚本无法找到它。

这是我的config.log

这是我的 iconv.h https://gist.github.com/anonymous/0b117d1680954d591f989256b508bfc5

我检查了这个库文件 inconv.h 在 Ubuntu 上的位置。Unlinke 在 cygwin 中位于 /lib/ 中,而在 cygwin 中位于 /usr/include/ 中。尝试将库复制到该位置,但这也无济于事。我也能够在我的家庭 Windows 10 上重现该问题。

编辑:这是我正在使用的配置文件:在此处输入链接描述

compiling libraries
  • 1 个回答
  • 1123 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve