Fwd: CMake Windows build: should it work?
Dear Inkscape Team,
I was on travel an wanted to work a bit on my embroidery stuff on the way. Unfortunately I just had a Windows laptop with me and I found that building the latest trunk version on Windows with CMake doesn't work out of the box.
First question: is this supposed to work or is CMake for Windows work in progress?
I could only get it to build after adding a few libs. Also the order in which libs are given to the linker I had to change. The make install target just installs gettext stuff, nothing else, which makes it tricky to run the built exe.
In case this is known to not work, any nobody is working on this, I could work on fixing this (I am already quite far).
Otherwise are there some docs on how to configure it correctly with CMake on Windows?
Best regards,
Michael
On Thu, Mar 31, 2016 at 08:30:13AM +0200, Michael Soegtrop wrote:
Dear Inkscape Team,
I was on travel an wanted to work a bit on my embroidery stuff on the way. Unfortunately I just had a Windows laptop with me and I found that building the latest trunk version on Windows with CMake doesn't work out of the box.
First question: is this supposed to work or is CMake for Windows work in progress?
It does need to work, but I don't think anyone has had a chance to look into it for Windows, at least not to the degree that it should "just work".
One of the reasons I've favored switching from automake is in order to unify the windows/osx/linux builds, to make package maintenance easier, and so that we reduce the overhead involved in making releases.
I could only get it to build after adding a few libs. Also the order in which libs are given to the linker I had to change. The make install target just installs gettext stuff, nothing else, which makes it tricky to run the built exe.
In case this is known to not work, any nobody is working on this, I could work on fixing this (I am already quite far).
That would be absolutely wonderful. Feel free to shoot patches my way for review and integration.
I gather you already know cmake relatively well, but will mention a tutorial I wrote up earlier for anyone wanting to bone up on cmake:
http://wiki.inkscape.org/wiki/index.php/Working_with_CMake
I've also established a TODO page for cmake work in wiki:
http://wiki.inkscape.org/wiki/index.php/CMake_Tasks
The windows details are sketchy and likely obsolete, so please feel free to add any follow up tasks you think of.
Otherwise are there some docs on how to configure it correctly with CMake on Windows?
README contains some rather basic directions on using cmake. Adding some Windows-specific directions there might be ok, as long as they're general and relatively high level.
More technical stuff, as well as troubleshooting advice, is probably better placed in the Inkscape wiki
http://wiki.inkscape.org/wiki/index.php/Compiling_Inkscape http://wiki.inkscape.org/wiki/index.php/Compiling_Inkscape_on_Windows
Note the latter link is pretty focused on btool, which my ambition is to eliminate once we have cmake/windows working. I'm hoping a lot of the platform specific directions in wiki can just go away, and we can have a consistent set of build directions that work on most any platform.
Bryce
Dear Bryce,
In case this is known to not work, any nobody is working on this, I could work on fixing this (I am already quite far).
That would be absolutely wonderful. Feel free to shoot patches my way for review and integration.
Ok, will do.
Any thoughts on my other post from yesterday (about a different method to build/deliver the Windows devel libs?)
Best regards,
Michael
participants (2)
-
Bryce Harrington
-
Michael Soegtrop