I have compiled it successfully at last. Thanks God.
When I wrote in the shell : exec scicoslab the shell exits !! Is this normal ?
In addition , I did not found the demo you suggested (VisTest.cos ) in the path File->Open->demos->VisTest.cos, but I found it in demos folder in /oooark/scicoslab/demos, also when I clicked it to run, scicoslab gave me 4 errors;
The first :
Problem loading car
undefined variable : car
Use Activate_Scilab_Window and redefine it in Scilab.
The rest of errors are the same, but instead of "car", it wrote plane, jet , quad.
I think that there is no connection between scicos and oooark, right ? How can solve this problem?
I have done as you said and I downloaded gcc, visualisation, math, flightgear comm . But it seems that some thing is not going well regarding the visualisation (open scene graph version 2.8.3 required, while the newest version available for ubuntu -as I know - is 2.8.1 !!!):
mostafa@ubuntu:~$ cd oooark mostafa@ubuntu:~/oooark$ ./autobuild.sh -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- The Fortran compiler identification is GNU -- Check for working Fortran compiler: /usr/bin/f95 -- Check for working Fortran compiler: /usr/bin/f95 -- works -- Checking whether /usr/bin/f95 supports Fortran 90 -- Checking whether /usr/bin/f95 supports Fortran 90 -- yes -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - found -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found. -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found. -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found. -- Found Qt-Version 4.5.2 CMake Error at /usr/share/cmake-2.6/Modules/FindBoost.cmake:868 (message): Unable to find the requested Boost libraries.
Unable to find the Boost header files. Please set BOOST_ROOT to the root directory containing Boost or BOOST_INCLUDEDIR to the directory containing Boost's headers. Call Stack (most recent call first): CMakeLists.txt:77 (find_package)
-- Found osgDB: /usr/lib/libosgDB.so -- Found osgUtil: /usr/lib/libosgUtil.so -- Found osgViewer: /usr/lib/libosgViewer.so -- Found osg: /usr/lib/libosg.so -- Found OpenThreads: /usr/lib/libOpenThreads.so -- ERROR: Version 2.8.3 or higher of the OSG is required. Version 2.8.1 was found. -- Looking for Fortran cblas_dgemm -- Looking for Fortran cblas_dgemm - not found -- Looking for Fortran sgemm -- Looking for Fortran sgemm - found -- Looking for include files CMAKE_HAVE_PTHREAD_H -- Looking for include files CMAKE_HAVE_PTHREAD_H - found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- A library with BLAS API found. -- Looking for Fortran cheev -- Looking for Fortran cheev - found -- A library with LAPACK API found. -- Found SIMGEAR -- Found SCICOSLAB -- could not find package BOOSTNUMERICBINDINGS, building from source -- could not find package JSBSIM, building from source -- could not find package MAVLINK, building from source -- install_name /usr/local/lib -- ======================================= -- LIBRARY BUILDING -- ======================================= -- Communication YES -- Mavlink YES -- JSBSim YES -- Simgear YES -- Scicos YES -- Visualization NO -- OpenSceneGraph NO -- QT4 YES -- Math YES -- Lapack YES -- Fortran YES -- ======================================= 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: Boost_INCLUDE_DIR (ADVANCED) used as include directory in directory /home/mostafa/oooark/src/communication used as include directory in directory /home/mostafa/oooark/src/math used as include directory in directory /home/mostafa/oooark/app/trim
-- Configuring incomplete, errors occurred! make: *** No targets specified and no makefile found. Stop.
It seems that one step remains, the only error remaining is the open scene graph error.
Comments
I have done as you said. It starts scicoslab in a new window for 1 second and then the scicoslab shows "mode(-1)" then it terminates !!!!
May be there is an error in oooark compilation ? or What do think ?
Ok seems like you have everything working but are just calling it wrong.
start the terminal
in the terminal:
cd "your path to oooark"/oooark
./autobuild.sh
cd scicoslab <-- chanes you into the scicoslab directory where the scilab.ini file is to load the oooark blocks
scicoslab <-- calls the scicoslab command to start scicoslab in your current directory
Now scicoslab will start up and launch the demo automatically.
I have compiled it successfully at last. Thanks God.
When I wrote in the shell : exec scicoslab the shell exits !! Is this normal ?
In addition , I did not found the demo you suggested (VisTest.cos ) in the path File->Open->demos->VisTest.cos, but I found it in demos folder in /oooark/scicoslab/demos, also when I clicked it to run, scicoslab gave me 4 errors;
The first :
Problem loading car
undefined variable : car
Use Activate_Scilab_Window and redefine it in Scilab.
The rest of errors are the same, but instead of "car", it wrote plane, jet , quad.
I think that there is no connection between scicos and oooark, right ? How can solve this problem?
Thanks
I made it require only osg 2.0.0 or greater so it should work for you now.
cd ~/oooark
git pull
./autobuild.sh
I have done as you said and I downloaded gcc, visualisation, math, flightgear comm . But it seems that some thing is not going well regarding the visualisation (open scene graph version 2.8.3 required, while the newest version available for ubuntu -as I know - is 2.8.1 !!!):
mostafa@ubuntu:~$ cd oooark
mostafa@ubuntu:~/oooark$ ./autobuild.sh
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- The Fortran compiler identification is GNU
-- Check for working Fortran compiler: /usr/bin/f95
-- Check for working Fortran compiler: /usr/bin/f95 -- works
-- Checking whether /usr/bin/f95 supports Fortran 90
-- Checking whether /usr/bin/f95 supports Fortran 90 -- yes
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.5.2
CMake Error at /usr/share/cmake-2.6/Modules/FindBoost.cmake:868 (message):
Unable to find the requested Boost libraries.
Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
CMakeLists.txt:77 (find_package)
-- Found osgDB: /usr/lib/libosgDB.so
-- Found osgUtil: /usr/lib/libosgUtil.so
-- Found osgViewer: /usr/lib/libosgViewer.so
-- Found osg: /usr/lib/libosg.so
-- Found OpenThreads: /usr/lib/libOpenThreads.so
-- ERROR: Version 2.8.3 or higher of the OSG is required. Version 2.8.1 was found.
-- Looking for Fortran cblas_dgemm
-- Looking for Fortran cblas_dgemm - not found
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - found
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- A library with BLAS API found.
-- Looking for Fortran cheev
-- Looking for Fortran cheev - found
-- A library with LAPACK API found.
-- Found SIMGEAR
-- Found SCICOSLAB
-- could not find package BOOSTNUMERICBINDINGS, building from source
-- could not find package JSBSIM, building from source
-- could not find package MAVLINK, building from source
-- install_name /usr/local/lib
-- =======================================
-- LIBRARY BUILDING
-- =======================================
-- Communication YES
-- Mavlink YES
-- JSBSim YES
-- Simgear YES
-- Scicos YES
-- Visualization NO
-- OpenSceneGraph NO
-- QT4 YES
-- Math YES
-- Lapack YES
-- Fortran YES
-- =======================================
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:
Boost_INCLUDE_DIR (ADVANCED)
used as include directory in directory /home/mostafa/oooark/src/communication
used as include directory in directory /home/mostafa/oooark/src/math
used as include directory in directory /home/mostafa/oooark/app/trim
-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found. Stop.
It seems that one step remains, the only error remaining is the open scene graph error.
Thanks for your patience
git clone git://oooark.git.sf.net/gitroot/oooark/oooark" for public access.
It looks like you are missing gcc. So try:
rm -rf oooark ( if you still have the old directory)
git clone ssh://oooark.git.sf.net/gitroot/oooark/oooark
cd oooark
This install gcc: sudo apt-get install build-essential
If you want visualization blocks: sudo apt-get install libopenscenegraph-dev
If you want math blocks: sudo apt-get install liblapack-dev gfortran
If you want flightgear comm blocks: sudo apt-get install simgear-dev
Then I made this script to call cmake in a build directory and then call make.
./autobuild.sh
Then:
cd ./scicoslab
exec scicoslab
When scicoslab is running:
scicos
Then to run a demo:
File->Open->demos->VisTest.cos (for example)
Then click run on the diagram.