Re: [osg-users] [build] OpenScreneGraph with embedded linux

2015-01-16 Thread Mustafa Karaelmas

Chris Hanson wrote:
 We've worked with the imx6 platform, but not running Qt, just running 
 OsgViewerEmbedded in an EGL context we created ourselves.
 
 You have a full mouse and keyboard environment on your imx6 platform? Is it 
 Ubuntu-based?
 
 
 
 
 ​The output you want is what's in the bin folder -- copy that over to your 
 imx6 platform (along with the data/ folder from the OSG source directory -- 
 this contains sample models and files) and try running osgviewer with the 
 cow.osg file.
 
  --
 Post generated by Mail2Forum


Hello,

I said that I compiled osg as cross-compile but it was not true. I realized 
that I couldn't compile it. So, now, I'm trying to use a toolchain file for 
cmake to compile osg as cross-compile. I got errors after running cmake. It 
gives Configuring incomplete, errors occurred! message.

My imx6 board isn't ubuntu-based. I can run Qt applications by -qws argument. I 
use ltib based rootfs.

The error cmake give is as below:

--
CMake Error: The following variables are used in this project, but they are set 
to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake 
files:
OPENGL_INCLUDE_DIR (ADVANCED)
--

I think this caused by my rootfs. I'm not sure but I will check OPENGL include 
directory in the rootfs.

The toolchain file that I mentioned, is below:




Code:
SET(CMAKE_SYSTEM_NAME Linux)
set( CMAKE_SYSTEM_PROCESSOR arm )
#this one not so much
SET(CMAKE_SYSTEM_VERSION 1)
 
# specify the cross compiler
SET(CMAKE_C_COMPILER   
/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-gcc)
SET(CMAKE_CXX_COMPILER 
/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi-g++)
 
# where is the target environment 
SET(CMAKE_FIND_ROOT_PATH  /home/user/ltib/rootfs/)
 
# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)




--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=62338#62338





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [build] OpenScreneGraph with embedded linux

2015-01-14 Thread Chris Hanson
We've worked with the imx6 platform, but not running Qt, just running
OsgViewerEmbedded in an EGL context we created ourselves.

You have a full mouse and keyboard environment on your imx6 platform? Is it
Ubuntu-based?


​The output you want is what's in the bin folder -- copy that over to your
imx6 platform (along with the data/ folder from the OSG source directory --
this contains sample models and files) and try running osgviewer with the
cow.osg file.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] [build] OpenScreneGraph with embedded linux

2015-01-13 Thread Mustafa Karaelmas
Hi,

I'm very new to OpenScreneGraph and Linux and even Qt. I want to use 
OpenSceneGraph with Qt embedded in imx6 platform. (operating system is kernel 
3.0.35-arm) I don't know where to start.

I downloaded the source code of OpenSceneGraph. I compiled it as cross-compiler 
in my ubuntu desktop, so compilation produced some folder:

/application
/bin
/CMakeFiles
/include
/lib
/packaging
/src

What should I do with those files? I guess that I have to copy some of them to 
a Qt's directory and to embedded device. I don't want you to tell me everything 
about that but I want just to get some hints about basic concept.

Thank you!

Cheers,
Mustafa

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=62293#62293





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org