作者Reinhard (伪ABJ)
看板Linux
标题[问题] /usr/bin/ld 不小心被改烂了
时间Wed Oct 1 16:07:35 2008
承上文 参考了这篇
http://tinyurl.com/52efab
把 /etc/ld.so.conf
在第一行加上了
/usr/local/lib
从此以後我的所以程式都不能跑
linking 也不会过了?
原本有装的一些 library 全部都被 ld 抱怨说找不到…
该怎麽样 restore 回来呢? QQ
举一错误讯息为例:
make -f Makefile CXXFLAGS="-c -O2"
make[1]: Entering directory
`/home/jutirain/Research/Video_Segmentation/Code/trunk'
g++ -c -O2 main.cpp
g++ -c -O2 ImageBox.cpp
g++ -c -O2 DoFunc.cpp
g++ -c -O2 GraphCut/graph.cpp
g++ -c -O2 GraphCut/maxflow.cpp
g++ -c -O2 GraphCut/GraphCut.cpp
g++ -c -O2 OpticalFlowSand.cpp
g++ main.o ImageBox.o DoFunc.o graph.o maxflow.o GraphCut.o OpticalFlowSand.o
-o video_segmentation `fltk-config --cxxflags --ldflags --use-images` -lgil2
-lANN -lm -lcv -lhighgui -lcvaux
/usr/bin/ld: cannot find -lcv
collect2: ld returned 1 exit status
make[1]: *** [all] Error 1
make[1]: Leaving directory
`/home/jutirain/Research/Video_Segmentation/Code/trunk'
make: *** [optimize] Error 2
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 157.82.147.209