I reinstalled packages git, cmake, qt5-core, qt5-gui, qt5-linguist, xorg, and
fftw3, which (except fftw3 which is optional) are required for building
Bezitopo. I then tried to build PerfectTIN, which is similar, and got errors.
One was from Qt and looks like this:
CMake Error at /usr/local/lib/cmake/Qt5Gui/Qt5Gui_QICNSPlugin.cmake:4
(_populate_Gui_plugin_properties):
_populate_Gui_plugin_properties Macro invoked with incorrect arguments for
macro named: _populate_Gui_plugin_properties
Call Stack (most recent call first):
/usr/local/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:201 (include)
/usr/local/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:100 (find_package)
/usr/local/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package)
CMakeLists.txt:50 (find_package)
CMake Error at /usr/local/lib/cmake/Qt5Gui/Qt5Gui_QJp2Plugin.cmake:4
(_populate_Gui_plugin_properties):
_populate_Gui_plugin_properties Macro invoked with incorrect arguments for
macro named: _populate_Gui_plugin_properties
Call Stack (most recent call first):
/usr/local/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:201 (include)
/usr/local/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:100 (find_package)
/usr/local/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package)
CMakeLists.txt:50 (find_package)
The other is from pthread (PerfectTIN uses threads, which Bezitopo does not
yet) and is in the attached file.
I can tell which binaries in /usr/local/bin are left over from previous
packages whose package database was lost; they're for DragonFly 4.0.105,
5.0.500, or 5.0.601, instead of the current 5.0.900. But libraries in /usr/
local/lib do not have an ABI version (as far as I can tell with the file
command). How can I find these obsolete files and get rid of them?
Or is there another package I need to install? The repos are at https://
github.com/phma/perfecttin and https://github.com/phma/bezitopo if you'd like
to try building them.
PerfectTIN uses Boost, but can build without it.
Pierre
--
gau do li'i co'e kei do
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/phma/crypt/build/perfecttin/dbg/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/local/bin/gmake cmTC_eaebe/fast
/usr/local/bin/gmake -f CMakeFiles/cmTC_eaebe.dir/build.make CMakeFiles/cmTC_eaebe.dir/build
gmake[1]: Entering directory '/crypt/phma/build/perfecttin/dbg/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_eaebe.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTC_eaebe.dir/CheckSymbolExists.c.o -c /home/phma/crypt/build/perfecttin/dbg/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_eaebe
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_eaebe.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_eaebe.dir/CheckSymbolExists.c.o -o cmTC_eaebe
CMakeFiles/cmTC_eaebe.dir/CheckSymbolExists.c.o:CheckSymbolExists.c:function main: error: undefined reference to 'pthread_create'
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_eaebe.dir/build.make:87: cmTC_eaebe] Error 1
gmake[1]: Leaving directory '/crypt/phma/build/perfecttin/dbg/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:121: cmTC_eaebe/fast] Error 2
File /home/phma/crypt/build/perfecttin/dbg/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/phma/crypt/build/perfecttin/dbg/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/local/bin/gmake cmTC_3e574/fast
/usr/local/bin/gmake -f CMakeFiles/cmTC_3e574.dir/build.make CMakeFiles/cmTC_3e574.dir/build
gmake[1]: Entering directory '/crypt/phma/build/perfecttin/dbg/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_3e574.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_3e574.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_3e574
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3e574.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_3e574.dir/CheckFunctionExists.c.o -o cmTC_3e574 -lpthreads
/usr/libexec/binutils227/elf/ld.gold: error: cannot find -lpthreads
CMakeFiles/cmTC_3e574.dir/CheckFunctionExists.c.o:CheckFunctionExists.c:function main: error: undefined reference to 'pthread_create'
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_3e574.dir/build.make:87: cmTC_3e574] Error 1
gmake[1]: Leaving directory '/crypt/phma/build/perfecttin/dbg/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:121: cmTC_3e574/fast] Error 2
Determining if files windows.h exist failed with the following output:
Change Dir: /home/phma/crypt/build/perfecttin/dbg/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/local/bin/gmake cmTC_c4f14/fast
/usr/local/bin/gmake -f CMakeFiles/cmTC_c4f14.dir/build.make CMakeFiles/cmTC_c4f14.dir/build
gmake[1]: Entering directory '/crypt/phma/build/perfecttin/dbg/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_c4f14.dir/HAVE_WINDOWS_H.c.o
/usr/bin/cc -o CMakeFiles/cmTC_c4f14.dir/HAVE_WINDOWS_H.c.o -c /home/phma/crypt/build/perfecttin/dbg/CMakeFiles/CheckIncludeFiles/HAVE_WINDOWS_H.c
/home/phma/crypt/build/perfecttin/dbg/CMakeFiles/CheckIncludeFiles/HAVE_WINDOWS_H.c:2:10: fatal error: windows.h: No such file or directory
#include <windows.h>
^~~~~~~~~~~
compilation terminated.
gmake[1]: *** [CMakeFiles/cmTC_c4f14.dir/build.make:66: CMakeFiles/cmTC_c4f14.dir/HAVE_WINDOWS_H.c.o] Error 1
gmake[1]: Leaving directory '/crypt/phma/build/perfecttin/dbg/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:121: cmTC_c4f14/fast] Error 2
Source:
/* */
#include <windows.h>
int main(void){return 0;}
Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /home/phma/crypt/build/perfecttin/dbg/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/local/bin/gmake cmTC_5bc95/fast && /usr/local/bin/gmake -f CMakeFiles/cmTC_5bc95.dir/build.make CMakeFiles/cmTC_5bc95.dir/build
gmake[1]: Entering directory '/crypt/phma/build/perfecttin/dbg/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_5bc95.dir/src.c.o
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_5bc95.dir/src.c.o -c /home/phma/crypt/build/perfecttin/dbg/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_5bc95
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5bc95.dir/link.txt --verbose=1
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_5bc95.dir/src.c.o -o cmTC_5bc95
CMakeFiles/cmTC_5bc95.dir/src.c.o:src.c:function main: error: undefined reference to 'pthread_create'
CMakeFiles/cmTC_5bc95.dir/src.c.o:src.c:function main: error: undefined reference to 'pthread_cancel'
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_5bc95.dir/build.make:107: cmTC_5bc95] Error 1
gmake[1]: Leaving directory '/crypt/phma/build/perfecttin/dbg/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:141: cmTC_5bc95/fast] Error 2
Source file was:
#include <pthread.h>
void* test_func(void* data)
{
return data;
}
int main(void)
{
pthread_t thread;
pthread_create(&thread, NULL, test_func, NULL);
pthread_detach(thread);
pthread_cancel(thread);
pthread_join(thread, NULL);
pthread_atfork(NULL, NULL, NULL);
pthread_exit(NULL);
return 0;
}