Doxygen docs installation fails due to EPSTOPDF-NOTFOUND error - cmake

I'm trying to build the Doxygen documentation. I can get the html files to build and load properly in the borwser. However, the PDF files do not build properly.
When I execute make docs (as stated in the Doxygen installation instructions), the following is the error output:
[ 37%] Built target _doxygen
[ 38%] Built target md5
[ 38%] Built target lodepng
[ 45%] Built target mscgen
[ 45%] Checking the git repository for changes...
[ 45%] Built target check_git_repository
[ 46%] Checking the doxygen version for changes...
[ 46%] Built target check_doxygen_version
[ 47%] Built target doxygen_version
[ 55%] Built target qtools
[ 55%] Built target generate_configvalues_header
[ 57%] Built target vhdlparser
[ 61%] Built target doxycfg
[ 61%] Built target doxygen
[ 85%] Built target examples
[ 85%] Generating Latex and HTML documentation.
[100%] Built target run_doxygen
[100%] Generating Doxygen Manual PDF.
/bin/sh: 1: EPSTOPDF-NOTFOUND: not found
doc/CMakeFiles/doxygen_pdf.dir/build.make:57: recipe for target 'doc/CMakeFiles/doxygen_pdf' failed
make[3]: *** [doc/CMakeFiles/doxygen_pdf] Error 127
CMakeFiles/Makefile2:637: recipe for target 'doc/CMakeFiles/doxygen_pdf.dir/all' failed
make[2]: *** [doc/CMakeFiles/doxygen_pdf.dir/all] Error 2
CMakeFiles/Makefile2:671: recipe for target 'doc/CMakeFiles/docs.dir/rule' failed
make[1]: *** [doc/CMakeFiles/docs.dir/rule] Error 2
Makefile:379: recipe for target 'docs' failed
make: *** [docs] Error 2
I have searched online extensively and installed all font packages I can find regarding the TexLive package, and I have installed the pdflatex package as well.
Help is appreciated, thank you!

Related

what is "error: variable 'writable' set but not used [-Werror,-Wunused-but-set-variable]" ?and how fix it?

i want build linphone sdk by below commands but i get error.how fix it?
git clone https://gitlab.linphone.org/BC/public/linphone-sdk.git --recursive
cd linphone-sdk
mkdir build-osx
cmake .. -DLINPHONESDK_PLATFORM=Desktop
make
and this is error:
how fix it?
-- Build files have been written to: /Users/sia/Desktop/compile1/linphone-sdk/WORK/mac-arm64/Build/ms2
[ 85%] Forcing build for 'EP_ms2'
[ 85%] Performing build step for 'EP_ms2'
[ 0%] Built target ms2-yuv2rgb-vs-header
CMake Warning at /Users/sia/Desktop/compile1/linphone-sdk/linphone-sdk/mac-arm64/share/bctoolbox/cmake/BcGitVersion.cmake:43 (message):
Project version (5.2.0) and git tag (5.2.0-alpha) differ. Please put them
identical
[ 0%] Built target ms2-git-version
[ 0%] Built target ms2-basedescs-header
[ 0%] Built target ms2-voipdescs-header
[ 0%] Built target ms2-fragment-shader-header
[ 0%] Built target ms2-vertex-shader-header
[ 0%] Built target ms2-yuv2rgb-fs-header
Consolidate compiler generated dependencies of target mediastreamer
[ 1%] Building C object src/CMakeFiles/mediastreamer.dir/audiofilters/macsnd.c.o
/Users/sia/Desktop/compile1/linphone-sdk/mediastreamer2/src/audiofilters/macsnd.c:372:10: **error: variable 'writable' set but not used [-Werror,-Wunused-but-set-variable]
Boolean writable;
^**
1 error generated.
make[8]: *** [src/CMakeFiles/mediastreamer.dir/audiofilters/macsnd.c.o] Error 1
make[7]: *** [src/CMakeFiles/mediastreamer.dir/all] Error 2
make[6]: *** [all] Error 2
make[5]: *** [/Users/sia/Desktop/compile1/linphone-sdk/WORK/mac-arm64/Stamp/EP_ms2/EP_ms2-build] Error 2
make[4]: *** [CMakeFiles/EP_ms2.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [mac-arm64-prefix/src/mac-arm64-stamp/mac-arm64-build] Error 2
make[1]: *** [CMakeFiles/mac-arm64.dir/all] Error 2
make: *** [all] Error 2

make: have built target; make install : *** No rule to make target 'install'

In Ubuntu20.04.
I want to insatll easy3d, but I can not make install it successfully.
make
[ 83%] Building CXX object CMakeFiles/easy3d.dir/surface_mesh_io_obj.cpp.o
[ 87%] Building CXX object CMakeFiles/easy3d.dir/surface_mesh_io_off.cpp.o
[ 91%] Building CXX object CMakeFiles/easy3d.dir/surface_mesh_io_ply.cpp.o
[ 95%] Building CXX object CMakeFiles/easy3d.dir/transform.cpp.o
[100%] Linking CXX static library libeasy3d.a
[100%] Built target easy3d
And the build have files:
CMakeCache.txt CMakeFiles Makefile cmake_install.cmake libeasy3d.a
Then I excute the command make install, I got
make: *** No rule to make target 'install'. Stop.
How could I fix it
I made a big mistake that is nothing to install.

Difficulty Compiling c2ffi on FreeBSD 12 and Debian 10

I am having problems installing c2ffi (https://github.com/rpav/c2ffi) on both FreeBSD 12 and Debian 10. I need c2ffi in order to use some Common Lisp bindings that rely on c2ffi.
On FreeBSD 12, I have both Clang 6.0 (default) and 10.0 installed; c2ffi requires LLVM 10.0. Because cc and c++ refer to Clang 6.0 in my FreeBSD installation, I set PATH to /usr/local/llvm10/bin:$PATH, and I also set aliases to refer to clang and clang++. I have cmake version 3.17.3 installed. However, when I make it to the make phase of installing c2ffi, I run into the following error:
Scanning dependencies of target c2ffi
[ 7%] Building CXX object CMakeFiles/c2ffi.dir/src/AST.cpp.o
[ 15%] Building CXX object CMakeFiles/c2ffi.dir/src/Decl.cpp.o
[ 23%] Building CXX object CMakeFiles/c2ffi.dir/src/Expr.cpp.o
[ 30%] Building CXX object CMakeFiles/c2ffi.dir/src/OutputDriver.cpp.o
[ 38%] Building CXX object CMakeFiles/c2ffi.dir/src/Template.cpp.o
[ 46%] Building CXX object CMakeFiles/c2ffi.dir/src/Type.cpp.o
[ 53%] Building CXX object CMakeFiles/c2ffi.dir/src/c2ffi.cpp.o
[ 61%] Building CXX object CMakeFiles/c2ffi.dir/src/drivers/JSON.cpp.o
/home/michael/c2ffi/src/drivers/JSON.cpp:36:26: warning: passing an object that
undergoes default argument promotion to 'va_start' has undefined behavior
[-Wvarargs]
va_start(ap, close);
^
/home/michael/c2ffi/src/drivers/JSON.cpp:32:61: note: parameter of type 'bool'
is declared here
void write_object(const char *type, bool open, bool close, ...) {
^
1 warning generated.
[ 69%] Building CXX object CMakeFiles/c2ffi.dir/src/drivers/Null.cpp.o
[ 76%] Building CXX object CMakeFiles/c2ffi.dir/src/drivers/Sexp.cpp.o
[ 84%] Building CXX object CMakeFiles/c2ffi.dir/src/init.cpp.o
[ 92%] Building CXX object CMakeFiles/c2ffi.dir/src/options.cpp.o
[100%] Linking CXX executable bin/c2ffi
/usr/bin/ld: error: unable to find library -lclang-cpp
c++: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
Stop.
make[2]: stopped in /usr/home/michael/c2ffi/build
*** Error code 1
Stop.
make[1]: stopped in /usr/home/michael/c2ffi/build
*** Error code 1
Stop.
make: stopped in /usr/home/michael/c2ffi/build
The file libclang-cpp.so is present in my /usr/local/llvm10/lib directory, but cmake does not detect it. I tried various other approaches, including setting the LD_LIBRARY_PATH and CMAKE_LIBRARY_PATH environment variables, but to no avail; I received the same error message as above.
I gave up installing c2ffi on FreeBSD and tried installing it on a fresh install of Debian 10 with LLVM 10.0 and cmake 3.18.1. However, when I ran make on Debian, I ended up with the following error message:
[ 7%] Building CXX object CMakeFiles/c2ffi.dir/src/AST.cpp.o
/home/michael/c2ffi/src/AST.cpp:24:10: fatal error: 'clang/AST/ASTConsumer.h' file not found
#include <clang/AST/ASTConsumer.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/c2ffi.dir/build.make:82: CMakeFiles/c2ffi.dir/src/AST.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:123: CMakeFiles/c2ffi.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
I am wondering how I can build c2ffi on my FreeBSD and Debian systems?
On my FreeBSD installation, in the CMakeLists.txt I replaced the line
target_link_libraries(c2ffi PUBLIC clang-cpp LLVM)
with
target_link_libraries(c2ffi PUBLIC /usr/local/llvm10/lib/libclang-cpp.so LLVM)
On my Debian installation, it turned out that I did not have one of the libclang development packages installed. After installing that package I was able to run make without any problems.
The project's CMakeLists.txt is broken, so bug upstream. Actualy, there are numerous pull requests already filed:
https://github.com/rpav/c2ffi/pull/70
https://github.com/rpav/c2ffi/pull/68/
https://github.com/rpav/c2ffi/pull/65/
You can try these, or combine them into a working solution.

Error compiling opencv_3.4.0 from source

I encountered the following error while trying to make opencv-3.4.0 from source:
main:StaticLib theo$ make -j8
[ 0%] Built target gen-pkgconfig
[ 1%] Built target ittnotify
[ 3%] Built target zlib
[ 5%] Built target gen_opencv_python_source
[ 8%] Built target libjpeg
[ 14%] Built target ippiw
[ 15%] Built target libjasper
[ 17%] Built target libpng
[ 23%] Built target libtiff
[ 30%] Built target libprotobuf
[ 38%] Built target IlmImf
[ 45%] Built target opencv_core
[ 46%] Built target opencv_flann
[ 48%] Built target opencv_ml
[ 56%] Built target opencv_imgproc
[ 57%] Built target opencv_objdetect
[ 59%] Built target opencv_video
[ 60%] Built target opencv_photo
[ 68%] Built target opencv_dnn
[ 68%] Built target opencv_shape
[ 70%] Built target opencv_imgcodecs
[ 70%] Built target opencv_videoio
[ 70%] Built target opencv_highgui
[ 71%] Built target opencv_superres
[ 71%] Linking CXX executable ../../bin/opencv_version
[ 71%] Linking CXX executable ../../bin/opencv_annotation
[ 71%] Linking CXX executable ../../bin/opencv_visualisation
ld: library not found for -lgstbase-1.0
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: library not found for -lgstbase-1.0
ld: library not found for -lgstbase-1.0
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [bin/opencv_visualisation] Error 1
make[1]: *** [apps/visualisation/CMakeFiles/opencv_visualisation.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [bin/opencv_version] Error 1
make[2]: *** [bin/opencv_annotation] Error 1
make[1]: *** [apps/annotation/CMakeFiles/opencv_annotation.dir/all] Error 2
make[1]: *** [apps/version/CMakeFiles/opencv_version.dir/all] Error 2
[ 72%] Built target opencv_ts
[ 74%] Built target opencv_features2d
make: *** [all] Error 2
I cannot find the package lgstbase-1.0 and am not sure how to link it to the project.
I encountered the same error with lintl, but I followed advice from another thread to fix it (brew reinstall gettext).
Any ideas?

Cmake building error for Vortex86DX Linux 2.6.23 platform

I´m trying to build CMAKE to an embedded platform based on Vortex86DX processor - Linux 2.6.23 kernel.
I´ve downloaded the latest CMAKE package (3.4.1), add did:
./bootstrap
Then: make
Here is the make result with the error message:
$ make
[ 1%] Built target cmIML_test
[ 4%] Built target cmsys
[ 5%] Built target cmsysTestDynload
[ 6%] Built target cmsys_c
[ 6%] Built target cmsysTestProcess
[ 6%] Built target cmsysTestSharedForward
[ 7%] Built target cmsysTestsC
[ 9%] Built target cmsysTestsCxx
[ 11%] Built target cmzlib
[ 28%] Built target cmcurl
[ 28%] Built target LIBCURL
[ 29%] Built target cmcompress
[ 30%] Built target cmbzip2
[ 40%] Built target cmliblzma
[ 41%] Building C object Utilities/cmlibarchive/libarchive/CMakeFiles/cmlibarchive.dir/archive_write_disk_posix.c.o
/home/ftp/pub/cmake-3.4.1/cmake-3.4.1/Utilities/cmlibarchive/libarchive/archive_write_disk_posix.c: In function 'set_time':
/home/ftp/pub/cmake-3.4.1/cmake-3.4.1/Utilities/cmlibarchive/libarchive/archive_write_disk_posix.c:2805:19: error: 'AT_FDCWD' undeclared (first use in this function)
/home/ftp/pub/cmake-3.4.1/cmake-3.4.1/Utilities/cmlibarchive/libarchive/archive_write_disk_posix.c:2805:19: note: each undeclared identifier is reported only once for each function it appears in
/home/ftp/pub/cmake-3.4.1/cmake-3.4.1/Utilities/cmlibarchive/libarchive/archive_write_disk_posix.c:2805:39: error: 'AT_SYMLINK_NOFOLLOW' undeclared (first use in this function)
make[2]: *** [Utilities/cmlibarchive/libarchive/CMakeFiles/cmlibarchive.dir/archive_write_disk_posix.c.o] Error 1
make[1]: *** [Utilities/cmlibarchive/libarchive/CMakeFiles/cmlibarchive.dir/all] Error 2
make: *** [all] Error 2
And the system version:
$ uname -a
Linux DSC_DKLinux 2.6.23 #6 Mon Sep 1 05:27:54 EDT 2008 i586 unknown
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/gcc-4.7.4/libexec/gcc/i586-pc-linux-gnu/4.7.4/lto-wrapper
Target: i586-pc-linux-gnu
Configured with: ../gcc-4.7.4/configure --prefix=/usr/gcc-4.7.4 --disable-multilib --enable-languages=c,c++
Thread model: posix
gcc version 4.7.4 (GCC)