Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How do I link SFML to Eclipse on a Mac?  (Read 1461 times)

0 Members and 2 Guests are viewing this topic.

Grimtin10

  • Newbie
  • *
  • Posts: 3
    • View Profile
How do I link SFML to Eclipse on a Mac?
« on: November 23, 2020, 06:57:09 am »
(I asked this previously in a less-active board, reposting to actually get help)

Hi, I want to use SFML on a mac, and I also want to use Eclipse. (I have Visual Studio Code, but I really do not like it's project structure, keeps breaking)
I have more experience with Eclipse than any other IDE (other than regular Visual Studio, but couldn't find a way to do C++ with that on a macbook) and I don't know if they will work\don't want to use any other IDEs.

I will use Visual Studio Code as a last resort if I really have to.

Thanks!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: How do I link SFML to Eclipse on a Mac?
« Reply #1 on: November 23, 2020, 08:46:15 am »
Linking SFML isn't any different than using any other library with Eclipse.
And it's very similar to any other IDE configuration.
You need to specify where the libraries are located, what libraries you want to link and where the include headers are located.

A quick google search said something like: Project properties > C/C++ Build > Settings > Linker > Libraries
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Grimtin10

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: How do I link SFML to Eclipse on a Mac?
« Reply #2 on: November 23, 2020, 06:23:08 pm »
Thanks, I'll see if that works and update on any other problems.

Grimtin10

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: How do I link SFML to Eclipse on a Mac?
« Reply #3 on: November 27, 2020, 11:49:09 am »
Ok, finally got to it and it didn't work, honestly don't know how to use libraries with eclipse,
I am getting the error
"ld: library not found for -l/Volumes/yes/SFML-2.5.1-macos-clang/lib/libsfml-graphics.2.5.1.dylib"
can't find a solution to it (which tells me its probably obvious)

 

anything