Created
October 7, 2010 16:56
-
-
Save jocull/615451 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------- | |
# | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Side note, I just copied all of the source over after my TagLib build. *.cpp's and all...