This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

*/

vSomeIP version 2.14.16 빌드

CommonAPI C++ with SOME/IP Example 에서

$git clone http://github.com/GENIVI/vSomeIP.git 하면 현재(2020년2월27일) 설치되는 버젼이 vsomeip 3.1.7.1의 코드가 설치되는데 본 코드로 빌드하면 capicxx-someip-runtime 빌드시 vsomeip를 찾을수 없다는 오류가 발생한다.

vSomeIP 디렉토리에서 아래 명령어로 로그와 현재 버전을 체크한다.
$git log

$ git show

vsomip 2.14.16버전으로 돌리고자하면 로그상에서 몇번째 아래에 있는지 확인하고(여기서는 1단계 아래) 아래와 같이 git checkout HEAD~1을 해준다. 5단계 아래일 경우 git checkout HEAD~5. 가장 최신으로 돌아올 경우 git checkout master

$git checkout HEAD~1


이제 다시 예제로 돌아가서 libvsomeipxxx.so들을 생성하고 commonapi 라이브러리들을 build하자.


관련링크 :
CommonAPI Stub? Proxy?
SOME/IP 헤더 구조와 fdepl파일 관계
CommonAPI Generator로 생성되는 file
CommonAPI C++ with SOME/IP Example
Franca 설치 가이드
Linux Xubuntu에 CommonAPI C/C++ 개발환경 구축하기


Ubuntu 16.04에서 GNOME install


터미널에서 다음과 같이 레포지토리를 추가하고

$ sudo add-apt-repository ppa:gnome3-team/gnome3-staging
$ sudo add-apt-repository ppa:gnome3-team/gnome3

업데이트 하고나서 gnome을 서apt-get으로 설치한다.

$ sudo apt-get update

$ sudo apt-get install gnome

64bit Linux환경에서 64/32bit으로 compile

64bit Linux환경에서는 기본적으로 gcc를 사용할 경우 64bit용으로 컴파일된다. 당연히 32bit Linux환경에서는 32bit용으로 컴파일된다.

gcc에서 -m옵션으로 비트수를 설정할수 있다
-m32 : 32bit binary
-m64 : 64bit binary

현재사용하고 있는 환경과 다른 bit용으로 컴파일하고자 할때 gcc-multilib의 설치가 필요하다.
sudo apt-get install gcc-multilib

해당라이브러리가 설치되기 전에 -m옵션을 통해 컴파일하면 아래와 같은 오류가 발생한다.
unrecognized emulation mode: 32
라이브러리 설치하면 정상적으로컴파일되는것을 확인 할 수 있다.

32bit로 컴파일
gcc -o test test.cpp -m32

64bit로 컴파일
gcc -o test test.cpp -m64