whpthomas / GPX

Gcode to x3g conversion post processor
GNU General Public License v2.0
98 stars 16 forks source link

Source for Windows version? #11

Open LongNguyenP opened 9 years ago

LongNguyenP commented 9 years ago

Dear wingcommander

Is it possible that you share the source code for the windows version of GPX.

All the bests

dcnewman commented 9 years ago

Ummmm, the sources are here at github.... Where you posted this message.... There's only one "source" which is for all platforms. You just need to download it.

LongNguyenP commented 9 years ago

Hi, thanks for replying

I downloaded the source and manually import the C file to visual studio but some #include commands gave errors when compiled. I googled and realized that the headers used in the #include commands are from Linux. That is why I am asking if the author has a source code for Windows version (I noticed the author has already released a Window executable for GPX). Thanks

dcnewman commented 9 years ago

Or, perhaps the author uses a different build environment? I'm guessing cygwin but since I don't build on Windows myself, it may be some other build environment. I do, however, know that a couple of people do just pull these sources and build them on Windows. (And clearly the sources do have #ifdef's for Windows in them.)

davidkaplan commented 9 years ago

I'm having the same issue trying to build on Windows (using MinGW). The build fails when it is unable to find termios.h. After looking, I believe that termios.h is not a standard header on Windows. Any solutions for Windows folks?

dcnewman commented 9 years ago

Builds just fine for me on Windows 7 using cygwin. MinGW is well known to not provide uio.h and termios.h (along with plenty of other i/o related libraries such as sockets). So don't bother trying with MinGW.

I installed cygwin along with the cygwin gcc core and tools. Also worked just pulling the latest gcc tarball and building that. If you pull the mingw gcc distro within cygwin, that will not work since, again, the MinGW builds do not provide necessary libraries and header files.