• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 4 5 6 7 8 ... 117 Next »

Linker errors when trying to compile
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Linker errors when trying to compile
09-10-2021, 01:34 AM
#5
LittleCoaks Offline
Junior Member
**
Posts: 22
Threads: 16
Joined: Dec 2020
(09-10-2021, 01:13 AM)JosJuice Wrote: DolphinQt.vcxproj has one section for things that don't need to be ran through moc and one section for things that do. You've most likely used the non-moc section when you needed the moc section. (Visual Studio's ability to automatically add things to the vcxproj files doesn't know about moc and just treats everything as if it doesn't need moc. You'll need to edit the vcxproj file manually.)

This fix worked perfectly, thank you!

I'll document what i did just in case someone else with the same problem reads this thread.
I added two header files which used Q_OBJECT. DolphinQt.vcxproj states on ln203 that if Q_OBJECT is used in the header file then the item type must be set to QtMoc. Visual Studio automatically added my two header files to DolphinQt.vcxproj with the item type ClInclude, so i changed it to QtMoc, saved the file, and then was able to build Dolphin.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Linker errors when trying to compile - LittleCoaks - 09-09-2021, 10:29 AM
RE: Linker errors when trying to compile - Zopolis4 - 09-09-2021, 04:23 PM
RE: Linker errors when trying to compile - LittleCoaks - 09-10-2021, 01:09 AM
RE: Linker errors when trying to compile - JosJuice - 09-10-2021, 01:13 AM
RE: Linker errors when trying to compile - LittleCoaks - 09-10-2021, 01:34 AM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 2 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode