osx-snow-leopard

Android NDK on Mac OSX - quick install w/o Developer Tools

戏子无情 提交于 2019-12-11 18:47:09
问题 I was just suggested to port some signal processing code to use the Android NDK to speed up the process, but I'm wondering 1. where to install it to and 2. what tool-chain to use I'd prefer not downloading the 3.5GB Mac Developer Tools if possible. I don't have access to an install cd that has it. Want to try and get this done asap. Does anyone know a way to get NDK development running quickly on OSX(snow leopard)? 回答1: A version of make is included with the Android NDK. Simply add {NDK

python subprocess: how to run an app on OS X?

寵の児 提交于 2019-12-11 18:34:34
问题 I am porting a windows application to OS X 10.6.8. It is a new platform for me and I am facing some difficulties. The application is a small webserver (bottle+waitress) which is starting a browser (based on chromium embedded framework) thanks to a subprocess call. The browser is an app file and runs ok when started from gui. I am launching it this way: subprocess.Popen([os.getcwd()+"/cef/cefclient.app", '--url=http://127.0.0.1:8100']) Unfortunately, this fails with OSError: permission denied

Apache2 doesn't work on my new Mac Snow Leopard installation (Mac OS X 10.6.4)

若如初见. 提交于 2019-12-11 15:27:45
问题 I've installed snow leopard on the old tiger and I tried to run apache2 by clicking system preferences->sharing->web sharing. It seems to run but if I try to access http://localhost or http://127.0.0.1 or http://192.168.1.6/ (my ip on my network) it doesn't work. I don't know where is the log file (no files on /private/var/log/apache2/). I've seen that the port in /etc/httpd.conf is 80. But I cannot see the process on Activity Monitoring panel: there is not any httpd or apache process running

Git repository gets corrupted when I do a large commit: “Possible repository corruption on the remote side”

喜夏-厌秋 提交于 2019-12-11 14:04:12
问题 A friend of mine and I have been trying to use git for a project. It is hosted on his server, and I git clone it as: git clone username@IP.ADD.RE.SS:/path/to/git/repos.git Pretty standard stuff, and it works great for a while. But every time one of us has added a large commit (which git supposedly handles very well), of the order of 100MB or so, the git repository gets kind of broken. Basically, at this point I will be able to push new changes and pull other changes (I think), but when I try

Trouble in understanding what Ruby version I am “actually”/“effectively” running

十年热恋 提交于 2019-12-11 11:05:35
问题 I am on Mac OS an I am running Snow Leopard Version 10.6.8. I am using RVM in order to manage my Ruby installations (and so to use the Ruby on Rails framework) but I am in trouble when I see some outputs in the log, mostly related to the current version in use when I get some warning/error message. That is, I previously run these commands in the terminal window: $ which ruby /<ABSOLUTE_PATH>/.rvm/rubies/ruby-1.9.2-p290/bin/ruby $ rvm install 1.9.3 Installing Ruby from source to: /<ABSOLUTE

#include <FreeImage.h> not found

亡梦爱人 提交于 2019-12-11 09:25:18
问题 I have compiled FreeImage from source and installed it. When I run sudo make install in installs the following files on my system /usr/local/include/FreeImage.h /usr/local/lib/libfreeimage-3.10.0.dylib /usr/local/lib/libfreeimage.a However in my C++ program it says error file not found when I do this: #include <FreeImage.h> I have tried adding this to my system path file: sudo vi /etc/paths #FreeImage /usr/local/include /usr/local/lib But C++ still cannot find my #include inside Xcode or with

Java KeyEvents on Mac

两盒软妹~` 提交于 2019-12-11 04:10:03
问题 I am trying to write a program that uses key events to activate a method. The code works on Windows machines but when transered to Mac it does no respond to my "Spacebar" being pressed. I presume this is to do with the different key codes used. public void keyPressed(KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_SPACE) { System.out.println("SPACEBAR"); grid.stepGame(); } } Any ideas how i can get this working on Mac? Edit - The problem has been solved using the answer below - For note

OpenCL compiler preprocessing definitions?

旧街凉风 提交于 2019-12-11 03:52:09
问题 I am developing OpenCL code on Snow Leopard and understand that the OpenCL just-in-time compilation is done by Clang/LLVM. Is the C preprocessor used at all? Is there a way to set preprocessing definitions with the compiler? What definitions exist? I would like the code to be aware of whether it is compiled for CPU or GPU so I for instance can use printf statements for debugging. 回答1: the clBuildProgram API takes compiler arguments (the const char * options parameter). -D MYMACRO is

ImageMagick not converting

拟墨画扇 提交于 2019-12-11 03:13:10
问题 I've just installed a fresh copy of ImageMagick from source onto Snow Leopard 1.6.8 following these instructions minus the sudo ldconfig /usr/local/lib command because that doesn't seem to exist on Mac. Then I added this to my global bash file: export LD_LIBRARY_PATH=$HOME/local/imagemagick/lib:$LD_LIBRARY_PATH Now when I run which identify I get: /usr/local/bin/identify And when I run the tests, GIF files remain GIF files: Simpleton:Desktop pawel$ convert logo.gif logo.png Simpleton:Desktop

Why does Applescript run in Script Editor, but error when saved as Application?

喜欢而已 提交于 2019-12-11 01:58:54
问题 My applescript needs to detect its own filename, and the following runs fine on Snow Leopard (10.6) set my_name to name of me as string display dialog "Name: " & my_name It displays "Name: AppleScript Editor" when I run it from AppleScript Editor, and it displays "Name: NewTest" when I save it as an application called NewTest. When I run it on a Leopare (10.5) machine, it complains "Can't make name of <> into type string." When I remove the "as string" portion, it runs under Script Editor,