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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - julebell27

Pages: [1]
1
Audio / Help with running the package
« on: March 26, 2024, 03:31:56 am »
I'm running the code off of my terminal on my new macbook w/m2 chip

#include <SFML/Audio.hpp>
int main() {
    sf::SoundBuffer buffer;
    if (!buffer.loadFromFile("/Users/julebell/Documents/CantinaBand60.wav")){
        return -1;
    }
    return 0;
}

I am running the following commands from the tutorial:

g++ -c main.cpp -I/Users/julebell/Downloads/SFML-2.6.1-macOS-clang-arm64/include

g++ main.o -o sfml-app -L/Users/julebell/Downloads/SFML-2.6.1-macOS-clang-arm64/lib -lsfml-audio -lsfml-window -lsfml-system

export LD_LIBRARY_PATH=/Users/julebell/Downloads/SFML-2.6.1-macOS-clang-arm64/lib && ./sfml-app

But keep getting this error:

dyld[66727]: Symbol not found: __ZN2sf11SoundBuffer12loadFromFileERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE
  Referenced from: <A1CF6C7D-6311-3AB7-BC67-EBB3F2F60BC7> /Users/julebell/24c-128/musical_trees/musical_trees_test/sfml-app
  Expected in:     <no uuid> unknown
zsh: abort      ./sfml-app

Pages: [1]