Mac OS X Mavericks에서 Xcode 5.1.1 업데이트를 한 후,

Command Line Tools 설치가 제대로 안된다.

이유 따지기전에, 일단 구글링을 해보니, 별도로 다운로드해서 설치해야된단다.

Xcode 메뉴에서 Open Developer Tool -> More Developer Tools... 선택하면 다운로드가능한 사이트로 연결된다.



command_line_tools_for_os_x_mavericks_late_july_2014

Posted by Jason Ryu
,


(http://stackoverflow.com/questions/5276967/python-in-xcode-4)




I figured it out! The steps look lengthy but it's not that bad at all.


  1. Open Xcode 4.
  2. In the menu bar, click "File" → "New" → "New Project…".
  3. Select "Other" under "Mac OS X".
  4. Select "External Build System" and click "Next".
  5. Enter the product name.
  6. For the "Build Tool" field, type in /usr/local/bin/python3 for Python 3 or /usr/bin/python for Python 2 and then click "Next". Note that this assumes you have Python installed in the typical location(s). if you are unsure as to where your Python executables are enter these commands into Terminal: which python3 and which python.
  7. Choose where to save it and click "Create".
  8. In the menu bar, click "File" → "New" → "New File…".
  9. Select "Other" under "Mac OS X".
  10. Select "Empty" and click "Next".
  11. Navigate to the project folder (it will not work, otherwise), enter the name of the Python file (include the ".py" extension), and click "Save".
  12. In the menu bar, click "Product" → "Edit Scheme…".
  13. Click "Run" in the left column.
  14. In the "Info" tab, click the "Executable" field and then click "Other…".
  15. Navigate to the executable from Step 6. You may need to use ⇧⌘G to type in the directory if it is hidden.
  16. Select the executable and click "Choose".
  17. For the "Debugger" field, select "None".
  18. In the "Arguments" tab, click the "Base Expansions On" field and select the target that is named the same as your project.
  19. Click the "+" icon under "Arguments Passed On Launch". You may have to expand that section by clicking on the triangle pointing to the right.
  20. Type in $(SOURCE_ROOT)/ and then the name of the Python file you want to test. Remember, the Python program must be in the project folder. Otherwise, you will have to type out the full path (or relative path if it's in a subfolder of the project folder) here. If there are spaces anywhere in the full path, you must include quotation marks at the beginning and end of this.
  21. Click "OK".
  22. Start coding.


Note that if you open the "Utilities" panel, with the "Show the File inspector" tab active, the file type is automatically set to "Default - Python script". Feel free to look through all the file type options it has to gain an idea as to what all it is capable of doing. The method above can be applied to any interpreted language. As of right now, I have yet to figure out exactly how to get it to work with Java; then again, I haven't done too much research. Surely there is some documentation floating around on the web about all of this.

Say, "Hello, code completion, auto-indentation, and syntax highlighting." Note that it's not as advanced as it is with C, C++, or Objective-C but it is better than using IDLE in my opinion.



Posted by Jason Ryu
,



'$ SaVvY > » computer' 카테고리의 다른 글

Recursive Function.  (0) 2013.07.10
Pyhon 2.7.3 with Xcode 4  (0) 2013.07.10
문자열검색 알고리즘. KMP  (0) 2013.07.10
Building ACE framework on Mac OS X Mountain Lion.  (0) 2013.07.10
Public DNS server  (0) 2013.07.10
Posted by Jason Ryu
,

Download

Source package from ftp://download.dre.vanderbilt.edu/previous_versions/ACE-6.1.0.tar.gz

and

Doxygen document from ftp://download.dre.vanderbilt.edu/previous_versions/ACE-html-6.1.0.tar.gz


Edit your shell environment : in case of bash,

export ACE_ROOT={ACE installation path}            // ACE_wrappers directory.
export DYLD_LIBRARY_PATH=$ACE_ROOT/lib:$DYLD_LIBRARY_PATH



Create 2 files


1. $ACE_ROOT/ace/config.h

#include "ace/config-macosx-lion.h"
#define  ACE_NEEDS_DL_UNDERSCORE


2. $ACE_ROOT/include/makeinclude/platform_macros.GNU

include $(ACE_ROOT)/include/makeinclude/platform_macosx_lion.GNU
INSTALL_PREFIX=/usr/local
install_rpath=0



Finally, just execute;

make
make install


The last command, make install, may fails. you may need to run it as a root.


On other platforms, some configurations should be changed.

  • DYLD_LIBRARY_PATH => LD_LIBRARY_PATH, LIBPATH, or SHLIB
  • ace/config-macosx-lion.h => ace/config-{platform}.h
  • $(ACE_ROOT)/include/makeinclude/platform_macosx_lion.GNU => $(ACE_ROOT)/include/makeinclude/platform_{platform}.h
  • install_rpath => {NO NEED}


Enjoy it!!

'$ SaVvY > » computer' 카테고리의 다른 글

C++의 string 클래스 대신 String 클래스를 만들어 쓰기전에...  (0) 2013.07.10
문자열검색 알고리즘. KMP  (0) 2013.07.10
Public DNS server  (0) 2013.07.10
Red-Black Tree flow diagram  (0) 2013.07.09
GDBM User Reference  (0) 2013.07.05
Posted by Jason Ryu
,

싱크마스터 TA531을 맥북에 연결하여 사용할때 늘 화면이 엉망 이었다.

모니터의 PC연결설정부분을 [HDMI1/DVI]로 맞추고 맥북에는 HDMI로 연결했는데 화질이 영 구리다.

구글링으로 관련 글들을 검색해보니 [HDMI1/DVI]로 맞추면 잘된다는 글만 있고, 그밖에는 아예 유사한 얘기 조차 없었다.

혹시나해서 RGB 케이블로 연결해봤는데, 이번엔 화질은 깨끗해졌는데 화면이 우측으로 지나치게 치우쳐있어서 모니터 메뉴상의 옵션으로는 화면위치를 맞출수가 없었다.

또다시 혹시나해서 [HDMI2]로 연결을 시도했더니, 이번엔 위치도 맞고 화질도 제대로 나온다.

(근 6개월을 그냥 푸르딩딩한 화면을 사용해왔는데.... 오늘에서야 -.-;;)


집에 있는 또다른 모니터 LG꺼는 그런 걱정없이 어느 포트로 연결하든 깨끗하게 잘나온다.


내 기억속에 각인된 선입견을 다시 바꿔줄 일이 생기지 않는한 '삼성제품'은 가능한 불매할 생각.

이 모니터가 아마 마지막 제품이지 싶다.


관련글: http://mtsparrow.blogspot.kr/2011/08/syncmaster-ta531-review.html


'$ SaVvY > » computer' 카테고리의 다른 글

Red-Black Tree flow diagram  (0) 2013.07.09
GDBM User Reference  (0) 2013.07.05
UDP Maximum message size  (0) 2013.06.21
가변매크로 __VA_ARGS__  (2) 2013.06.20
맥용 어플 추가...  (0) 2013.06.10
Posted by Jason Ryu
,