osx-mavericks

All GIT patches I create throw fatal: unrecognized input

北城以北 提交于 2019-12-23 07:31:55
问题 I'm running Mac OSX 10.9.4 (Mavericks) and have git version 2.8.2. I've tested this with a completely new repo. Here's example. mkdir gitest cd gitest git init echo "monkeyface" > monkey.txt git commit -m "first commit" echo "monkeyface farted" > monkeyfart.txt git add . git diff HEAD > new.patch rm monkeyfart.txt git reset --hard HEAD git apply new.patch --check >fatal: unrecognized input Any ideas what is causing this? Could it be anything in my .gitconfig file? [user] name = myusername

Using JDK 7 Or Higher With Android Studio And Eclipse On Mac OSX

China☆狼群 提交于 2019-12-23 07:27:39
问题 Both Android Studio and Eclipse are asking me to install JDK 6 even though JDK 8 is already installed. Several workarounds online told me change the java_home to point the JDK 8 installation location, done that such that both /usr/libexec/java_home and java -version commands refer to the JDK 8 installation but Android Studio and Eclipse still asking me to install JDK 6. Anyone solved this issue. 回答1: Android Studio is based on Intellij Idea 13 . The solution here also applies. Just modifying

Problems when deselecting checkboxes inside bound NSTableview's columns

徘徊边缘 提交于 2019-12-23 04:24:10
问题 I am using this project, created by aneesh171 that shows the creation of checkboxes inside NSTableView and how to bind them. I am new to OSX development and trying to understand how it works. The project is basically checkboxes inside a NSTableView's column that is bound to an array controller. For some reason, when I deselect one of those checkboxes, the following messages appear on the console window: 2014-04-03 04:22:55.579 MyApp[5735:303] Error setting value for key path objectValue

What is the equivalent of /proc/self/exe on Macintosh OS X Mavericks?

浪子不回头ぞ 提交于 2019-12-23 02:44:38
问题 I'm porting a Linux C++03 application to Darwin OS X and have some code that reads the symbolic link at /proc/self/exe to determine the directory in which the executable running is located. How can I compute the directory of the current executable running on Macintosh Darwin OS X Mavericks in C++? Here is my existing code that works on Linux: bool resolveBinaryLocation(string &binaryDirname) { // Read the symbolic link '/proc/self/exe'. const char *linkName = "/proc/self/exe"; const size_t

'ext/slist' file not found on OS X 10.9

孤街醉人 提交于 2019-12-22 08:54:50
问题 I am trying to get some older third-party software to compile on OS X 10.9. I've managed to get rid of most compilation problems by adjusting settings in the Makefiles, which were originally written for gcc probably around 2005. However, I currently don't know how to overcome this error for a C++ source file: /utility.h:42:10: fatal error: 'ext/slist' file not found I understand that ext/slist belongs to some version of STL. Has that version been superseded or does it have to be activated in

c compiler cannot create executable on mac

柔情痞子 提交于 2019-12-22 08:10:12
问题 Everytime I try to install a package or software on my mac (Maverick) from a config file, it automatically fails when checking the C compiler. It says "configure: error: C compiler cannot create executables". Besides, Homebrew works perfectly. I attached an example of config.log. I haven't found any satisfaction in the related previous posts, I apologize if the issue was solved. ## ----------- ## ## Core tests. ## ## ----------- ## configure:2530: checking for gcc configure:2546: found /usr

Has there been a change to the way Mac OSX Mavericks handles CFBundleURLName “Custom url” launches for applications?

 ̄綄美尐妖づ 提交于 2019-12-22 06:46:30
问题 I created an app which is launched from a custom url in any OSX browser. This worked just fine by adding a standard CFBundleURLName entry to the app's plist. My application works by reading by parsing some of the parameters on the custom url and then reacting to them. So for example with a custom url of: foobar://param1/param2/param3 When clicking on the above url in a browser, OSX would launch my app and pass the actual custom url itself as the first argument to the app. Therefore in the app

Mac os x /usr/bin/gcc file

烂漫一生 提交于 2019-12-22 06:38:04
问题 I'm using Mac OS X 10.9 (Mavericks). I recently had to compile code using CMake and OpenMP library. So at first I downloaded XCode Command line tools with xcode-select --install . Here's the problem : XCode uses clang compiler which doesn't bring OpenMP. So I got gcc-4.9 with brew package manager (GCC has the OpenMP library). It works fine, but the command to use it is gcc-4.9 and CMake calls the cc command. So I searched, and found out that /usr/bin/cc was a symbolic link to /usr/bin/clang .

installing opencv for python on mavericks

喜夏-厌秋 提交于 2019-12-22 04:41:11
问题 I am trying to install opencv on a Macbook Pro late 2013 with mavericks. I didn't find any binaries so I am trying to build it. I tried http://www.guidefreitas.com/installing-opencv-2-4-2-on-mac-osx-mountain-lion-with-python-support and http://forums.udacity.com/questions/100021223/installing-opencv-on-os-x-mountain-lion when calling make the error 2 is produced (CMake Error at cuda_compile_generated_matrix_operations.cu.o.cmake:208) When searching on this website I found opencv for python on

OS X app update issue with Sparkle under Mavericks and XCode 5

风格不统一 提交于 2019-12-21 17:32:40
问题 I use the Sparkle framework to handle my app updates. Everything worked fine until recently, when I upgraded to OS X 10.9 Mavericks and XCode 5.0.2. When I compile my app under OS X 10.8.4 and XCode 4.6.3, it can then be updated with no issue. But when I compile the exact same code, with the same XCode project and the same code signing under Mavericks and XCode 5.0.2, the generated bundle can't be updated, Sparkle crashing during the update process with the following error : Terminating app