Translations:Development/FAQs/Technical FAQ/33/ja: Difference between revisions

From KDE TechBase
(Created page with "上にある ''--enable-final'' を読んで下さい :) ''make final'' は --enable-final なしでも現在のディレクトリに関して all-in-one-file トリックを使...")
 
(No difference)

Latest revision as of 08:12, 6 February 2012

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Development/FAQs/Technical FAQ)
See ''--enable-final'' above :) . ''make final'' uses the all-in-one-file trick in the current directory even if --enable-final wasn't used, and ''make no-final'' does a normal compilation in the current directory even if --enable-final was used. 
Include your moc files! Header files declaring a QObject descendant have to be run through moc to produce a .moc file. This .moc file has to be compiled, for which two possibilities exists: compile it separately, or #include it in the C++ file implementing that above mentioned class. The latter is more efficient in term of compilation speed. BTW, kdesdk/scripts/includemocs does this automatically.
Buy more ram, a faster machine and another processor. On a bi-PIII 866 MHz with 1GB of RAM, kde compiles at a decent speed :-)))

上にある --enable-final を読んで下さい :) make final は --enable-final なしでも現在のディレクトリに関して all-in-one-file トリックを使います。make no-final は --enable-final を付けていても現在のディレクトリを普通の方法でコンパイルします。 moc ファイルをインクルードして下さい! QObject の派生クラスを定義しているヘッダファイルは .moc ファイルを生成するために moc を通さなくてはいけません。.moc ファイルもコンパイルしなくてはいけませんが、方法は2つあります。ひとつは別々にコンパイルする方法、もうひとつはクラスを実装しているファイルにインクルードする方法です。後者の方がコンパイルスピードの点で効率的です。kdesdk/scripts/includemocs ではこの方法が自動的にこれを行ないます。 あるいは、容量の大きい RAM や、高速なマシン、新しい CPU を購入しましょう。bi-PIII 866 MHz と 1GB の RAM では、まともな速度で KDE はコンパイルされます。