osx-lion

Compiling SDL from source on a Mac running OS X 10.7 Lion

点点圈 提交于 2019-12-05 07:40:56
I've downloaded the SDL source SDL-1.2.14.zip from the libsdl website and gotten to the make step. When I ./configure , I have no issues. However, when I make , it gets what seems like a long way through the compilation process and dies with this output: /bin/sh ./libtool --mode=compile gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -I/usr/X11R6/include -DXTHREADS -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/video/SDL_RLEaccel.c -o build/SDL_RLEaccel.lo libtool: compile: gcc -g -O2 -I./include -D_GNU_SOURCE=1 -DTARGET

vi - getting an error E212: Can't open file for writing

折月煮酒 提交于 2019-12-05 07:14:49
问题 I am following this tutorial for setting opendiff for git: http://thomashunter.name/blog/set-opendiff-filemerge-as-your-git-diff-tool-on-os-x/ I open vi like it said in tutorial, write some lines and try :wq but get error - error E212: Can't open file for writing I browsed stack overflow for a little bit, and tried typing sudo vim ~/bin/git-diff.sh But I am also getting the same error. I haven't had much experience with unix based systems, so what am i to do? 回答1: You don't have a bin

perl “…/config.h, needed by `Makefile'” not working after OSX Lion upgrade

与世无争的帅哥 提交于 2019-12-05 06:12:58
SOLVED. See at bottom. Just upgraded to OSX Lion and trying to get my Perl install running again: sudo /usr/bin/perl -MCPAN -e 'install "MODULENAME"' with any value of MODULENAME that I tried (e.g. JSON ) produces: ... Checking if your kit is complete... Looks good Writing Makefile for JSON make: *** No rule to make target `/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/config.h', needed by `Makefile'. Stop. MAKAMAKA/JSON-2.53.tar.gz /Developer/usr/bin/make -- NOT OK I can't find anything resembling config.h anywhere, the directory exists though ... Not even this works: /usr/bin

Detect Lion (OS X 10.7) in javascript?

限于喜欢 提交于 2019-12-05 05:40:32
Is there a way to detect if the operating system is OS X Lion or not in Javascript? Cheers! The user agent of Safari (and also Firefox) in Lion is something like Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/534.48.3 (KHTML, like Gecko) Version/5.1 Safari/534.48.3 There is "Mac OS X 10_7_1" in it - this indicates Lion (= Mac OS 10.7). See here: http://www.whatsmyuseragent.com/ You can read the user agent string using "navigator.userAgent" http://www.quirksmode.org/js/detect.html BrowserDetect.OS I don't know its compatibility though. <- This link does use the useragent. 来源: https:

I can't uninstall Git

允我心安 提交于 2019-12-05 05:19:10
I tried to update my git version on Mac OS X 10.7, but it doesn't change the version. It's still on 2.0. If I run, rm -rf /usr/local/git rm /etc/paths.d/git rm /etc/manpaths.d/git the new version gets uninstalled, but the old one is still there ( git is still a valid command). How can I find the directory where this "ghost" version is installed? VonC To see where git is installed: which git See for instance those guides: " Beginner's Setup Guide for Git & Github on Mac OS X " " Install and Update to latest version Git on Mac OSX 10.10 Yosemite " The location usually is: /usr/local/git/bin/git

Vim colors too bright (terminal)

流过昼夜 提交于 2019-12-05 05:13:06
问题 I have a problem with Vim and iTerm2, the colors are too bright (for ALL themes). It works with both Terminal.app and MacVim, so I guess it must be some setting in iTerm2 I've completely missed. The picture below shows you the difference (iTerm2 to the left, MacVim / Terminal.app to right): What I'm using: iTerm2: Build 1.0.0.20130624 Terminal type: xterm-256 Shell: zsh 5.0.2 Vim: version 7.3.666 OS X: 10.7.5 Do you guys have any idea what I'm missing? 回答1: You shouldn't compare colorschemes

Emacs: Font setup for displaying unicode characters in OSX

僤鯓⒐⒋嵵緔 提交于 2019-12-05 04:38:59
I'm trying to display special unicode characters, in particular the mathematical operator 𝓮 in emacs. Specifically: position: 283 of 317 (89%), column: 0 character: 𝓮 (displayed as 𝓮) (codepoint 120046, #o352356, #x1d4ee) preferred charset: unicode (Unicode (ISO10646)) code point in charset: 0x1D4EE syntax: w which means: word category: .:Base, L:Left-to-right (strong) buffer code: #xF0 #x9D #x93 #xAE file code: #xF0 #x9D #x93 #xAE (encoded by coding system utf-8-unix) display: no font available Unicode data: Name: MATHEMATICAL BOLD SCRIPT SMALL E Category: Letter, Lowercase Combining class:

Howto “sandbox” my Lion application?

人走茶凉 提交于 2019-12-05 03:27:39
Apple has decreed that all applications submitted to the Mac App Store must be sandboxed, starting in November. Ok, but how can I "sandbox" my app? I found the official Apple's guide Code Signing And Application Sandboxing Guide . This document lists the following steps: 1) "Enable sandboxing for your application." Ok, easy: I have to open Xcode 4, select the project, select the target, go to the Summary tab and check: "Enable Entitlements" "Enable App Sandboxing" ...and every single entitlement I'm interested in. 2) Then: "Once you have created a basic entitlements profile, you should sign

Xcode 4.4 - There was an internal API error

谁都会走 提交于 2019-12-05 02:43:34
Hi I just upgraded to Mountain Lion. I created an empty Single View Application and run it. The first time it runs fine but the next runs will give me the "There was an internal API error" pop-up warning TWICE. It's the same with my other projects. They run okay once but gets this error the next runs. There was no warning or any specific warning message of any kind. Any idea how to solve this? Would really appreciate your help. I have it working on iOS6 Beta 4!! This is what I did but other variations may also work:- Install XCode 4.5 Developer Preview 4 Delete your app from the device Run

Lion scrollbar colors

风流意气都作罢 提交于 2019-12-05 01:58:09
The scrollbars in Lion seem to be based on the HTML's background color (lighter color BG = black scrollbars, darker BG = white). The problem I'm running into is from what (I assume) is a common trick regarding footers. I usually set the background color for my HTML element to be the footer's color, that way if the page is shorter than the browser window the footer appears to continue on (since the BODY element ends and then the HTML element is what shows until the end of the page). Doing this, however, leaves the scrollbar based on the footer's color, not the content area's color. Are there