Giter Site home page Giter Site logo

Comments (11)

pfr-dev avatar pfr-dev commented on May 16, 2024 2

Ahh THANK YOU! finally got it working :) You've even stated that in the script itself and I completely overlooked it..

it_finally_works_im_happy_now

from lsix.

hackerb9 avatar hackerb9 commented on May 16, 2024 1

Hooray!

from lsix.

hackerb9 avatar hackerb9 commented on May 16, 2024

Thank you for the bug report.

Most likely, NetBSD does not build Xterm with sixel support enabled. You will need to recompile it yourself. (I believe the magic incantation you need is './configure --with-sixel-graphics'). You could also ask the NetBSD pkgsrc folks if they'd be willing to add an alternate Xterm which has all the optional bells and whistles enabled.

You didn't mention if you used 'xterm -ti vt340' or 'xrdb -merge', but I'm going to presume, if you're using NetBSD, you know what you're doing.

from lsix.

pfr-dev avatar pfr-dev commented on May 16, 2024

Ahh you are right. The Xterm that ships with NetBSD is the base xorg version xterm-330 whereas the latest version xterm-344 is in pkgsrc. However I've looked at the pkgsrc version and it doesn't appear to have --enable-sixeloptions enabled in the MakeFile.

I will try ./configure --with-sixel-graphics and see how we go but.... "I'm going to presume, if you're using NetBSD, you know what you're doing." ...Hardly. I did however read the README.md and yes I launched xterm with the correct flags.

from lsix.

hackerb9 avatar hackerb9 commented on May 16, 2024

Were you able to make it work from pkgsrc?

from lsix.

pfr-dev avatar pfr-dev commented on May 16, 2024

Hey, sorry, I haven't had time to try all the possible solutions.

I've been lucky enough to have an internet friend and NetBSD dev/contributor have a look at it for me. This is what he said:

"I installed libsixel libX11 libXt luit ImageMagick bash
I've modified the Makefile and built xterm with --enable-sixel. It builds, installs and runs but, lsix still fails with the same error."

I will try with --enable-sixel-graphics

Here is the MakeFile he used:

$NetBSD: Makefile,v 1.121 2019/11/03 09:14:21 rillig Exp $

DISTNAME=	xterm-344
CATEGORIES=	x11
MASTER_SITES=	ftp://ftp.invisible-island.net/xterm/
EXTRACT_SUFX=	.tgz

MAINTAINER=	[email protected]
HOMEPAGE=	https://invisible-island.net/xterm/xterm.html
COMMENT=	Latest terminal emulator for the X Window System
LICENSE=	x11

GNU_CONFIGURE=		yes
USE_TOOLS+=		tbl pkg-config

WRKSRC=			${WRKDIR}/${PKGNAME_NOREV}

CONFIGURE_ARGS+=	--enable-88-color
CONFIGURE_ARGS+=	--enable-256-color
CONFIGURE_ARGS+=	--enable-paste64
CONFIGURE_ARGS+=	--enable-readline-mouse
CONFIGURE_ARGS+=	--enable-sixel

CONFIGURE_ARGS.standard=	# empty
CONFIGURE_ARGS.3d=		--with-Xaw3d
CONFIGURE_ARGS.xpm=		--with-Xaw3d
CONFIGURE_ARGS.neXtaw=		--with-neXtaw
CONFIGURE_ARGS+=		${${CONFIGURE_ARGS.${XAW_TYPE}}:L}

INSTALLATION_DIRS=	share/applications

.include "../../mk/bsd.prefs.mk"

.if ${X11_TYPE} == "modular"
CONFIGURE_ARGS+=	--disable-imake
CONFIGURE_ARGS+=	--enable-narrowproto
.endif

.if exists(/usr/include/wchar.h)
CONFIGURE_ARGS+=	--enable-wide-chars
.endif

.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
###
### For detection of XKB bell extension.
###
BUILDLINK_DEPMETHOD.libxkbfile?=	build
.include "../../x11/libxkbfile/buildlink3.mk"

post-install:
	${INSTALL_DATA} ${WRKSRC}/xterm.desktop \
		${DESTDIR}${PREFIX}/share/applications && \
	${INSTALL_DATA} ${WRKSRC}/uxterm.desktop \
		${DESTDIR}${PREFIX}/share/applications
	cd ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 && tbl xterm.1 \
		> xterm.1.tbl && mv xterm.1.tbl xterm.1

.include "options.mk"

.include "../../mk/curses.buildlink3.mk"
.include "../../mk/termcap.buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/xaw.buildlink3.mk"
.include "../../graphics/libsixel/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

I'm going to keep trying.. just time poor at the moment. Feel free to close the issue and if I still fail once I get to try build with --enable-sixel-graphics I'll reopen it.

Cheers

from lsix.

hackerb9 avatar hackerb9 commented on May 16, 2024

According to xterm's ./configure --help, the correct syntax is --enable-sixel-graphics .

If you get it working, do please let me know. And maybe ask the NetBSD pkgsrc folks about maybe building with sixel support by default.

from lsix.

pfr-dev avatar pfr-dev commented on May 16, 2024

So compiling xterm with --enable-sixel-graphics did the trick.

close_but_no_cigar

However, how can I avoid this montage/font error?

from lsix.

hackerb9 avatar hackerb9 commented on May 16, 2024

That's a new one on me! I notice you don't have titles under the images, so I'm guessing ImageMagick (montage) was compiled with a default font that doesn't exist. I think you can work around it by changing the font. You'll see that option at the top of lsix.

However, you should try 'montage' on the command line. If it gives the same error, then you should let the NetBSD folks know there's a bug in the ImageMagick package.

from lsix.

pfr-dev avatar pfr-dev commented on May 16, 2024

I tried changing the font to my system font inside the lsix script (and other installed fonts) but I get the same error. Same if I just run montage on its own.

I'll log an issue with the ImageMagick pkgsrc devs.

from lsix.

hackerb9 avatar hackerb9 commented on May 16, 2024

Thanks for reporting the bug to pkgsrc. It doesn't even work with the fonts returned by convert -list font?

from lsix.

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.