Am Montag, 20. Juni 2011, 20:27:03 schrieb Iain Hibbert:
> On Mon, 20 Jun 2011, Hendrik Sattler wrote:
> > Zitat von Iain Hibbert <plu...@rya-online.net>:
> > > > Do you want to adapt CMakeModules/FindBluetooth.cmake also? Or shall
> > > > I do?
> > > 
> > > I noticed that the CMake configuration method does not work but I
> > > didn't look into it yet (more than just the lack of library, I get
> > > compilation errors from missing headers, perhaps lack of -I ?)
> > 
> > Must be *BSD-specific, then, as it works on Linux and Windows for me. It
> > would be nice if you can take a look. Maybe you can post the compile
> > log?
> 
> The reason is that I have a previous version of openobex already installed
> (under /usr/pkg), but the compile command produced by cmake is
> 
> cd /home/plunky/misc/openobex/build/lib && /usr/bin/gcc -DOPENOBEX_EXPORTS
>   -DHAVE_USB -DHAVE_BLUETOOTH -DHAVE_BLUETOOTH_NETBSD -DHAVE_VISIBILITY
>   -DNDEBUG -fPIC -I/usr/pkg/include -I/home/plunky/misc/openobex/include
>   -fvisibility=hidden -o CMakeFiles/openobex.dir/obex.c.o -c
>   /home/plunky/misc/openobex/lib/obex.c
>
> and as you see, it includes /usr/pkg/include before ${top_srcdir}/include,
> which means that obex.h and obex_const.h are picked up from there, leaving
> errors because of missing types and defintions..

This is cause because your libusb header files are located there. The problem 
is the usage of the keyword "BEFORE" in lib/CMakeLists.txt. Try to delete it 
and is should work :-)
 
> is it possible to reverse the ordering of the include search path?  For
> sure, the "${top_srcdir}/include" should be first..
> 
> iain
> 
> btw the CMake files all contain MSDOS ^M line terminations..

Yes, that's ok. I may change that later.

HS

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Openobex-users mailing list
Openobex-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/openobex-users

Reply via email to