vs2010 編譯poco

來源:互聯網
上載者:User

cumulus server需要poco,否則


2>j:\livestreaming\rtmpstore\cumulus\cumuluslib\include\cumulus.h(25): fatal error C1083: Cannot open include file: 'Poco/Foundation.h': No such file or directory
2>  LUAGroups.cpp
2>j:\livestreaming\rtmpstore\cumulus\cumuluslib\include\cumulus.h(25): fatal error C1083: Cannot open include file: 'Poco/Foundation.h': No such file or directory
2>  LUAGroup.cpp
2>j:\livestreaming\rtmpstore\cumulus\cumuluslib\include\cumulus.h(25): fatal error C1083: Cannot open include file: 'Poco/Foundation.h': No such file or directory
2>  LUAFlowWriter.cpp
2>j:\livestreaming\rtmpstore\cumulus\cumuluslib\include\cumulus.h(25): fatal error C1083: Cannot open include file: 'Poco/Foundation.h': No such file or directory
2>  LUAClients.cpp
2>j:\livestreaming\rtmpstore\cumulus\cumuluslib\include\cumulus.h(25): fatal error C1083: Cannot open include file: 'Poco/Foundation.h': No such file or directory
2>  LUAClient.cpp
2>j:\livestreaming\rtmpstore\cumulus\cumuluslib\include\cumulus.h(25): fatal error C1083: Cannot open include file: 'Poco/Foundation.h': No such file or directory
2>  LUAByteWriter.cpp
2>j:\livestreaming\rtmpstore\cumulus\cumuluslib\include\cumulus.h(25): fatal error C1083: Cannot open include file: 'Poco/Foundation.h': No such file or directory
2>  LUAByteReader.cpp
2>j:\livestreaming\rtmpstore\cumulus\cumuluslib\include\cumulus.h(25): fatal error C1083: Cannot open include file: 'Poco/Foundation.h': No such file or directory
2>  LUABroadcaster.cpp
2>j:\livestreaming\rtmpstore\cumulus\cumuluslib\include\cumulus.h(25): fatal error C1083: Cannot open include file: 'Poco/Foundation.h': No such file or directory
2>  FileWatcher.cpp
2>j:\livestreaming\rtmpstore\cumulus\cumulusserver\sources\filewatcher.h(20): fatal error C1083: Cannot open include file: 'Poco/File.h': No such file or directory
2>  Generating Code...
2>
2>Build FAILED.
2>
2>Time Elapsed 00:00:06.79
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========

說是找不到標頭檔啊。


那麼,http://poco.svn.sourceforge.net/viewvc/poco/poco/branches/poco-1.4.1/README

https://groups.google.com/forum/#!forum/openrtmfp-cumulus

編譯poco


我先執行了這個



然後開啟這個



這是vs2010的



1>------ Build started: Project: CppUnit, Configuration: debug_shared Win32 ------ 1>Build started 2013/10/25 17:24:47.
1>PrepareForBuild:
1>  Creating directory "..\bin\".
1>InitializeBuildStatus:
1>  Creating "obj\debug_shared\CppUnit.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>ClCompile:
1>  CppUnitException.cpp
1>  TestCase.cpp
1>  TestDecorator.cpp
1>  TestFailure.cpp
1>  TestResult.cpp
1>  TestRunner.cpp
1>  TestSuite.cpp
1>  TextTestResult.cpp
1>  Generating Code...
1>MakeDirsForLink:
1>  Creating directory "J:\livestreaming\rtmpStore\poco-1.4.6p1\poco-1.4.6p1\lib\".
1>Link:
1>     Creating library ..\lib\CppUnitd.lib and object ..\lib\CppUnitd.exp
1>LinkEmbedManifest:
1>     Creating library ..\lib\CppUnitd.lib and object ..\lib\CppUnitd.exp
1>  CppUnit_vs100.vcxproj -> J:\livestreaming\rtmpStore\poco-1.4.6p1\poco-1.4.6p1\CppUnit\..\bin\CppUnitd.dll
1>FinalizeBuildStatus:
1>  Deleting file "obj\debug_shared\CppUnit.unsuccessfulbuild".
1>  Touching "obj\debug_shared\CppUnit.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:14.17
2>------ Build started: Project: WinTestRunner, Configuration: debug_shared Win32 ------
2>Build started 2013/10/25 17:25:01.
2>InitializeBuildStatus:
2>  Creating "obj\debug_shared\WinTestRunner.unsuccessfulbuild" because "AlwaysCreate" was specified.
2>ClCompile:
2>  ActiveTest.cpp
2>  DLLMain.cpp
2>  GUITestResult.cpp
2>  ProgressBar.cpp
2>  TestRunnerDlg.cpp
2>  WinTestRunner.cpp
2>  Generating Code...
2>Link:
2>     Creating library ..\..\lib\WinTestRunnerd.lib and object ..\..\lib\WinTestRunnerd.exp
2>LinkEmbedManifest:
2>     Creating library ..\..\lib\WinTestRunnerd.lib and object ..\..\lib\WinTestRunnerd.exp
2>  WinTestRunner_vs100.vcxproj -> J:\livestreaming\rtmpStore\poco-1.4.6p1\poco-1.4.6p1\CppUnit\WinTestRunner\..\..\bin\WinTestRunnerd.dll
2>FinalizeBuildStatus:
2>  Deleting file "obj\debug_shared\WinTestRunner.unsuccessfulbuild".
2>  Touching "obj\debug_shared\WinTestRunner.lastbuildstate".
2>
2>Build succeeded.
2>
2>Time Elapsed 00:00:19.12

========== Build: 2 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========





可是,要怎麼使用呢。。


在cumuluslib上右鍵,又不是在solution上右鍵,就可以看到lib需要的具體設定了:


在c/c++ general中,加入:





聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.