home Forums # Technical Support Qt and Fuzzylite

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1911
    Unknown
    Member

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

    Compiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” failed.
    Compiler: cl
    Build flags:
    Id flags: -c

    The output was:
    The system cannot find the file specified

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

    fuzzylite qt-creatgor windows

    do you know where is the problem ?

    thanks

    #1912

    Hi,

    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 and src, such that doing cd $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 in path/to/fuzzylite/release/bin/.

    Hope this helps.

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