home › Forums › # Technical Support › Cannot build project including fl/Headers.h
- This topic has 4 replies, 2 voices, and was last updated 5 years, 10 months ago by
Juan Rada-Vilela (admin).
-
AuthorPosts
-
October 15, 2017 at 06:58 #2619
Unknown
MemberHello,
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.
October 15, 2017 at 09:06 #2621Juan Rada-Vilela (admin)
KeymasterHi,
thank you for your post.
Can you please specify what are you using:
– Ubuntu version
– Clang or GNU g++, and versionsAlso, 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.
Cheers.
October 15, 2017 at 10:03 #2622Juan Rada-Vilela (admin)
KeymasterOh, 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.
October 17, 2017 at 04:12 #2623Unknown
MemberThank 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.November 6, 2017 at 21:16 #2630Juan Rada-Vilela (admin)
KeymasterHi,
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?
Cheers.
-
AuthorPosts
- You must be logged in to reply to this topic.