POV-Ray : Newsgroups : povray.binaries.programming : yuqk tarballs for Unix/Linux - Ubuntu Server Time
23 Nov 2024 07:50:59 EST (-0500)
  yuqk tarballs for Unix/Linux - Ubuntu (Message 1 to 2 of 2)  
From: kurtz le pirate
Subject: yuqk tarballs for Unix/Linux - Ubuntu
Date: 30 Mar 2024 06:52:42
Message: <6607eefa$1@news.povray.org>
Hello,

My VMWare has crashed and I've lost my vm :(
That's all right. I'm making another one.

So as not to have the same problems as the other times, I made a script
that checks the presence of the libraries and their versions.

If it helps...
--------------------------------------------------------------------------------
#!/bin/bash
clear
echo -e "\n\n--- Needed packages for povray yuqk\n"
NeededPackages=("libboost-dev" "libboost-date-time-dev"
"libboost-thread-dev" "zlib1g-dev" "libpng12-dev" "libjpeg8-dev"
"libtiff5-dev" "libopenexr-dev")

for p in ${NeededPackages[@]}; do
  dpkg -l $p >/dev/null 2>&1
  # is here ?
  if [ $? -ne 0 ]
    then
    echo -e ">> \"$p\" not installed or issue retrieving informations.\n"
  # need upgrade ?
  else
    NeedUpgrade=$(apt-get -s upgrade -u | egrep -c "^Conf $p |^Inst $p ")
    if [ $NeedUpgrade -gt 0 ]
    then
      echo -e ">> \"$p\" need an upgrade.\n"
    else
      echo -e ">> \"$p\" is up to date.\n"
    fi
  fi
done
echo -e "end...\n"
--------------------------------------------------------------------------------

ps: I'm an Ubuntu beginner, so please bear with me.


-- 
Kurtz le pirate
Compagnie de la Banquise


Post a reply to this message

From: William F Pokorny
Subject: Re: yuqk tarballs for Unix/Linux - Ubuntu
Date: 30 Mar 2024 07:50:18
Message: <6607fc7a$1@news.povray.org>
On 3/30/24 06:52, kurtz le pirate wrote:
> So as not to have the same problems as the other times, I made a script
> that checks the presence of the libraries and their versions.

Yes, a script like this is a good idea. I don't have one myself. Truth 
is, that I've just been upgrading my Ubuntu for a long time. I've not 
installed the necessary packages to compile POV-Ray/yuqk from scratch 
for many years. :-)

---

I'm concerned with your list of packages:

NeededPackages=("libboost-dev" "libboost-date-time-dev"
"libboost-thread-dev" "zlib1g-dev" "libpng12-dev" "libjpeg8-dev"
"libtiff5-dev" "libopenexr-dev")

This list looks like the old one recommended in some of the POV-Ray 
shipped Unix files (v3.7?). It's part of the documentation on my update 
it someday for yuqk list.

First up, I see again libboost-dev over libboost-all-dev? At the moment 
I am myself unsure of the precise list of boost packages needed to 
compile. For yuqk and the v4.0 POV-Ray development branch I don't 
believe libboost-date-time-dev or libboost-thread-dev are any longer 
needed (For sure yuqk is using thread library built into C++).

The secondary issue is that you are specifying particular versions of 
some of the libraries. Unless problems crop up, we should use the 
versions tested to align with the larger Linux / Unix version (Ubuntu 
22.04) release. You do this by specifying generic names for: libpng-dev, 
libjpg-dev, libtiff-dev.

The third issue is you should probably add "libsdl2-dev" which is the 
newer version of the Simple Direct media Layer (SDL/SDmL)) library(a). 
It offers a second preview display option (and it will pull in X11 stuff 
if need be).

(a) - Yes, there is a version number there! That library is a partial 
exception to the don't specify the library version rule for reasons 
related to how SDmL development broke hard with version 1.2. It's a 
generic specification for versions 2.0+.

Bill P.

Aside: Ubuntu itself offers already set up, starter VM environments for 
various releases of Ubuntu. I used it years ago to create a bunch of 
statically linked POV-Ray version at particular git commits over time. 
Unfortunately, at the moment, I cannot remember enough about it to get 
anyone started with it.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.