Comments (9)
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.
Hi Radek,
Thank you for your quick response. I will have a try.
Regards,
Yu
from libyang.
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.
What is your version of cmake (cmake --version
)?
from libyang.
[email protected] cmake --version
cmake version 2.6-patch 4
from libyang.
Are you able to upgrade to 2.8.5?
from libyang.
Yes, I used module add cmake/2.8.10.2. and problem solved.
Thanks you!
from libyang.
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.
Hi,
hopefully now it will be working, sorry.
Regards,
Michal
from libyang.
Related Issues (20)
- How Do I Use the lyd_new_list Parameter When There Are Multiple Key Nodes? HOT 1
- Invalid value in data payload lead to crash in print_set_debug from xpath.c HOT 5
- yanglint tests fail for release build HOT 1
- Substatements on extension instances HOT 1
- How to parse the fellow xml with "lyd_parse_op" correctly? HOT 2
- lyang.pc HOT 2
- Parse rpc lyd_node and get operation , container with corresponding Leafs HOT 9
- lyd_new_path API not work with concat HOT 1
- Duplicated extensions in rpc input/output HOT 1
- getting : libyang-3.1.0 :LY: Ext plugin "ly2 schema mount v1": Callback for getting ext data failed when using schema-mounts mount-point HOT 5
- Unresolved external: lyd_free_meta_single (but no other) with shared lib HOT 1
- List "parent-reference" with duplicate instances allowed found without required metadata HOT 4
- rpc input/output extensions are not printed
- The text in readme.md about libpcre2 seems to need an update HOT 1
- Help on building rpm package HOT 1
- Help required new custom extension yang is not getting listed during capability exchange HOT 2
- LibYang error when compiling the libnetconf libary. HOT 3
- query on yang grouping
- query
- query on yang HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libyang.