|
If possible would anyone have time to explain how the following file contents can be used on a windows XP platform to build the BENTO4 SDK for mpeg4 programming. Only new to this and on a high learning curve so any help appreciated. Am trying to convert it to a bat file but am having no success. I also have VS2005 available but can't work out if this file can be used in that environment.
make-sdk.sh file contents:
AP4_ROOT=../../..
SOURCE_ROOT=$AP4_ROOT/Source
BUILD_TARGET_DIR=$AP4_ROOT/Build/Targets/x86-microsoft-win32-vs2005
CP="cp"
MKDIR="mkdir -p"
for config in Debug Release
do
SDK_DIR=$config/SDK
$MKDIR $SDK_DIR
$MKDIR $SDK_DIR/include
$MKDIR $SDK_DIR/bin
$MKDIR $SDK_DIR/lib
$CP $SOURCE_ROOT/Config/*.h $SDK_DIR/include
$CP $SOURCE_ROOT/Core/*.h $SDK_DIR/include
$CP $SOURCE_ROOT/Codecs/*.h $SDK_DIR/include
$CP $SOURCE_ROOT/Crypto/*.h $SDK_DIR/include
$CP $SOURCE_ROOT/MetaData/*.h $SDK_DIR/include
$CP $BUILD_TARGET_DIR/AP4/$config/AP4.lib $SDK_DIR/lib
$CP $BUILD_TARGET_DIR/*/$config/*.exe $SDK_DIR/bin
done
|
|
|
To build the code base for Visual Studio 2005, just open the visual studio solution file in
Bento4/Build/Targets/x86-microsoft-win32-vs2005/Bento4.sln
This will build the library and the example applications.
If you want to just build the library and link with your own application, you can directly import
Bento4/Build/Targets/x86-microsoft-win32-vs2005/Bento4/Bento4.vcproj in your solution.
The make-sdk.sh script can be used to 'package' the lib and binaries and header files built from the solution into an 'SDK' that can then be used standalone. You don't normally need this unless you want to distribute the SDK. Compiling from the solution as explained above is most likely what you need here.
I hope this helps.
|
|
|
|
|
|
|
// |