manifest.xml to build own library [closed]

I could not find a post which answers my question. But in case there already exists one just close this.

I am new to ROS and I want to compile a library I have written for another application and needs to be for ROS now. When I compile my code I get an error and compilation is aborted. The compilation fails because there is no manifest.xml in my src folder. (At least I guess it is the reason.) Isn't package.xml enough? Do I need a second one? Do I need to change some things after I create a catkin package if I want to build a library? I mean from obvious things like my code etc.

Thnx

I have this in my CMakeList.txt

cmake_minimum_required(VERSION 2.8.3)
project(libusermediator)
find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs genmsg)

catkin_package(
)

include_directories(include ${catkin_INCLUDE_DIRS}) include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
rosbuild_init()


(Just without the spaces before the *. it becomes a comment here)

If the error message helps:

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/ros/hydro/lib/python2.7/dist-packages/roslib/manifest.py", line 139, in parse_file
return roslib.manifestlib.parse_file(Manifest(), file)
File "/opt/ros/hydro/lib/python2.7/dist-packages/roslib/manifestlib.py", line 491, in parse_file
raise ValueError("Invalid/non-existent manifest file: %s"%file)
ValueError: Invalid/non-existent manifest file: manifest.xml
CMake Error at /opt/ros/hydro/share/ros/core/rosbuild/private.cmake:78 (message):
[rosbuild] Syntax check of src/manifest.xml failed; aborting
Call Stack (most recent call first):
/opt/ros/hydro/share/ros/core/rosbuild/public.cmake:174 (_rosbuild_check_manifest)
libusermediator/CMakeLists.txt:255 (rosbuild_init)
-- Configuring incomplete, errors occurred!
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

edit retag reopen merge delete