home Forums # Technical Support Problems to install fuzzylite 5

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1665
    Unknown
    Member

    I’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.0b1408

    FL_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.0b1408

    FL_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 2

    FINISHED: all
    ******************************

    #1667

    Hi 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.

    #1670
    Unknown
    Member

    I have ubuntu 12.04 LTS. 64-bits

    #1674
    Unknown
    Member

    Same problem. I tried to install this rt: http://www.ubuntubuzz.com/2012/03/real-time-linux-installation-on-ubuntu.html.

    Didn’t work.

    #1675

    Hi,

    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 in CMakeLists

    if (UNIX AND NOT APPLE)
        set(FL_LIBS rt)
    endif()

    , or
    (2) Download fuzzylite from repository here

    Please 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.

    #1679
    Unknown
    Member

    It’s work, thank.
    I can compile in the terminal, but when I try to run an example in the qtfuzzylite it say me an error

    The following errors were encountered:

    – Rule block <> has no T-Norm
    – Rule block <> has no S-Norm

    Do you know why I get this error?

    #1680
    Unknown
    Member

    I can run the example, the problem was that I forgot to put the rule in T-norm and S-norm

    Thanks for your responses

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.