Compiling OSX apps on Windows

edited August 2014 in Using Processing

Hi everyone!

I am working on a program that requires this OpenCV library: https://github.com/atduskgreg/opencv-processing It works fine on Windows but do I have any chance that it will work on Mac the same way? The official wiki says: "An application for Mac OS X can only be exported from OS X". If this is true why do I have the option anyway? It even compiles fine without errors, I just don't have a way to test it.

thanks in advance

Max

Tagged:

Answers

  • The latest version of Processing brought back the ability to export for multiple operating systems. What happened when you tried?

  • Thanks for your answer, it seems that the Processing wiki can't keep up with the new versions. The problem is that I don't have a Mac, the app compiles without errors but I have no way to test it.

  • You may try emulating a MacOS inside a Machine Emulator like VirtualBox or VMware Player:

    https://en.wikipedia.org/wiki/Virtualbox https://www.vmware.com/products/player/

    Although Apple made sure that such task would be technically daunting and barely possible! ~X(

  • Thanks for the links, I already thought about that. But it would require an OS X license and hours of work.

  • You could try posting on a forum somewhere and asking somebody with a mac to test it for you.

  • edited August 2014

    @KevinWorkman What leads you to the conclusion that it's supported in the latest version? I don't think this is correct. 2.2.1. still has the button, but exporting from windows to a mac application results in an error message. In the latest source build the mac export option has been disabled on windows. As far as I know the wiki info is correct, you can only export to OS X from OS X.

    Relevant link: https://github.com/processing/processing/issues/2642

  • You could try posting on a forum somewhere ...

    You could even try this forum, you would need to

    (1) zip up the exported OSX application, making sure all the resources are included.

    (2) put it somewhere on the Internet where it can be downloaded from.

    (3) Post a question under 'Share your work' noting the download link, any specialist hardware e.g. camera, joystick etc. and ask for volunteer testers.

    You could even do the same for Linux users :)

    As an incentive you could include a credit for testing in the final release. :D

  • @amnon Ah, right you are. I thought the cross-platform export was truly cross-platform, but you're right. You can only deploy to OS X from OS X.

    In Processing 2.2, it's now possible to export for other platforms. An application for Mac OS X can only be exported from OS X. This is due because of the complexity of how Oracle's JDK works on OS X, and the limitations of the appbundler that we use.

    Source: http://wiki.processing.org/w/Export_Info_and_Tips

  • You could also consider generating a runnable jar instead of a packaged executable.

  • edited August 2014

    Thanks for your support. here is the compiled Mac app: https://dl.dropboxusercontent.com/u/7740278/headup2.app.zip

    I will post it under "share your work" as well. The app needs a webcam to work.

Sign In or Register to comment.