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

Author Topic: SFML setup on vs with vcpkg  (Read 2499 times)

0 Members and 1 Guest are viewing this topic.

Israfil

  • Newbie
  • *
  • Posts: 1
    • View Profile
SFML setup on vs with vcpkg
« on: June 26, 2023, 12:37:00 am »
Hi, so I finally finished to set up sfml for visual studio with vcpkg, i do not get include error or sfml errors but when I run my program to test which is the exemple given by sfml in tutorial/sfml and linux (Im on windows).
I get many errors in the cnosole such as identifiers not found, undecalred indentifiers, syntax errors, unexpected tokens, etch. I dont mind getting a simple explanation about how to setup it correctly.
For those who wanna know what i've done in the setup so far, here.
(In cmd.exe):
git clone https://github.com/Microsoft/vcpkg.git
.\vcpkg\bootstrap-vcpkg.bat
vcpkg install SFML
vcpkg integrate install
(Put the correct include directory(In properties/C/C++/Additional Includes Directory)
(put the correct lib directory(In properties/LinkerAdditional Librairies Directory)

I hope im clear enough, thanks.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: SFML setup on vs with vcpkg
« Reply #1 on: June 26, 2023, 10:19:17 am »
When you install the integration it should setup everything automatically (lib & include dir).
What I've seen in the past is that vcpkg struggles with system libs like winmm or winsock.

What errors do you get specifically?
Error messages are usually not just an assortment of strings, but they tell you what exactly went wrong, with which you should then be able to find a solution :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/