Git Product home page Git Product logo

Comments (9)

rkrejci avatar rkrejci commented on August 23, 2024

Hi,
you have several options:

  • install missing cmocka devel package, or
  • disable tests by the following options:
$ cmake -DENABLE_BUILD_TESTS=OFF -DENABLE_VALGRIND_TESTS=OFF ..

or

  • build libyang in Release mode where cmocka is not required (and tests are not available):
$ cmake -D CMAKE_BUILD_TYPE:String="Release" ..

from libyang.

classcwnd avatar classcwnd commented on August 23, 2024

Hi Radek,

Thank you for your quick response. I will have a try.

Regards,
Yu

from libyang.

classcwnd avatar classcwnd commented on August 23, 2024

Hi Radek,

The problem is still there, I think the problem is that FIND is not recognized.
How can I do?

CMake Error at CMakeLists.txt:109 (string):
  string does not recognize sub-command FIND
[email protected] cmake -DENABLE_BUILD_TESTS=OFF -DENABLE_VALGRIND_TESTS=OFF ..
-- The C 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
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found PCRE: /usr/lib64/libpcre.so
CMake Error at CMakeLists.txt:109 (string):
  string does not recognize sub-command FIND


-- Found Doxygen: /tools/swdev/bin/doxygen
-- Configuring incomplete, errors occurred!
[email protected] cmake -D CMAKE_BUILD_TYPE:String="Release" ..
CMake Error at CMakeLists.txt:109 (string):
  string does not recognize sub-command FIND


-- Configuring incomplete, errors occurred!

from libyang.

rkrejci avatar rkrejci commented on August 23, 2024

What is your version of cmake (cmake --version)?

from libyang.

classcwnd avatar classcwnd commented on August 23, 2024

[email protected] cmake --version
cmake version 2.6-patch 4

from libyang.

rkrejci avatar rkrejci commented on August 23, 2024

Are you able to upgrade to 2.8.5?

from libyang.

classcwnd avatar classcwnd commented on August 23, 2024

Yes, I used module add cmake/2.8.10.2. and problem solved.
Thanks you!

from libyang.

classcwnd avatar classcwnd commented on August 23, 2024

Failure again after last update, it said "string sub-command LENGTH requires two arguments." please help to fix it.

···
[email protected] cmake --version
cmake version 2.8.10.2
[email protected] cmake -DENABLE_BUILD_TESTS=OFF -DENABLE_VALGRIND_TESTS=OFF ..
CMake Error at CMakeLists.txt:110 (string):
string sub-command LENGTH requires two arguments.

-- Configuring incomplete, errors occurred!
[email protected]
···

from libyang.

michalvasko avatar michalvasko commented on August 23, 2024

Hi,
hopefully now it will be working, sorry.

Regards,
Michal

from libyang.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.