Donate to Remove ads

Got a credit card? use our Credit Card & Finance Calculators

Thanks to gpadsa,Steffers0,lansdown,Wasron,jfgw, for Donating to support the site

Installing from Git

Seek assistance with all types of tech. - computer, phone, TV, heating controls etc.
ReformedCharacter
Lemon Quarter
Posts: 3144
Joined: November 4th, 2016, 11:12 am
Has thanked: 3659 times
Been thanked: 1527 times

Installing from Git

#620740

Postby ReformedCharacter » October 15th, 2023, 1:29 pm

I need a little help with this:

I'm running an Arch based VM and want to install zziplib from here:

https://github.com/gdraheim/zziplib

I've run git.clone and have the necessary files in a suitable directory but I'm unsure what to do next, the file I want to use is zzipsetstub which currently appears as zzipsetstub.c in the 'tests' directory below zzliplib, along with makefile.in and makefile.am.

I ran 'cmake' from the zziplib directory but I don't appear to have an executable zzipsetstub.

What should I do next please? :)

RC

Urbandreamer
Lemon Quarter
Posts: 3204
Joined: December 7th, 2016, 9:09 pm
Has thanked: 360 times
Been thanked: 1060 times

Re: Installing from Git

#620749

Postby Urbandreamer » October 15th, 2023, 2:41 pm

ReformedCharacter wrote:I
What should I do next please? :)

RC


I'm afraid that I can't help you with that package. I don't use Arch and I wouldn't be bothering to compile a zip package without good reason.

Is there some reason that you don't want to use this, more recent, zip package?

https://aur.archlinux.org/packages?K=peazip&SB=p
https://peazip.github.io/
https://github.com/peazip/PeaZip/releases/

I have found it remarkably good over the years.

ReformedCharacter
Lemon Quarter
Posts: 3144
Joined: November 4th, 2016, 11:12 am
Has thanked: 3659 times
Been thanked: 1527 times

Re: Installing from Git

#620752

Postby ReformedCharacter » October 15th, 2023, 2:51 pm

Urbandreamer wrote:
Is there some reason that you don't want to use this, more recent, zip package?


Thanks. Yes there is a reason for that particular package.

RC

GrahamPlatt
Lemon Quarter
Posts: 2098
Joined: November 4th, 2016, 9:40 am
Has thanked: 1041 times
Been thanked: 849 times

Re: Installing from Git

#620757

Postby GrahamPlatt » October 15th, 2023, 3:48 pm

Nothing to do with finding the relevant files for your build?
Just reading the cbuild instructions it seems to me that you might need to add the sub-dir paths as ENVIRONMENT variables


“ build: Produce correct pc file with absolute libdir
The CMAKE_INSTALL_INCLUDEDIR and CMAKE_INSTALL_LIBDIR variables
can be absolute paths so simply appending them to \${prefix}
might not work.

Unfortunately, CMake does not have simple function for joining paths [1]
so I had to write my own suboptimal one.

It somewhat handles the following cases

- prefix absolute + libdir relative
- prefix absolute + libdir absolute but not under prefix

but for

- prefix absolute + libdir absolute & under prefix

we would want to strip the prefix and make the libdir relative
so we can make it relative to the pkg-config variables.

Basically, we want the equivalent of the following Python function:

import os.path
from pathlib import PurePath

if os.path.isabs(libdir) and os.path.commonpath([libdir, prefix]) == str(PurePath(prefix)):
# Convert path to be relative to prefix
skip = len(prefix) + 1
libdir = libdir[skip:]

return os.path.join('${prefix}', libdir)

This would be non-trivial to replicate in CMake scripts as far as I can tell.”

ReformedCharacter
Lemon Quarter
Posts: 3144
Joined: November 4th, 2016, 11:12 am
Has thanked: 3659 times
Been thanked: 1527 times

Re: Installing from Git

#620760

Postby ReformedCharacter » October 15th, 2023, 4:17 pm

Thanks for your replies. I now have what I wanted after looking at the instructions again :)

RC

Infrasonic
Lemon Quarter
Posts: 4502
Joined: November 4th, 2016, 2:25 pm
Has thanked: 649 times
Been thanked: 1275 times

Re: Installing from Git

#622300

Postby Infrasonic » October 22nd, 2023, 1:46 pm

Any particular reasons for running Arch other than the rolling release nature of it?

I've never tried it as I've read stories about it being 'difficult', although I note Valve switched from Debian to Arch for the latest SteamOS/Steam Deck.

https://arstechnica.com/gaming/2021/08/ ... ot-debian/

ReformedCharacter
Lemon Quarter
Posts: 3144
Joined: November 4th, 2016, 11:12 am
Has thanked: 3659 times
Been thanked: 1527 times

Re: Installing from Git

#622315

Postby ReformedCharacter » October 22nd, 2023, 2:10 pm

Infrasonic wrote:Any particular reasons for running Arch other than the rolling release nature of it?

Yes, I wanted to install an Arch based VM with some useful software:

https://blackarch.org/

RC


Return to “Technology - Computers, TV, Phones etc.”

Who is online

Users browsing this forum: No registered users and 9 guests