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 - MaximumTrainer

Pages: [1]
1
Audio / 2.3 - linked frameworks?
« on: May 12, 2015, 01:38:30 am »
I am using SFML 2.1 and wanted to upgrade to 2.3.
I'm using SFML just for audio playback inside a Qt software. (maximumtrainer.com)

For 2.1, I just had to have sfml-audio and sfml-system + sndfile.framework in order to use it.
Now it seems there is more linked libs to sfml-audio (list at the bottom)

Wondering if it's worth it to upgrade to 2.3 on OSX, I upgraded on Windows but I'm having problem with OSX dependencies using @rpath. With 2.1 deployment was easy, but now I have a bunch of install_name_tool to do.  Is there an easy way to integrate 2.3 with Qt that i'm missing?

Thank you for the great framework, I wish it was integrated in Qt instead of the audio they use.


   @rpath/libsfml-audio.2.3.dylib (compatibility version 2.3.0, current version 2.3.0)
   @rpath/libsfml-system.2.3.dylib (compatibility version 2.3.0, current version 2.3.0)
   @rpath/../Frameworks/OpenAL.framework/Versions/A/OpenAL (compatibility version 1.0.0, current version 1.16.0)
   @rpath/../Frameworks/vorbisenc.framework/Versions/A/vorbisenc (compatibility version 3.0.0, current version 3.10.0)
   @rpath/../Frameworks/vorbisfile.framework/Versions/A/vorbisfile (compatibility version 7.0.0, current version 7.6.0)
   @rpath/../Frameworks/vorbis.framework/Versions/A/vorbis (compatibility version 5.0.0, current version 5.7.0)
   @rpath/../Frameworks/ogg.framework/Versions/A/ogg (compatibility version 9.0.0, current version 9.2.0)
   @rpath/../Frameworks/FLAC.framework/Versions/A/FLAC (compatibility version 12.0.0, current version 12.0.0)
   /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
   /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 19.0.0)

2
Audio / [SOLVED] Using sfml-audio OSX and Qt
« on: November 04, 2014, 04:46:12 pm »
Hi there,

I'm using Qt 5.3.1 and i'm trying to use use sfml-audio on OSX (10.9). I can compile the code fine but at execution, i'm having problem using the .dylib and get a strange message (see bottom of post)

I was able to successfully build ans use sfml-audio with the windows version (qt 5.3.1 and msvc2012).
I'm kind of new on OSX, I used the nice tutorial made to install SFML on OSX, everything went good. If you have any clue why it doesn't accept the .dylib at runtime on OSX, would be appreciated to share! ;)


Here is the windows .pro file
QT       += core gui widgets webkit webkitwidgets
QT       -= sql
#CONFIG += console


TARGET = MaximumTrainer
TEMPLATE = app

CONFIG += qwt qt thread
RC_FILE = myapp.rc

# For Release, disable QDebug for performance
#DEFINES += QT_NO_DEBUG_OUTPUT

#src files for qwt
INCLUDEPATH += C:/Dropbox/qwt-6.1.0/src

#SFML
INCLUDEPATH += C:/Dropbox/SFML-2.1-windows-vc11-32bits/include
LIBS +=  C:/Dropbox/SFML-2.1-windows-vc11-32bits/lib/sfml-audio.lib



Here is the OSX .pro file:
QT       += core gui widgets webkit webkitwidgets
QT       -= sql

TARGET = MaximumTrainer
TEMPLATE = app

CONFIG += release
CONFIG += qt thread
CONFIG += c++11
CONFIG += x86_64
CONFIG -= i386


#src files for qwt
INCLUDEPATH += /Users/tourlou2/Dropbox/qwt-6.1.0/src

macx {
    QMAKE_MAC_SDK = macosx10.9
}


LIBS += /Users/tourlou2/Dropbox/SFML-2.1-osx-clang-universal/lib/libsfml-audio.2.1.dylib
LIBS += /Users/tourlou2/Dropbox/SFML-2.1-osx-clang-universal/lib/libsfml-system.2.1.dylib

INCLUDEPATH +=  /Users/tourlou2/Dropbox/SFML-2.1-osx-clang-universal/include


QMake step:
Starting: "/Users/tourlou2/Qt5.3.1/5.3/clang_64/bin/qmake" /Users/tourlou2/Dropbox/PowerVelo2_mac3/PowerVelo2.pro -r -spec macx-clang CONFIG+=x86_64

When I try to run the project inside QtCreator:
Starting /Users/tourlou2/Dropbox/build-PowerVelo2-Desktop_Qt_5_3_clang_64bit-Release/MaximumTrainer.app/Contents/MacOS/MaximumTrainer...
dyld: Library not loaded: @executable_path/../Frameworks/libsfml-audio.2.dylib
Referenced from: /Users/tourlou2/Dropbox/build-PowerVelo2-Desktop_Qt_5_3_clang_64bit-Release/MaximumTrainer.app/Contents/MacOS/MaximumTrainer
Reason: no suitable image found. Did find:
/Users/tourlou2/Dropbox/build-PowerVelo2-Desktop_Qt_5_3_clang_64bit-Release/MaximumTrainer.app/Contents/MacOS/../Frameworks/libsfml-audio.2.dylib: file too short
/Users/tourlou2/Dropbox/build-PowerVelo2-Desktop_Qt_5_3_clang_64bit-Release/MaximumTrainer.app/Contents/MacOS/../Frameworks/libsfml-audio.2.dylib: file too short
/usr/local/lib/libsfml-audio.2.dylib: file too short
The program has unexpectedly finished.

3
Audio / [SOLVED] Qt Resources - Loading a sound from a ressource
« on: October 16, 2014, 06:22:52 pm »
Hi guys,

First thanks SFML, I just tried it for the first time and it works so easily!

In my Qt project, all my sounds are mapped to resources,
I would like to play the sound from the resource instead of from the hard drive.

I can play the sound fine when I load from the disk, however, is there a way to use the ressource syntax to load a sound?

Thanks in advance!

    if (!buffer.loadFromFile(":/sound/resume")) {
        qDebug() << "cant play";
        return 0;
    }
//    if (!buffer.loadFromFile("C:\\Dropbox\\PowerVelo2\\sound\\CadenceTooHigh.wav")) {
//        qDebug() << "cant play";
//        return 0;
//    }
    sf::Sound sound(buffer);
    sound.play();

I suspect I may have to use "loadFromMemory" as the file should be in memory (it is inside the .exe)

Pages: [1]
anything