home Forums # Technical Support linker problem with xcode

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6130
    Unknown
    Member

    Hello everyone,

    I am new to fuzzylite community. I am trying to include fuzzylite library in a project in xcode.
    I followed the documentation and some of the responses given in this forum. So i added “the path to fuzzylite” in the header search path and the library path “../fuzzylite-6.0/fuzzylite/release/bin” to the library search path.
    I also added “-lfuzzylite” to other linker flags. However, i got this error when compiling my project:

    ld: library not found for -lfuzzylite
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    Any guidance through this please?

    #6131
    Unknown
    Member

    I solved the issue above. Now the build is succeeding but i get this error:

    dyld: Library not loaded: @rpath/libfuzzylite.6.0.dylib
    Reason: image not found

    Please guide me.
    Regards

    #6138

    Hi rbenmess,

    Thank you for your post and for using fuzzylite.

    please check and follow the instructions on https://github.com/fuzzylite/fuzzylite#compile-link-and-execute.

    I suggest you first try linking statically because it is easier to make sure that the library is found and loaded. Make sure the compilation flags shown in github are correctly added to the project properties.

    Alternatively, you can use CMake to create your project automatically based on the example application at https://github.com/fuzzylite/fuzzylite/tree/release/examples/application using cmake -G Xcode . from the example application folder. Then you can explore the differences with respect to the project you have created.

    Cheers.

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