2012-07-19 83 views
1

我是stackoverflow的新手。我的問題ia關於gpuocelet。有沒有人使用它?它在unix上工作嗎(我使用OS X 10.7的MacBook Air)操作系統?我嘗試了很多方式來安裝它,但沒有成功。我安裝了以下說明http://code.google.com/p/gpuocelot/downloads/detail?name=Ocelot_Installation_manual2.pdf 我特別安裝提振通過MacPorts的1.50,但我得到運行在gpuocelot文件夾./configure的錯誤是從MacPorts的需要正確的所有包:在OSX Lion下安裝GPUOCELOT 10.7

MacBook-Air-di-Manfredo:downloads manfredo$ cd ocelot-2.0.969/
MacBook-Air-di-Manfredo:ocelot-2.0.969 manfredo$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for main in -lboost_system-mt... no
configure: error: "libboost_system required"
MacBook-Air-di-Manfredo:ocelot-2.0.969 manfredo$

我的道路是

 PATH=/Users/manfredo/downloads/boost_1_42_0/stage/lib:/Users/manfredo/downloads/boost_1_42_0/libs:/Users/manfredo/downloads/boost_1_42_0/libs:/Users/manfredo/downloads/boost_1_42_0/boost/system:/Users/manfredo/downloads/boost_1_42_0/boost:/opt/local/bin:/opt/local/sbin:/opt/local/lib:/usr/local/cuda/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin 

歡迎各位幫忙,謝謝。

+0

是否使用升壓在/用戶/曼弗雷/下載/ boost_1_42_0 /臺/ lib或在MacPorts的 - 這不應該是你的路徑,但在include和LIB環境變量 – Mark 2012-07-19 13:54:59

+0

謝謝馬克,你的回答很有用。我刪除了boost的下載文件夾並僅使用macports版本。我在終端中添加了以下行: MacBook-Air-di-Manfredo:〜manfredo $ CPLUS_INCLUDE_PATH =/opt/local/include/boost MacBook-Air-di-Manfredo:〜manfredo $ export CPLUS_INCLUDE_PATH MacBook-Air-di -Manfredo:〜manfredo $ LIBRARY_PATH =/opt/local/lib現在找到libboost,但它仍然給我一個錯誤: 檢查clock_gettime in -lrt ... no configure:error:「librt required」 – Manfredo 2012-07-22 08:37:48

回答

0

它看起來像你有另一個試圖安裝版本的Boost安裝在你的主目錄,因爲你已經把它放在你的路徑上,Boost不會在路徑上,但標題應該在INCLUDE環境變量和庫中一個lib變量。

對於macports,這些分別是/ opt/local/include和/ opt/local/lib。

例如對於CMake的從variables that control the build

CMAKE_INCLUDE_CURRENT_DIR=/opt/local/include 
CMAKE_LIBRARY_PATH_FLAG=/opt/local/lib 
+0

我認爲現在boost庫正確鏈接。報告是: 檢查是否安全定義__EXTENSIONS __...是 檢查main中-lboost_system-mt ...是 檢查main中-lboost_filesystem-mt ...是 檢查main中-lboost_wserialization -mt ...是 檢查主要in -lboost_serialization-mt ...是 檢查主in -lboost_thread-mt ...是 檢查glewInit是否在-lGLEW ...是 檢查clock_gettime in -lrt ... no configure:error:「librt required」 我無法找到任何關於此-librt庫的有用信息,您怎麼看? Thx – Manfredo 2012-07-22 16:26:41

+0

librt是Posix實時庫,但不在OSX上,其所有功能都在主C庫中,因此您需要編輯makefile以將其刪除。請參閱我的答案http://stackoverflow.com/questions/1505402/library-not-found-for-lrt-with-qtcreator-mac-os – Mark 2012-07-22 18:02:36

+0

這篇文章(https://groups.google.com/forum/? fromgroups#!topic/gpuocelot/0mhpB2B_xxw)在我看來對於理解在mac osx上安裝gpuocelot的過程非常重要,特別是最後一行: 「我很快就會收到一個Linux的包裝盒,所以我放棄了。 可能是最好的事情... – Manfredo 2012-07-23 21:40:59