home › Forums › # Technical Support › Problems to install fuzzylite 5
Tagged: install error
- This topic has 6 replies, 3 voices, and was last updated 8 years, 7 months ago by
Unknown.
-
AuthorPosts
-
February 15, 2015 at 06:07 #1665
Unknown
MemberI’m trying to install fuzzylite 5.0, when I run the ./build sh I get an error. Someone know how to fix it?
Error:
tavdov@tavdov:~/Downloads/fuzzylite-5.0/fuzzylite-5.0/fuzzylite$ ./build.sh
Building schedule: all
Starting in 3 seconds…******************************
STARTING: all
Unix=====================================
fuzzylite v.5.0b1408FL_USE_FLOAT=OFF
FL_BACKTRACE=ON
FL_CPP11=OFF
Build=Debug
=====================================— Configuring done
— Generating done
— Build files have been written to: /home/tavdov/Downloads/fuzzylite-5.0/fuzzylite-5.0/fuzzylite/debug
[ 50%] Built target fl-static
Linking CXX executable bin/fuzzylited
bin/libfuzzylite-staticd.a(Console.cpp.o): In function `fl::Console::benchmarkExamples(int)’:
/home/tavdov/Downloads/fuzzylite-5.0/fuzzylite-5.0/fuzzylite/src/Console.cpp:730: undefined reference to `clock_gettime’
/home/tavdov/Downloads/fuzzylite-5.0/fuzzylite-5.0/fuzzylite/src/Console.cpp:732: undefined reference to `clock_gettime’
collect2: ld returned 1 exit status
make[2]: *** [bin/fuzzylited] Error 1
make[1]: *** [CMakeFiles/fl-bin.dir/all] Error 2
make: *** [all] Error 2
Unix=====================================
fuzzylite v.5.0b1408FL_USE_FLOAT=OFF
FL_BACKTRACE=ON
FL_CPP11=OFF
Build=Release
=====================================— Configuring done
— Generating done
— Build files have been written to: /home/tavdov/Downloads/fuzzylite-5.0/fuzzylite-5.0/fuzzylite/release
[ 50%] Built target fl-static
Linking CXX executable bin/fuzzylite
bin/libfuzzylite-static.a(Console.cpp.o): In function `fl::Console::benchmarkExamples(int)’:
Console.cpp:(.text+0xc7dc): undefined reference to `clock_gettime’
Console.cpp:(.text+0xc806): undefined reference to `clock_gettime’
collect2: ld returned 1 exit status
make[2]: *** [bin/fuzzylite] Error 1
make[1]: *** [CMakeFiles/fl-bin.dir/all] Error 2
make: *** [all] Error 2FINISHED: all
******************************February 15, 2015 at 07:22 #1667Juan Rada-Vilela (admin)
KeymasterHi tavdov,
what operating system/distribution are you using?
if you search the web for “undefined reference to `clock_gettime’ ” plus your operating system, you may get some solutions.
I think the library that is missing in your system is
rt
, as fuzzylite links to-lrt
, which I am pretty sure contains the clock_gettime.Let me know if that helps.
Cheers.
February 15, 2015 at 08:10 #1670Unknown
MemberI have ubuntu 12.04 LTS. 64-bits
February 16, 2015 at 04:04 #1674Unknown
MemberSame problem. I tried to install this rt: http://www.ubuntubuzz.com/2012/03/real-time-linux-installation-on-ubuntu.html.
Didn’t work.
February 16, 2015 at 07:36 #1675Juan Rada-Vilela (admin)
KeymasterHi,
I am sorry about this. I must have missed a bit of configuration in
CMakeLists
.You could either:
(1) Add the following around line 88 inCMakeLists
if (UNIX AND NOT APPLE) set(FL_LIBS rt) endif()
, or
(2) Download fuzzylite from repository herePlease let me know if this helps.
Vultor: rt should be installed in your system by default. I am afraid it was an issue with me linking in CMakeLists.
Cheers.
February 16, 2015 at 19:14 #1679Unknown
MemberIt’s work, thank.
I can compile in the terminal, but when I try to run an example in the qtfuzzylite it say me an errorThe following errors were encountered:
– Rule block <> has no T-Norm
– Rule block <> has no S-NormDo you know why I get this error?
February 16, 2015 at 19:29 #1680Unknown
MemberI can run the example, the problem was that I forgot to put the rule in T-norm and S-norm
Thanks for your responses
-
AuthorPosts
- You must be logged in to reply to this topic.