Pages : 1
#1 Le 03/04/2019, à 17:11
- lemoineo

Compilation Freecad
Bonjour,
ayant récupéré le source à jour de FreeCad,
j'ai préparé le terrain comme indiqué dans la doc
- création d'un répertoire (freecad-build) dans mon home.
- copie du source dans un sous-répertoire (FreeCAD-releases-FreeCAD-0-18)
- cmake ./FreeCAD-releases-FreeCAD-0-18/
La compilation affiche tout un texte finissant par l'anomalie
CMake Error at CMakeLists.txt:608 (MESSAGE):
=============================================
Required components:
filesystem;program_options;regex;system;thread
Not found, install the components:
filesystem;program_options;regex;system;threadRenvoyant à un .log incompréhensible
Determining if the include file GL/gl.h exists failed with the following output:
Change Dir: /home/olivier/freecad-build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_2acfd/fast"
/usr/bin/make -f CMakeFiles/cmTC_2acfd.dir/build.make CMakeFiles/cmTC_2acfd.dir/build
make[1] : on entre dans le répertoire « /home/olivier/freecad-build/CMakeFiles/CMakeTmp »
Building C object CMakeFiles/cmTC_2acfd.dir/CheckIncludeFile.c.o
/usr/bin/cc -o CMakeFiles/cmTC_2acfd.dir/CheckIncludeFile.c.o -c /home/olivier/freecad-build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/olivier/freecad-build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: GL/gl.h: Aucun fichier ou dossier de ce type
#include <GL/gl.h>
^~~~~~~~~
compilation terminated.
make[1]: *** [CMakeFiles/cmTC_2acfd.dir/build.make:66: CMakeFiles/cmTC_2acfd.dir/CheckIncludeFile.c.o] Error 1
make[1] : on quitte le répertoire « /home/olivier/freecad-build/CMakeFiles/CMakeTmp »
make: *** [Makefile:121: cmTC_2acfd/fast] Error 2
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/olivier/freecad-build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_6e2b0/fast"
/usr/bin/make -f CMakeFiles/cmTC_6e2b0.dir/build.make CMakeFiles/cmTC_6e2b0.dir/build
make[1] : on entre dans le répertoire « /home/olivier/freecad-build/CMakeFiles/CMakeTmp »
Building C object CMakeFiles/cmTC_6e2b0.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTC_6e2b0.dir/CheckSymbolExists.c.o -c /home/olivier/freecad-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_6e2b0
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_6e2b0.dir/link.txt --verbose=1
/usr/bin/cc -rdynamic CMakeFiles/cmTC_6e2b0.dir/CheckSymbolExists.c.o -o cmTC_6e2b0
/usr/bin/ld: CMakeFiles/cmTC_6e2b0.dir/CheckSymbolExists.c.o: in function `main':
CheckSymbolExists.c:(.text+0x1b): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_6e2b0.dir/build.make:87: cmTC_6e2b0] Error 1
make[1] : on quitte le répertoire « /home/olivier/freecad-build/CMakeFiles/CMakeTmp »
make: *** [Makefile:121: cmTC_6e2b0/fast] Error 2
File /home/olivier/freecad-build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/olivier/freecad-build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_a419c/fast"
/usr/bin/make -f CMakeFiles/cmTC_a419c.dir/build.make CMakeFiles/cmTC_a419c.dir/build
make[1] : on entre dans le répertoire « /home/olivier/freecad-build/CMakeFiles/CMakeTmp »
Building C object CMakeFiles/cmTC_a419c.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_a419c.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.12/Modules/CheckFunctionExists.c
Linking C executable cmTC_a419c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a419c.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_a419c.dir/CheckFunctionExists.c.o -o cmTC_a419c -lpthreads
/usr/bin/ld : ne peut trouver -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_a419c.dir/build.make:87: cmTC_a419c] Error 1
make[1] : on quitte le répertoire « /home/olivier/freecad-build/CMakeFiles/CMakeTmp »
make: *** [Makefile:121: cmTC_a419c/fast] Error 2Merci pour vos conseils
Olivier
Retraité (ex-développeur)
le Kitesurf me permet de décrocher de l'informatique !
Bien sûr, tablette et smartphone sont rootés ! Mais je préfère un PC sous xubuntu !
Hors ligne
#2 Le 03/04/2019, à 17:24
- lemoineo

Re : Compilation Freecad
Dans le répertoire FreeCAD-releases-FreeCAD-0-18, un fichier requirements.txt indique les bibliothèques Python nécessaires,
Avec un dpkg -l bien senti, tous les modules semblent plus ou moins présents
Retraité (ex-développeur)
le Kitesurf me permet de décrocher de l'informatique !
Bien sûr, tablette et smartphone sont rootés ! Mais je préfère un PC sous xubuntu !
Hors ligne
#3 Le 03/04/2019, à 17:31
- eric63

Re : Compilation Freecad
salut
et pourquoi tu ne prends pas le ppa de freecad daily build qui ferait là même chose mais sans compile ?
Kubuntu 21.10 - 64 bits + backports beta = plasma 5.23.4 KDE 5.88.0 Qt 5.15.2 et noyau 5.13.0-22 4x intel i5-4570 3.2 Ghz 12 Go nvidia GTX 1060 6GB
Comment installer une brother avec le script de demonipuch
J’utilise le clavier french AFNOR de chez LDLC c‘est fort
Hors ligne
Pages : 1