Rainer78
1st February 2013, 18:04
Hi @ all,
after several problems building the new QT5 with MinGW for X64 on Windows 7, it finally works.
Now I want to play a simple mp3 file. the QMediaPlayer ssems to require a lot of system resources, so I am trying some different librarys.
My development enviroment is the QT Creator and I have the following directories:
c:\qt\qt5 (containing the compiled QT5 directories like qtbase etc)
c:\qt\mingw64-4.7.2 (including the bin / lib / include etc directories)
I have downloaded the BASS for 64bit from here http://www.un4seen.com/forum/?topic=9038
I have added the following lines to my .pro file
win32: LIBS += -L$$PWD/lib/ -lbass
INCLUDEPATH += $$PWD/
DEPENDPATH += $$PWD/
The "lib" folder contains only the bass.lib file. The bass.dll is in the compiler output directory (there where the created exe file will be created).
In the constructor of my dialog I have the following code:
....
#include "bass.h"
....
....
Player::Player(QWidget *parent) :
QDialog(parent),
ui(new Ui::Player)
{
int mybassVersion;
mybassVersion = BASS_GetVersion();
if (mybassVersion!=BASSVERSION) {
QMessageBox msgBox;
msgBox.setText("An incorrect version of BASS.DLL was loaded");
msgBox.exec();
}
....
}
But everytime I start the program, the program terminated with an "Segmentation fault" message. :(
I haven't started with writing the source code I want (to play an MP3 file) because the "basic functions" doesn't work.
Can someone help me to get this simple program run?
Maybe someone has a little demo application of how to use the BASS library with the QT creator.
Thank you very much.
Best regards,
Rainer
after several problems building the new QT5 with MinGW for X64 on Windows 7, it finally works.
Now I want to play a simple mp3 file. the QMediaPlayer ssems to require a lot of system resources, so I am trying some different librarys.
My development enviroment is the QT Creator and I have the following directories:
c:\qt\qt5 (containing the compiled QT5 directories like qtbase etc)
c:\qt\mingw64-4.7.2 (including the bin / lib / include etc directories)
I have downloaded the BASS for 64bit from here http://www.un4seen.com/forum/?topic=9038
I have added the following lines to my .pro file
win32: LIBS += -L$$PWD/lib/ -lbass
INCLUDEPATH += $$PWD/
DEPENDPATH += $$PWD/
The "lib" folder contains only the bass.lib file. The bass.dll is in the compiler output directory (there where the created exe file will be created).
In the constructor of my dialog I have the following code:
....
#include "bass.h"
....
....
Player::Player(QWidget *parent) :
QDialog(parent),
ui(new Ui::Player)
{
int mybassVersion;
mybassVersion = BASS_GetVersion();
if (mybassVersion!=BASSVERSION) {
QMessageBox msgBox;
msgBox.setText("An incorrect version of BASS.DLL was loaded");
msgBox.exec();
}
....
}
But everytime I start the program, the program terminated with an "Segmentation fault" message. :(
I haven't started with writing the source code I want (to play an MP3 file) because the "basic functions" doesn't work.
Can someone help me to get this simple program run?
Maybe someone has a little demo application of how to use the BASS library with the QT creator.
Thank you very much.
Best regards,
Rainer