Compiling DB4S on Windows #3150
Replies: 6 comments 10 replies
-
As a thought, we use Wix Toolset instead of NSIS these days for the packaging step. And yeah, we need to update the wiki page to mention that too. 😄 Looking on the Windows nightly build VM, it has Qt 5.12.8 installed. That's probably where the MSVC 2017 compatibility is. That being said, the macOS build VM has Qt 5.15.2 installed on it (just checked). So there shouldn't be any DB4S source code compatibility problems with your selection of Qt 5.15.2 on Windows. In theory. 😉 |
Beta Was this translation helpful? Give feedback.
-
Hmmm, thinking about it more. Perhaps the right approach for Win here would be to try installing VS 2019 instead? That'd then probably work with the Qt 5.15.2 piece. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Re: SQLCipher |
Beta Was this translation helpful? Give feedback.
-
Yeah. Building SQLCipher yourself shouldn't be too hard. This is the command we use for it in our nightly build script: sqlitebrowser/installer/windows/nightly_build_scripts/win64build.bat Lines 95 to 97 in a78dd02 That gets run in a clone of the SQLCipher GitHub source repo (https://github.com/sqlcipher/sqlcipher). Earlier in the build script is this, though ignore the branch name / version number in the comment as that was from when the script was originally created: sqlitebrowser/installer/windows/nightly_build_scripts/win64build.bat Lines 26 to 36 in a78dd02 Note that I'm not 100% sure if the very latest release works. I have a faint memory that we might have needed to keep back a minor version or so, for compiling with VS 2017 on the Windows build server. Not super sure any more. 😉 |
Beta Was this translation helpful? Give feedback.
-
How is stuff turning out? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
@longnguyen2004 - You've built this on Windows, right? Can I pick your brains?
I've installed A Win 10 VM and downloaded 'the bits'
Using VS 2017 to compile 'ALL_BUILD' works fine - no errors.
But the .exe produced is 16 MB, not ~ 6 MB. Also running it doesn't work.
(this was copying the .exe to a directory containing the current nightly)
Building the 'INSTALL' project didn't work
I'll add that the step 'build project file' generated an error, but 'sticking my head in the sand and ignoring it' seemed to work, and it created a solution file anyway?
I've been following the Win 64 build guide and currently got up to the install part (https://github.com/sqlitebrowser/sqlitebrowser/wiki/Win64-setup-%E2%80%94-Step-13-%E2%80%94-Install-DB4S-locally). I assumed I didn't need to actually follow this - I could just grab the .exe and plop it in the existing DB4S directory?
For the avoidance of doubt, I have no idea what I'm doing. I'm OK with computers, but only in so far as working in my comfort zone ... tinkering with cmake and knowing what the wacky errors mean is outside that!
When building 'ALL-BUILD' it did report this:
3>qhexedit.vcxproj -> C:\git_repos\sqlitebrowser\libs\qhexedit\Debug\qhexedit.lib
4>------ Rebuild All started: Project: qscintilla2, Configuration: Debug x64 ------
4>C:/git_repos/sqlitebrowser/libs/qscintilla/Qt4Qt5/SciAccessibility.h(0): Note: No relevant classes found. No output generated.
4>Generating Qsci/moc_qsciscintilla.cpp
Also, when installing Qt, I couldn't see a 2017 flavour, so selected both 2015 and 2019...
Any help you can throw my way would be appreciated. :)
Beta Was this translation helpful? Give feedback.
All reactions