I have os x mavericks with Processing 2. I want to make all the sketches run in 32 bit because I am using a library that needs this (OpenCV). I can't find the option in the Preferences. Please help!
in Finder select the "Processing 2" application and get info on it (File -> Get Info). there should be a checkbox in the info panel for running in 32bit mode. Questions like this are best asked on Ask Different
Related
I have problems with running OSX applications with XCode. Sometimes (about 30% of the time) the application doesn't start and "XCode cannot run using the selected / Choose a destination with a supported architecture in order to run on this system." message is displayed instead.
This is NOT a duplicate of other questions, because this is not a problem with a project file (in such case the app would never run, and in my case the behaviour is random - sometimes it starts, sometimes not). This only happens with OSX applications.
XCode 5.0.2 (5A3005), OSX 10.9.3, but I had this problem since the first version of XCode 5 on both OSX 10.8 and 10.9.
Have you ever encountered similar issue?
Go ahead and attempt to check these settings: changing architecture settings. I have a feeling that sometimes your running on the 32 bit sim and sometimes the 64 bit sim so your running into the issue below.
Here's another link referencing how to change the standard Architecture for OSX: Changing OSX Architecture and ensure you're no longer set to be using gcc and only using LLVM: Other adjustments to bundle plist
I want to deliver self-contained application packages on Windows, Linux and Mac so I have build my JavaFX application on all three platforms. I will allow my users to download these native bundles from my application's download web page but I have a confusion regarding MAC users because For Linux and Windows, JDK/JRE 7 comes in two download options
for x86
for x64.
but for MAC we have only option for x64.
Java Download Page shows Java/Jre is not available for 32 bit MAC OSX to run JavaFX application. Does it mean JavaFX will run on only x64 bit MAC OSX?
If it is so, then my issue has been solved, as I have already bundled my Javafx application as a "Self-Contained Application Packages" after run custom build.xml script on x64 MAC OSX but if it is not so, the user can also run JavaFX application on x86 MAC OSX but in that case my "Self-Contained Application Packages" for mac would not run on x86 MAC OSX.
So I am planning to give an additional zip file that either contains app (without copy of jre) or a plain self executable jar. But I'm bit worried regrading - what exactly I need to bundle into that zip file with self executable JAR so requirements must be met to be able to run my JavaFX application in following conditions?
conditions are : -
If user has x86 MAC OSX.
If java is already installed on user's system. And he would not like to download the "Self-Contained Application Packages" from our download page.
Big download size.
So what among the following two options suits if user have x86 MAC OSX or if he has already installed java on his system or he would not like to download "Self-Contained Application Packages" from download page due to big download size?
Option are -
APP ( without inbuilt copy of JRE)
Or only a self executable jar.
I am not sure that Mac OS X 10.7.3 (Lion) or later version can run on x86 system.So in case of #1 option the user may have trouble if he is using x86 system. Then he may need to change info plist file and replace the JavaAplicationStub.
In case of #2 option I think is better as the user need to download the JRE only and the JAR should run using "java -jar" command.
Please suggest which option is better in case if JavaFX application can run on x86 bit MAC OS X?
Does Java 7 run on only x64 bit MAC OS X?
Oracle Java 7 for OS X is only available for 64 bit architectures, there is no 32 bit version of the software.
I am new to UNIX and Mac OS X systems and wondering how debugging on Max OS X works. I am from Windows world and I am familiar with debugging system in Windows like attaching to a process with DebugActiveProcess, reading/writing memory with Read/WriteProcessMemory and so on...
I don't know if Mac OS X's debugging also woriking like Windows but
I want to know how a debugger in Max OS X communicates with a target process. Can anyone give me some hits of a start point or documents where I should read first?
The debugging interface on OS X and most Unixes is called ptrace.
Type man ptrace at a command prompt for information on how ptrace communicates between processes, and also have a look at the header at /usr/include/sys/ptrace.h
The typical debuggers are gbd and (recently) lldb. Many IDEs on OS X also use these. So.. "man gdb" is a good starting point.
As user1118321 mentioned, installing the Xcode toolset would be a good idea, if you've not done so already. It includes compilers, an IDE, debuggers, profilers, and graphical programs for these tools.
You didn't state which language, or tools you're using, so for the purposes of this answer I'll assume you're using Objective-C with either gcc or clang to compile your code and link it into an executable. If you're using some other language, such as java or ruby, the equivalent from windows probably exists for OS X as well.
In general, unix uses GDB for debugging, and OS X is no different. You won't always attach it to a running process, I find that's more common to start a process in the debugger, although there do exist tools (such as Instruments) that will profile a running process.
If you're using XCode, there's a whole suite of debugging tools built in that use gdb under the hood. I suggest you start reading some of the developer documentation here http://developer.apple.com/library/ios/#documentation/Xcode/Conceptual/ios_development_workflow/130-Debugging_Applications/debugging_applications.html and then ask around if there's something in particular you want to know about.
If you've installed Xcode, look at all of the applications installed in /Developer/Applications, at a minimum you should find
Xcode - write and debug, design interfaces here
Instruments - profile your application, look for memory leaks
Icon Composer - create slick icons for your applications
Graphics Tools - used to help work with OpenGL and Quartz mainly
I am developing a mac program in an intel mac, under OS X. It needs to be also an universal binary, so guess with Xcode one can create the universal binary (UB), am I wrong?
But my question is if there is some kind of virtual machine or such other method, so I can test whether the binary powerpc part runs ok, but I have only the intel mac.
I have also a PS3, and as it has a pwerpc proc, I wonder if the command line application could be tested here.
Thanks
Xcode can make a universal binary
It can be tested using rosetta on your intel mac. To test with rosetta, select the file in finder, select file>>get info, tick "Open using rosetta", and then start the app
It can not be tested on your PS3
I want to ship a single 32/64-bit universal binary of my desktop Mac OS X Cocoa app. I don't want to ship two versions.
I want it to run as a 64-bit process on Snow Leopard.
However, if the app is launched on Leopard, I want to always force it to run as a 32-bit process.
NOTE: I know that in the Finder 'Get Info' window you can click the 'Open in 32-bit mode' checkbox to achieve this. That's nice, but what I really want is a way to automatically, always force this behavior on Leopard only. On Snow Leopard the app should run 64-bit unless the user wants to change the setting mentioned above.
Can this be done? If so, how? thx.
Set the minimum system version per architecture key in your Info.plist file :)