problems changing the makefile/configure
Hi,
I have creating a new ibr-dtn tool like dtnsend but It is difficult for me to understand where should I include it in Makefiles or configures, because I’m not used to work with complex makefiles or automakes. I already tried to included it in several places, but it’s not working. Can you help me to know where should I include my *.cpp files for ibrdtn-tools compilation? I already have the source code in my pc and I comment the wget and tar lines of bash script not to replace my new code.
I have also a tool in a server to receive data from my other ibrdtn nodes and then I introduce my information in a mysql database directly when I receive a bundle. However, I have being also problems including the mysql -libs and -cflags. When I compile a simple c++ program to introduce information in mysql database I have to include at least -lmysqlclient (g++ -o program program.cpp -lmysqlclient). I also tried to include mysqlclient in several places, but it’s not working. Can you help me to know where to include it?
Thanks a lot, Tiago
Hello Tiago,
you do not need to include your application into the tool package. The package structure is designed to allow external application to use the IBR-DTN API library.
If you developing on Debian / Ubuntu and you has added the repository [1], you can simply install the dev package "ibrdtn-dev".
In your project you simply need to specify the library you want to link against. The libraries are "ibrcommon" and "ibrdtn". Additionally, you need to add the include paths for the headers "/usr/include/ibrdtn-0.12" and "/usr/include/ibrcommon-0.12"
Kind regards, Johannes
[1] http://trac.ibr.cs.tu-bs.de/project-cm-2012-ibrdtn/wiki/download#DebianUbunt...
Am 29.05.2014 23:32, schrieb Tiago Condeixa:
I have creating a new ibr-dtn tool like dtnsend but It is difficult for me to understand where should I include it in Makefiles or configures, because I’m not used to work with complex makefiles or automakes. I already tried to included it in several places, but it’s not working. Can you help me to know where should I include my *.cpp files for ibrdtn-tools compilation? I already have the source code in my pc and I comment the wget and tar lines of bash script not to replace my new code.
I have also a tool in a server to receive data from my other ibrdtn nodes and then I introduce my information in a mysql database directly when I receive a bundle. However, I have being also problems including the mysql -libs and -cflags. When I compile a simple c++ program to introduce information in mysql database I have to include at least -lmysqlclient (g++ -o program program.cpp -lmysqlclient). I also tried to include mysqlclient in several places, but it’s not working. Can you help me to know where to include it?
participants (2)
-
Johannes Morgenroth
-
Tiago Condeixa