Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build headless? #170

Open
p4tpr0 opened this issue Jul 29, 2024 · 7 comments
Open

build headless? #170

p4tpr0 opened this issue Jul 29, 2024 · 7 comments

Comments

@p4tpr0
Copy link

p4tpr0 commented Jul 29, 2024

Hello,
Is there a way to build translateLocally «headless» so it does not need any GUI dependencies?

thanks

@XapaJIaMnu
Copy link
Owner

Hi,
We depend only on QT, so if you compile a headless QT, it can technically be compiled headless, but most distros don't package it like that. We don't intend to add a completely headless build option.

Is there something preventing you from compiling the full mode and using only the console app?

@p4tpr0
Copy link
Author

p4tpr0 commented Jul 30, 2024

I would not say it prevents me from trying to compile, but on FreeBSD dependencies can become a bit overwhelming:

# pkg install qt6-svg
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 95 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	adwaita-icon-theme: 42.0
	at-spi2-core: 2.52.0
	avahi-app: 0.8_2
	brotli: 1.1.0,1
	cairo: 1.17.4_2,3
	colord: 1.4.7
	cups: 2.4.10_1
	dbus: 1.14.10_5,1
	dbus-glib: 0.112_1
	double-conversion: 3.3.0
	duktape-lib: 2.7.0
	fontconfig: 2.15.0_3,1
	freetype2: 2.13.2
	fribidi: 1.0.15
	gdbm: 1.23
	gdk-pixbuf2: 2.42.10_3
	glib: 2.80.4,2
	gmp: 6.3.0
	gnome_subr: 1.0
	gnutls: 3.8.5_3
	graphite2: 1.3.14
	gsettings-desktop-schemas: 42.0
	gtk-update-icon-cache: 3.24.31_1
	gtk3: 3.24.43
	harfbuzz: 9.0.0
	hicolor-icon-theme: 0.18
	hwdata: 0.384,1
	icu: 74.2_1,1
	jbigkit: 2.1_3
	jpeg-turbo: 3.0.3
	lcms2: 2.16_2
	lerc: 4.0.0
	libICE: 1.1.1,1
	libSM: 1.2.3_1,1
	libX11: 1.8.9,1
	libXau: 1.0.9_1
	libXcomposite: 0.4.6_1,1
	libXcursor: 1.2.2
	libXdamage: 1.1.6
	libXdmcp: 1.1.5
	libXext: 1.3.6,1
	libXfixes: 6.0.0_1
	libXft: 2.3.8
	libXi: 1.8_1,1
	libXinerama: 1.1.4_3,1
	libXrandr: 1.5.2_1
	libXrender: 0.9.10_2
	libXtst: 1.2.3_3
	libdaemon: 0.14_1
	libdatrie: 0.2.13_2
	libdeflate: 1.20
	libdrm: 2.4.122,1
	libepoll-shim: 0.0.20240608
	libepoxy: 1.5.9
	libevdev: 1.13.2
	libglvnd: 1.7.0
	libgudev: 237
	libgusb: 0.3.10_1
	libinput: 1.26.1
	libmtdev: 1.1.7
	libpaper: 1.1.28_1
	libpciaccess: 0.18
	librsvg2-rust: 2.58.2
	libtasn1: 4.19.0_1
	libthai: 0.1.29_1
	libudev-devd: 0.5.2
	libwacom: 1.5_1
	libxcb: 1.17.0
	libxkbcommon: 1.7.0_1
	libxml2: 2.11.8
	nettle: 3.10_1
	p11-kit: 0.25.3_2
	pango: 1.52.2_1
	pixman: 0.42.2
	png: 1.6.43
	polkit: 124_3
	py311-evdev: 1.7.0
	py311-packaging: 24.1
	py311-pyudev: 0.24.1
	py311-setuptools: 63.1.0_1
	py311-six: 1.16.0
	qt6-base: 6.7.2
	qt6-svg: 6.7.2
	shared-mime-info: 2.2_3
	tiff: 4.6.0
	vulkan-loader: 1.3.289
	wayland: 1.23.0
	xcb-util: 0.4.1,1
	xcb-util-cursor: 0.1.3
	xcb-util-image: 0.4.1
	xcb-util-keysyms: 0.4.1
	xcb-util-renderutil: 0.3.10
	xcb-util-wm: 0.4.2
	xkeyboard-config: 2.41_4
	xorgproto: 2024.1

Number of packages to be installed: 95

The process will require 421 MiB more space.

Edit: nevermind, it won’t compile on FreeBSD anyway.

@XapaJIaMnu
Copy link
Owner

Oh? What compilation issue do face on BSD? We have not tested on a BSD system so far

@p4tpr0
Copy link
Author

p4tpr0 commented Jul 31, 2024

There seems to be many issues but one of them is the absence of intel-mkl. The freshport page I’ve found is for an old package : https://www.freshports.org/math/mkl-dnn/ . It has been renamed onednn. I’ve installed onednn but it looks like it’s not enough.
The compilation fails when dealing with 3rd_party/*

@XapaJIaMnu
Copy link
Owner

You could use openblas instead, but performance would be worse. Onednn doesn't expose all Blas routines so we can't just rely on it.

@p4tpr0
Copy link
Author

p4tpr0 commented Jul 31, 2024

I’ll give it a try later in August, and I’ll open a proper issue about compiling translateLocally on FreeBSD

@ROBERT-MCDOWELL
Copy link

ROBERT-MCDOWELL commented Sep 24, 2024

it would be very nice if we can compile it without Qt dependencies, especially if we use it on a server that never uses Qt.
more, the version of qt differs from versions and package names and linux distribution which start to be a hassle.
for example on Fedora 40 the package is qt5-qtsvg. but no Qt5SvgConfig.cmake nor qt5svg-config.cmake are found on the hard drive....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants