Ubuntu 12.04 에서 kscope를 잘 사용 했었는데 13.10 으로 오면서 kscope 사용하는데 문제가 있다.

Virtualbox를 열어서 windows로 source Insight를 사용하기에 번거로워서 Ubuntu에서 소스분석 툴이 없을까 인터넷을 검색하던 중 source navigator가 있다는 것을 알게 되었다.

그래서 다시 인터넷 검색해서 아래와 같이 설치 방법을 찾고 사용해 보기로 한다.

아래 내용은 다음 블로그를 참조로 하였다.

[퍼옴] http://blog.daum.net/finalyu/17

아래에서 실제로는 4,5번을 제외한 6번까지 실행을 하였으며

3번에서 configure 실행 시에 뒤에 옵션을 달지 않았다.


1. 다음 사이트에서 source navigator의 최신 버젼을 다운로드한다. 

 http://sourcenav.sourceforge.net/

 

2. source navigator 설치를 위해 필요한 컴포넌트들을 설치한다.

 $ apt-get install build-essential autoconf automake libxmu-dev libxt-dev libxt6 libsm-dev libsm6 libice-dev libice6 libxmu-dev

 

3. source navigator 압축을 해제후 설치한다

 $ tar xvzf sourcenav-6.0.tar.gz

 $ cd sourcenav-6.0

 $ ./configure --prefix=/opt/sourcenav

 $ make

 $ make install

 

 4. source navigator의 path를 지정한다.

 $ vi $HOME/.bashrc

 

 - .bashrc -

PATH=$PATH:/opt/sourcenav/bin

 

 5. 지정된 path를 적용한다.

 $ source $HOME/.bashrc

 

6. source navigator을 실행한다.

 $ snavigator &

 

7. 설치후, 실행할 때 다음과 같은 오류가 나올때!!

 Can't find a usable tk.tcl in the following directories: 
/opt/sourcenav/share/tk8.3

/opt/sourcenav/share/tk8.3/tk.tcl: no event type or button # or keysym
no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
(file "/opt/sourcenav/share/tk8.3/listbox.tcl" line 182)
invoked from within
"source [file join $tk_library listbox.tcl]"
invoked from within
"if {[string compare $tcl_platform(platform) "macintosh"] && \
[string compare {} $tk_library]} {
source [file join $tk_library button.tcl]
so..."
(file "/opt/sourcenav/share/tk8.3/tk.tcl" line 308)
invoked from within
"source /opt/sourcenav/share/tk8.3/tk.tcl"
("uplevel" body line 1)
invoked from within
"uplevel \#0[list source $file]"


This probably means that tk wasn't installed properly.

 

다음과 같은 부분을 주석 처리한다

/opt/sourcenav/share/tk8.3/listbox.tcl 파일 안에 182-184줄

/opt/sourcenav/share/tk8.3/text.tcl 파일 안에 457-459줄

 

아마.. 마우스 휠과 관련된 부분인 것 같다..

+ Recent posts