프로그램 사용/gcc2012. 2. 12. 11:19
gcc 도움말에 의하면 아래의 경로에서 기본적으로 include 파일을 찾게 된다는데

2.3 Search Path

GCC looks in several different places for headers. On a normal Unix system, if you do not instruct it otherwise, it will look for headers requested with #include <file> in:

     /usr/local/include
     libdir/gcc/target/version/include
     /usr/target/include
     /usr/include

[링크 : http://gcc.gnu.org/onlinedocs/cpp/Search-Path.html]  

음.. 저 긴 옵션을 다 줘야 하는 이유는 먼지 모르겠지만,
아무튼 확인해보면 /usr/local/include가 /usr/include 보다 우선적으로 검색하게 된다.
그런 이유로 opencv가 /usr/local/include에 설치되는 듯하다.
$ g++ -v -x c -E -
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) 
COLLECT_GCC_OPTIONS='-v' '-E' '-shared-libgcc' '-mtune=generic' '-march=i486'
 /usr/lib/gcc/i486-linux-gnu/4.4.3/cc1 -E -quiet -v - -D_FORTIFY_SOURCE=2 -mtune=generic -march=i486 -fstack-protector
ignoring nonexistent directory "/usr/local/include/i486-linux-gnu"
ignoring nonexistent directory "/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../i486-linux-gnu/include"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc/i486-linux-gnu/4.4.3/include
 /usr/lib/gcc/i486-linux-gnu/4.4.3/include-fixed
 /usr/include
End of search list.

[링크 : http://gcc.gnu.org/ml/gcc-help/2007-09/msg00216.html]   

'프로그램 사용 > gcc' 카테고리의 다른 글

ubuntu gcc가 바보  (2) 2013.09.19
gcc 64bit 확장  (0) 2013.01.13
gcc의 2진수 표기법  (0) 2011.12.28
c++ 컴파일 오류 - error: extra qualification  (0) 2011.10.12
gcc 컴파일 단계별 옵션  (0) 2010.03.04
Posted by 구차니
Step 1. doxygen을 설치한다. graphviz 설치는 옵션!
           [링크 : http://www.stack.nl/~dimitri/doxygen/]
           [링크 : http://www.graphviz.org/

Step 2. Help - Install New software에서
           "http://download.gna.org/eclox/update" 를 추가하여 eclox 를 설치함


Step 3. 재시작 하고 나면 @ 아이콘이 생기는데 이걸 누른다.


Step 4. 저걸 처음 누르면 Preferences가 뜨는데 자동으로 인식을 하지 못하면 Doxygen이 설치된 위치를 추가해준다.
           최초 설정 이후에는 이 메뉴로 들어가려면 doxygen 작업중 cancel을 누르면 들어갈지를 물어본다.


 Step 5. Doxygen을 적용할 프로젝트를 선택하고 파일 이름을 적어주면 자동으로 Doxyfile 이라는 확장자가 붙는다.


Step 6. 해당 doxygen 설정 파일을 더블클릭하면 다음과 같이 나온다.
           기본값에 가까운(Scan recursively 가 꺼져있다) 설정으로 필요에 따라 옵션을 바꾸어 주면 된다.
           필수 사항으로는 Input Directories(프로젝트 최상위 폴더로 선택) Scan recursively 선택
           output directory는 비워두면 프로젝트 폴더의 HTML / LATEX 라는 폴더가 생성되므로
           docs나 docs 폴더를 생성후 그곳을 output 으로 정해주는 것이 좋다.


 [링크 : http://home.gna.org/eclox/
    [링크 : http://download.gna.org/eclox/update]
[링크 : http://www.stack.nl/~dimitri/doxygen/]
[링크 : http://www.graphviz.org/]
 
[링크 : http://neodreamer.tistory.com/625]
[링크 : http://stackoverflow.com/questions/2108586/how-to-use-eclox-the-doxygen-plugin-for-eclipse]
Posted by 구차니
프로그램 사용2012. 2. 7. 15:26
IE 기반의 중국산 브라우저이며 "360 안전 브라우저"라고 중국내 2위 점유율이라고 하는데
그렇게 따지면.. IE가 1등이고 2등이 IE기반 브라우저니 중국도 실질적인 IE 천국인건가.. -_-

특정 문제가 있어서 테스트를 해볼일이 있었는데
PC에 설치된 IE 버전에 따라서 작동이 달라지며
IE6이 있는 시스템에서는 탭을 지원하지 않고 새 창으로 열리며 테마가 적용되지 않는다.

특징 : IE에서 사용한 히스토리를 끌어가는 것으로 보임
         생각보다 빠르게 구동된다(IE8 대비)
         크롬(새 탭 화면) + IE의 느낌? activeX는 귀찮아서 안해봄 -_-



[링크 : http://se.360.cn/]
Posted by 구차니
주석 스타일을 doxygen 스타일로 할 수는 있지만
그렇다고 해서 eclipse에 통합되서 jdt의 javadoc 처럼 바로 될수는 없는듯 하다.


[링크 : http://www.eclipse.org/forums/index.php/t/26571/]
    [링크 : http://blog.naver.com/athena805/130069223295]
    [링크 : http://forum.falinux.com/zbxe/?document_srl=516472]
Posted by 구차니
프로그램 사용/eclipse2012. 1. 29. 17:07
Windows - Preferences 에서 설정이 가능하며
jdt와 cdt는
언어 - Editor - Syntax Coloring에 설정이 존재한다.



Posted by 구차니
Help - Install New Software에서
필요한 주소를 입력하고 (ubuntu 에서 galilieo로 하고 있으니 난 아래 경로로)
Programming Languages 에서 Eclipse C/C++ Development Tools를 선택한다.


머 이런게 깔린다~ 라는건데 검색어에서 cdt로 때리면 Support 녀석들만 나오니 이래저래 위의 항목에서 선택하는게 유리할듯.


네 감사히 쓰겠습니다 굽신굽신 해주고 다 깔면 이클립스 재시작하면 하면됨.


Window - Open Perspective - Others
에서 C/C++을 추가해주면 끝 



예전의 이클립스는 조낸 하늘을 날아가도록 빠르고 잘 죽어서 싫었는데
이번에 한번 용기를 내서 cdt를 써서 해보니 헐 이건 신세경이야!
소스인사이트 처럼 가져다 대면 미리보기 되고, F3 누르면 이동하고 Alt-왼쪽화살표로 이전 위치로 돌아올수도 있고
내가 소스인사이트에서 사용하는 주요기능 두개는 이걸로 확보!

일단 함수라던가 이런 것들에 대한 syntax highlighting만 찾으면 될 듯하고,
추가로 확인한 코드 포맷을 사용하면 킹짱왕이 될 듯하다.

미안해 netbeans. 나 이제 이클립스가 좋아졌어 ㅠ.ㅠ


[링크 : http://ioriy2k.pe.kr/archives/3620]
Posted by 구차니
프로그램 사용/eclipse2012. 1. 28. 21:32
Project - Properties 에 들어가서


Java Code Style - Formatter 에서 "Enable project specific settings" 를 체크하면 설정이 가능해지는데


이런 세세한 설정을 통해서 전혀 다른 indent와 괄호 스타일을 지정할 수 있다.



그리고 적용은 화면에서


프로젝트 별로 설정이 가능하다는게 아쉽다고 해야하나 장점이라고 해야하나. 

[링크 : http://www.ibm.com/developerworks/opensource/library/os-eclipse-clean/index.html]
Posted by 구차니
프로그램 사용/xen2012. 1. 25. 21:41
현재 사용중인 Xnote LW20 / LW25 모델의 cpu인데
LW20은 M740 으로 virtualization을 지원하지 않고 있으며
LW25는 T5600으로 virtualization을 지원한다.

[링크 : http://ark.intel.com/products/.../Intel-Pentium-M-Processor-740-(2M-Cache-1_73-GHz-533-MHz-FSB)]
[링크 : http://ark.intel.com/products/.../Intel-Core2-Duo-Processor-T5600-(2M-Cache-1_83-GHz-667-MHz-FSB)]


LW20

$ cat /proc/cpuinfo 
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 13
model name : Intel(R) Pentium(R) M processor 1.73GHz
stepping : 8
cpu MHz : 1733.000
cache size : 2048 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx up bts est tm2
bogomips : 3458.25
clflush size : 64
cache_alignment : 64
address sizes : 32 bits physical, 32 bits virtual
power management: 


































 
LW25 동급

$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU         T5600  @ 1.83GHz
stepping : 6
cpu MHz : 1000.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3662.82
clflush size : 64

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU         T5600  @ 1.83GHz
stepping : 6
cpu MHz : 1000.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3657.59
clflush size : 64
 
[링크 : http://ubuntuforums.org/showthread.php?t=841711


vmx(intel) svm(amd) 로 flags에 식별이 되면 xen을 사용할 수 있다.

'프로그램 사용 > xen' 카테고리의 다른 글

Xen on Ubuntu 11.10  (0) 2012.03.25
kvm - Kernel mode Virtual Machine  (0) 2012.03.06
xen 설치관련 문서링크  (0) 2010.11.14
Intel ATOM cpu중 가상화 지원모델  (2) 2010.09.24
xen  (0) 2010.08.16
Posted by 구차니
프로그램 사용/dosbox2012. 1. 25. 21:24
삼국지3 라던가 max4.0(채팅 프로그램) 같은 286 시절 프로그램은 쌩쌩 날아 다니지만






역시나.. 1.7Ghz 정도 성능의 리눅스에서는 subwar 2050이 너무나 버벅댄다
cpu cycle을 30000까지 올려도 끊어지는게 심하다.
예전 286 시절 게임인줄 알았는데 386 시절 게임일 줄이야 ㅋ (1994년 작품)


 Computer       Graphics        Memory         Disk Space 
Minimum  386            VGA             1 MB           12 MB

Control:       Keyboard, Mouse (recommended), Joystick (recommended)
  Sound:       Ad Lib, Roland LAPC-1, Sound Blaster 
Monitor:       Color required
 MS-DOS:       5.0 or higher required.  Min req. of 600K conventional
               memory.

Reviewed version 1.2 on: 486/66, 4MB RAM, SB Pro sound card, Thrustmaster
                         joystick
[링크 : http://www.ibiblio.org/GameBytes/issue18/greviews/subwar/subwar.html]  

요기까지 인트로

암호 물어보는 화면 


게임 메인화면(브릿지)


전투정 탑승화면


이 게임 그 당시에는 참신해서 엄청나게 좋아했는데
막상하려니 단축키도 기억이 안나고 못하겠다 ㅠ.ㅠ

'프로그램 사용 > dosbox' 카테고리의 다른 글

dosbox on linux  (0) 2012.01.25
Posted by 구차니
프로그램 사용/dosbox2012. 1. 25. 20:55
wine과 비슷하게 dos를 흉내내는 dosbox 라는게 있는데 당연히(!) 리눅스 용도 존재한다.

[링크 : http://www.dosbox.com/]  

설치 와 실행은 아래와 같이 한다.
$ sudo apt-get install dosbox  
$ dosbox 



DOS 게임의 경우 MS-DOS executable 포맷으로 인식을 하고,
samba를 통해서 그냥 복사를 해주고 나서 dosbox에서 mound 해주면 된다.
$ file *.EXE
DOS4GW.EXE:  MS-DOS executable ,\b LE for MS-DOS, DOS4GW DOS extender (embedded)
INSTALL.EXE: MS-DOS executable, MZ for MS-DOS
INTRO.EXE:   MS-DOS executable, LE executable
MPSCOPY.EXE: MS-DOS executable, MZ for MS-DOS
PKUNZIP.EXE: Self-extracting PKZIP archive MS-DOS executable, MZ for MS-DOS, PKLITE compressed
SETUP.EXE:   MS-DOS executable, MZ for MS-DOS 

기본적인 설정과 스샷 저장경로는
~/.dosbox/doxbox-0.73.conf
~/. dosbox /capture 에 png 로 저장된다.

아무래도 에뮬레이션이다 보니 성능 저하는 심한편이지만
1.7Ghz CPU로 돌릴경우 386 25Mhz 짜리 성능을 내준다고 하니
그 당시 게임을 돌리는 데에는 문제가 없을 것으로 생각된다.
하지만 486 시절 게임을 돌리려면 ... 최소한 3Ghz 급으로 클럭빨을 세워야 하려나?

Special Keys

ALT-ENTER
Go full screen and back.
ALT-PAUSE
Pause emulation.
CTRL-F1
Start the keymapper.
CTRL-ALT-F5
Start/Stop creating a movie of the screen.
CTRL-F4
Swap mounted disk-image (Only used with imgmount). Update directory cache for all drives!
CTRL-F5
Save a screenshot.(png)
CTRL-F6
Start/Stop recording sound output to a wave file.
CTRL-ALT-F7
Start/Stop recording of OPL commands.
CTRL-ALT-F8
Start/Stop the recording of raw MIDI commands.
CTRL-F7
Decrease frameskip.
CTRL-F8
Increase frameskip.
CTRL-F9
Kill dosbox.
CTRL-F10
Capture/Release the mouse.
CTRL-F11
Slow down emulation (Increase dosbox Cycles).
CTRL-F12
Speed up emulation (Decrease dosbox Cycles).
ALT-F12
Unlock speed (turbo button). 


Notes

While we hope that, one day, dosbox will run virtually all programs ever made for the PC... we are not there yet. At present, dosbox run on a 1.7 Gigahertz PC is roughly the equivalent of a 25MHz 386 PC. While the 0.60 release has added support for "protected mode" allowing for more complex and recent programs, but note that this support is early in development and nowhere near as complete as the support for 386 real-mode games (or earlier). Also note that "protected mode" games need substantially more resources and may require a much faster processor for you to run it properly in dosbox. 

[링크: http://linux.die.net/man/1/dosbox]

'프로그램 사용 > dosbox' 카테고리의 다른 글

dosbox 성능 테스트  (0) 2012.01.25
Posted by 구차니