osx-leopard

How to build boost 1.45 universal binaries?

匆匆过客 提交于 2019-12-04 23:39:52
问题 How to build boost 1.45 universal binaries? on leopard/ snow leopard ? 回答1: To build 4-way universal boost static binaries on OSX 10.6 I do the following: Download boost from the boost website. Extract the archive and cd into the boost_x_xx_x folder (where x_xx_x is the version of boost you are using). Run: ./bootstrap.sh and then # The name of the Boost.Jam program changed from "bjam" to "b2" in Boost 1.47.0 # Replace "b2" with "bjam" if you are compiling a version <= 1.46.1 ./b2 macosx

XCode 4 and XCode 3.2.6 side-by-side

与世无争的帅哥 提交于 2019-12-04 22:44:56
问题 I need to build one iOS app and one Mac OS app on the same machine. Mac OS app needs to run on 10.5, and even though Apple claims you can build with the 10.6 SDK and run on 10.5 by setting the right target value, it's not true. Simple things, like the name/version of libssl , are different on 10.5 and 10.6 which makes this impossible. Anyway, so I'm about to try and install XCode 3.2.6 on the same machine as I have XCode 4 on - any tips/gotchas/guides? Thanks! 回答1: That should work fine,

What is Bud1% @ @ @ @E%DSDB` @ @ @?

徘徊边缘 提交于 2019-12-04 17:09:45
问题 I have made a small app for a client. The app scans a files directory which contains several text files. It then reads each file into a string. Every file has a title and the article text. The two parts are separated with a pipe character like this: article_title|article_text . The script displays a list of links to open each article. The text of the link is the same as the article title. Now, the client has apparently deleted an article, but is seeing an entry for the deleted file like the

How can I make a program start up automatically in OSX?

为君一笑 提交于 2019-12-04 07:31:57
I have a little program that I want to make open automatically when my mac is started up. Because this program accepts command line arguments, its not as simple as just going to System Prefs/Accounts/Login items and adding it there... From google, I read that I can create a .profile file in my user's home folder, and that will execute whatever I put in it... So I have a .profile page in ~ like this: -rw-r--r--@ 1 matt staff 27 27 Sep 13:36 .profile That contains this... /Applications/mousefix 3.5 But it doesn't execute on startup! If I enter "/Applications/mousefix 3.5" manually into the

How to include OpenCV libraries in CMake Makefile

余生长醉 提交于 2019-12-04 02:57:29
I hope you can help me. I have a simple CMakeLists.txt in order to build my project on Leopard 10.5.8. I'm using CMake 2.8.1 and at the moment this is the code: cmake_minimum_required(VERSION 2.8) MESSAGE(STATUS "./src: Going into utils folder") ADD_SUBDIRECTORY(utils) MESSAGE(STATUS "./src: utils folder processed") include_directories(${DIR}/headers) link_directories (${DIR}/src/utils) ADD_EXECUTABLE(sample sample.cpp) TARGET_LINK_LIBRARIES(sample libSample ${EXTERNAL_LIBS}) INSTALL(TARGETS sample DESTINATION "./src") MESSAGE(STATUS "./src: exiting src folder") I need to add OpenCV libraries

List indexing efficiency (python 2 vs python 3)

不打扰是莪最后的温柔 提交于 2019-12-03 22:10:32
In answering another question , I suggested to use timeit to test the difference between indexing a list with positive integers vs. negative integers. Here's the code: import timeit t=timeit.timeit('mylist[99]',setup='mylist=list(range(100))',number=10000000) print (t) t=timeit.timeit('mylist[-1]',setup='mylist=list(range(100))',number=10000000) print (t) I ran this code with python 2.6: $ python2.6 test.py 0.587687015533 0.586369991302 Then I ran it with python 3.2: $ python3.2 test.py 0.9212150573730469 1.0225799083709717 Then I scratched my head, did a little google searching and decided to

Help to fix strange sqlite3 error - dyld: Library not loaded: /usr/lib/libsqlite3.0.dylib

有些话、适合烂在心里 提交于 2019-12-03 21:17:36
I am suddenly getting an sqlite3 error: ActionView::Template::Error (dyld: Library not loaded: /usr/lib/libsqlite3.0.dylib Referenced from: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork Reason: no suitable image found. Did find: /usr/lib/libsqlite3.0.dylib: mach-o, but wrong architecture /usr/local/lib/libsqlite3.0.dylib: mach-o, but wrong architecture /usr/lib/libsqlite3.0.dylib: mach-o, but wrong architecture I have no idea why I am suddenly getting this error. Rails 3.1.0 and Ruby 1.9.2 Mac OSX 10.5.8 Okay so this is a

How do I make the apple terminal window auto change colour scheme when I ssh to a specific server

青春壹個敷衍的年華 提交于 2019-12-03 17:53:52
问题 When I ssh into a remote production server I would like the colour scheme of my terminal window to change to something brigh and scary, preferably red, to warn me that I am touching a live scary server. How can I make it automatically detect that I have ssh'ed somewhere, and if that somewhere is on a specific list, change the colour scheme? I want to update the Scheme of Terminal.app, not know how I would do this in a pure linux/unix env 回答1: Put following script in ~/bin/ssh (ensure ~/bin/

XCode 4 and XCode 3.2.6 side-by-side

佐手、 提交于 2019-12-03 14:12:19
I need to build one iOS app and one Mac OS app on the same machine. Mac OS app needs to run on 10.5, and even though Apple claims you can build with the 10.6 SDK and run on 10.5 by setting the right target value, it's not true. Simple things, like the name/version of libssl , are different on 10.5 and 10.6 which makes this impossible. Anyway, so I'm about to try and install XCode 3.2.6 on the same machine as I have XCode 4 on - any tips/gotchas/guides? Thanks! That should work fine, however it's best to install XCode4 last. So if you install XCode3 you'll want to re-install XCode4 as well

What is Bud1% @ @ @ @E%DSDB` @ @ @?

偶尔善良 提交于 2019-12-03 12:00:12
I have made a small app for a client. The app scans a files directory which contains several text files. It then reads each file into a string. Every file has a title and the article text. The two parts are separated with a pipe character like this: article_title|article_text . The script displays a list of links to open each article. The text of the link is the same as the article title. Now, the client has apparently deleted an article, but is seeing an entry for the deleted file like the image bellow: I searched for the string on the web and could actually find pages showing similar strings