|
From: Kyle M. (qDot) <ky...@no...> - 2008-11-13 06:08:19
|
Assuming you're on CMake >= 2.6.1, you can also use the "ccmake"
utility, which is an ncurses version of the cmake setup gui for windows.
It's really helpful for doing setup like this.
Stephen Sinclair wrote:
>> 4) When I saw my bad timing with --loop_time_test (10!), I decided to
>> download libusb-1.0 and compiled it without problems. I usually use
>> ~/.local for installing locally compiled things, so I had to figure
>> out how to instruct cmake to find it. But even when CMake found it, I
>> still got errors related to "libusb-1.0/libusb.h". The solution I
>> found was to make sure that LIBUSB_1_INCLUDE_DIR is added to the list
>> of include_directories, and to change "libusb-1.0/libusb.h" to just
>> "libusb.h", since the LIBUSB_1_INCLUDE_DIR points to the libusb-1.0
>> dir.
>>
>
>
> I forgot to mention, for configuring cmake to use ~/.local, I used the
> following little script which I called 'configure':
>
> -----------------------------------------
> #!/bin/sh
>
> if [ x$1 = x"--debug" ]; then
> EXTRA=-DDEBUG_BUILD=1
> fi
>
> cmake . -DPREFIX_DIR=$HOME/.local
> -DCMAKE_LIBRARY_PATH=$HOME/.local/lib
> -DCMAKE_INCLUDE_PATH=$HOME/.local/include ${EXTRA}
> -DCMAKE_REQUIRED_FLAGS=-I$HOME/.local/include
> -----------------------------------------
>
> The cmake arguments are pretty long-winded so this might be a nice
> reference if anyone is reading this list.
> Actually I'm not sure the CMAKE_REQUIRED_FLAGS part is necessary, now
> that I look at it again..
>
>
> Steve
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Libnifalcon-devel mailing list
> Lib...@li...
> https://lists.sourceforge.net/lists/listinfo/libnifalcon-devel
>
|