repsnapper icon indicating copy to clipboard operation
repsnapper copied to clipboard

Windows compile

Open hurzl opened this issue 13 years ago • 13 comments

maybe someone can tell which versions of libraries can be compiled on mingw32 and work with gtk+-2.20.1?

gettext libiconv glib glibmm gtkmm atk atkmm gtkglext gdkglext cairo cairomm pango pangomm pangocairo guile? dbus? freeglut

etc.???

hurzl avatar Mar 13 '12 12:03 hurzl

I nearly have take 2 of the win32 build bits ready to commit... maybe later tonight

thaytan avatar Mar 13 '12 13:03 thaytan

great.

and somehow our configure.ac doesn't do pkg-config right if cross compiling with --target/--host

AC_CANONICAL_SYSTEM doesn't help neither does setting PKG_CONFIG_PATH or --prefix or whatever

hurzl avatar Mar 13 '12 13:03 hurzl

Can you be more specific?

thaytan avatar Mar 13 '12 14:03 thaytan

none of the necessary include/lib paths are included when compiling necessary libs are all missing in the command when linking

cant replicate it now because my reinstall of mingw is not complete enough

i used ./autogen.sh --target=mingw32 --host=mingw32 --prefix=/usr/local/mingw32/

and did export PKG_CONFIG_PATH=/usr/local/mingw32/lib/pkgconfig which works with all other packages

hurzl avatar Mar 13 '12 14:03 hurzl

I can't say what might be wrong from that description, although I'll not I am using the configure command I put in the WIN32_CROSS_COMPILE.txt file

thaytan avatar Mar 13 '12 14:03 thaytan

ok even if I use configure i get no paths. I hacked together a configure command with all the CFLAGS which is too long to post here .... but that's not a solution

and how do you use pkg-config.exe? wine is no option here

hurzl avatar Mar 13 '12 14:03 hurzl

I'm using Wine to run pkg-config.exe. My new method doesn't use that, but it still relies on wine in one place - which can probably be avoided too.

thaytan avatar Mar 13 '12 14:03 thaytan

I would download the binaries from here:

https://build.opensuse.org/project/show?project=windows%3Amingw%3Awin32

if you're building on windows - it'll save a lot of effort; it'd be even better to plug the last few bits (the minus-minus) packages into that framework - it's easy to fork & create your own repos based on that there & submit them back. I'd be happy to poke Fridrich (the maintainer) about that.

mmeeks avatar Mar 13 '12 16:03 mmeeks

no version information anywhere at those suse packages...

But I now see that arch linux has gtk+-2.24.10 for mingw32 so it has to be possible ... my linux box is too weak for all this.

hurzl avatar Mar 13 '12 18:03 hurzl

I've committed the jhbuild cross compiler infrastructure to git, and an NSIS based installer script. It might be a little fragile at first, but hopefully we can make it more robust over time - but the only thing left blocking an actual release is to get libreprap working on Windows. After that, I think we should do a 2.0 release.

thaytan avatar Mar 17 '12 13:03 thaytan

There's still a problem with the GL window. It doesn't resize properly and takes very long if I load a file.(Win7 64)

hurzl avatar Mar 17 '12 13:03 hurzl

https://github.com/tecan/QPrint3D qt might make a good windows alternative was thinking about using GCodeViz with it.

netpipe avatar Apr 21 '19 08:04 netpipe

Probably yes if someone would like to port it ...?

hurzl avatar Apr 21 '19 13:04 hurzl