Ok, thanks! I think I almost got it. I added this to my project file:
LIBS += D:\Anthony\Progs\Qt\plugins\designer\PokerTableInfoPlugin.dll
INCLUDEPATH = D:\Anthony\Progs\Qt\include\OwnFiles
LIBS += D:\Anthony\Progs\Qt\plugins\designer\PokerTableInfoPlugin.dll
INCLUDEPATH = D:\Anthony\Progs\Qt\include\OwnFiles
To copy to clipboard, switch view to plain text mode
But I'm still getting this error:
release/MainWindow.o:MainWindow.cpp:(.text$_ZN15Ui_myMainWindow7setupUiEP11QMainWindow
[Ui_myMainWindow
::setupUI(QMainWindow*)]+0x5b0
: undefined reference to
'PokerTableInfo::PokerTableInfo(QWidget*)'
release/MainWindow.o:MainWindow.cpp:(.text$_ZN15Ui_myMainWindow7setupUiEP11QMainWindow
[Ui_myMainWindow::setupUI(QMainWindow*)]+0x5b0: undefined reference to 'PokerTableInfo::PokerTableInfo(QWidget*)'
To copy to clipboard, switch view to plain text mode
(Note: I split the error for readability. It's one big line normally.)
MainWindow is a QMainWindow in the application I'm trying to compile. The Ui_myMainWindow stuff is created by qmake from my MainWindow.ui file.
So G++ finds the dll, but I'm guessing the linker for some reason doesn't. I tried copying the dll into the project's directory, but that doesn't seem to do anything.
* Edit: Thinking about it, it would be pretty stupid if my application needed a dll to run, so I just changed it to simply include the PokerInfoTable source files. Compiles perfectly now. Having the widget plugin is nice though, now I can design in Designer and then just build with the source files. But still, I'd like to know what was causing these errors, would be nice to know for the future.
Bookmarks