home Forums # Technical Support Cannot build project including fl/Headers.h

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #2619


    I have 2 problems in need of solution

    The first problem is that I have created a project and modified properties following this topic http://fuzzylite.com/forums/topic/fuzzylite-in-eclipse/
    But after that, when I complied a simple “Hello World” program whose code is:
    #include <iostream>
    #include “fl/Headers.h”

    using namespace std;
    using namespace fl;

    int main()
    cout << “Hello FuzzyLite!” << endl;
    return 0;

    Then there has been errors like this https://photos.app.goo.gl/nUetGJeq9waH0uhZ2

    The second problem is that I have compiled ObstacleAvoidance in terminal with the script

    g++ ObstacleAvoidance.cpp -o ObstacleAvoidance -I/home/dattran/fuzzylite-6.0/fuzzylite -L/home/dattran/fuzzylite-6.0/fuzzylite/release/bin -lfuzzylite-static –std=c++11

    and it created an x-executable file ObstacleAvoidance, but I can’t run it.
    this is the information of the file https://photos.app.goo.gl/3zhvz8Drcxgdn3N12
    I can’t run neither by clicking on it nor typing ./ObstacleAvoidance in terminal.

    Please let me know how to solve these problems. Thank you for your time and attention.



    thank you for your post.

    Can you please specify what are you using:
    – Ubuntu version
    – Clang or GNU g++, and versions

    Also, what error occurs when you try to execute ObstacleAvoidance?

    Please, have a read at the updated compile instructions for fuzzylite 6 at https://github.com/fuzzylite/fuzzylite#compile-link-and-execute

    Also, please have a look at the sample project available at https://github.com/fuzzylite/fuzzylite/tree/release/examples/application . You should take a look at the definitions made in the CMakeList file.



    Oh, also, you should take a look at the options to automatically generate an Eclipse project from CMakeLists file. You could use the CMakeFile template from https://github.com/fuzzylite/fuzzylite/tree/release/examples/application, and generate your template project from there.


    Thank you very much, PhD.Vilela

    I have solved the second problem thank to the example application.
    For the first problem, I’d like to know that if I could link the fuzzylite libraries to my project, not just for compiling an executable file.
    For more specific, I’m working with PX4 auto pilot firmware. I want to implement fuzzy logic controller algorithm instead of PID controller for the autopilot. And now I’m trying to include the fuzzylite libraries in a simple project before moving on PX4 firmware.

    Oh well, I’m using Ubuntu 16.04 LTS and GNU 5.4. I have built the fuzzylite project on Qtcreator, Eclipse and also from build.sh.
    Thanks again.



    please excuse me for the delayed answer, but I am not sure what your question is. All the information regarding linking of the libraries is the links I mentioned before. Could you be more specific on what you are trying to achieve and what you are experiencing?


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