2

私の主な問題は、ProjectMappen-Explorer(Project Explorer)からファイルを削除してから、再度追加したことです。これでプロジェクトはコンパイルされなくなり、理由がわかりません。

どうすれば再度コンパイルできますか?

プロジェクトはcmakeによって生成されたものであり、これも大きなオーバーヘッドです。

そして:私は自分でファイルを追加したいのですが、これは同じ問題につながります。したがって、再生成は役に立ちません。

ご協力ありがとうございました!

エラー1

Fehler  1   error MSB3073: Der Befehl "setlocal
"C:\Program Files (x86)\CMake 2.8\bin\ctest.exe" --force-new-ctest-process -C Debug
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd" wurde mit dem Code 8 beendet.   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets   113 6   RUN_TESTS

エラー3

Fehler  3   error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: bool __cdecl SolidMesh::PointInPolygonAlgorithm::pointInPolygon(class osg::Vec3f)" (?pointInPolygon@PointInPolygonAlgorithm@SolidMesh@@QEAA_NVVec3f@osg@@@Z)" in Funktion ""public: static bool __cdecl DomAdapter::PointInPolygon(class osg::Vec3f const &,class osg::ref_ptr<class osg::TemplateArray<class osg::Vec3f,10,3,5126> > const &)" (?PointInPolygon@DomAdapter@@SA_NAEBVVec3f@osg@@AEBV?$ref_ptr@V?$TemplateArray@VVec3f@osg@@$09$02$0BEAG@@osg@@@3@@Z)".   C:\Users\wollknaeul\Documents\HPI\algorithmische geometrie\algogeometrie\trunk\build\algorithmtest\PointInPolygonTest.obj   test_Algorithm

エラー4

Fehler  2   error MSB6006: "cmd.exe" wurde mit dem Code 9009 beendet.   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets   151 6   run

質問への回答

in>"C:\Program Files (x86)\CMake 2.8\bin\ctest.exe" --force-new-ctest-process -C
 Debug
Test project C:/Users/wollknaeul/Documents/HPI/algorithmische geometrie/algogeom
etrie/trunk/bin
    Start 1: test_Algorithm
Could not find executable test_Algorithm
Looked in the following places:
test_Algorithm
test_Algorithm.exe
Debug/test_Algorithm
Debug/test_Algorithm.exe
Debug/test_Algorithm
Debug/test_Algorithm.exe
Unable to find executable: test_Algorithm
1/1 Test #1: test_Algorithm ...................***Not Run   0.00 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.11 sec

The following tests FAILED:
          1 - test_Algorithm (Not Run)
Errors while running CTest
4

2 に答える 2

2

管理者権限でVisualStudioを実行します。エラーは基本的に、CMakeがC:/ Program Files(x86)ディレクトリにアクセスして必要なファイルを作成/追加できないことです。

于 2015-11-19T16:32:09.060 に答える
0

解決

[プロジェクト] ->[再構築]または[再構築]を右クリックします。「NeuErstellen」


エラー1

最初のエラーはMSB3073であり、ビルド前またはビルド後の問題のように聞こえます。具体的には、ビルド前またはビルド後のイベントで実行されているスクリプトからのある種のエラーです。

(translate.google.com経由でドイツ語から翻訳):

コマンド"setlocal"C:\ Program Files(x86)\ CMake 2.8 \ bin \ ctest.exe "--force-new-ctest-process -C Debug if%errorlevel%neq 0 goto:cmEnd:cmEnd endlocal&call: cmErrorLevel%errorlevel%&goto:cmDone:cmErrorLevel exit / b%1:cmDone if%errorlevel%neq 0 goto:VCEnd:VCEnd "がコード8で終了しました。C:\ Program Files(x86)\ MSBuild \ Microsoft.Cpp \ v4 .0 \ Microsoft.CppCommon.targets 113 6 RUN_TESTS

これらのスクリプトをバッチファイルから実行できますか?

エラー3(2?)

2番目(3番目?)のエラーは LNK2019です

エラー4

グーグルはあなたの最後のエラーMSB6006についてたくさんのものを持っています

于 2012-05-08T18:43:58.097 に答える