Win32 build

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Win32 build

Brad Pitcher
Hi folks,
I know that building for windows has been a challenge, but I think I have found an easier way. I cross-compiled it using mingw-cross-env (http://mingw-cross-env.nongnu.org/). I did test it but I may have missed something. Can anyone interested please download and try this? This is a build of the official openscad git head.
If it is deemed that everything is working I will write up instructions in the wiki. I believe it may be possible to do a 64-bit build this way as well.

The links:
https://github.com/downloads/brad/openscad/openscad-2011.09.26.win32-installer.exe
https://github.com/downloads/brad/openscad/openscad-2011.09.26.win32.zip

Thanks!
Brad
Reply | Threaded
Open this post in threaded view
|

Re: Win32 build

Kliment Yanev
On 09/26/2011 05:24 PM, Brad Pitcher wrote:
Hi folks,
I know that building for windows has been a challenge, but I think I have found an easier way. I cross-compiled it using mingw-cross-env (http://mingw-cross-env.nongnu.org/). I did test it but I may have missed something. Can anyone interested please download and try this? This is a build of the official openscad git head.
If it is deemed that everything is working I will write up instructions in the wiki. I believe it may be possible to do a 64-bit build this way as well.

The links:
https://github.com/downloads/brad/openscad/openscad-2011.09.26.win32-installer.exe
https://github.com/downloads/brad/openscad/openscad-2011.09.26.win32.zip

Thanks!
Brad
_______________________________________________ OpenSCAD mailing list [hidden email] http://rocklinux.net/mailman/listinfo/openscad
Nice work! It seems to work okay. I'll do some more testing soon. I don't believe there is a need for a 64 bit build as the static 32 bit one should work fine on 64 bit systems too.

Kliment
Reply | Threaded
Open this post in threaded view
|

Re: Win32 build

Brad Pitcher
Cool! I'm glad it doesn't work only for me. ;)
I have added an instruction page on the wiki.
http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Cross-compiling_for_Windows_on_Linux/UNIX

Please just let me know if you have any questions.
-Brad

On Mon, Sep 26, 2011 at 8:35 AM, Kliment Yanev <[hidden email]> wrote:
On 09/26/2011 05:24 PM, Brad Pitcher wrote:
Hi folks,
I know that building for windows has been a challenge, but I think I have found an easier way. I cross-compiled it using mingw-cross-env (http://mingw-cross-env.nongnu.org/). I did test it but I may have missed something. Can anyone interested please download and try this? This is a build of the official openscad git head.
If it is deemed that everything is working I will write up instructions in the wiki. I believe it may be possible to do a 64-bit build this way as well.

The links:
https://github.com/downloads/brad/openscad/openscad-2011.09.26.win32-installer.exe
https://github.com/downloads/brad/openscad/openscad-2011.09.26.win32.zip

Thanks!
Brad
_______________________________________________ OpenSCAD mailing list [hidden email] http://rocklinux.net/mailman/listinfo/openscad
Nice work! It seems to work okay. I'll do some more testing soon. I don't believe there is a need for a 64 bit build as the static 32 bit one should work fine on 64 bit systems too.

Kliment

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad


Reply | Threaded
Open this post in threaded view
|

Re: Win32 build

donbright
Brad this is absolutely beautiful!!!  I tested your .zip file on
almost every standard example using ThrownTogether renderer and CGAL
renderer on Windows XP 32 bit. Everything seemed to work OK. Thank
you.

-DB

Reply | Threaded
Open this post in threaded view
|

Re: Win32 build

donbright
Having problems with your compilation instructs:

don@age:/tmp$ sudo hg clone ssh://[hidden email]/bradpitcher/mingw-cross-env

The authenticity of host 'bitbucket.org (207.223.240.182)' can't be established.

RSA key fingerprint is 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40.

Are you sure you want to continue connecting (yes/no)? yes

remote: Warning: Permanently added 'bitbucket.org,207.223.240.182'
(RSA) to the list of known hosts.

remote: Permission denied (publickey).

abort: no suitable response from remote hg!

Reply | Threaded
Open this post in threaded view
|

Re: Win32 build

Brad Pitcher
I suppose the https link is probably better:
hg clone https://bitbucket.org/bradpitcher/mingw-cross-env
and there is no need for sudo here.
Please try that.


On Mon, Sep 26, 2011 at 7:12 PM, Don Bright <[hidden email]> wrote:
Having problems with your compilation instructs:

don@age:/tmp$ sudo hg clone ssh://hg@.../bradpitcher/mingw-cross-env

The authenticity of host 'bitbucket.org (207.223.240.182)' can't be established.

RSA key fingerprint is 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40.

Are you sure you want to continue connecting (yes/no)? yes

remote: Warning: Permanently added 'bitbucket.org,207.223.240.182'
(RSA) to the list of known hosts.

remote: Permission denied (publickey).

abort: no suitable response from remote hg!
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad

Reply | Threaded
Open this post in threaded view
|

Re: Win32 build

Giles Bathgate-2
I compile RapCAD on windows using the QT IDE for windows which uses
mingw and the gnu c++ compiler. It certainly makes things a lot
easier! I suggested to Marius a switch to mingw at that time, I
remember him saying that he thought it might be preferable for windows
developers to use the familiar tools such as Visual Studio.

Reply | Threaded
Open this post in threaded view
|

Re: Win32 build

kintel
Administrator
In reply to this post by Brad Pitcher
On Sep 26, 2011, at 17:24 PM, Brad Pitcher wrote:

> I cross-compiled it using mingw-cross-env (http://mingw-cross-env.nongnu.org/). I did test it but I may have missed something. Can anyone interested please download and try this?

Nice! This could turn out to be really convenient for building binaries.

In earlier versions of OpenSCAD, we did use mingw for the Windows build, but this was changed to Visual Studio for Windows developers to be better able and willing to contribute. I'm assuming, based on the few Windows developers I've talked to, that Visual Studio is the tool of choice for most people working on that platform (as Giles mentioned).

Having OpenSCAD compilable on both mingw and Visual Studio shouldn't be a problem though. Then we can just use the compiler of choice for the brave soul(s) willing to produce Windows binaries :)

 -Marius