Forum Flightgear France

Une communauté prend son envol

Vous n'êtes pas identifié(e).

Annonce

Futur nouvel inscrit, tu dois au préalable lire l'intégralité des 10 articles des règles, s'il te plaît. Tout nouveau compte qui ne respecte pas les règles sera supprimé par l'administration.

#1 1/09/2019 12:02:40

ctesc356
Membre
Inscription : 18/05/2010
Messages : 3 483

Dernier commit

Bonjour,
un petit script qui va chercher le no de commit le plus récent  de fg, sg, fgdata, fgmeta, paf-addons sur les pages SourceForge.

#!/bin/bash

URL_LIST="https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/ 
https://sourceforge.net/p/flightgear/simgear/ci/next/tree/ 
https://sourceforge.net/p/flightgear/fgdata/ci/next/tree/ 
https://sourceforge.net/p/flightgear/fgmeta/ci/next/tree/ 
https://sourceforge.net/p/pafteam/addons/ci/master/tree/"

for URL in $URL_LIST
do 
VAR=$(wget -q -O - $URL | grep "/ \[")
echo ${URL:37:-14} ${VAR:7:6}
done

a copier dans un fichier machin.sh (il n'est pas encore baptisé) et lancer par ./machin.sh

La même chose en Python3:

#!/usr/bin/python3

import bs4 as BeautifulSoup
import urllib

url_list = ["https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/",
"https://sourceforge.net/p/flightgear/simgear/ci/next/tree/",
"https://sourceforge.net/p/flightgear/fgdata/ci/next/tree/",
"https://sourceforge.net/p/flightgear/fgmeta/ci/next/tree/",
"https://sourceforge.net/p/pafteam/addons/ci/master/tree/"]

for la_url in url_list:
   with urllib.request.urlopen(la_url) as response:
      html = response.read()
   txt = str(html, 'utf-8') # bytearray en string
   n=(txt.find('/ ['))
   
   print(la_url[37:-14], txt[n+3:n+9])

a copier dans truc.py et lancer par ./truc.py
Il faut un python =>3 installé.
Je ne sais pas si c'est portable? Si quelqu'un peut tester sur win ou mac.

La présentation est sommaire, mais la finalité serait de lancer le truc journellement (cron ou ...) , de comparer avec le/les Fg installés et de signaler si
il y a du nouveau.

C'est vrai que pour les windowsiens et les macistes l'intérêt est moindre.

Ah... le résultat:

flightgear 6e465f
simgear 138e28
fgdata 24553f
fgmeta bad115
ons/c ed5a0b


Intel i5-9400F, 16Go Ram, Nvidia GTX1660Ti, Linux Mint

Hors ligne

#2 1/09/2019 14:54:22

dany93
Administrateur
Lieu : Région Parisienne
Inscription : 5/07/2009
Messages : 4 037

Re : Dernier commit

Merci ctesc356
Sympa, pratique et rapide.


FG 2020.4.0, Linux Mint 20.3, Intel Core i7-11700F @ 2.50GHz, RAM 32 GB DDR4, NVIDIA GeForce RTX 3060 (12 GB)
Boeing 787-8 (YASim, avec nickyivyca, aco)
Hangar avions Patten (PAF) Robin  DR400 JSBSim, Douglas DC3 JSBSim, CAP10B, Tecnam P92 JSBSim.

Hors ligne

#3 1/09/2019 18:10:11

Clm76
Membre
Lieu : LFOH - LFOY
Inscription : 22/10/2012
Messages : 1 632

Re : Dernier commit

Merci également ctesc356, c'est très pratique et rapide.

Toutefois, je m'interroge sur le n° de version de Flightgear qui est chez moi 5615c3 alors que chez toi, c'est 6e465f. Si je vais directement sur l'adresse sourceforge, c'est bien 5615c3.
Les autres sont comme les tiennes.


Fg 2020.4.0 - Linux Mint 21.3 Victoria - Cinnamon et Mate en dual boot - CM Asus P8H67 MLE - CPU i7 3770K - 12 Go Ram - Nvidia Geforce GTX 1660TI - Driver Nvidia 525
+ Hp notebook-15 - Linux Mint 21.3 Victoria -  CPU i3-7020u - Ram 4Go - Intel Graphics 620.

Hors ligne

#4 1/09/2019 18:21:25

ctesc356
Membre
Inscription : 18/05/2010
Messages : 3 483

Re : Dernier commit

Un certain "James Turner" à ajouté un truc... et même 2 entre temps
Ca démontre l'utilité du bidule wink


Intel i5-9400F, 16Go Ram, Nvidia GTX1660Ti, Linux Mint

Hors ligne

#5 1/09/2019 18:26:04

dany93
Administrateur
Lieu : Région Parisienne
Inscription : 5/07/2009
Messages : 4 037

Re : Dernier commit

Bonjour Clm76,

Sur SourceForge, clique sur "History" (en haut à droite), [6e465f] est l'avant-dernier commit du 2019-08-31.


FG 2020.4.0, Linux Mint 20.3, Intel Core i7-11700F @ 2.50GHz, RAM 32 GB DDR4, NVIDIA GeForce RTX 3060 (12 GB)
Boeing 787-8 (YASim, avec nickyivyca, aco)
Hangar avions Patten (PAF) Robin  DR400 JSBSim, Douglas DC3 JSBSim, CAP10B, Tecnam P92 JSBSim.

Hors ligne

#6 1/09/2019 19:24:37

Clm76
Membre
Lieu : LFOH - LFOY
Inscription : 22/10/2012
Messages : 1 632

Re : Dernier commit

Bonjour dany93 ... et ctesc356 (désolé, j'avais oublié de te dire bonjour sad )

Oui, c'est à mon avis très utile et ça évolue rapidement, on dirait !...

Ça fait un certain temps que je n'ai pas donné de nouvelles mais je travaille toujours sur le Citation X. Je viens de changer complètement le circuit électrique pour le mettre le plus possible en conformité avec l'original. Du coup, les 2 tableaux de fusibles vont être opérationnels. C'est en cours mais c'est assez long vu le nombre de fusibles et les "dépendances" qui en résultent.
La prochaine version va donc demander encore un peu (beaucoup de patience)...


Fg 2020.4.0 - Linux Mint 21.3 Victoria - Cinnamon et Mate en dual boot - CM Asus P8H67 MLE - CPU i7 3770K - 12 Go Ram - Nvidia Geforce GTX 1660TI - Driver Nvidia 525
+ Hp notebook-15 - Linux Mint 21.3 Victoria -  CPU i3-7020u - Ram 4Go - Intel Graphics 620.

Hors ligne

#7 2/09/2019 9:32:59

f-toro
Administrateur
Lieu : LFLA
Inscription : 16/12/2007
Messages : 3 015

Re : Dernier commit

Clm76 a écrit :

ça évolue rapidement, on dirait !...

Je crois que ça a toujours été le cas.
Pour avoir un FG à jour, mieux vaut recompiler tous les jours.


André. anciennement taureau89_9
Debian Testing Amd64. CM Sabertooth 990FX, FX8350, 32 Go Ram DDR3 1866 Mhz, GTX 1060 6Go, DD 2To Sata 3, THRUSTMASTER T.Flight StickX, FG 2020.4.0 Git.

Hors ligne

#8 2/09/2019 10:21:54

ctesc356
Membre
Inscription : 18/05/2010
Messages : 3 483

Re : Dernier commit

Bonjour,

f-toro a écrit :

Pour avoir un FG à jour, mieux vaut recompiler tous les jours.

Ou voir si il y a quelque chose à compiler... d'ou le petit script wink


Intel i5-9400F, 16Go Ram, Nvidia GTX1660Ti, Linux Mint

Hors ligne

#9 2/09/2019 10:57:42

Clm76
Membre
Lieu : LFOH - LFOY
Inscription : 22/10/2012
Messages : 1 632

Re : Dernier commit

Bonjour,

En ajoutant read à la fin du 1er script (après done), il est possible de lancer directement le script depuis le bureau en double cliquant sur l'icône, après l'avoir autorisé en exécution dans les propriétés. read empêche le terminal de se fermer après l’exécution.

Exemple : chez moi, je l'ai appelé commit et collé sur le bureau. Double clic puis lancer dans un terminal. Je fais un copié-collé dans un fichier des valeurs données par le terminal que je referme ensuite. J'ai ainsi rapidement les différences et la nécessité ou non d'un d&c.


Fg 2020.4.0 - Linux Mint 21.3 Victoria - Cinnamon et Mate en dual boot - CM Asus P8H67 MLE - CPU i7 3770K - 12 Go Ram - Nvidia Geforce GTX 1660TI - Driver Nvidia 525
+ Hp notebook-15 - Linux Mint 21.3 Victoria -  CPU i3-7020u - Ram 4Go - Intel Graphics 620.

Hors ligne

#10 2/09/2019 14:24:32

ctesc356
Membre
Inscription : 18/05/2010
Messages : 3 483

Re : Dernier commit

Bonjour,

Clm76 a écrit :

En ajoutant read à la fin du 1er script (après done), il est possible de lancer directement le script depuis le bureau en double cliquant sur l'icône, après l'avoir autorisé en exécution dans les propriétés. read empêche le terminal de se fermer après l’exécution..

Fonctionne super.

Clm76 a écrit :

Je fais un copié-collé dans un fichier des valeurs données par le terminal que je referme ensuite. J'ai ainsi rapidement les différences et la nécessité ou non d'un d&c.

J'ai mieux wink

#!/bin/bash

URL_LIST="https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/ 
https://sourceforge.net/p/flightgear/simgear/ci/next/tree/ 
https://sourceforge.net/p/flightgear/fgdata/ci/next/tree/ 
https://sourceforge.net/p/flightgear/fgmeta/ci/next/tree/ 
https://sourceforge.net/p/pafteam/addons/ci/master/tree/"

date >> get_commit   #envoie la date dans le fichier
for URL in $URL_LIST
do 
VAR=$(wget -q -O - $URL | grep "/ \[")
echo ${URL:37:-14} ${VAR:7:6} | tee -a "get_commit"
done
echo | tee -a "get_commit"   #ligne vide

Résultat dans le fichier "get_commit:

lundi 2 septembre 2019, 14:17:06 (UTC+0200)
flightgear 5615c3
simgear 138e28
fgdata 24553f
fgmeta bad115
ons/c ed5a0b

lundi 2 septembre 2019, 14:17:50 (UTC+0200)
flightgear 5615c3
simgear 138e28
fgdata 24553f
fgmeta bad115
ons/c ed5a0b

Dernière modification par ctesc356 (2/09/2019 14:27:12)


Intel i5-9400F, 16Go Ram, Nvidia GTX1660Ti, Linux Mint

Hors ligne

#11 2/09/2019 16:50:33

Clm76
Membre
Lieu : LFOH - LFOY
Inscription : 22/10/2012
Messages : 1 632

Re : Dernier commit

Super ! smile

Y a t'il un moyen d'ouvrir le fichier get_commit automatiquement à la fin du script ?


Fg 2020.4.0 - Linux Mint 21.3 Victoria - Cinnamon et Mate en dual boot - CM Asus P8H67 MLE - CPU i7 3770K - 12 Go Ram - Nvidia Geforce GTX 1660TI - Driver Nvidia 525
+ Hp notebook-15 - Linux Mint 21.3 Victoria -  CPU i3-7020u - Ram 4Go - Intel Graphics 620.

Hors ligne

#12 2/09/2019 17:17:08

ctesc356
Membre
Inscription : 18/05/2010
Messages : 3 483

Re : Dernier commit

Clm76 a écrit :

Y a t'il un moyen d'ouvrir le fichier get_commit automatiquement à la fin du script ?

Il faut lancer un éditeur.
"gedit get_commit" fonctionne ici, suivant ton arborescence il faut peut-être un chemin genre ~/..../get_commit

il y a aussi "cat <chemin>get_commit" pour simplement afficher dans la console

Dernière modification par ctesc356 (2/09/2019 17:23:21)


Intel i5-9400F, 16Go Ram, Nvidia GTX1660Ti, Linux Mint

Hors ligne

#13 2/09/2019 18:42:22

Clm76
Membre
Lieu : LFOH - LFOY
Inscription : 22/10/2012
Messages : 1 632

Re : Dernier commit

ctesc356 a écrit :

Il faut lancer un éditeur.

Chez moi, c'est xed. J'ai donc inclus la ligne xed get_commit à la fin du script et supprimé le read qui ne sert plus... et ça fonctionne très bien. smile Encore merci !

ctesc356 a écrit :

il y a aussi "cat <chemin>get_commit" pour simplement afficher dans la console

Oui, ça je l'avais trouvé, mais je préfère la 1ère solution.


Fg 2020.4.0 - Linux Mint 21.3 Victoria - Cinnamon et Mate en dual boot - CM Asus P8H67 MLE - CPU i7 3770K - 12 Go Ram - Nvidia Geforce GTX 1660TI - Driver Nvidia 525
+ Hp notebook-15 - Linux Mint 21.3 Victoria -  CPU i3-7020u - Ram 4Go - Intel Graphics 620.

Hors ligne

#14 3/09/2019 12:06:57

ctesc356
Membre
Inscription : 18/05/2010
Messages : 3 483

Re : Dernier commit

Bonjour,
un peu de "make-up"

#!/bin/bash

URL_LIST="https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/ 
https://sourceforge.net/p/flightgear/simgear/ci/next/tree/ 
https://sourceforge.net/p/flightgear/fgdata/ci/next/tree/ 
https://sourceforge.net/p/flightgear/fgmeta/ci/next/tree/ 
https://sourceforge.net/p/pafteam/addons/ci/master/tree/"
RES_LIST="Flightgear Simgear Fgdata Fgmeta Paf-addons"
RES_LIST=( ${RES_LIST// / }) # string to array

date >> get_commit
i=0
for URL in $URL_LIST
do 
VAR=$(wget -q -O - $URL | grep "/ \[")
printf "%-10s: %s\n" "${RES_LIST[i]}" "${VAR:7:6}" | tee -a "get_commit"
((i++))  
done
echo | tee -a "get_commit"

pour arriver à ça:

mardi 3 septembre 2019, 11:59:17 (UTC+0200)
Flightgear   : 5615c3
Simgear      : 138e28
Fgdata        : 24553f
Fgmeta       : bad115
Paf-addons : ed5a0b


Intel i5-9400F, 16Go Ram, Nvidia GTX1660Ti, Linux Mint

Hors ligne

#15 3/09/2019 16:29:17

dany93
Administrateur
Lieu : Région Parisienne
Inscription : 5/07/2009
Messages : 4 037

Re : Dernier commit

On va avoir envie de l'encadrer ! big_smile


FG 2020.4.0, Linux Mint 20.3, Intel Core i7-11700F @ 2.50GHz, RAM 32 GB DDR4, NVIDIA GeForce RTX 3060 (12 GB)
Boeing 787-8 (YASim, avec nickyivyca, aco)
Hangar avions Patten (PAF) Robin  DR400 JSBSim, Douglas DC3 JSBSim, CAP10B, Tecnam P92 JSBSim.

Hors ligne

#16 3/09/2019 16:41:15

ctesc356
Membre
Inscription : 18/05/2010
Messages : 3 483

Re : Dernier commit

Pour lancer le script bash par "crontab" il faut des chemins absolus.
Pour simplifier la maintenance, ajoutez une variable contenant le chemin vers "get_commit"  p.ex.
LOGF=chemin absolu vers "get_commit" (/home/<user>/.../get_commit)
puis remplacer les  "get_commit" par des $LOGF

Pour lancer le script tous les jours à 9.05h:
crontab -e  et ajouter à la fin la ligne

5 9 * * * <chemin absolu vers /script.sh>

pour en savoir plus sur crontab:
https://fr.wikipedia.org/wiki/Cron
https://doc.ubuntu-fr.org/cron
https://www.numerama.com/tech/200884-gu … -cron.html


Intel i5-9400F, 16Go Ram, Nvidia GTX1660Ti, Linux Mint

Hors ligne

#17 4/09/2019 9:20:15

ctesc356
Membre
Inscription : 18/05/2010
Messages : 3 483

Re : Dernier commit

Bonjour,
pour que le fichier "get_commit ne croisse pas indéfiniment, insérez ceci à la place de "date..."

SIZE=`ls -l $LOGF | cut -d " " -f5`
if [ $SIZE -gt 650 ]; then
  date > $LOGF
else
  date >> $LOGF
fi

C'est sommaire, on surveille la taille du fichier, quand elle dépasse 650B (5 itérations) on efface et on recommence.

Dernière modification par ctesc356 (4/09/2019 9:25:18)


Intel i5-9400F, 16Go Ram, Nvidia GTX1660Ti, Linux Mint

Hors ligne

#18 4/09/2019 10:14:17

Clm76
Membre
Lieu : LFOH - LFOY
Inscription : 22/10/2012
Messages : 1 632

Re : Dernier commit

Bonjour,

ctesc356 a écrit :

pour que le fichier "get_commit ne croisse pas indéfiniment, insérez ceci à la place de "date..."

La console me retourne une erreur :

/home/chris/Bureau/commit: ligne 13: $LOGF : redirection ambiguë

et je n'ai plus la date.

J'avais pensé à quelque chose de similaire : ne laisser que les valeurs de l'ancienne date et de la nouvelle date. En clair, n'avoir qu'une ancienne date... Mais je ne sais pas faire !... sad


Fg 2020.4.0 - Linux Mint 21.3 Victoria - Cinnamon et Mate en dual boot - CM Asus P8H67 MLE - CPU i7 3770K - 12 Go Ram - Nvidia Geforce GTX 1660TI - Driver Nvidia 525
+ Hp notebook-15 - Linux Mint 21.3 Victoria -  CPU i3-7020u - Ram 4Go - Intel Graphics 620.

Hors ligne

#19 4/09/2019 10:33:31

ctesc356
Membre
Inscription : 18/05/2010
Messages : 3 483

Re : Dernier commit

Bonjour,
contenu de la ligne13? et contenu de LOGF?

Ce qui fonctionne ici: (adapter le chemin dans LOGF)

#!/bin/bash

URL_LIST="https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/ 
https://sourceforge.net/p/flightgear/simgear/ci/next/tree/ 
https://sourceforge.net/p/flightgear/fgdata/ci/next/tree/ 
https://sourceforge.net/p/flightgear/fgmeta/ci/next/tree/ 
https://sourceforge.net/p/pafteam/addons/ci/master/tree/"
RES_LIST="Flightgear Simgear Fgdata Fgmeta Paf-addons"
RES_LIST=( ${RES_LIST// / }) # string to array
LOGF="/home/<user>/<chemin vers>/get_commit"

SIZE=`ls -l $LOGF | cut -d " " -f5` # get file size
if [ $SIZE -gt 650 ]; then
  date > $LOGF
else
  date >> $LOGF
fi

i=0
for URL in $URL_LIST
do 
VAR=$(wget -q -O - $URL | grep "/ \[")
printf "%-10s: %s\n" "${RES_LIST[i]}" "${VAR:7:6}" | tee -a $LOGF
((i++))  
done
echo | tee -a $LOGF

Dernière modification par ctesc356 (5/09/2019 11:34:22)


Intel i5-9400F, 16Go Ram, Nvidia GTX1660Ti, Linux Mint

Hors ligne

#20 4/09/2019 11:40:17

Clm76
Membre
Lieu : LFOH - LFOY
Inscription : 22/10/2012
Messages : 1 632

Re : Dernier commit

ctesc356 a écrit :

Ce qui fonctionne ici: (adapter le chemin dans LOGF)

Evidemment, il me manquait la ligne LOGF="...".
Ça fonctionne maintenant.


Fg 2020.4.0 - Linux Mint 21.3 Victoria - Cinnamon et Mate en dual boot - CM Asus P8H67 MLE - CPU i7 3770K - 12 Go Ram - Nvidia Geforce GTX 1660TI - Driver Nvidia 525
+ Hp notebook-15 - Linux Mint 21.3 Victoria -  CPU i3-7020u - Ram 4Go - Intel Graphics 620.

Hors ligne

#21 4/09/2019 12:05:40

ctesc356
Membre
Inscription : 18/05/2010
Messages : 3 483

Re : Dernier commit

Clm76 a écrit :

J'avais pensé à quelque chose de similaire : ne laisser que les valeurs de l'ancienne date et de la nouvelle date. En clair, n'avoir qu'une ancienne date... Mais je ne sais pas faire !...

Calculer avec les dates, possible mais ça semble compliqué.
Variante: on contrôle le nombre de lignes, si ça dépasse 20 on supprime les 7 premières.

#!/bin/bash

URL_LIST="https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/ 
https://sourceforge.net/p/flightgear/simgear/ci/next/tree/ 
https://sourceforge.net/p/flightgear/fgdata/ci/next/tree/ 
https://sourceforge.net/p/flightgear/fgmeta/ci/next/tree/ 
https://sourceforge.net/p/pafteam/addons/ci/master/tree/"
RES_LIST="Flightgear Simgear Fgdata Fgmeta Paf-addons"
RES_LIST=( ${RES_LIST// / }) # string to array
LOGF="/home/<user>/<chemin vers>/get_commit"          #chemin du fichier "get_commit"

date >> $LOGF
i=0
for URL in $URL_LIST
do 
VAR=$(wget -q -O - $URL | grep "/ \[")
printf "%-10s: %s\n" "${RES_LIST[i]}" "${VAR:7:6}" | tee -a $LOGF
((i++))  
done
echo | tee -a $LOGF

N_LIG=`sed -n '$=' $LOGF`              # récupère le nombre de lignes du fichier
if [ $N_LIG -gt 20 ]; then
  sed -i '1,7d' $LOGF                  # supprime 7 lignes en tête du fichier
fi

Dernière modification par ctesc356 (5/09/2019 11:39:29)


Intel i5-9400F, 16Go Ram, Nvidia GTX1660Ti, Linux Mint

Hors ligne

#22 4/09/2019 15:14:57

Clm76
Membre
Lieu : LFOH - LFOY
Inscription : 22/10/2012
Messages : 1 632

Re : Dernier commit

Variante: on contrôle le nombre de lignes, si ça dépasse 20 on supprime les 7 premières.

Exactement ce que je souhaitais. Merci smile
Je crois que je vais m'y mettre aux scripts shell... roll

Pour info : les versions de Flightgear, Simgear, Fgdata et Fgmeta viennent de changer:

mercredi 4 septembre 2019, 11:56:28 (UTC+0200)
Flightgear: 5615c3
Simgear   : 138e28
Fgdata    : 24553f
Fgmeta    : bad115
Paf-addons: ed5a0b

mercredi 4 septembre 2019, 15:08:54 (UTC+0200)
Flightgear: 335547
Simgear   : 20fb7a
Fgdata    : 4c70e2
Fgmeta    : a5e4c4
Paf-addons: ed5a0b

[EDIT] Il y a des erreurs avec les nouvelles versions de d&c et de Simgear téléchargées ce soir, mais qui ne semblent pas perturber le fonctionnement de FG.

./download_and_compile.sh SIMGEAR
VERSION=$Id
APT_GET_UPDATE=y
DOWNLOAD_PACKAGES=y
IGNORE_INTERCOMPONENT_DEPS=n
COMPILE=y
RECONFIGURE=y
DOWNLOAD=y
JOPTION= -j4
OOPTION=
BUILD_TYPE=RelWithDebInfo
SG_CMAKEARGS=
FG_CMAKEARGS=
DIRECTORY=/home/chris/fg2019_2
Stable build: no
***********************************
Running 'sudo apt-get update'...
Considering a package alternative: libcurl4-openssl-dev libcurl4-gnutls-dev
Package alternative matched for libcurl4-openssl-dev
Considering a package alternative: libopenscenegraph-3.4-dev libopenscenegraph-dev libopenscenegraph-[0-9]+\.[0-9]+-dev
Package alternative matched for libopenscenegraph-3.4-dev
Running 'sudo apt-get install build-essential git libcurl4-openssl-dev cmake zlib1g-dev freeglut3-dev libglew-dev libopenal-dev libboost-dev libopenscenegraph-3.4-dev'...

****************************************
**************** SIMGEAR ***************
****************************************
SIMGEAR: the repository already exists
-- CMAKE Build type: RelWithDebInfo
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- version is 2019 dot 2 dot 0
-- Library installation directory: lib
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Boost version: 1.65.1
-- SimGear mode: NORMAL
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so   
-- Found OpenAL: /usr/lib/x86_64-linux-gnu/libopenal.so  
-- Sound support: OpenAL
-- Found osgText: /usr/lib/x86_64-linux-gnu/libosgText.so  
-- Found osgSim: /usr/lib/x86_64-linux-gnu/libosgSim.so  
-- Found osgDB: /usr/lib/x86_64-linux-gnu/libosgDB.so  
-- Found osgParticle: /usr/lib/x86_64-linux-gnu/libosgParticle.so  
-- Found osgGA: /usr/lib/x86_64-linux-gnu/libosgGA.so  
-- Found osgViewer: /usr/lib/x86_64-linux-gnu/libosgViewer.so  
-- Found osgUtil: /usr/lib/x86_64-linux-gnu/libosgUtil.so  
-- Found osg: /usr/lib/x86_64-linux-gnu/libosg.so  
-- Found OpenThreads: /usr/lib/x86_64-linux-gnu/libOpenThreads.so  
-- Found OpenSceneGraph: /usr/lib/x86_64-linux-gnu/libosgText.so;/usr/lib/x86_64-linux-gnu/libosgSim.so;/usr/lib/x86_64-linux-gnu/libosgDB.so;/usr/lib/x86_64-linux-gnu/libosgParticle.so;/usr/lib/x86_64-linux-gnu/libosgGA.so;/usr/lib/x86_64-linux-gnu/libosgViewer.so;/usr/lib/x86_64-linux-gnu/libosgUtil.so;/usr/lib/x86_64-linux-gnu/libosg.so;/usr/lib/x86_64-linux-gnu/libOpenThreads.so (found suitable version "3.4.1", minimum required is "3.2.0") 
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.11", minimum required is "1.2.4") 
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "7.58.0") 
-- Using built-in expat code
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for windows.h
-- Looking for windows.h - not found
-- RTI: DISABLED
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for rint
-- Looking for rint - not found
-- Looking for mkdtemp
-- Looking for mkdtemp - found
-- Looking for bcopy
-- Looking for bcopy - found
-- Looking for mmap
-- Looking for mmap - found
-- Looking for timegm
-- Looking for timegm - found
-- Performing Test HAVE_CLOCK_GETTIME
-- Performing Test HAVE_CLOCK_GETTIME - Success
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Performing Test HAVE_DLFCN_H
-- Performing Test HAVE_DLFCN_H - Success
-- Looking for dlerror in dl
-- Looking for dlerror in dl - found
-- Performing Test HAVE_STD_ISNAN
-- Performing Test HAVE_STD_ISNAN - Success
-- Performing Test HAVE_WORKING_STD_REGEX
-- Performing Test HAVE_WORKING_STD_REGEX - Success
-- Performing Test GCC_ATOMIC_BUILTINS_FOUND
-- Performing Test GCC_ATOMIC_BUILTINS_FOUND - Success
-- OpenMP: DISABLED
-- Performing Test HAS_NOWARN_UNUSED_TYPEDEFS
-- Performing Test HAS_NOWARN_UNUSED_TYPEDEFS - Success
-- Performing Test HAVE_STD_INDEX_SEQUENCE
-- Performing Test HAVE_STD_INDEX_SEQUENCE - Failed
-- Performing Test HAVE_STD_REMOVE_CV_T
-- Performing Test HAVE_STD_REMOVE_CV_T - Failed
-- Performing Test HAVE_STD_REMOVE_CVREF_T
-- Performing Test HAVE_STD_REMOVE_CVREF_T - Failed
-- Performing Test HAVE_STD_ENABLE_IF_T
-- Performing Test HAVE_STD_ENABLE_IF_T - Failed
-- Performing Test HAVE_STD_BOOL_CONSTANT
-- Performing Test HAVE_STD_BOOL_CONSTANT - Failed
-- Tests: ENABLED
-- DNS resolver: ENABLED
-- Looking for poll
-- Looking for poll - found
-- Looking for getopt
-- Looking for getopt - found
-- Looking for inet_ntop
-- Looking for inet_ntop - found
-- Looking for AF_INET6
-- Looking for AF_INET6 - found
-- Looking for windows.h
-- Looking for windows.h - not found
-- Library building mode: STATIC LIBRARIES
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /home/chris/fg2019_2/build/simgear
MAKE simgear
Scanning dependencies of target SimGearCore
[  0%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/io/HTTPClient.cxx.o
[  1%] Building CXX object simgear/CMakeFiles/SimGearCore.dir/scene/tsync/terrasync.cxx.o
[  1%] Linking CXX static library libSimGearCore.a
[ 41%] Built target SimGearCore
[ 41%] Linking CXX executable test_magvar
[ 41%] Linking CXX executable bvhtest
[ 42%] Built target test_magvar
[ 42%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/scene/model/ModelRegistry.cxx.o
[ 42%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/scene/model/modellib.cxx.o
[ 42%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/scene/model/particles.cxx.o
[ 43%] Built target bvhtest
[ 44%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/scene/model/persparam.cxx.o
[ 44%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/scene/model/shadanim.cxx.o
[ 44%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/scene/sky/CloudShaderGeometry.cxx.o
[ 45%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/scene/sky/cloud.cxx.o
[ 45%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/scene/sky/cloudfield.cxx.o
/home/chris/fg2019_2/simgear/simgear/scene/model/ModelRegistry.cxx: In member function ‘void simgear::DefaultCachePolicy::addToCache(const string&, osg::Node*)’:
/home/chris/fg2019_2/simgear/simgear/scene/model/ModelRegistry.cxx:613:13: error: ‘virtual osgDB::Options::~Options()’ is protected within this context
     Options options;
             ^~~~~~~
In file included from /usr/include/osgDB/Registry:25:0,
                 from /usr/include/osgDB/FileUtils:17,
                 from /home/chris/fg2019_2/simgear/simgear/scene/model/ModelRegistry.hxx:24,
                 from /home/chris/fg2019_2/simgear/simgear/scene/model/ModelRegistry.cxx:24:
/usr/include/osgDB/Options:260:17: note: declared protected here
         virtual ~Options() {}
                 ^
/home/chris/fg2019_2/simgear/simgear/scene/model/ModelRegistry.cxx:614:90: error: no matching function for call to ‘osgDB::Registry::addEntryToObjectCache(const string&, osg::Node*&, int, osgDB::Options*)’
     Registry::instance()->addEntryToObjectCache(fileName, node, 0 /*timestamp*/, &options);
                                                                                          ^
In file included from /usr/include/osgDB/FileUtils:17:0,
                 from /home/chris/fg2019_2/simgear/simgear/scene/model/ModelRegistry.hxx:24,
                 from /home/chris/fg2019_2/simgear/simgear/scene/model/ModelRegistry.cxx:24:
/usr/include/osgDB/Registry:455:14: note: candidate: void osgDB::Registry::addEntryToObjectCache(const string&, osg::Object*, double)
         void addEntryToObjectCache(const std::string& filename, osg::Object* object, double timestamp = 0.0);
              ^~~~~~~~~~~~~~~~~~~~~
/usr/include/osgDB/Registry:455:14: note:   candidate expects 3 arguments, 4 provided
simgear/CMakeFiles/SimGearScene.dir/build.make:1430: recipe for target 'simgear/CMakeFiles/SimGearScene.dir/scene/model/ModelRegistry.cxx.o' failed
make[2]: *** [simgear/CMakeFiles/SimGearScene.dir/scene/model/ModelRegistry.cxx.o] Error 1
make[2]: *** Attente des tâches non terminées....
CMakeFiles/Makefile2:1146: recipe for target 'simgear/CMakeFiles/SimGearScene.dir/all' failed
make[1]: *** [simgear/CMakeFiles/SimGearScene.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
INSTALL simgear
[ 41%] Built target SimGearCore
[ 41%] Building CXX object simgear/CMakeFiles/SimGearScene.dir/scene/model/ModelRegistry.cxx.o
/home/chris/fg2019_2/simgear/simgear/scene/model/ModelRegistry.cxx: In member function ‘void simgear::DefaultCachePolicy::addToCache(const string&, osg::Node*)’:
/home/chris/fg2019_2/simgear/simgear/scene/model/ModelRegistry.cxx:613:13: error: ‘virtual osgDB::Options::~Options()’ is protected within this context
     Options options;
             ^~~~~~~
In file included from /usr/include/osgDB/Registry:25:0,
                 from /usr/include/osgDB/FileUtils:17,
                 from /home/chris/fg2019_2/simgear/simgear/scene/model/ModelRegistry.hxx:24,
                 from /home/chris/fg2019_2/simgear/simgear/scene/model/ModelRegistry.cxx:24:
/usr/include/osgDB/Options:260:17: note: declared protected here
         virtual ~Options() {}
                 ^
/home/chris/fg2019_2/simgear/simgear/scene/model/ModelRegistry.cxx:614:90: error: no matching function for call to ‘osgDB::Registry::addEntryToObjectCache(const string&, osg::Node*&, int, osgDB::Options*)’
     Registry::instance()->addEntryToObjectCache(fileName, node, 0 /*timestamp*/, &options);
                                                                                          ^
In file included from /usr/include/osgDB/FileUtils:17:0,
                 from /home/chris/fg2019_2/simgear/simgear/scene/model/ModelRegistry.hxx:24,
                 from /home/chris/fg2019_2/simgear/simgear/scene/model/ModelRegistry.cxx:24:
/usr/include/osgDB/Registry:455:14: note: candidate: void osgDB::Registry::addEntryToObjectCache(const string&, osg::Object*, double)
         void addEntryToObjectCache(const std::string& filename, osg::Object* object, double timestamp = 0.0);
              ^~~~~~~~~~~~~~~~~~~~~
/usr/include/osgDB/Registry:455:14: note:   candidate expects 3 arguments, 4 provided
simgear/CMakeFiles/SimGearScene.dir/build.make:1430: recipe for target 'simgear/CMakeFiles/SimGearScene.dir/scene/model/ModelRegistry.cxx.o' failed
make[2]: *** [simgear/CMakeFiles/SimGearScene.dir/scene/model/ModelRegistry.cxx.o] Error 1
CMakeFiles/Makefile2:1146: recipe for target 'simgear/CMakeFiles/SimGearScene.dir/all' failed
make[1]: *** [simgear/CMakeFiles/SimGearScene.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
***********************************
All optional package alternatives have found a matching package.

download_and_compile.sh has finished to work.

Dernière modification par Clm76 (4/09/2019 18:35:31)


Fg 2020.4.0 - Linux Mint 21.3 Victoria - Cinnamon et Mate en dual boot - CM Asus P8H67 MLE - CPU i7 3770K - 12 Go Ram - Nvidia Geforce GTX 1660TI - Driver Nvidia 525
+ Hp notebook-15 - Linux Mint 21.3 Victoria -  CPU i3-7020u - Ram 4Go - Intel Graphics 620.

Hors ligne

#23 4/09/2019 20:02:13

ctesc356
Membre
Inscription : 18/05/2010
Messages : 3 483

Re : Dernier commit

Clm76 a écrit :

Il y a des erreurs avec les nouvelles versions de d&c et de Simgear téléchargées ce soir, mais qui ne semblent pas perturber le fonctionnement de FG.

Ca perturbe pas parce que, si erreur de compilation, pas de changements dans les binaires.
Il faut compiler openscenegraph.


Intel i5-9400F, 16Go Ram, Nvidia GTX1660Ti, Linux Mint

Hors ligne

#24 5/09/2019 11:21:37

Clm76
Membre
Lieu : LFOH - LFOY
Inscription : 22/10/2012
Messages : 1 632

Re : Dernier commit

Bonjour,

ctesc356 a écrit :

Il faut compiler openscenegraph.

Effectivement, plus d'erreurs après compilation d'OSG


Fg 2020.4.0 - Linux Mint 21.3 Victoria - Cinnamon et Mate en dual boot - CM Asus P8H67 MLE - CPU i7 3770K - 12 Go Ram - Nvidia Geforce GTX 1660TI - Driver Nvidia 525
+ Hp notebook-15 - Linux Mint 21.3 Victoria -  CPU i3-7020u - Ram 4Go - Intel Graphics 620.

Hors ligne

Pied de page des forums