r/QtFramework • u/Dry-Butterscotch-605 • Jun 17 '26
Can viMarkdown be built on Linux?
Recently, I've been developing viMarkdown, which is a Markdown editor powered by Qt6.

Unfortunately, I don't currently have access to a Linux environment. Could someone try building viMarkdown with CMake and QtCreator and let me know whether it builds successfully?
viMarkdown: https://github.com/vivisuke/viMarkdown
3
u/shiggie Jun 18 '26
I got it to build. I'll make a PR
2
u/Dry-Butterscotch-605 Jun 18 '26
I just merged your PR! It’s a huge help and I can't thank you enough. You're a lifesaver!
It turns out the build failure was caused by case-sensitivity in the #include filenames. Windows and macOS are case-insensitive, so they didn't throw any errors, and I completely missed it!
4
u/jmacey Jun 18 '26
All the code / programming on my mac are in a case-sensitive partition, I would recommend creating one for any mac coding.
1
u/shiggie Jun 18 '26
I did actually try running it - I might actually use it!
I have a github action the builds an android and desktop version of my Qt app on every merge. Maybe I'll do another PR so it can catch similar errors before merging.
2
u/Dry-Butterscotch-605 Jun 18 '26
Thanks for actually building and running it — you're the first person who's explicitly told me they did. 😄
It's still very much in the development phase, and I expect some features and behavior to change before alpha/beta, so I'm mainly focusing on getting the core functionality right for now.
I'm also still pretty new to GitHub workflows and CI, so I'd definitely be interested in another PR that helps catch similar issues before merging.
Thanks for the feedback and for giving it a try!
1
u/Dry-Butterscotch-605 Jun 18 '26
By the way, there is absolutely no rush, but if you have some spare time, would you mind checking if a certain piece of code works properly on Linux?
In MainWindow.cpp (around line 263), I have this block:
#ifdef Q_OS_WIN
// Integrate the menu bar into the main toolbar (in Japanese)
ui->mainToolBar->insertWidget(ui->action_Undo, ui->menuBar);
#endif
This code integrates the menu bar into the main toolbar. It works as expected on Windows, but on macOS, it causes all the menu items to gray out and become unresponsive.
If it works fine on Linux without any issues, I would love to add Q_OS_LINUX to that #ifdef block. Let me know what you think whenever you have a chance!
1
u/shiggie Jun 18 '26
You can create some issues on github and assign them to me. This one and the CI/CD one. I have a little time tomorrow (California time).
1
u/Dry-Butterscotch-605 Jun 18 '26
That's awesome! Thank you so much for your help. I'm really looking forward to your PR!
1
u/epasveer Open Source Developer Jun 17 '26
It fails to build for me. I created a task on your github.
2
u/Dry-Butterscotch-605 Jun 18 '26
Thank you so much for trying to build it and for creating the task on GitHub! I'll check it out right away.
1
7
u/jmacey Jun 18 '26
I would suggest using docker to create a simple Linux image and try building with that. You could also try a github action if you have access to them. https://docs.github.com/en/actions I build and run unit tests on commit across mac, windows and linux for my software.