Questions about cross-compile and basic setting for Ubuntu 12.04 LTS 64bit

13 個の投稿 / 0 new
最終投稿
dkzm00
オフライン
Last seen: 10年 7ヶ月 前
登録日: 2013-08-20 23:44
Questions about cross-compile and basic setting for Ubuntu 12.04 LTS 64bit

Hello~

I have two questions.
Before the questions, I will explain about my system.

My system is made up several camera devices with Raspberry Pi.
They should be able to communicate each other.

Then, I installed RT-Middleware to Raspberry Pi and my PC (Virtual Box, Ubuntu 12.04 LTS 64 bit).

My first question is 'how can I compile the project?'

I generates a test code by 'RTC Builder' on 'Eclipse'.
and I compile the project by using 'CMake'.
but errors are occurred.
Compile message is show as following.

/////////////////////////////////////////////////
CMake Warning at CMakeLists.txt:48 (find_package):
Could not find module FindOpenRTM.cmake or a configuration file for package
OpenRTM.

Adjust CMAKE_MODULE_PATH to find FindOpenRTM.cmake or set OpenRTM_DIR to
the directory containing a CMake configuration file for OpenRTM. The file
will have one of the following names:

OpenRTMConfig.cmake
openrtm-config.cmake

-- Use cmake/Modules/FindOpenRTM.cmake in the project
-- checking for module 'openrtm-aist'
-- package 'openrtm-aist' not found
-- checking for module 'libcoil'
-- package 'libcoil' not found
CMake Error at cmake/Modules/FindOpenRTM.cmake:73 (file):
file STRINGS file
"/home/dkzm00/RT-MiddleWare/RTC_Test/OPENRTM_INCLUDE_DIR-NOTFOUND/rtm/version.h"
cannot be read.
Call Stack (most recent call first):
CMakeLists.txt:54 (find_package)

CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
Could NOT find OpenRTM (missing: OPENRTM_INCLUDE_DIR COIL_INCLUDE_DIR
OPENRTM_LIBRARY COIL_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindOpenRTM.cmake:99 (find_package_handle_standard_args)
CMakeLists.txt:54 (find_package)

-- Configuring incomplete, errors occurred!
////////////////////////////////////////////////////////

My second question is about cross-compile.

I want to compile and to edit project for raspberry pi on my PC
How can I set the project for cross-compile?

please help me~^^;;

英語
Ando Noriaki
オフライン
Last seen: 1年 9ヶ月 前
登録日: 2011-09-04 17:20
[openrtm-users 02877] Questions about cross-compile and basic s

Hi,

I have some questions.
Which version of RTCBuilder are you using?
On which environment (RasPi or Ubuntu 64bit) are you compiling your project?
How do you install OpenRTM-aist in your target machine? deb package?
from source code?

Anyway, the newest version of RTCBuilder would work well in both environment.

Regards,
Noriaki Ando

2013/8/21 :
> Hello~ I have two questions. Before the questions, I will explain about my
> system. My system is made up several camera devices with Raspberry Pi. They
> should be able to communicate each other. Then, I installed RT-Middleware to
> Raspberry Pi and my PC (Virtual Box, Ubuntu 12.04 LTS 64 bit). My first
> question is 'how can I compile the project?' I generates a test code by 'RTC
> Builder' on 'Eclipse'. and I compile the project by using 'CMake'. but
> errors
> are occurred. Compile message is show as following.
> ///////////////////////////////////////////////// CMake Warning at
> CMakeLists.txt:48 (find_package): Could not find module FindOpenRTM.cmake or
> a configuration file for package OpenRTM. Adjust CMAKE_MODULE_PATH to find
> FindOpenRTM.cmake or set OpenRTM_DIR to the directory containing a CMake
> configuration file for OpenRTM. The file will have one of the following
> names: OpenRTMConfig.cmake openrtm-config.cmake -- Use
> cmake/Modules/FindOpenRTM.cmake in the project -- checking for module
> 'openrtm-aist' -- package 'openrtm-aist' not found -- checking for module
> 'libcoil' -- package 'libcoil' not found CMake Error at
> cmake/Modules/FindOpenRTM.cmake:73 (file): file STRINGS file
> "/home/dkzm00/RT-MiddleWare/RTC_Test/OPENRTM_INCLUDE_DIR-NOTFOUND/rtm/version.h"
> cannot be read. Call Stack (most recent call first): CMakeLists.txt:54
> (find_package) CMake Error at
> /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91
> (MESSAGE): Could NOT find OpenRTM (missing: OPENRTM_INCLUDE_DIR
> COIL_INCLUDE_DIR OPENRTM_LIBRARY COIL_LIBRARY) Call Stack (most recent call
> first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252
> (_FPHSA_FAILURE_MESSAGE) cmake/Modules/FindOpenRTM.cmake:99
> (find_package_handle_standard_args) CMakeLists.txt:54 (find_package) --
> Configuring incomplete, errors occurred!
> //////////////////////////////////////////////////////// My second question
> is about cross-compile. I want to compile and to edit project for raspberry
> pi on my PC How can I set the project for cross-compile? please help me~^^;;
>
> _______________________________________________
> openrtm-users mailing list
> openrtm-users@openrtm.org
> http://www.openrtm.org/mailman/listinfo/openrtm-users
_______________________________________________
openrtm-users mailing list
openrtm-users@openrtm.org
http://www.openrtm.org/mailman/listinfo/openrtm-users

dkzm00
オフライン
Last seen: 10年 7ヶ月 前
登録日: 2013-08-20 23:44
[openrtm-users 02877] Questions about cross-compile and basic s

Hi
I installed 'eclipse381-openrtp110rc4v20130216-linux-gtk-x86_64.tar.gz' on my PC.

Should I install 'eclipse-4.2'?

 

ysuga
オフライン
Last seen: 1年 8ヶ月 前
登録日: 2011-05-23 10:14
[openrtm-users 02884] (無題)

Hi, dkzm00

First, we would like to know your environment to provide more
appropriate advise.
I guess you're using Linux, is that right?

Operating System (Version): WHat Linux?
Your PC's architecture : 32bit? 64bit?

You said you installed the eclipse, but I am sure it is not necessary
to "install" but just
unarchive the tar ball. Then, you can launch "eclipse" in the
generated directory (that might be named "eclipse").
You may command....

# tar zxfv eclipse381-*****.tar.gz
# cd ecilpse
# ./eclipse

If you need further supports, please give us more information about
your environment and problem.

Thank you,
Yuki

2013/8/23 :
> Hi~ I installed 'eclipse381-openrtp110rc4v20130216-linux-gtk-x86_64.tar.gz'
> on my PC. Should I install 'eclipse-4.2'?
>
> _______________________________________________
> openrtm-users mailing list
> openrtm-users@openrtm.org
> http://www.openrtm.org/mailman/listinfo/openrtm-users

dkzm00
オフライン
Last seen: 10年 7ヶ月 前
登録日: 2013-08-20 23:44
[openrtm-users 02884] (無題)

Hi, ysuga.

The OS of my PC is Windows7(64bit) and I uses Oracle VM VirtualBox for Ubuntu 12.04 LTS(64bit).

The RT-Middleware is installed on the Ubuntu.

I uses the install script, which is provided on this site, for installation of RT-Middleware.

and I commanded...

$ cd /usr/share/openrtm-1.1

$ sudo wget http://openrtm.org/pub/openrtp/packages/1.1.0.rc4v20130216/eclipse381-openrtp110rc4v20130216-linux-gtk-x86_64.tar.gz

$ sudo tar xvzf eclipse381-openrtp110rc4v20130216-linux-gtk-x86_64.tar.gz

$ cd /usr/bin

$ sudo ln -s /usr/share/openrtm-1.1/eclipse/openrtp .

$ cd

$ openrtp

The execuation of examples(ConsoleIn, ConsolOut) is running well.

I generate code and make sub-directory in the project folder.

then, I commanded...

$ cmake ..

The result is shown original question topic.

Thank you,

Park

ysuga
オフライン
Last seen: 1年 8ヶ月 前
登録日: 2011-05-23 10:14
[openrtm-users 02886] (無題)

Dear Park,

Thank you for sending a lot, and I could find your original question thread.

1. Your RT-middlewares would be installed in /usr/lib64 directory.
CMake will be able to find your RTM by using pkg-config command.
Set search path of the pkg-config by inputting...

# export PKG_CONFIG_PATH=/usr/lib64/pkgconfig

Please try this.

2. Cross-compiling
I am not so familiar with the Rasberrypi.
In the information about Rasberry-pi that I could find out, the author
is using self-compiling.

We need more help > To all.

I hope this will help.

Yuki.

2013/8/23 :
> Hi, ysuga. The OS of my PC is Windows7(64bit) and I uses Oracle VM
> VirtualBox
> for Ubuntu 12.04 LTS(64bit). The RT-Middleware is installed on the Ubuntu. I
> uses the install script, which is provided on this site, for installation of
> RT-Middleware. and I commanded... $ cd /usr/share/openrtm-1.1 $ sudo wget
> http://openrtm.org/pub/openrtp/packages/1.1.0.rc4v20130216/eclipse381-openrtp110rc4v20130216-linux-gtk-x86_64.tar.gz
> $ sudo tar xvzf eclipse381-openrtp110rc4v20130216-linux-gtk-x86_64.tar.gz $
> cd /usr/bin $ sudo ln -s /usr/share/openrtm-1.1/eclipse/openrtp . $ cd $
> openrtp The execuation of examples(ConsoleIn, ConsolOut) is running well. I
> generate code and make sub-directory in the project folder. then, I
> commanded... $ cmake .. The result is shown original question topic. Thank
> you, Park
>
>
> _______________________________________________
> openrtm-users mailing list
> openrtm-users@openrtm.org
> http://www.openrtm.org/mailman/listinfo/openrtm-users

Ando Noriaki
オフライン
Last seen: 1年 9ヶ月 前
登録日: 2011-09-04 17:20
[openrtm-users 02887] (無題)

Hello,

You do not need to cross-compile a RTC for RaspberryPi. Please
install OpenRTM-aist on your RaspberryPi, copy generated code
into the RaspberryPi and do "cmake/make" on it.
You can perform self-compile on RaspberryPi linux systems.

I don't know how to create cross-compile environment on Ubuntu,
but if you already have cross-compile environment, please try
this tool.
http://svn.openrtm.org/Armadillo/trunk/tools/rtc-make-cross

Save this script as rtc-cmake-cross on "/usr/bin" or other
directories included in command search path, and give executable
permission.

If the target architecture of your RaspberryPi is armhf, you
might have to add the following line in the script.

ARCH_armhf=armhf-linux-gnueabi

rtc-cmake-cross can be used instead of cmake as follows.

$ mkdir build
$ cd build
$ rtc-cmake-cross -a armhf ..
$ make

This tool will create a.k.a tool-chain-file for cmake and do
cmake in cross-compile mode.

Good luck!!
Noriaki Ando

2013/8/23 Yuki Suga :
> Dear Park,
>
> Thank you for sending a lot, and I could find your original question thread.
>
>
> 1. Your RT-middlewares would be installed in /usr/lib64 directory.
> CMake will be able to find your RTM by using pkg-config command.
> Set search path of the pkg-config by inputting...
>
> # export PKG_CONFIG_PATH=/usr/lib64/pkgconfig
>
> Please try this.
>
>
> 2. Cross-compiling
> I am not so familiar with the Rasberrypi.
> In the information about Rasberry-pi that I could find out, the author
> is using self-compiling.
>
> We need more help > To all.
>
>
> I hope this will help.
>
>
> Yuki.
>
>
>
> 2013/8/23 :
>> Hi, ysuga. The OS of my PC is Windows7(64bit) and I uses Oracle VM
>> VirtualBox
>> for Ubuntu 12.04 LTS(64bit). The RT-Middleware is installed on the Ubuntu. I
>> uses the install script, which is provided on this site, for installation of
>> RT-Middleware. and I commanded... $ cd /usr/share/openrtm-1.1 $ sudo wget
>> http://openrtm.org/pub/openrtp/packages/1.1.0.rc4v20130216/eclipse381-openrtp110rc4v20130216-linux-gtk-x86_64.tar.gz
>> $ sudo tar xvzf eclipse381-openrtp110rc4v20130216-linux-gtk-x86_64.tar.gz $
>> cd /usr/bin $ sudo ln -s /usr/share/openrtm-1.1/eclipse/openrtp . $ cd $
>> openrtp The execuation of examples(ConsoleIn, ConsolOut) is running well. I
>> generate code and make sub-directory in the project folder. then, I
>> commanded... $ cmake .. The result is shown original question topic. Thank
>> you, Park
>>
>>
>> _______________________________________________
>> openrtm-users mailing list
>> openrtm-users@openrtm.org
>> http://www.openrtm.org/mailman/listinfo/openrtm-users
>
>
>
> --
> ///////////////////////////////////////////////////////////////////
> // Yuki Suga, Ph.D.
> // URL: http://www.ysuga.net/?lang=en
> // E-mail: ysuga@ysuga.net
> ///////////////////////////////////////////////////////////////////
> _______________________________________________
> openrtm-users mailing list
> openrtm-users@openrtm.org
> http://www.openrtm.org/mailman/listinfo/openrtm-users
_______________________________________________
openrtm-users mailing list
openrtm-users@openrtm.org
http://www.openrtm.org/mailman/listinfo/openrtm-users

dkzm00
オフライン
Last seen: 10年 7ヶ月 前
登録日: 2013-08-20 23:44
[openrtm-users 02887] (無題)

Hello~

I complete the setting for cross-compile and the script makes the toolchain files successfully.

but cmake still has error.

the message is as follows.

//////////////////////////////////////////////////////////////////////
dkzm00@dkzm00-VirtualBox:~/Project/RTM/test/build$ rtc-cmake-cross -a armhf ..
TRACE: find_endebian_env()
CROSS_PATHS: /usr/arm-linux-gnueabihf
CROSS_ARCHS: armhf
TRACE: check_arch()
ARCH_OPT: armhf
GNU_ARCH: arm-linux-gnueabihf
armhf (arm-linux-gnueabihf) environment exists in the system.
Target architecture is armhf (arm-linux-gnueabihf)
Toolchain found.
CC: /usr/bin/arm-linux-gnueabihf-gcc
CXX: /usr/bin/arm-linux-gnueabihf-g++
AR: /usr/bin/arm-linux-gnueabihf-ar
LD: /usr/bin/arm-linux-gnueabihf-ld
cmake -DCMAKE_INSTALL_PREFIX=/usr/arm-linux-gnueabihf -DCMAKE_TOOLCHAIN_FILE=toolchain-arm-linux-gnueabihf.cmake ..
CMake Warning at CMakeLists.txt:48 (find_package):
Could not find module FindOpenRTM.cmake or a configuration file for package
OpenRTM.

Adjust CMAKE_MODULE_PATH to find FindOpenRTM.cmake or set OpenRTM_DIR to
the directory containing a CMake configuration file for OpenRTM. The file
will have one of the following names:

OpenRTMConfig.cmake
openrtm-config.cmake

-- Use cmake/Modules/FindOpenRTM.cmake in the project
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
Could NOT find OpenRTM (missing: COIL_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindOpenRTM.cmake:99 (find_package_handle_standard_args)
CMakeLists.txt:54 (find_package)

-- Configuring incomplete, errors occurred!

Configure failed. Check CMake options and configuration variables.

Ando Noriaki
オフライン
Last seen: 1年 9ヶ月 前
登録日: 2011-09-04 17:20
[openrtm-users 02906] (無題)

Hello,

How did you compile and install OpenRTM-aist into the cross
development environment?
Can you find OpenRTMConfig.cmake file in your system?

Best regards,
Noriaki Ando

2013/8/30 :
> Hello~ I complete the setting for cross-compile and the script makes the
> toolchain files successfully. but cmake still has error. the message is as
> follows.
> //////////////////////////////////////////////////////////////////////
> dkzm00@dkzm00-VirtualBox:~/Project/RTM/test/build$ rtc-cmake-cross -a armhf
> .. TRACE: find_endebian_env() CROSS_PATHS: /usr/arm-linux-gnueabihf
> CROSS_ARCHS: armhf TRACE: check_arch() ARCH_OPT: armhf GNU_ARCH:
> arm-linux-gnueabihf armhf (arm-linux-gnueabihf) environment exists in the
> system. Target architecture is armhf (arm-linux-gnueabihf) Toolchain found.
> CC: /usr/bin/arm-linux-gnueabihf-gcc CXX: /usr/bin/arm-linux-gnueabihf-g++
> AR: /usr/bin/arm-linux-gnueabihf-ar LD: /usr/bin/arm-linux-gnueabihf-ld
> cmake
> -DCMAKE_INSTALL_PREFIX=/usr/arm-linux-gnueabihf
> -DCMAKE_TOOLCHAIN_FILE=toolchain-arm-linux-gnueabihf.cmake .. CMake Warning
> at CMakeLists.txt:48 (find_package): Could not find module FindOpenRTM.cmake
> or a configuration file for package OpenRTM. Adjust CMAKE_MODULE_PATH to
> find
> FindOpenRTM.cmake or set OpenRTM_DIR to the directory containing a CMake
> configuration file for OpenRTM. The file will have one of the following
> names: OpenRTMConfig.cmake openrtm-config.cmake -- Use
>
> cmake/Modules/FindOpenRTM.cmake in the project CMake Error at
> /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91
> (MESSAGE): Could NOT find OpenRTM (missing: COIL_LIBRARY) Call Stack (most
> recent call first):
> /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252
> (_FPHSA_FAILURE_MESSAGE) cmake/Modules/FindOpenRTM.cmake:99
> (find_package_handle_standard_args) CMakeLists.txt:54 (find_package) --
> Configuring incomplete, errors occurred! Configure failed. Check CMake
> options and configuration variables.
>
>
> _______________________________________________
> openrtm-users mailing list
> openrtm-users@openrtm.org
> http://www.openrtm.org/mailman/listinfo/openrtm-users
_______________________________________________
openrtm-users mailing list
openrtm-users@openrtm.org
http://www.openrtm.org/mailman/listinfo/openrtm-users

Ando Noriaki
オフライン
Last seen: 1年 9ヶ月 前
登録日: 2011-09-04 17:20
[openrtm-users 02907] (無題)

I recommend you to self-compile your component on the RaspberryPi.
Why do you want to cross-compile it?

2013/8/30 Ando Noriaki :
> Hello,
>
> How did you compile and install OpenRTM-aist into the cross
> development environment?
> Can you find OpenRTMConfig.cmake file in your system?
>
> Best regards,
> Noriaki Ando
>
>
>
> 2013/8/30 :
>> Hello~ I complete the setting for cross-compile and the script makes the
>> toolchain files successfully. but cmake still has error. the message is as
>> follows.
>> //////////////////////////////////////////////////////////////////////
>> dkzm00@dkzm00-VirtualBox:~/Project/RTM/test/build$ rtc-cmake-cross -a armhf
>> .. TRACE: find_endebian_env() CROSS_PATHS: /usr/arm-linux-gnueabihf
>> CROSS_ARCHS: armhf TRACE: check_arch() ARCH_OPT: armhf GNU_ARCH:
>> arm-linux-gnueabihf armhf (arm-linux-gnueabihf) environment exists in the
>> system. Target architecture is armhf (arm-linux-gnueabihf) Toolchain found.
>> CC: /usr/bin/arm-linux-gnueabihf-gcc CXX: /usr/bin/arm-linux-gnueabihf-g++
>> AR: /usr/bin/arm-linux-gnueabihf-ar LD: /usr/bin/arm-linux-gnueabihf-ld
>> cmake
>> -DCMAKE_INSTALL_PREFIX=/usr/arm-linux-gnueabihf
>> -DCMAKE_TOOLCHAIN_FILE=toolchain-arm-linux-gnueabihf.cmake .. CMake Warning
>> at CMakeLists.txt:48 (find_package): Could not find module FindOpenRTM.cmake
>> or a configuration file for package OpenRTM. Adjust CMAKE_MODULE_PATH to
>> find
>> FindOpenRTM.cmake or set OpenRTM_DIR to the directory containing a CMake
>> configuration file for OpenRTM. The file will have one of the following
>> names: OpenRTMConfig.cmake openrtm-config.cmake -- Use
>>
>> cmake/Modules/FindOpenRTM.cmake in the project CMake Error at
>> /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91
>> (MESSAGE): Could NOT find OpenRTM (missing: COIL_LIBRARY) Call Stack (most
>> recent call first):
>> /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252
>> (_FPHSA_FAILURE_MESSAGE) cmake/Modules/FindOpenRTM.cmake:99
>> (find_package_handle_standard_args) CMakeLists.txt:54 (find_package) --
>> Configuring incomplete, errors occurred! Configure failed. Check CMake
>> options and configuration variables.
>>
>>
>> _______________________________________________
>> openrtm-users mailing list
>> openrtm-users@openrtm.org
>> http://www.openrtm.org/mailman/listinfo/openrtm-users
_______________________________________________
openrtm-users mailing list
openrtm-users@openrtm.org
http://www.openrtm.org/mailman/listinfo/openrtm-users

dkzm00
オフライン
Last seen: 10年 7ヶ月 前
登録日: 2013-08-20 23:44
[openrtm-users 02906] (無題)

Hello,

The OpenRTMConfig.cmake file is located in " {Projector directory}/cmake/Modules ".

I installed OpenRTM-aist by using install script.
( Should I download the source file and compile it? )

and I use rtc-make-cross script.

The files for cross compile of RaspberryPi (ex: arm-linux-gnueabihf-gcc) is downloded from github.

Thanks
Park

dkzm00
オフライン
Last seen: 10年 7ヶ月 前
登録日: 2013-08-20 23:44
[openrtm-users 02886] (無題)

Dear Yuki,

Thank you for your help.^^

But other errors are occurred still.

The error message is as follows.

////////////////////////////////////////////////////////////

-- Use cmake/Modules/FindOpenRTM.cmake in the project

CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):

Could NOT find OpenRTM (missing: COIL_LIBRARY)

Call Stack (most recent call first):

/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)

cmake/Modules/FindOpenRTM.cmake:99 (find_package_handle_standard_args)

CMakeLists.txt:54 (find_package)

//////////////////////////////////////////////////////////////

Please help me.^^;;

dkzm00
オフライン
Last seen: 10年 7ヶ月 前
登録日: 2013-08-20 23:44
[openrtm-users 02882] (無題)

Hi~ I installed 'eclipse381-openrtp110rc4v20130216-linux-gtk-x86_64.tar.gz'
on my PC. Should I install 'eclipse-4.2'?

_______________________________________________
openrtm-users mailing list
openrtm-users@openrtm.org
http://www.openrtm.org/mailman/listinfo/openrtm-users

コメントを投稿するにはログインまたはユーザー登録を行ってください

ダウンロード

最新バージョン : 2.0.1-RELESE

統計

Webサイト統計
ユーザ数:2195
プロジェクト統計
RTコンポーネント307
RTミドルウエア35
ツール22
文書・仕様書2

Choreonoid

モーションエディタ/シミュレータ

OpenHRP3

動力学シミュレータ

OpenRTP

統合開発プラットフォーム

産総研RTC集

産総研が提供するRTC集

TORK

東京オープンソースロボティクス協会

DAQ-Middleware

ネットワーク分散環境でデータ収集用ソフトウェアを容易に構築するためのソフトウェア・フレームワーク