From: Andreas V. <and...@df...> - 2008-11-12 08:23:22
|
Hey, I read all these tutorials, but at the interesting parts I found no help. I have the problem: 1 Copied lasermon 2 renamed it to testsend 3 made an entry in ADD_SUBDIRECTORY 4 deleted CmakeLists.txt files 5 "cmake ." in orca 6 the component was build without *.cfg and it wasn't executable take a look: andreas@vogt:~/orca$ sudo cmake -DICE_HOME=/opt/Ice-3.3.0 -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Check size of void* -- Check size of void* - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Setting project type to ORCA MOTHERSHIP -- Using custom CMake scripts in /home/andreas/orca/cmake -- Setting project name to orca -- Setting project version to 2.12.0 -- Looking for Hydro - found in /usr/local -- Loading Hydro manifest - loaded. -- Testing Hydro - ok. -- Looking for Gearbox - found in /usr/local -- Loading Gearbox manifest - loaded. -- Setting default installation directory... -- Setting installation directory to /usr/local -- Running on Linux -- Setting build type to 'RelWithDebInfo' -- gcc version: gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3) Copyright (C) 2007 Free Software Foundation, Inc. Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE. -- Checking gcc version - ok -- Ice location was specified or using cached value: /opt/Ice-3.3.0 -- Looking for C++ include Ice/Ice.h -- Looking for C++ include Ice/Ice.h - found -- Checking Ice version - 3.3.0 - ok -- Testing Ice - ok. -- Writing config.h -- Looking for termio.h -- Looking for termio.h - found -- Looking for linux/input.h -- Looking for linux/input.h - found -- Looking for string.h -- Looking for string.h - found -- Looking for stdlib.h -- Looking for stdlib.h - found -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for sys/stat.h -- Looking for sys/stat.h - found -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for sys/ioctl.h -- Looking for sys/ioctl.h - found -- Looking for fcntl.h -- Looking for fcntl.h - found -- Looking for time.h -- Looking for time.h - found -- Looking for errno.h -- Looking for errno.h - found -- Looking for zlib.h -- Looking for zlib.h - found -- Looking for sys/filio.h -- Looking for sys/filio.h - not found -- Looking for strnlen -- Looking for strnlen - found -- == GLOBAL DEPENDENCY CHECK == -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - found -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found. -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found. -- Found Qt-Version 4.3.4 -- Looking for Qt4 >= 4.2 - found -- Looking for GL/glut.h -- Looking for GL/glut.h - not found -- Looking for lib3ds/node.h -- Looking for lib3ds/node.h - not found -- Looking for C++ include osg/Node -- Looking for C++ include osg/Node - not found -- Looking for potrace/potracelib.h -- Looking for potrace/potracelib.h - not found -- Looking for Java - found -- Looking for the Python interpreter - found -- Looking for C++ include libdc1394/dc1394_control.h -- Looking for C++ include libdc1394/dc1394_control.h - not found -- Looking for linux/videodev.h -- Looking for linux/videodev.h - found -- Looking for linux/videodev2.h -- Looking for linux/videodev2.h - found -- Using /home/andreas/orca/src/utils/deftools/./def2cfg -- Using /home/andreas/orca/src/utils/slice2string/. -- Cannot determine repository type. Please set UPDATE_TYPE to 'cvs' or 'svn'. CTest update will not work. -- == INTERFACES == -- This is NOT a Debian Ice installation. Slice files are in /opt/Ice-3.3.0/slice -- Generating global header file /home/andreas/orca/src/interfaces/cpp/orca/orca.h -- Will generate cpp header and source files from 43 Slice definitions using this command: -- /opt/Ice-3.3.0/bin/slice2cpp <source.ice> -I/home/andreas/orca/src/interfaces/slice;-I/opt/Ice-3.3.0/slice;--include-dir;orca;--stream;--output-dir;/home/andreas/orca/src/interfaces/cpp/orca -- Planning to Build Library : OrcaInterfaces -- This is NOT a Debian Ice installation. Slice files are in /opt/Ice-3.3.0/slice -- Generating global header file /home/andreas/orca/src/interfaces/cpp/orcaifacestring/orcaifacestring.h -- Will generate cpp header and source files from 43 Slice definitions using this command: -- /home/andreas/orca/src/utils/slice2string/./slice2string <source.ice> -I/home/andreas/orca/src/interfaces/slice;-I/opt/Ice-3.3.0/slice;--module;orca;--output-dir;/home/andreas/orca/src/interfaces/cpp/orcaifacestring -- Planning to Build Library : OrcaIfaceString -- Will not build Java interfaces : JAVA_FOUND=1, ORCA_BUILD_JAVA=OFF -- Will not build Python interfaces : PYTHONINTERP_FOUND=, ORCA_BUILD_PYTHON=OFF -- == LIBRARIES == -- Planning to Build Library : OrcaObjects -- Planning to Build Library : OrcaIce -- Planning to Build Library : OrcaIfaceImpl -- Planning to Build Library : OrcaBros1 -- Planning to Build Library : OrcaCompModel -- Planning to Build Library : OrcaDef -- Planning to Build Library : OrcaIceGrid -- Planning to Build Library : OrcaIceXml -- Planning to Build Library : OrcaImageUtil -- Not planning to Build Library : OrcaImageGrabber because disabled by user, use ccmake to enable -- Planning to Build Library : OrcaLocalNav -- Planning to Build Library : OrcaLog -- Planning to Build Library : OrcaLogFactory -- Planning to Build Library : OrcaNavUtil -- Planning to Build Library : OrcaObjectUtil -- Planning to Build Library : OrcaOgMap -- Planning to Build Library : OrcaOgFusion -- Planning to Build Library : OrcaPathPlan -- Looking for playerc++ >= 2.0 using pkgconfig -- not found -- Not planning to Build Library : OrcaPlayer because Player not found -- Not planning to Build Executable : OrcaPotrace because Potrace not found -- Planning to Build Library : OrcaProbe -- Planning to Build Library : OrcaProbeFactory -- Planning to Build Library : OrcaQCompModel -- Planning to Build Library : OrcaQt -- Planning to Build Library : OrcaQGuiElementModelView -- Planning to Build Library : OrcaQGui -- Planning to Build Library : OrcaQGuiElementUtil -- Planning to Build Library : OrcaQGui2dFactory -- Not planning to Build Executable : OrcaQGui3d because OpenSceneGraph not found -- Not planning to Build Library : OrcaQGui3dFactory because OpenSceneGraph not found -- Planning to Build Library : OrcaQUml -- Planning to Build Library : OrcaRobotDriverUtil -- Planning to Build Library : OrcaSim2d -- Planning to Build Library : OrcaTeleop -- Planning to Build Library : OrcaVfh -- == UTILITIES == -- Planning to Build Executable: cleanregistry -- Planning to Build Executable: def2cfg -- Planning to Build Executable: def2xml -- Planning to Build Executable: def2xmltemplate -- Planning to Build Executable: def2definverted -- Planning to Build Executable: iceping -- Planning to Build Executable: logplayer -- Planning to Build Executable: logrecorder -- Planning to Build Executable: orcaview2d -- Not planning to Build Executable : orcaview3d because libOrcaQGui3d is not being built -- Not planning to Build Executable : pinger because disabled by user, use ccmake to enable -- terminal display driver for Probe using iostreams - can be built -- Planning to Build Library : OrcaProbeTermIostream -- GUI display driver for Probe using Qt - CANNOT be built -- Planning to Build Executable: probe -- Planning to Build Executable: registrylist -- Planning to Build Executable: registryview -- Not planning to Build Executable : replier because disabled by user, use ccmake to enable -- DEBUG: this is Ice 3.3 -- Planning to Build Executable: slice2string -- Planning to Build Executable: snapshotlogger -- Planning to Build Executable: systemtracermon -- == COMPONENTS == -- Planning to Build Executable: faithlocaliser -- Planning to Build Executable: featuremaploader -- Planning to Build Executable: goalplanner -- Planning to Build Executable: gps -- Planning to Build Executable: gps2localise2d -- Planning to Build Executable: imageserver -- Planning to Build Executable: insgps -- Planning to Build Executable: laser2d -- Planning to Build Executable: laser2og -- Planning to Build Executable: laserfeatureextractor -- Planning to Build Executable: lasermon -- Planning to Build Library : OrcaLocalNavTestSim -- Planning to Build Executable: localnav -- Planning to Build Executable: ogmaploader -- Planning to Build Executable: ognode -- Planning to Build Executable: orcamon -- Planning to Build Executable: pathplanner -- Not planning to Build Executable : pingserver because HydroPing was not installed -- Looking for oping - not found -- Planning to Build Executable: pixmaploader -- Planning to Build Executable: propertyserver -- Planning to Build Executable: robot2d -- Planning to Build Executable: segwayrmp -- Looking for playerc++ >= 2.0 using pkgconfig -- not found -- Stage Driver for SimLocaliser - CANNOT be built -- Planning to Build Executable: simlocaliser -- Planning to Build Executable: teleop -- Planning to Build Executable: testsend -- Terminal Iostream driver for TracerMon - can be built -- Planning to Build Library : OrcaTracerMonTermIostream -- Looking for libncurses - not found -- Terminal Ncurses driver for TracerMon - CANNOT be built -- Planning to Build Executable: tracermon -- Planning to Build Executable: wifi -- == EXAMPLES == -- Planning to Build Executable: brick -- Not planning to Build Executable : orca2yarp because disabled by user, use ccmake to enable -- Looking for playerc++ >= 2.0 using pkgconfig -- not found -- Not planning to Build Executable : player2orca because Player not found -- Planning to Build Executable: pureice -- Planning to Build Executable: reactivewalker -- == SANDBOX == -- Sandbox compilation is disabled -- == SUMMARY == -- Project name orca -- Project version 2.12.0 -- Platform Linux-2.6.24-21-generic -- CMake version 2.4-patch 7 -- Install dir /usr/local -- Will build 43 executables : -- brick;cleanregistry;def2cfg;def2definverted;def2xml;def2xmltemplate;faithlocaliser;featuremaploader;goalplanner;gps;gps2localise2d;iceping;imageserver;insgps;laser2d;laser2og;laserfeatureextractor;lasermon;localnav;logplayer;logrecorder;ogmaploader;ognode;orcamon;orcaview2d;pathplanner;pixmaploader;probe;propertyserver;pureice;reactivewalker;registrylist;registryview;robot2d;segwayrmp;simlocaliser;slice2string;snapshotlogger;systemtracermon;teleop;testsend;tracermon;wifi -- Will build 35 libraries : -- OrcaBros1;OrcaCompModel;OrcaDef;OrcaIce;OrcaIceGrid;OrcaIceXml;OrcaIfaceImpl;OrcaIfaceString;OrcaImageUtil;OrcaInterfaces;OrcaLocalNav;OrcaLocalNavTestSim;OrcaLog;OrcaLogFactory;OrcaNavUtil;OrcaObjectUtil;OrcaObjects;OrcaOgFusion;OrcaOgMap;OrcaPathPlan;OrcaProbe;OrcaProbeFactory;OrcaProbeTermIostream;OrcaQCompModel;OrcaQGui;OrcaQGui2dFactory;OrcaQGuiElementModelView;OrcaQGuiElementUtil;OrcaQUml;OrcaQt;OrcaRobotDriverUtil;OrcaSim2d;OrcaTeleop;OrcaTracerMonTermIostream;OrcaVfh -- Will build 44 CTest tests : -- AppPropTest1000;AppPropTest1001;AppPropTest1010;AppPropTest1011;AppPropTest1100;AppPropTest1101;AppPropTest1110;AppPropTest1111;AppPropTest11x0;AppPropTest1x00;AppPropTest1xx0;AppTest;ConfigUtilsTest;ConnectUtilsTest;DefaultAutoFactoryInstantiate;DefaultSnapshotFactoryInstantiate;LibOrcaDefTest;LibOrcaLogTest;LocalNavVfhTest;LogReplayMasterTest;ObjectStringTest;OrcaIceSubsystemThreadTest;OrcaIfaceImplTest;OrcaIfaceStringTest;OrcaOgMapConversion;OrcaProbeFactoryInstantiate;OrcaQGui2dDefaultFactoryInstantiate;PrivateUtilsTest;PropFileTest;PropUtilsTest;PtrBufferTest;PtrNotifyTest;PtrStoreTest;ServicePropTest1000;ServicePropTest1001;ServicePropTest1010;ServicePropTest1011;ServicePropTest1100;ServicePropTest1101;ServicePropTest1110;ServicePropTest1111;ServiceTest;Slice2StringTest;TimeTest -- Will NOT build 8 executables (see above for reasons): -- OrcaPotrace;OrcaQGui3d;orca2yarp;orcaview3d;pinger;pingserver;player2orca;replier -- Will NOT build 3 libraries (see above for reasons): -- OrcaImageGrabber;OrcaPlayer;OrcaQGui3dFactory -- Configuring done -- Generating done -- Build files have been written to: /home/andreas/orca > > I have another question about building new components. If I > > did cmake, should there be a file with the name testsend.cfg > > Cfg files are generated automatically from def files, ie you have to write > your own testsend.def file. > > > or do I have to wirte it by my own? And if cmake has build > > the component then should it possible to start teh new > > component "testsend" like lasermon by typing simply testsend? > > Because in my case it didnt work. > > What did not work? Was the executable 'testsend' created? If yes, you also > need the .cfg file in the same directory from which you call testsend. > > I recommend going through some of our tutorials and the guide of how to > write a simple component. It should all be explained there: > > http://orca-robotics.sourceforge.net/orca/orca_doc_tutorials.html > > http://orca-robotics.sourceforge.net/orca/orca_doc_start_code.html > > > > Firstly, you have to add your new component to the > > > > CMakeLists.txt in > > > > > orca/src/components (i.e. ADD_SUBDIRECTORY( testsend) ). > > > > Secondly, you > > > > > have to execute cmake on the top level directory. > > > > > > If you do an in-source built: > > > $ cd /home/andreas/orca > > > $ cmake . > > > > > > If you do an out-of source built: > > > $ cd /home/andreas/orca/build > > > $ cmake .. > > > > > > Also, consider setting up your own satellite project instead as > > > described > > > here: > > > http://orca-robotics.sourceforge.net/orca/orca_doc_start_code.html > > > > > > Cheers, Tobias > > > > > > On Wed, 12 Nov 2008 12:06:54 am Andreas Vogt wrote: > > > > I want to create a new component within > > > > oraca/src/component. All i > > > > > > did is to copy the brick modul and renamed it in > > > > testsend. then I typed: cmake . > > > > > > and this was the output: > > > > CMake Error: Error in cmake code at > > > > /home/andreas/orca/src/components/testsend/CMakeLists.txt:1: > > > > Unknown CMake command "ORCA_SET_COMPONENT_NAME". > > > > -- Configuring done > > > > > > > > > Hi Andreas, > > > > > > > > > > could you please give us some more details? How did you try to > > > > > generate your new component? Did you use an Orca > > > > satellite project > > > > > > > or did you create a new component directory within > > > > > orca/src/components? Can you also send your full cmake > > > > output please? > > > > > > > Yours, Tobias > > > > > > > > > > On Tue, 11 Nov 2008 10:43:35 pm Andreas Vogt wrote: > > > > > > Hello, > > > > > > if I try to cmake a new very simple component with > > > > "cmake ." i > > > > > > > > recieve the massage: > > > > > > Unknown CMake command "ORCA_SET_COMPONENT_NAME". > > > > > > > > > > > > What can I do? Do I need to configure my PAth or something? > > > > > >----------------------------------------------------------------- > > > > > > > > >---- > > > > > >-- -- This SF.Net email is sponsored by the Moblin Your Move > > > > > >Developer's challenge Build the coolest Linux based > > > > applications > > > > > > > >with Moblin SDK & win great prizes Grand prize is a > > > > trip for two > > > > > > > >to an Open Source event anywhere in the world > > > > > >http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > > > > _______________________________________________ > > > > > > Orca-robotics-users mailing list > > > > > >Orc...@li... > > > > https://lists.sourceforge.net/lists/listinfo/orca-robotics-users > > > > > > -------------------------------------------------------------------- > > > > > > ----- This SF.Net email is sponsored by the Moblin Your Move > > > > Developer's challenge Build the coolest Linux based applications > > > > with Moblin SDK & win great prizes Grand prize is a trip > > > > for two to > > > > > > an Open Source event anywhere in the world > > > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > > _______________________________________________ > > > > Orca-robotics-users mailing list > > > > Orc...@li... > > > > https://lists.sourceforge.net/lists/listinfo/orca-robotics-users |