• 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 ... 8 9 10 11 12 ... 117 Next »

QTDIR not set question
View New Posts | View Today's Posts

Pages (4): « Previous 1 2 3 4 Next »
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
QTDIR not set question
07-31-2020, 02:14 AM
#21
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,946
Threads: 7
Joined: Oct 2014
Okay, now we're down to a problem I'm familiar with Smile

I'm not sure if Dolphin builds correctly with VS2017 anymore. If you happen to have 16.5 (a slightly older version of VS2019), that will work.

However, there is an even simpler solution. Instead of building using dolphin-emu.sln, build using CMake. Instructions for this are available at https://github.com/dolphin-emu/dolphin/wiki/Building-for-Windows
Find
Reply
07-31-2020, 02:51 AM
#22
charliee1151 Offline
Junior Member
**
Posts: 18
Threads: 1
Joined: Jul 2020
Holy Smokes, Batman.

I've never seen such a thing in my life!

I have 1 error and 7 warnings.


Error is in CMakeLists.txt, Line 9 = "find_package(Qt5 5.9 REQUIRED COMPONENTS Gui Widgets)"

Error:
------------------------------------------------------
CMake Error at Source/Core/DolphinQt/CMakeLists.txt:9 (find_package):
 By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
 asked CMake to find a package configuration file provided by "Qt5", but
 CMake did not find one.

 Could not find a package configuration file provided by "Qt5" (requested
 version 5.9) with any of the following names:

   Qt5Config.cmake
   qt5-config.cmake

 Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
 to a directory containing one of the above files.  If "Qt5" provides a
 separate development package or SDK, be sure it has been installed.
----------------------------------------

Is this requesting an install of QT? (note that I previously indicated that I have NOT installed it), although I don't see QT listed in the link you posted.

Charlie
Find
Reply
07-31-2020, 03:23 AM
#23
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,946
Threads: 7
Joined: Oct 2014
The CMake build should work with just Dolphin's Qt submodule that you already have... I'm not sure why it's failing. If "Qt5_DIR" is set (I don't know if it is), you should unset it.
Find
Reply
07-31-2020, 03:41 AM (This post was last modified: 07-31-2020, 03:52 AM by charliee1151.)
#24
charliee1151 Offline
Junior Member
**
Posts: 18
Threads: 1
Joined: Jul 2020
Nope, no QT5 anything in EnvironmentalVariables.

And, in CMakeLists.txt, the code attempts to point to the existing submodule anyway.

I'll keep looking.

Thanks

Charlie

EDIT: PS: There is no Dolphin.exe listed in the StartupItem list anyway. Possible due to the error?

EDIT#2: Found an errant(?) Build directory in the Dolphin folder. Deleted it, and reloaded from scratch. EXE file now showing in Select list. Building now. Stay tuned
Find
Reply
07-31-2020, 03:56 AM
#25
charliee1151 Offline
Junior Member
**
Posts: 18
Threads: 1
Joined: Jul 2020
As an FYI:
(Thought a new reply would be better than yet-again another edit)

I now have 1 error and 106 warnings.

But the error message is:
"Error C2220 the following warning is treated as an error"

It's in StringUtil.cpp, line 601:
" std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> converter;"

I see the "std" thingy again, wonder if it's related.

Oh well...
Charlie
Find
Reply
07-31-2020, 04:05 AM (This post was last modified: 07-31-2020, 04:05 AM by JosJuice.)
#26
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,946
Threads: 7
Joined: Oct 2014
Whelp, turns out that the Windows CMake build has been broken by a code change once again... I'll try to get that fixed.
Find
Reply
07-31-2020, 04:07 AM
#27
charliee1151 Offline
Junior Member
**
Posts: 18
Threads: 1
Joined: Jul 2020
Ah, there goes my sanity again!

I'll standby

C
Find
Reply
07-31-2020, 07:24 PM
#28
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,946
Threads: 7
Joined: Oct 2014
This has now been fixed. If you have done nothing to the git repo other than "git clone --recursive", you should be able to update to the fixed version of the code with "git pull origin". Hopefully the build will work after that.
Find
Reply
08-01-2020, 01:15 AM
#29
charliee1151 Offline
Junior Member
**
Posts: 18
Threads: 1
Joined: Jul 2020
Success!  I am finally debugging and have just taken the first trace step to stop at "Int main(...)", which IS something I am familiar with.

(As an FYI, after updating the project as per the "git pull origin" stuff, I had major problems getting anything in VS to work.  I had to restart my PC)

General question now:

I believe that what we did was, starting from scratch:
1. Download the whole project via GIT
2. Find some bugs which necessitated some code fixes
3. Download JUST THE FIXES(?) via GIT

So:
1. Am I correct in step #2?
2. Does this mean if I were to dump the whole project and start again, the original download (ie: Step #1) would automatically pickup the fixes?  That is, is the project that is in GIT now fully updated so a future download should function the first time?

Of course, major thanks for your efforts.  

I'm off to learn now...who knows what dumb stuff I might pull in the future!!

Seriously, thanks to all who contributed to my success.

Charlie
Find
Reply
08-01-2020, 01:27 AM
#30
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,946
Threads: 7
Joined: Oct 2014
(08-01-2020, 01:15 AM)charliee1151 Wrote: So:
1. Am I correct in step #2?
2. Does this mean if I were to dump the whole project and start again, the original download (ie: Step #1) would automatically pickup the fixes?  That is, is the project that is in GIT now fully updated so a future download should function the first time?

Yes and yes.
Find
Reply
« Next Oldest | Next Newest »
Pages (4): « Previous 1 2 3 4 Next »


  • 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