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

Author Topic: ld.exe cannot find extern dependencies  (Read 5288 times)

0 Members and 1 Guest are viewing this topic.

hamzse

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
ld.exe cannot find extern dependencies
« on: February 18, 2017, 10:33:59 pm »
I have recently downgraded from windows 10 back to 8.1, and ran into some trouble while compiling a project i was working on windows 10.

Build Errors:
(click to show/hide)

Build Log:
(click to show/hide)

I compile SFML with CMake statically. I tried the library i used on windows 10, but got the same errors.

I get the same errors with the sample program in the tutorial too.
« Last Edit: February 19, 2017, 05:41:51 pm by hamzse »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: ld.exe cannot find extern dependencies
« Reply #1 on: February 19, 2017, 12:54:41 am »
You didn't specify where to find the library files.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

hamzse

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: ld.exe cannot find extern dependencies
« Reply #2 on: February 19, 2017, 12:41:58 pm »
You didn't specify where to find the library files.

I did not have to specify them until now. It just worked out of the box.
Quote from: Offical SFML Tutorial/Compiling SFML with CMake
On Windows and Mac OS X, all the required dependencies are provided alongside SFML so you won't have to download/install anything else. Building will work out of the box.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
ld.exe cannot find extern dependencies
« Reply #3 on: February 19, 2017, 01:36:55 pm »
Are they in the 2.4.1S64/lib folder?

When you build the INSTALL target when using CMake, the libraries will be installed automatically. If you don't let the CMake script install the libraries, you need to manually copy them from the extlibs directory.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

hamzse

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: ld.exe cannot find extern dependencies
« Reply #4 on: February 19, 2017, 05:38:54 pm »
Are they in the 2.4.1S64/lib folder?

When you build the INSTALL target when using CMake, the libraries will be installed automatically. If you don't let the CMake script install the libraries, you need to manually copy them from the extlibs directory.

Thanks. I finally got it. I guess the CMake script couldn't decide which libraries should it use with my Mingw-w64 compiler.I feel a bit braindead. Copied the contents of /extlibs/libs-mingw/x64/ from the sources to my compiled library 2.4.1S64/lib (next to libsfml-window-s, etc).

I got the same errors using TDM-GCC, now i know the problem was not with the compiler.

Topic (should be) closed.

 

anything