Am Samstag 07 Juli 2007 17:29 schrieb Hendrik Sattler: > this is just a pre-notice, so that no double work is done. > I am currently writing the CMakeLists.txt files, so that openobex can be > built using CMake. This would also involve being able to build it with > MSVC. Current state is a working build for the main library part on Linux. > I will publish them later as tar.gz, it's just adds some files, no source > code changes (except in incorrect inclusion of lib/databuffer.h in > lib/databuffer.c when not giving -I.)
Here it is. I currently use it to build the whole tree.
Build instructions (NEVER run cmake in the source tree!):
tar xzvf <file>
mkdir build
cd build
cmake ..
optional: ccmake .
-> whatever you want to configure there
'c'
'g'
make help
-> you get a list of all available targets
(all only includes the lib and glib-lib if enabled)
Building the docs requires a patch that is also attached: docproc sucks
because it only works if the environment variable TOPDIR is defined.
Why does this need a patch? Not all build systems (hint: Visual Studio)
support setting environment variables. However, some undocumented part seems
to need it besides the obvious place, thus we set it in the binary.
This is a hotfix, it's probably better to use argv[1].
If the win32 patchset was not applied, you must comment the section that check
for gcc visibility support or you will get a lib with only hidden symbols ;)
HS
openobex-cmake.tar.gz
Description: application/tgz
Index: openobex-anoncvs/doc/docproc.c
===================================================================
--- openobex-anoncvs.orig/doc/docproc.c 2007-07-09 02:46:48.958912331 +0200
+++ openobex-anoncvs/doc/docproc.c 2007-07-09 03:05:23.510577513 +0200
@@ -26,6 +26,8 @@
pid_t pid;
#endif
+ setenv("TOPDIR", "..", 0);
+
if(chdir(getenv("TOPDIR")))
{
perror("chdir");
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ Openobex-users mailing list [email protected] http://lists.sourceforge.net/lists/listinfo/openobex-users
