I'm having difficulty compiling BRLCAD 7.24.2 from source. I'm using Arch Linux and am compiling using the PKGBUILD in the misc/archlinux subdirectory in the source tarball. Below is the output from the cmake stage. I have tcl and tk installed, but it can't find it for some reason. I decided to use the bundled lib option to see if that would work better (see further below).
...
-- Performing Test LIBTERM_RESULT - Success
-- Could NOT find TERMLIB (missing: TERMLIB_INCLUDE_DIR)
-- Found PNG: /usr/lib/libpng.so (found version "1.6.13")
-- Looking for cos in m
-- Looking for cos in m - found
-- Found TCL: /usr/lib/libtcl.so
-- Found TK: /usr/lib/libtk.so
-- Looking for include file tk.h
-- Looking for include file tk.h - found
CMake Error at CMakeLists.txt:467 (_message):
Could not find at least one of Tcl, Itcl or Tk libraries in /usr/lib,
/usr/lib/itcl4.0.1, and /usr/lib - please specify the parent directory for
the libraries in the TCL_BIN_PREFIX variable (e.g. ${TCL_BIN_PREFIX}/lib)
Call Stack (most recent call first):
src/other/incrTcl/itk/CMakeLists.txt:81 (MESSAGE)
-- Configuring incomplete, errors occurred!
See also "/home/user/Packages/brlcad-7.24.2/misc/archlinux/src/build/CMakeFiles/CMakeOutput.log".
See also "/home/user/Packages/brlcad-7.24.2/misc/archlinux/src/build/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in build().
Aborting...
I then modified the PKGBUILD slightly to add the -DBRLCAD_BUNDLED_LIBS=ON cmake option and things progress further, but still no go. Excerpts from output below. Any suggestions? Thanks in advance.
...
-- Looking for mktime - found
-- Looking for time
-- Looking for time - found
failed to create symbolic link '/home/user/Packages/brlcad-7.24.2/misc/archlinux/src/build/lib/libpng.pc': No such file or directory
failed to create symbolic link '/home/user/Packages/brlcad-7.24.2/misc/archlinux/src/build/lib/libpng-config': No such file or directory
CMake Warning (dev) at src/other/libpng/CMakeLists.txt:298 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The LOCATION property should not be read from target "png16". Use the
target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropriate.
This warning is for project developers. Use -Wno-dev to suppress it.
failed to create symbolic link '/home/user/Packages/brlcad-7.24.2/misc/archlinux/src/build/lib/libpng.so': No such file or directory
CMake Warning (dev) at src/other/libpng/CMakeLists.txt:307 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The LOCATION property should not be read from target "png16_static". Use
the target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropriate.
This warning is for project developers. Use -Wno-dev to suppress it.
failed to create symbolic link '/home/user/Packages/brlcad-7.24.2/misc/archlinux/src/build/lib/libpng.a': No such file or directory
-- Looking for sys/ioctl.h
...
...
[ 13%] Built target tk
Scanning dependencies of target wish
[ 13%] Building C object src/other/tk/CMakeFiles/wish.dir/unix/tkAppInit.c.o
Linking C executable ../../../bin/wish
/usr/lib/gcc/i686-pc-linux-gnu/4.9.1/../../../libfreetype.so: undefined reference to `png_set_expand_gray_1_2_4_to_8@PNG16_0'
...
...
/usr/lib/gcc/i686-pc-linux-gnu/4.9.1/../../../libfreetype.so: undefined reference to `png_set_strip_16@PNG16_0'
collect2: error: ld returned 1 exit status
src/other/tk/CMakeFiles/wish.dir/build.make:95: recipe for target 'bin/wish-8.5' failed
make[2]: *** [bin/wish-8.5] Error 1
CMakeFiles/Makefile2:6676: recipe for target 'src/other/tk/CMakeFiles/wish.dir/all' failed
make[1]: *** [src/other/tk/CMakeFiles/wish.dir/all] Error 2
Makefile:147: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm having difficulty compiling BRLCAD 7.24.2 from source. I'm using Arch
Linux and am compiling using the PKGBUILD in the
misc/archlinux subdirectory
...
Jason, some questions:
host architecture?
CMake version?
Have you tried building BRL-CAD from downloaded source as a
stand-alone project (I'm not familiar with the PKGBUILD system, so I
don't know how it interacts with the BRL-CAD source package as
released).
Best,
-Tom
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I'm having difficulty compiling BRLCAD 7.24.2 from source. I'm using Arch Linux and am compiling using the PKGBUILD in the misc/archlinux subdirectory in the source tarball. Below is the output from the cmake stage. I have tcl and tk installed, but it can't find it for some reason. I decided to use the bundled lib option to see if that would work better (see further below).
I then modified the PKGBUILD slightly to add the -DBRLCAD_BUNDLED_LIBS=ON cmake option and things progress further, but still no go. Excerpts from output below. Any suggestions? Thanks in advance.
On Thu, Oct 23, 2014 at 12:01 PM, Jason Lenz lenzj@users.sf.net wrote:
Jason, some questions:
stand-alone project (I'm not familiar with the PKGBUILD system, so I
don't know how it interacts with the BRL-CAD source package as
released).
Best,
-Tom