51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 5862|回复: 8
打印 上一主题 下一主题

下了cppunit-1.10.2.tar.gz,但折腾很久安装不成功,求教!

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2006-5-17 15:11:41 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我的VC6装在 D:\study\Program Files\VC

我按照下面的指示装的:
----------------------------------------------
假设cppunit-1.10.2.tar.gz解压之后的目录路径为 $CppUnitPath$
用vc6.0的open workspace导入$CppUnitPath$/src下的文件CppUnitLibraries.dsw
选择Project->Set Active Project为TestPlugInRunner
打开Build->Batch Build的页面:选中所有Project,然后build
---------------------------------------------------

问题出现:我Batch Build不成功!
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2006-5-17 15:13:15 | 只看该作者
编译提示信息如下:
~~~~~~~~~~~~~~~~~~~~

--------------------Configuration: DSPlugIn - Win32 Release--------------------
Creating Type Library...
Processing D:\study\Program Files\cppunit-1.10.2\src\msvc6\DSPlugIn\TestRunnerDSPlugin.idl
TestRunnerDSPlugin.idl
Processing D:\study\Program Files\VC\VC98\INCLUDE\oaidl.idl
oaidl.idl
Processing D:\study\Program Files\VC\VC98\INCLUDE\objidl.idl
objidl.idl
Processing D:\study\Program Files\VC\VC98\INCLUDE\unknwn.idl
unknwn.idl
Processing D:\study\Program Files\VC\VC98\INCLUDE\wtypes.idl
wtypes.idl
Processing D:\study\Program Files\VC\VC98\INCLUDE\ocidl.idl
ocidl.idl
Processing D:\study\Program Files\VC\VC98\INCLUDE\oleidl.idl
oleidl.idl
Processing D:\study\Program Files\VC\VC98\INCLUDE\servprov.idl
servprov.idl
Processing D:\study\Program Files\VC\VC98\INCLUDE\urlmon.idl
urlmon.idl
Processing D:\study\Program Files\VC\VC98\INCLUDE\msxml.idl
msxml.idl
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
DSAddIn.cpp
DSPlugIn.cpp
TestRunnerDSPluginVC6_i.c
Linking...
   Creating library Release/TestRunnerDSPlugIn.lib and object Release/TestRunnerDSPlugIn.exp
Performing Registration
系统找不到指定的路径。
duplicating DLL to lib directory
The following command may fail if you have already registered the add-in
系统找不到指定的路径。
Error executing c:\windows\system32\cmd.exe.

TestRunnerDSPlugIn.dll - 1 error(s), 0 warning(s)
--------------------Configuration: DSPlugIn - Win32 Debug--------------------
Build : warning : failed to (or don't know how to) build 'D:\study\Program Files\cppunit-1.10.2\src\msvc6\DSPlugIn\Debug\TestRunnerDSPlugInD.dll'
Performing Registration
系统找不到指定的路径。

TestRunnerDSPlugInD.dll - 0 error(s), 1 warning(s)
--------------------Configuration: DSPlugIn - Win32 Release Unicode--------------------
Build : warning : failed to (or don't know how to) build 'D:\study\Program Files\cppunit-1.10.2\src\msvc6\DSPlugIn\ReleaseUnicode\TestRunnerDSPlugIn.dll'
Performing Registration
系统找不到指定的路径。

TestRunnerDSPlugIn.dll - 0 error(s), 1 warning(s)
--------------------Configuration: DSPlugIn - Win32 Debug Unicode--------------------
Build : warning : failed to (or don't know how to) build 'D:\study\Program Files\cppunit-1.10.2\src\msvc6\DSPlugIn\DebugUnicode\TestRunnerDSPlugInD.dll'
Performing Registration
系统找不到指定的路径。
duplicating DLL to lib directory
The following command may fail if you have already registered the add-in
系统找不到指定的路径。
Error executing c:\windows\system32\cmd.exe.

TestRunnerDSPlugInD.dll - 1 error(s), 1 warning(s)
--------------------Configuration: cppunit - Win32 Release--------------------
Compiling...
BriefTestProgressListener.cpp
TestResultCollector.cpp
TestSuccessListener.cpp
TextTestProgressListener.cpp
TextTestResult.cpp
TextTestRunner.cpp
CompilerOutputter.cpp
TextOutputter.cpp
XmlOutputter.cpp
XmlOutputterHook.cpp
AdditionalMessage.cpp
Asserter.cpp
Exception.cpp
Message.cpp
SourceLine.cpp
SynchronizedObject.cpp
Test.cpp
TestAssert.cpp
TestCase.cpp
TestComposite.cpp
TestFailure.cpp
TestLeaf.cpp
TestPath.cpp
TestResult.cpp
TestRunner.cpp
TestSuite.cpp
TestFactoryRegistry.cpp
TestNamer.cpp
TestSuiteBuilderContext.cpp
TypeInfoHelper.cpp
RepeatedTest.cpp
TestCaseDecorator.cpp
TestDecorator.cpp
TestSetUp.cpp
BeosDynamicLibraryManager.cpp
DynamicLibraryManager.cpp
DynamicLibraryManagerException.cpp
PlugInManager.cpp
PlugInParameters.cpp
ShlDynamicLibraryManager.cpp
TestPlugInDefaultImpl.cpp
UnixDynamicLibraryManager.cpp
Win32DynamicLibraryManager.cpp
StringTools.cpp
XmlDocument.cpp
XmlElement.cpp
DefaultProtector.cpp
Protector.cpp
ProtectorChain.cpp
Creating library...
Copying target to lib/
系统找不到指定的路径。
Error executing c:\windows\system32\cmd.exe.

DllPlugInTesteru.exe - 1 error(s), 0 warning(s)
--------------------Configuration: cppunit_dll - Win32 Debug--------------------
Compiling...
DllMain.cpp
RepeatedTest.cpp
TestCaseDecorator.cpp
TestDecorator.cpp
TestSetUp.cpp
TestFactoryRegistry.cpp
TestNamer.cpp
TestSuiteBuilderContext.cpp
TypeInfoHelper.cpp
AdditionalMessage.cpp
Asserter.cpp
Exception.cpp
Message.cpp
SourceLine.cpp
SynchronizedObject.cpp
Test.cpp
TestAssert.cpp
TestCase.cpp
TestComposite.cpp
TestFailure.cpp
Generating Code...
Compiling...
TestLeaf.cpp
TestPath.cpp
TestResult.cpp
TestRunner.cpp
TestSuite.cpp
CompilerOutputter.cpp
TestResultCollector.cpp
TextOutputter.cpp
XmlOutputter.cpp
XmlOutputterHook.cpp
TextTestRunner.cpp
BriefTestProgressListener.cpp
TestSuccessListener.cpp
TextTestProgressListener.cpp
TextTestResult.cpp
BeosDynamicLibraryManager.cpp
DynamicLibraryManager.cpp
DynamicLibraryManagerException.cpp
PlugInManager.cpp
PlugInParameters.cpp
Generating Code...
Compiling...
TestPlugInDefaultImpl.cpp
UnixDynamicLibraryManager.cpp
Win32DynamicLibraryManager.cpp
StringTools.cpp
XmlDocument.cpp
XmlElement.cpp
DefaultProtector.cpp
Protector.cpp
ProtectorChain.cpp
Generating Code...
Linking...
   Creating library DebugDll/cppunitd_dll.lib and object DebugDll/cppunitd_dll.exp
Copying target to lib/
系统找不到指定的路径。
系统找不到指定的路径。
Error executing c:\windows\system32\cmd.exe.

DllPlugInTesterud.exe - 1 error(s), 0 warning(s)
--------------------Configuration: cppunit_dll - Win32 Release--------------------
Compiling...
DllMain.cpp
RepeatedTest.cpp
TestCaseDecorator.cpp
TestDecorator.cpp
TestSetUp.cpp
TestFactoryRegistry.cpp
TestNamer.cpp
TestSuiteBuilderContext.cpp
TypeInfoHelper.cpp
AdditionalMessage.cpp
Asserter.cpp
Exception.cpp
Message.cpp
SourceLine.cpp
SynchronizedObject.cpp
Test.cpp
TestAssert.cpp
TestCase.cpp
TestComposite.cpp
TestFailure.cpp
TestLeaf.cpp
TestPath.cpp
TestResult.cpp
TestRunner.cpp
TestSuite.cpp
CompilerOutputter.cpp
TestResultCollector.cpp
TextOutputter.cpp
XmlOutputter.cpp
XmlOutputterHook.cpp
TextTestRunner.cpp
BriefTestProgressListener.cpp
TestSuccessListener.cpp
TextTestProgressListener.cpp
TextTestResult.cpp
BeosDynamicLibraryManager.cpp
DynamicLibraryManager.cpp
DynamicLibraryManagerException.cpp
PlugInManager.cpp
PlugInParameters.cpp
TestPlugInDefaultImpl.cpp
UnixDynamicLibraryManager.cpp
Win32DynamicLibraryManager.cpp
StringTools.cpp
XmlDocument.cpp
XmlElement.cpp
DefaultProtector.cpp
Protector.cpp
ProtectorChain.cpp
Linking...
   Creating library ReleaseDll/cppunit_dll.lib and object ReleaseDll/cppunit_dll.exp
Copying target to lib/
系统找不到指定的路径。
系统找不到指定的路径。
Error executing c:\windows\system32\cmd.exe.

DllPlugInTester.exe - 1 error(s), 0 warning(s)
--------------------Configuration: DllPlugInTester - Win32 Debug Static--------------------
Compiling...
CommandLineParser.cpp
DllPlugInTester.cpp
Generating Code...
Linking...
LINK : fatal error LNK1181: cannot open input file "cppunitd.lib"
Error executing link.exe.

DllPlugInTesterd.exe - 1 error(s), 0 warning(s)
--------------------Configuration: DllPlugInTester - Win32 Release--------------------
Compiling...
CommandLineParser.cpp
DllPlugInTester.cpp
Generating Code...
Linking...
LINK : fatal error LNK1181: cannot open input file "cppunit_dll.lib"
Error executing link.exe.

DllPlugInTester_dll.exe - 1 error(s), 0 warning(s)
--------------------Configuration: DllPlugInTester - Win32 Debug--------------------
Compiling...
CommandLineParser.cpp
DllPlugInTester.cpp
Generating Code...
Linking...
LINK : fatal error LNK1181: cannot open input file "cppunitd_dll.lib"
Error executing link.exe.

DllPlugInTesterd_dll.exe - 1 error(s), 0 warning(s)
--------------------Configuration: TestRunner - Win32 Release--------------------
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
cdxCDynamicDialog.cpp
cdxCDynamicWnd.cpp
cdxCDynamicWndEx.cpp
cdxCSizeIconCtrl.cpp
ListCtrlFormatter.cpp
ListCtrlSetter.cpp
MsDevCallerListCtrl.cpp
ProgressBar.cpp
ResourceLoaders.cpp
TestRunnerApp.cpp
TestRunnerDlg.cpp
TreeHierarchyDlg.cpp
ActiveTest.cpp
MfcTestRunner.cpp
TestRunnerModel.cpp
MostRecentTests.cpp
Generating Code...
Compiling...
TestRunnerDSPluginVC6_i.c
Linking...
LINK : fatal error LNK1181: cannot open input file "..\..\..\lib\cppunit.lib"
Error executing link.exe.

TestPlugInRunner.exe - 1 error(s), 0 warning(s)
--------------------Configuration: TestRunner - Win32 Debug--------------------
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
cdxCDynamicDialog.cpp
cdxCDynamicWnd.cpp
cdxCDynamicWndEx.cpp
cdxCSizeIconCtrl.cpp
ListCtrlFormatter.cpp
ListCtrlSetter.cpp
MsDevCallerListCtrl.cpp
ProgressBar.cpp
ResourceLoaders.cpp
TestRunnerApp.cpp
TestRunnerDlg.cpp
TreeHierarchyDlg.cpp
ActiveTest.cpp
MfcTestRunner.cpp
TestRunnerModel.cpp
MostRecentTests.cpp
Generating Code...
Compiling...
TestRunnerDSPluginVC6_i.c
Linking...
LINK : fatal error LNK1104: cannot open file "..\..\..\lib\cppunitd.lib"
Error executing link.exe.

TestPlugInRunnerd.exe - 1 error(s), 0 warning(s)
--------------------Configuration: TestRunner - Win32 Release Unicode--------------------
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
cdxCDynamicDialog.cpp
cdxCDynamicWnd.cpp
cdxCDynamicWndEx.cpp
cdxCSizeIconCtrl.cpp
ListCtrlFormatter.cpp
ListCtrlSetter.cpp
MsDevCallerListCtrl.cpp
ProgressBar.cpp
ResourceLoaders.cpp
TestRunnerApp.cpp
TestRunnerDlg.cpp
TreeHierarchyDlg.cpp
ActiveTest.cpp
MfcTestRunner.cpp
TestRunnerModel.cpp
MostRecentTests.cpp
Generating Code...
Compiling...
TestRunnerDSPluginVC6_i.c
Linking...
LINK : fatal error LNK1181: cannot open input file "..\..\..\lib\cppunit.lib"
Error executing link.exe.

testrunneru.dll - 1 error(s), 0 warning(s)
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2006-5-17 15:13:40 | 只看该作者
--------------------Configuration: TestRunner - Win32 Debug Unicode--------------------
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
cdxCDynamicDialog.cpp
cdxCDynamicWnd.cpp
cdxCDynamicWndEx.cpp
cdxCSizeIconCtrl.cpp
ListCtrlFormatter.cpp
ListCtrlSetter.cpp
MsDevCallerListCtrl.cpp
ProgressBar.cpp
ResourceLoaders.cpp
TestRunnerApp.cpp
TestRunnerDlg.cpp
TreeHierarchyDlg.cpp
ActiveTest.cpp
MfcTestRunner.cpp
TestRunnerModel.cpp
MostRecentTests.cpp
Generating Code...
Compiling...
TestRunnerDSPluginVC6_i.c
Linking...
LINK : fatal error LNK1104: cannot open file "..\..\..\lib\cppunitd.lib"
Error executing link.exe.

testrunnerud.dll - 1 error(s), 0 warning(s)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

请教高手,这是怎么了?
或者哪位有安装成功过(在VC下)cppunit-1.10.2.tar.gz的给我提供点经验,或重新发我一个源文件。谢谢!谢谢!
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2006-5-18 22:16:48 | 只看该作者
你要先编译生成TestRunnerDSPlugInD.dll,放到lib目录

进入src文件夹,打开CppUnitLibraries.dsw,输出位置为lib文件夹
回复 支持 反对

使用道具 举报

该用户从未签到

5#
发表于 2006-6-11 09:07:56 | 只看该作者
如何在cygwin使用起来?有经验的朋友请张贴
回复 支持 反对

使用道具 举报

该用户从未签到

6#
发表于 2006-7-19 10:58:32 | 只看该作者
First, you need to compile CppUnit libraries:

Open the $CPPUNIT/src/CppUnitLibraries.dsw workspace in VC++.
In the 'Build' menu, select 'Batch Build...'
In the batch build dialog, select all projects and press the build button.
The resulting libraries can be found in the $CPPUNIT/lib/ directory.
Once it is done, you need to tell VC++ where are the includes and librairies to use them in other projects. Open the 'Tools/Options...' dialog, and in the 'Directories' tab, select 'include files' in the combo. Add a new entry that points to $CPPUNIT/include/. Change to 'libraries files' in the combo and add a new entry for $CPPUNIT/lib/. Repeat the process with 'source files' and add $CPPUNIT/src/cppunit/.
回复 支持 反对

使用道具 举报

该用户从未签到

7#
发表于 2006-7-19 10:58:52 | 只看该作者
In tab 'C++', combo 'Code generation', set the combo to 'Multithreaded DLL' for the release configuration, and 'Debug Multithreaded DLL' for the debug configure,
In tab 'C++', combo 'C++ langage', for All Configurations, check 'enable Run-Time Type Information (RTTI)',
In tab 'Link', in the 'Object/library modules' field, add cppunitd.lib for the debug configuration, and cppunit.lib for the release configuration.
回复 支持 反对

使用道具 举报

该用户从未签到

8#
发表于 2006-7-19 11:00:01 | 只看该作者
Select 'All configurations' (upper left combo)
In the 'Post-build description', enter 'Unit testing...'
In 'post-build command(s)', add a new line: $(TargetPath)$
回复 支持 反对

使用道具 举报

该用户从未签到

9#
发表于 2006-7-19 11:01:41 | 只看该作者
跟着步奏来
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-22 08:01 , Processed in 0.070752 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表