Skip to content

Instantly share code, notes, and snippets.

@jocull
Created October 7, 2010 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jocull/615451 to your computer and use it in GitHub Desktop.
Save jocull/615451 to your computer and use it in GitHub Desktop.
#include <QtGui/QApplication>
#include "database.h"
#include "mainwindow.h"
#include "tag.h"
#include "fileref.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
qsrand(QDateTime::currentDateTime().toTime_t());
//Tray handling and application life-cycle settings
if (!QSystemTrayIcon::isSystemTrayAvailable()) {
QMessageBox::critical(0, QObject::tr("Systray"),
QObject::tr("Could not detect any system tray on this OS."));
return 1;
}
//QDir *dir = new QDir("C:/Users/jocull/Desktop");
//QString path = dir->absoluteFilePath("03.flac");
//***This line seems to cause problems
TagLib::FileRef fr("C:/Users/jocull/Desktop/03.flac");
if (!initDB())
return 1;
MainWindow w;
w.show();
return a.exec();
}
#-------------------------------------------------
#
# Project created by QtCreator 2010-09-30T23:19:47
#
#-------------------------------------------------
QT += core gui sql
TARGET = QtTrayTime
TEMPLATE = app
CONFIG(release, debug|release) {
DESTDIR = release
} else {
DESTDIR = debug
}
INCLUDEPATH += taglib-w32-qt/ \
taglib-w32-qt/ape \
taglib-w32-qt/asf \
taglib-w32-qt/flac \
taglib-w32-qt/mp4 \
taglib-w32-qt/mpc \
taglib-w32-qt/mpeg \
taglib-w32-qt/mpeg/id3v1 \
taglib-w32-qt/mpeg/id3v2 \
taglib-w32-qt/mpeg/id3v2/frames \
taglib-w32-qt/ogg \
taglib-w32-qt/ogg/flac \
taglib-w32-qt/ogg/speex \
taglib-w32-qt/ogg/vorbis \
taglib-w32-qt/riff \
taglib-w32-qt/riff/aiff \
taglib-w32-qt/riff/wav \
taglib-w32-qt/toolkit \
taglib-w32-qt/trueaudio \
taglib-w32-qt/wavpack
DEPENDPATH += taglib-w32-qt/ \
taglib-w32-qt/ape \
taglib-w32-qt/asf \
taglib-w32-qt/flac \
taglib-w32-qt/mp4 \
taglib-w32-qt/mpc \
taglib-w32-qt/mpeg \
taglib-w32-qt/mpeg/id3v1 \
taglib-w32-qt/mpeg/id3v2 \
taglib-w32-qt/mpeg/id3v2/frames \
taglib-w32-qt/ogg \
taglib-w32-qt/ogg/flac \
taglib-w32-qt/ogg/speex \
taglib-w32-qt/ogg/vorbis \
taglib-w32-qt/riff \
taglib-w32-qt/riff/aiff \
taglib-w32-qt/riff/wav \
taglib-w32-qt/toolkit \
taglib-w32-qt/trueaudio \
taglib-w32-qt/wavpack
win32 {
CONFIG(debug, debug|release) {
win32-g++:LIBS += ../$${TARGET}/taglib-w32-qt/taglib-debug/libTagLib1.a
} else {
win32-g++:LIBS += ../$${TARGET}/taglib-w32-qt/taglib-release/libTagLib1.a
}
}
SOURCES += main.cpp \
mainwindow.cpp \
secondwindow.cpp \
mythread.cpp \
pleasewait.cpp \
transcodethread.cpp \
FORMS += mainwindow.ui \
secondwindow.ui \
pleasewait.ui
RESOURCES += resources.qrc \
HEADERS += \
transcodethread.h \
secondwindow.h \
pleasewait.h \
mythread.h \
mainwindow.h \
database.h
Starting C:\Users\jocull\Documents\My Dropbox\Code\QT\QtTrayTime-build-desktop\debug\QtTrayTime.exe...
C:\Users\jocull\Documents\My Dropbox\Code\QT\QtTrayTime-build-desktop\debug\QtTrayTime.exe exited with code -1073741515
@jocull
Copy link
Author

jocull commented Oct 7, 2010

Side note, I just copied all of the source over after my TagLib build. *.cpp's and all...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment