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

Author Topic: SFML.Audio.Music System.DllNotFoundException  (Read 5019 times)

0 Members and 1 Guest are viewing this topic.

Editaw5X

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
SFML.Audio.Music System.DllNotFoundException
« on: January 14, 2018, 06:14:18 pm »
System.DllNotFoundException: "Unable to load DLL "csfml-audio-2""

Code:
Music mainMenuTheme = new Music("C:\path\to\file.wav"); // System.DllNotFoundException

« Last Edit: January 14, 2018, 09:11:48 pm by Editaw5X »

dabbertorres

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • website/blog
Re: SFML.Audio.Music System.DllNotFoundException
« Reply #1 on: January 14, 2018, 07:01:19 pm »
Did you match exe/dll architectures? (All x86, or all x64?)

Editaw5X

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
Re: SFML.Audio.Music System.DllNotFoundException
« Reply #2 on: January 14, 2018, 07:45:13 pm »
Did you match exe/dll architectures? (All x86, or all x64?)
All x86

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10818
    • View Profile
    • development blog
    • Email
Re: SFML.Audio.Music System.DllNotFoundException
« Reply #3 on: January 14, 2018, 11:04:43 pm »
Where did you get the DLLs from? What package did you download?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Editaw5X

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
Re: SFML.Audio.Music System.DllNotFoundException
« Reply #4 on: January 15, 2018, 07:35:33 am »
Where did you get the DLLs from? What package did you download?

I compiled SFML.Net from GitHub and CSFML downloaded from sfml-dev.org

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10818
    • View Profile
    • development blog
    • Email
Re: SFML.Audio.Music System.DllNotFoundException
« Reply #5 on: January 15, 2018, 09:03:24 am »
Ah, hmm I think we still haven't update the download. For some reason the x86 is also x64.
Simplest solution would be to rebuild CSFML from source.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Editaw5X

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
Re: SFML.Audio.Music System.DllNotFoundException
« Reply #6 on: January 16, 2018, 07:03:38 am »
Ah, hmm I think we still haven't update the download. For some reason the x86 is also x64.
Simplest solution would be to rebuild CSFML from source.

CMake Error at src/SFML/CMakeLists.txt:26 (find_package):
  By not providing "FindSFML.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "SFML", but
  CMake did not find one.

  Could not find a package configuration file provided by "SFML" (requested
  version 2) with any of the following names:

    SFMLConfig.cmake
    sfml-config.cmake

  Add the installation prefix of "SFML" to CMAKE_PREFIX_PATH or set
  "SFML_DIR" to a directory containing one of the above files.  If "SFML"
  provides a separate development package or SDK, be sure it has been
  installed.


Configuring incomplete, errors occurred!

Editaw5X

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
Re: SFML.Audio.Music System.DllNotFoundException
« Reply #7 on: January 16, 2018, 04:15:10 pm »
Ah, hmm I think we still haven't update the download. For some reason the x86 is also x64.
Simplest solution would be to rebuild CSFML from source.

I fixed a problem. I installed OpenAL.