From: Tobias K. <t....@ca...> - 2008-11-11 22:57:57
|
> 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 > > > |