osx-mountain-lion

QtCreator build system is broken after OSX upgrade

£可爱£侵袭症+ 提交于 2019-12-23 11:53:12
问题 I recently upgraded my OSX to mountain lion and ever since I cannot compile my project using Qt Creator anymore. I get bunch of errors like the following: /Users/user/codes/lib/io/xdmfWriter.cpp:63: error: explicit instantiation of 'std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]' but no definition available /Users

How can I move a window to a target space with Applescript in OS X 10.8?

被刻印的时光 ゝ 提交于 2019-12-23 10:19:46
问题 Ultimately I'm trying to assign hotkeys (via Alfred or Keymando) that can move the frontmost application to any of my spaces. Triggering an applescript seems the most likely route to success. I've looked around a lot and it seems there used to be a way to do this via "spaces preferences" in applescript, but this disappeared in OS X Lion. 回答1: If you’re after a pure AppleScript solution you’re out of luck. As you mentioned the Spaces preference pane is gone. In addition, Mission Control.app

OSX preferences file - removePersistentDomainForName has different functionality in 10.8?

独自空忆成欢 提交于 2019-12-23 03:31:44
问题 This code works for one of our developers on 10.7 but not for me on 10.8 working = it deletes the preferences .plist file for the bundle. The dev on 10.7 also has a lockfile whereas I do not. It's not a problem of file access - I tried [resetStandardUserDefault] and that made a new file, but that's not exactly we want to do. NSString *appDomain = [[NSBundle mainBundle] bundleIdentifier]; [[NSUserDefaults standardUserDefaults] removePersistentDomainForName:appDomain]; I am having trouble

How to link to libc++ on /usr/local/lib?

孤街浪徒 提交于 2019-12-22 18:28:32
问题 I've tried to provide -L /usr/local/lib , tried -nostdinc++ , tried to set DYLD_LIBRARY_PATH and DYLD_FALLBACK_LIBRARY_PATH but otool aways gives me: otool -L sample sample: /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0) How to link to my custom compiled /usr/local/lib/libc++.dylib on OS X? Variations of compilation were upon basic clang++ -std=c++11 -stdlib=libc++ . 回答1: As you've

Error when ex mkvirtualenv in Mountain Lion

↘锁芯ラ 提交于 2019-12-22 10:00:05
问题 I have Mountain Lion and I installed virtualenv using this method: sudo easy_install pip sudo pip install virtualenv virtualenvwrapper echo "export WORKON_HOME=$HOME/Envs" >> $BASH_CONFIG_FILE echo "source /usr/local/bin/virtualenvwrapper.sh" >> $BASH_CONFIG_FILE source ~/.bashrc There is a problem when I try to create the virtualenv with this command: mkvirtualenv test I receive this error: New python executable in test/bin/python Installing setuptools........... Complete output from command

NSSharingService on mountain lion without sharing window

左心房为你撑大大i 提交于 2019-12-22 09:09:41
问题 On mountain lion, I try the new sharing possiblities with the NSSharingService class of AppKit.framework Everything goes fine with this kind of code NSArray* array = @[ @"myText", [NSImage imageNamed:@"myImageFile"] ]; NSSharingService* sharingServiceFB = [NSSharingService sharingServiceNamed:NSSharingServiceNamePostOnFacebook]; [sharingServiceFB performWithItems:array]; But I'd like to do the same without the sharing window generated by the performWithItems function. As I'm considering that

ln: /usr/lib/libmysqlclient.18.dylib: File exists

淺唱寂寞╮ 提交于 2019-12-21 23:52:28
问题 rake aborted! dlopen(/Users/ava/.rvm/gems/ruby-2.0.0-p247/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle, 9): Library not loaded: /usr/local/lib/libmysqlclient.18.dylib Referenced from: /Users/ava/.rvm/gems/ruby-2.0.0-p247/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle Reason: image not found - /Users/ava/.rvm/gems/ruby-2.0.0-p247/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle` Ran the following to resolve: $ sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib \ /usr/lib/libmysqlclient.18.dylib ln

Having trouble using perlbrew to install perl 5.14.2 on OSX 10.8.0

。_饼干妹妹 提交于 2019-12-21 20:47:49
问题 On the advice I've read here and elsewhere, I decided to stop running sudo cpan , thus affecting the system perl, and instead use perlbrew to install and manage private versions of perl. I installed perlbrew and ran perlbrew install perl-5.14.2 , both without and with --force . Both times it failed to install. Below is the test summary report. Test Summary Report ------------------- ../ext/POSIX/t/posix.t (Wstat: 0 Tests: 66 Failed: 0) TODO passed: 11 ../lib/locale.t (Wstat: 0 Tests: 117

Having trouble using perlbrew to install perl 5.14.2 on OSX 10.8.0

余生长醉 提交于 2019-12-21 20:47:45
问题 On the advice I've read here and elsewhere, I decided to stop running sudo cpan , thus affecting the system perl, and instead use perlbrew to install and manage private versions of perl. I installed perlbrew and ran perlbrew install perl-5.14.2 , both without and with --force . Both times it failed to install. Below is the test summary report. Test Summary Report ------------------- ../ext/POSIX/t/posix.t (Wstat: 0 Tests: 66 Failed: 0) TODO passed: 11 ../lib/locale.t (Wstat: 0 Tests: 117

NetFSMountURLSync not able to use custom mount points?

吃可爱长大的小学妹 提交于 2019-12-21 20:46:21
问题 I'm trying to programmatically mount some WebDAV and SMB shares and I'd like to give the volumes specific names other than the default. For example, if I mount https://my.sharepoint.school.edu/personal/grigutis I'd like it to appear in the Finder as /Volumes/My SharePoint Site or ~/Desktop/My SharePoint Site Instead of /Volumes/grigutis or ~/Desktop/grigutis I can do this with the mount_webdav command: $ mkdir /Volumes/My\ SharePoint\ Site $ mount_webdav -s -i https://my.sharepoint.school.edu