gnuspeech-contact
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnuspeech-contact] Fwd: gnuspeechsa cmake problems


From: Marcelo Y. Matuda
Subject: Re: [gnuspeech-contact] Fwd: gnuspeechsa cmake problems
Date: Sun, 15 Nov 2015 17:47:58 -0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

Hi,

Begin forwarded message:

*From: *Paul Tyson <address@hidden <mailto:address@hidden>>
*Subject: **[gnuspeech-contact] gnuspeechsa cmake problems*
*Date: *November 14, 2015 10:01:51 AM PST
*To: *gnuspeech <address@hidden
<mailto:address@hidden>>

I'm trying to build gnuspeechsa-0.1.5 on a generic Linux system.

$ cmake -D CMAKE_BUILD_TYPE=Release $pkg_dir

results in following console output indicating error:
=======================
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - 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
CMake Error at CMakeLists.txt:133 (include):
 include could not find load file:

   GNUInstallDirs


CMake Error at CMakeLists.txt:134 (install):
 install TARGETS given no LIBRARY DESTINATION for shared library target
 "gnuspeechsa".


-- Configuring incomplete, errors occurred!
====================

If I change lines 132-135 of CMakeLists.txt to look like this, cmake
runs successully.

========= CMakeLists.txt 132-135 =========================
#    include(GNUInstallDirs)
   install(TARGETS gnuspeechsa gnuspeech_sa gnuspeech_sa_trm
       RUNTIME DESTINATION bin
       LIBRARY DESTINATION lib) #${CMAKE_INSTALL_LIBDIR})
===========================================================

I do not know cmake at all. Will these changes cause a problem with the
build? Do "GNUInstallDirs" and CMAKE_INSTALL_LIBDIR need to be defined
in the CMakeLists.txt file?

Thanks,
--Paul

The changes are ok. But you need to check if your distribution uses lib or lib64.

Marcelo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]