๋ฐ˜์‘ํ˜•

Doxygen ์‚ฌ์šฉ์„ ์œ„ํ•œ ๋ณธ๋ฌธ์€ ์•„๋ž˜ ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ•˜์„ธ์š”.

[Doxygen] ๋…์‹œ์  ์œผ๋กœ ์ฝ”๋“œ ๋ฌธ์„œ ๋งŒ๋“ค๊ธฐ ์ด์ •๋ฆฌ (์˜ˆ์ œ ํฌํ•จ)

 

[Doxygen] ๋…์‹œ์  ์œผ๋กœ ์ฝ”๋“œ ๋ฌธ์„œ ๋งŒ๋“ค๊ธฐ ์ด์ •๋ฆฌ (์˜ˆ์ œ ํฌํ•จ)

๋…์‹œ์  (Doxygen)์ด๋ž€? ํ˜น์‹œ ํŠน์ • ํšŒ์‚ฌ์—์„œ ์ œ๊ณตํ•˜๋Š” SDK(Software Development Kit)๋ฅผ ์‚ฌ์šฉํ•ด ๋ณธ ๊ฒฝํ—˜์ด ์žˆ๋‚˜์š”? ์žˆ๋‹ค๋ฉด, ์ฒ˜์Œ ์‚ฌ์šฉํ•˜๋Š” SDK๋ฅผ ์ดํ•ดํ•˜๊ธฐ ์œ„ํ•ด ๋ž˜ํผ๋Ÿฐ์Šค ๋งค๋‰ด์–ผ์„ ์ฝ์–ด๋ณธ ์ ์ด ์žˆ๋‚˜์š”? SDK๋ฅผ ์‚ฌ

luckygg.tistory.com

chm ํŒŒ์ผ์ด๋ž€?

chm์€ Microsoft Compiled HTML Help์˜ ์•ฝ์ž๋กœ, ๋งˆ์ดํฌ๋กœ์†Œํ”„ํŠธ์—์„œ ๊ฐœ๋ฐœํ•œ ๋„์›€๋ง ํฌ๋งท์ž…๋‹ˆ๋‹ค. ์ด chm์€ HTML ํŽ˜์ด์ง€ ๋ชจ์Œ๊ณผ ๋ชฉ์ฐจ, ์ƒ‰์ธ, ๊ฒ€์ƒ‰ ๋“ฑ์˜ ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•˜๋Š”๋ฐ์š”. ์ฃผ๋กœ ์ œ์ž‘์‚ฌ ์ธก์—์„œ SDK ์ „๋ฐ˜์ ์ธ ๋‚ด์šฉ๊ณผ Library Reference ์ž๋ฃŒ๋ฅผ ํฌํ•จํ•˜์—ฌ ๋ฐฐํฌํ•ฉ๋‹ˆ๋‹ค.

์•„๋ž˜ ๊ทธ๋ฆผ์€ Omron Sentech SDK์˜ chm ํŒŒ์ผ ๋ฉ”์ธ ํ™”๋ฉด์ž…๋‹ˆ๋‹ค. ์ขŒ์ธก ๋ชฉ์ฐจ์—๋Š” ๊ฐ์ข… ์ •๋ณด๊ฐ€ ๋‹ด๊ฒจ์žˆ๋Š” ํŽ˜์ด์ง€๊ฐ€ ํ‘œ์‹œ๋˜๊ณ , ์ƒ‰์ธ์—์„œ๋Š” ํ‚ค์›Œ๋“œ๋กœ ์›ํ•˜๋Š” ์ •๋ณด๋ฅผ ๋น ๋ฅด๊ฒŒ ์ฐพ์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฌผ๋ก  ๊ฒ€์ƒ‰ ํƒญ์—์„œ๋„ ๋‹จ์–ด๋กœ ๊ฒ€์ƒ‰ํ•˜์—ฌ ์›ํ•˜๋Š” ์ •๋ณด๋ฅผ ์ฐพ์„ ์ˆ˜ ์žˆ์ง€์š”.

Omron sentech SDK chm ํŒŒ์ผ
Omron sentech SDK chm ํŒŒ์ผ

์ด๋Ÿฌํ•œ chm ํŒŒ์ผ์€ Doxygen์—์„œ๋„ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. Doxygen์€ ๊ธฐ๋ณธ์ ์œผ๋กœ HTML ํŒŒ์ผ์„ ์ƒ์„ฑํ•˜๋Š”๋ฐ, chm ์ƒ์„ฑ์„ ์œ„ํ•œ ์˜ต์…˜ ๋ช‡ ๊ฐ€์ง€๋ฅผ ์ถ”๊ฐ€ํ•˜๋ฉด ๊ฐ„๋‹จํžˆ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.

Doxygen์—์„œ chm ํŒŒ์ผ ์ƒ์„ฑ์„ ์œ„ํ•œ ์„ค์ • ๋ฐฉ๋ฒ•

chm ํŒŒ์ผ์„ ์ƒ์„ฑํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” HTML Help Workshop์˜ hhc.exe ํŒŒ์ผ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. ์ž์‹ ์˜ ์ปดํ“จํ„ฐ์— ์•„๋ž˜์˜ ํŒŒ์ผ์ด ์žˆ๋Š”์ง€ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.

C:\Program Files (x86)\HTML Help Workshop\hhc.exe

๋งŒ์•ฝ ์—†๋‹ค๋ฉด, ์•„๋ž˜์— ์ฒจ๋ถ€๋œ ํŒŒ์ผ์„ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.

htmlhelp.zip
3.30MB

์œ„ ํŒŒ์ผ์€ Micorosft Download Center์˜ ํŒŒ์ผ ๊ฒฝ๋กœ๊ฐ€ ๋งŒ๋ฃŒ๋˜์–ด, Q&A ๋งํฌ์—์„œ ๋‹ค์šด๋กœ๋“œํ•œ ํŒŒ์ผ์ž…๋‹ˆ๋‹ค.

https://docs.microsoft.com/en-us/answers/questions/265752/htmlhelp-workshop-download-for-chm-compiler-instal.html

HTMLHelp Workshop - download for CHM compiler installation failed - Microsoft Q&A

docs.microsoft.com

Doxygen GUI๋ฅผ ์‹คํ–‰ํ•œ ํ›„ Wizard > Output ๋ฉ”๋‰ด์—์„œ 'prepare for compressed HTML (.chm)' ํ•ญ๋ชฉ์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

Output ํƒญ์—์„œ chm ํ•ญ๋ชฉ ์„ ํƒํ•˜๊ธฐ
Output ํƒญ์—์„œ chm ํ•ญ๋ชฉ ์„ ํƒํ•˜๊ธฐ

๋‹ค์Œ์œผ๋กœ Expert > HTML ๋ฉ”๋‰ด์—์„œ ์•„๋ž˜์™€ ๊ฐ™์ด ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

HTML ํƒญ์—์„œ ์„ค์ •
HTML ํƒญ์—์„œ ์„ค์ •

ํ•ญ๋ชฉ ์„ค๋ช…
GENERATE_HTMLHELP chm ์ƒ์„ฑ ์—ฌ๋ถ€๋ฅผ ์ฒดํฌํ•ฉ๋‹ˆ๋‹ค.
CHM_FILE ์ƒ์„ฑ๋  chm ํŒŒ์ผ์˜ ์ด๋ฆ„์„ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. ๋งŒ์•ฝ, ์ง€์ •ํ•˜์ง€ ์•Š๋Š”๋‹ค๋ฉด index.chm ํŒŒ์ผ์ด ๊ธฐ๋ณธ์œผ๋กœ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.
HHC_LOCATION hhc.exe์˜ ๊ฒฝ๋กœ๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค. ๊ธฐ๋ณธ ๊ฒฝ๋กœ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค. C:\Program Files (x86)\HTML Help Workshop\hhc.exe

Doxygen GUI์—์„œ chm ์ƒ์„ฑํ•˜๊ธฐ

์œ„์™€ ๊ฐ™์ด ์„ค์ •์„ ๋ชจ๋‘ ๋งˆ์ณค๋‹ค๋ฉด, Run ํƒญ์—์„œ Run doxygen ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜์—ฌ ๋นŒ๋“œํ•ฉ๋‹ˆ๋‹ค.

Run doxygen ํด๋ฆญํ•˜์—ฌ ๋นŒ๋“œํ•˜๊ธฐ
Run doxygen ํด๋ฆญํ•˜์—ฌ ๋นŒ๋“œํ•˜๊ธฐ

๋นŒ๋“œ๊ฐ€ ๋๋‚˜๋ฉด Destination directory ๊ฒฝ๋กœ์— chm ํŒŒ์ผ์ด ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.

Doxygen ๋นŒ๋“œ ์ƒ์„ฑ ๊ฒฝ๋กœ ํ™•์ธ
Doxygen ๋นŒ๋“œ ์ƒ์„ฑ ๊ฒฝ๋กœ ํ™•์ธ

์•„๋ž˜์™€ ๊ฐ™์ด ์„ค์ •ํ•œ ์ด๋ฆ„์œผ๋กœ ํŒŒ์ผ์ด ์กด์žฌํ•ฉ๋‹ˆ๋‹ค.

chm ์ƒ์„ฑ ํ™•์ธ
chm ์ƒ์„ฑ ํ™•์ธ

doc.chm์„ ์‹คํ–‰ํ•˜๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด ์šฐ๋ฆฌ๊ฐ€ ํ”ํžˆ ๋ณด๋˜ ๊ทธ ํ˜•์‹์ž…๋‹ˆ๋‹ค. ๊ทธ๋Ÿฐ๋ฐ ๋ณธ๋ฌธ์€ ํ•œ๊ธ€์ด ์ž˜ ํ‘œ์‹œ๋˜๋Š”๋ฐ ๋ชฉ์ฐจ ๋ถ€๋ถ„์˜ ํ•œ๊ธ€์€ ๊นจ์ ธ์žˆ์Šต๋‹ˆ๋‹ค.

ํ•œ๊ธ€์ด ๊นจ์ง„ ์ฑ„ ์ƒ์„ฑ๋œ chm ํŒŒ์ผ
ํ•œ๊ธ€์ด ๊นจ์ง„ ์ฑ„ ์ƒ์„ฑ๋œ chm ํŒŒ์ผ

๋งŒ์•ฝ, ๋ชจ๋“  ๋ชฉ์ฐจ๋ฅผ ์˜๋ฌธ์œผ๋กœ ์ž‘์„ฑํ•œ๋‹ค๋ฉด ๋ฌธ์ œ๊ฐ€ ์—†๊ฒ ์ง€๋งŒ ํ•œ๊ธ€์ด ํฌํ•จ๋œ ๊ฒฝ์šฐ์—๋Š” ๋‹ค์Œ์˜ ๋ฐฉ์‹์„ ์ถ”๊ฐ€ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

doxygen chm ํ•œ๊ธ€ ๊นจ์ง ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

chm ํŒŒ์ผ์˜ ๋ชฉ์ฐจ๋ฅผ ์ƒ์„ฑํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” index.hhc ํŒŒ์ผ์„ ์‚ฌ์šฉํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค. ๊ทธ๋Ÿฐ๋ฐ ์ด ํŒŒ์ผ์ด UTF-8 ํ˜•์‹์œผ๋กœ ์ž‘์„ฑ๋˜์–ด ์žˆ๋‹ค ๋ณด๋‹ˆ ์ด์™€ ๊ฐ™์ด ํ•œ๊ธ€์ด ๊นจ์ง€๊ฒŒ ๋˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์ฆ‰, index.hhc ํŒŒ์ผ์„ CP949 ํ˜•์‹์œผ๋กœ ๋ณ€ํ™˜๋งŒ ํ•ด์ฃผ๋ฉด ํ•ด๊ฒฐ์ด ๋ฉ๋‹ˆ๋‹ค.

index.hhc ํŒŒ์ผ์„ CP949๋กœ ๋ณ€ํ™˜ํ•˜๊ธฐ ์œ„ํ•ด์„œ iconv๋ผ๋Š” ํ”„๋กœ๊ทธ๋žจ์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ์ธํ„ฐ๋„ท์— ์žˆ๋Š” ๋งํฌ๋‚˜ ์•„๋ž˜์˜ ์ฒจ๋ถ€๋œ ํŒŒ์ผ์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

iconv-1.9.2.win32.zip
1.25MB

๊ทธ๋ฆฌ๊ณ  ์•„๋ž˜์˜ ๋ฐฐ์น˜ ํŒŒ์ผ๋„ ๋‹ค์šด๋กœ๋“œํ•ฉ๋‹ˆ๋‹ค. ์••์ถ• ํŒŒ์ผ์„ ํ•ด์ œํ•˜๋ฉด hhc converter.bat ํŒŒ์ผ์ด ์žˆ์Šต๋‹ˆ๋‹ค.

hhc converter.zip
0.00MB

์ด ๋ฐฐ์น˜ ํŒŒ์ผ์€ Doxygen GUI๋กœ chm ํŒŒ์ผ์„ ๋นŒ๋“œํ•˜๋Š” ๊ณผ์ • ์ค‘์— ์ƒ์„ฑ๋˜๋Š” index.hhc ํŒŒ์ผ์˜ ํ˜•์‹์„ CP949๋กœ ๋ณ€ํ™˜ํ•ด์ฃผ๋Š” ๋ช…๋ น์–ด๊ฐ€ ํฌํ•จ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ๋‚˜์ค‘์— ์„ค๋ช…ํ•  HHC_LOCATION์— ์ด ๋ฐฐ์น˜ ํŒŒ์ผ์„ ์„ ํƒํ•˜๋ฉด ์ž๋™์œผ๋กœ ํ˜•์‹์„ ๋ณ€ํ™˜ํ•˜์—ฌ ํ•œ๊ธ€์ด ๊นจ์ง€์ง€ ์•Š๊ฒŒ ๋ฉ๋‹ˆ๋‹ค.

๋ฐฐ์น˜ ํŒŒ์ผ์˜ ๋‚ด์šฉ์„ ์„ค๋ช…ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

C:\Users\Gg\Downloads\iconv-1.9.2.win32\bin\iconv.exe -f UTF-8 -t CP949 index.hhc > temp.hhc
del index.hhc
move temp.hhc index.hhc
"C:\Program Files (x86)\HTML Help Workshop\hhc.exe" "%1"

์ฒจ๋ถ€๋œ iconv-1.9.2.win32.zip ํŒŒ์ผ์—๋Š” bin, include, lib ํด๋”๊ฐ€ ์žˆ๊ณ , bin ํด๋”์—๋Š” iconv.exe ํŒŒ์ผ์ด ์žˆ์Šต๋‹ˆ๋‹ค. ์ฒซ ์ค„์˜ C:\Users\Gg\Downloads\iconv-1.9.2.win32\bin\iconv.exe๋Š” iconv.exe ๊ฒฝ๋กœ๋ฅผ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค.

-f UTF-8 -t CP949 index.hhc๋Š” index.hhc ํŒŒ์ผ์„ UTF-8 ํฌ๋งท์—์„œ CP949 ํฌ๋งท์œผ๋กœ ๋ณ€ํ™˜ํ•˜๊ฒ ๋‹ค๋Š” ์˜๋ฏธ์ด๋ฉฐ, > temp.hhc๋Š” ๊ฒฐ๊ณผ๋ฌผ๋กœ temp.hhc ํŒŒ์ผ์„ ์ƒ์„ฑํ•˜๊ฒ ๋‹ค๋Š” ์˜๋ฏธ์ž…๋‹ˆ๋‹ค.

del index.hhc๋Š” ๋ณ€ํ™˜ ์ „์˜ index.hhc ํŒŒ์ผ์„ ์‚ญ์ œํ•˜๊ฒ ๋‹ค๋Š” ์˜๋ฏธ์ด๊ณ , move temp.hhc index.hhc๋Š” temp.hhc ํŒŒ์ผ ์ด๋ฆ„์„ index.hhc ํŒŒ์ผ ์ด๋ฆ„์œผ๋กœ ๋ณ€๊ฒฝํ•˜๊ฒ ๋‹ค๋Š” ์˜๋ฏธ์ž…๋‹ˆ๋‹ค.

๋งˆ์ง€๋ง‰์œผ๋กœ "C:\Program Files (x86)\HTML Help Workshop\hhc.exe" "%1"์€ hhc.exe๋ฅผ ์‹คํ–‰ํ•œ๋‹ค๋Š” ์˜๋ฏธ์ž…๋‹ˆ๋‹ค.

๋”ฐ๋ผ์„œ, ์ด ๊ธ€์„ ๋ณด๊ณ  ๋”ฐ๋ผ ํ•˜์‹ค ๊ฒฝ์šฐ ๋ฐฐ์น˜ ํŒŒ์ผ์˜ iconv.exe ๊ฒฝ๋กœ๋ฅผ ์ˆ˜์ •ํ•˜์…”์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๋ฐฐ์น˜ ํŒŒ์ผ ์ˆ˜์ •์ด ์™„๋ฃŒ๋˜๋ฉด HHC_LOCATION์—์„œ ๋ฐฐ์น˜ ํŒŒ์ผ์„ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค.

๋ฐฐ์น˜ ํŒŒ์ผ์ด ์ง€์ •๋œ ๋ชจ์Šต
๋ฐฐ์น˜ ํŒŒ์ผ์ด ์ง€์ •๋œ ๋ชจ์Šต

๊ทธ๋ฆฌ๊ณ  ์•„๋ž˜์™€ ๊ฐ™์ด ์„ค์ •๋˜์–ด ์žˆ๋Š”์ง€ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.

์œ„์น˜ ํ•ญ๋ชฉ ๊ฐ’
Expert > Project DOXYFILE_ENCODING CP949
OUTPUT_LANGUAGE Korean
Expert > Input INPUT_ENCODING CP949
Expert > HTML GENERATE_HTMLHELP ์ฒดํฌ
HHC_LOCATION ๋ฐฐ์น˜ ํŒŒ์ผ ๊ฒฝ๋กœ

์œ„์™€ ๊ฐ™์ด ์„ค์ •ํ•˜์—ฌ ๋นŒ๋“œํ•˜๋ฉด chm ํŒŒ์ผ์˜ ๋ชฉ์ฐจ๊ฐ€ ๋ชจ๋‘ ์ •์ƒ์ ์œผ๋กœ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.

์ •์ƒ์ ์œผ๋กœ ํ•œ๊ธ€์ด ํ‘œ์‹œ๋˜๋Š” ๋ชจ์Šต
์ •์ƒ์ ์œผ๋กœ ํ•œ๊ธ€์ด ํ‘œ์‹œ๋˜๋Š” ๋ชจ์Šต

๋ฐ˜์‘ํ˜•