Open stasyag opened 11 years ago
Hello staysag,
I think it will be very hard, if possible, and not straightforward to include the library in a 'c' project. You might have to compile it and call it using your 'c' program.
On the other hand it is relatively easy to include it in a c++ project. Use the included example as a template - there is one for unix as well as windows. The player is very basic, though you can use your own.
I'd advise you to get MSVC 2010 and open the libdash solution, run it and take it from there. Note, if you decide to get VS Express 2012 you might need to download some MSVC redistributables as it doesn't contain all the dlls required to run this libdash as is.
Note: I forked this from bitmovin, who are experts at MPEG-DASH. Check them out
Regards, Farouk
hi papaonlegs
thanks for the answer
i meant include in c++ (i didn't notice) I'm working on project in c++ in Linux with eclipse i need this library (lib-dash) because in my project i need to parse mpd file and i noticed that it have several function i might need in order to parse the mpd.
is there any guide i can use ? where can i download the lib-dash directory cause i cant find any link ? how can i use it as a template ?
thanks Stas
Hello staysag!
We are very pleased that you are interested in libdash. As you can see in README.md, there are some simple steps how you can build libdash in (ubuntu 12.04) linux:
sudo apt-get install git-core build-essential cmake libxml2-dev libcurl4-openssl-dev
git clone git://github.com/bitmovin/libdash.git
cd libdash/libdash
mkdir build
cd build
cmake ../
make
cd bin
You will now find libdash.so
in the bin
directory.
To use libdash inside eclipse, just make sure that your eclipse CDT project setup will find libdash.so
and the include files in libdash/include
, by setting the library- and include-path.
If you have any further questions, don't hesitate to contact us.
Regards, Peter (bitmovin developer)
By the way: Stay tuned about libdash development by registering at our libdash-mailing list or visit dash.itec.aau.at and bitmovin.net
hi
i was trying to include libdash.h in my project (without using eclipse) and compile it through the terminal with the make command. but it still can't identify the library libdash.h
do you know what is the problem ?
thanks
Hi!
You probably did not set the Include- and Librarypath. Here is a short example:
Assuming you have cloned the libdash repository at /home/stasyag
you should now have the following directories:
/home/stasyag/libdash/libdash/libdash/include
(containing all required header files)/home/stasyag/libdash/libdash/build/bin
(containing libdash.so) If you want to compile an executable (e.g. main.cpp
) using libdash, compile it with:
g++ main.cpp -o yourprogramname -I /home/stasyag/libdash/libdash/libdash/include -L /home/stasyag/libdash/libdash/build/bin -ldash
-I
specifies the include path
-L
specifies the library path
-ldash
tells the linker to bind against libdash.so
Regards, Peter
Hello all, I am working with stasyag on libdash. I tried what you suggested , but came up with this error:
erelh@erel:~/test$ g++ client.cpp -o client.o -I /home/erelh/libdash/libdash/libdash/include -L /home/erelh/libdash/libdash/build/bin -ldash erelh@erel:~/test$ ./client.o ./client.o: error while loading shared libraries: libdash.so: cannot open shared object file: No such file or directory
What am i doing wrong? Thanks.
Anyone?...
Can you find libdash.so in /home/erelh/libdash/libdash/build/bin
? It seems that something went wrong during build process.
Yes, it exists.
hi
can i include the library lib-dash to my c project ? and how can i do it ?
thanks