home › Forums › # Technical Support › Qt and Fuzzylite
- This topic has 1 reply, 2 voices, and was last updated 8 years, 4 months ago by
Juan Rada-Vilela (admin).
-
AuthorPosts
-
July 18, 2015 at 05:42 #1911
Unknown
MemberHi Juan,
I need to use the library with a Qt creator 5.3, but when i try to build it by running the “build.bat” file, i got only this error file in the release and debug folders
/////////////////////////////////////
Compiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” failed.
Compiler: cl
Build flags:
Id flags:The output was:
The system cannot find the file specifiedCompiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” failed.
Compiler: cl
Build flags:
Id flags: -cThe output was:
The system cannot find the file specifiedChecking whether the CXX compiler is IAR using “” did not match “IAR .+ Compiler”:
////////////////////////////////////
I’m also tryed to simply add the .lib and includepath to my project
//////////////////////////////////////////////////////////
# # Project created by QtCreator 2015-07-17T14:00:08 # #------------------------------------------------- QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = Fuzzy TEMPLATE = app win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../../../fuzzylite-5.0/ -lfuzzylite else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../../../fuzzylite-5.0/ -lfuzzylited else:unix: LIBS += -L$$PWD/../../../../../../fuzzylite-5.0/ -lfuzzylite INCLUDEPATH += $$PWD/../../../../../../fuzzylite-5.0 DEPENDPATH += $$PWD/../../../../../../fuzzylite-5.0 SOURCES += main.cpp\ mainwindow.cpp HEADERS += mainwindow.h FORMS += mainwindow.ui
///////////////////////////////////////////////////////////////////
but it doesnt work and shows exactly the errors as the following link.do you know where is the problem ?
thanks
July 18, 2015 at 12:25 #1912Juan Rada-Vilela (admin)
KeymasterHi,
for the
build.bat
, you need to open the console window using the Visual Studio Console (or Terminal), which will run some commands to update the paths for binaries in your system. The problem there seems that CMake is not able to find the compiler.As for the following code:
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../../../fuzzylite-5.0/ -lfuzzylite else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../../../fuzzylite-5.0/ -lfuzzylited else:unix: LIBS += -L$$PWD/../../../../../../fuzzylite-5.0/ -lfuzzylite INCLUDEPATH += $$PWD/../../../../../../fuzzylite-5.0 DEPENDPATH += $$PWD/../../../../../../fuzzylite-5.0
The problem is that you are not finding the library. Please use the full path to fuzzylite instead of a relative
../../../
to prevent unnoticed errors. Also, some times things are funny with dynamic libraries, so you may also try using-lfuzzylite-static
and-lfuzzylite-staticd
instead of the dynamic versions.Furthermore, you need to ensure that the path to fuzzylite is correct. For example, the INCLUDEPATH needs to point to the fuzzylite directory that contains folders
fl
andsrc
, such that doingcd $FL_HOME/fl
is a valid path to the headers. Likewise, you need to make sure that the library files are available in the fuzzylite directory or change accordingly:LIBS+=path/to/fuzzylite/release/bin/
, such that the libraries are inpath/to/fuzzylite/release/bin/
.Hope this helps.
-
AuthorPosts
- You must be logged in to reply to this topic.