<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
I checked the soversion command but I don't know if it is that the
problem.<br>
In another CMakeLists.txt ( <a
href="https://github.com/OpenKinect/libfreenect/blob/master/src/CMakeLists.txt">https://github.com/OpenKinect/libfreenect/blob/master/src/CMakeLists.txt</a>
)<br>
there is the soversion command:<br>
<br>
<span class="Apple-style-span" style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; orphans: 2; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span" style="font-family:
helvetica,arial,freesans,clean,sans-serif; font-size: 11px;
line-height: 14px;">
<pre style="margin: 0px; padding: 0px; font: 12px/1.4em 'Bitstream Vera Sans Mono',Courier,monospace;"><div class="line" id="LC17" style="margin: 0px; padding: 0px 0px 0px 1em; line-height: 1.4em;">add_library (freenect SHARED ${SRC})</div><div class="line" id="LC18" style="margin: 0px; padding: 0px 0px 0px 1em; line-height: 1.4em;">set_target_properties ( freenect PROPERTIES</div><div class="line" id="LC19" style="margin: 0px; padding: 0px 0px 0px 1em; line-height: 1.4em;"> VERSION ${PROJECT_VER}</div><div class="line" id="LC20" style="margin: 0px; padding: 0px 0px 0px 1em; line-height: 1.4em;"> SOVERSION ${PROJECT_APIVER}</div></pre>
</span></span><br>
<br>
I will try to explain better the problem with more information:<br>
<br>
On a system Debian/x86 the cmake, make and make install worked
successfully generating libfreenect.so.0.0 and the symbolic link
libfreenect.so.<br>
On a different system cmake and make worked successfully generating
libfreenect.so.0.0 but with make install the libfreenect.so is not
generated and then the make install give errors.<br>
Do you know why could happen a situation like this? I have checked
every CMakeLists and other CMake related configuration file in order
to find commands used to create symbolic links but I have not found
them. <br>
<br>
Thanks<br>
<br>
<br>
<br>
Il 17/01/2011 21:52, Tyler Roscoe ha scritto:
<blockquote cite="mid:20110117215213.GA16359@cryptio.net"
type="cite">
<pre wrap="">On Mon, Jan 17, 2011 at 06:24:58PM +0000, <a class="moz-txt-link-abbreviated" href="mailto:mark205@email.it">mark205@email.it</a> wrote:
</pre>
<blockquote type="cite">
<pre wrap=""> ln -s lib/libfreenect.so.0.0 lib/libfreenect.so
</pre>
</blockquote>
<pre wrap="">
For this specific problem, check out:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:SOVERSION">http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:SOVERSION</a>
</pre>
<blockquote type="cite">
<pre wrap="">Should I use: add_custom_command ?
</pre>
</blockquote>
<pre wrap="">
For the general problem of running arbitrary commands that CMake doesn't
already know how to do, add_custom_command() is the right track.
</pre>
</blockquote>
<br>
<br>
Original message:<br>
<blockquote>Hi everybody,
<br>
<br>
I'd like to know if it is possible with cmake create a Makefile
with shell
<br>
commands.
<br>
I mean, I need a Makefile of this type:
<br>
<br>
# CMAKE generated file: DO NOT EDIT!
<br>
# Generated by "Unix Makefiles" Generator, CMake Version 2.6
<br>
<br>
# Default target executed when no arguments are given to make.
<br>
default_target: all
<br>
<br>
ln -s lib/libfreenect.so.0.0 lib/libfreenect.so
<br>
<br>
...stuff
<br>
<br>
<br>
I'm trying to modify the libfreenect driver CMakeLists.txt
<br>
<a class="moz-txt-link-freetext"
href="http://pastebin.com/YB2kDTr5">http://pastebin.com/YB2kDTr5</a>
but without success.
<br>
<br>
The inital problem is that the Makefile builds the target and at
the
<br>
end it execute this command. I need it because when I compile the
<br>
project I have no errors but the file lib/libfreenect.so is not
<br>
generated. When I try make install, the Makefile is generated
again so
<br>
even if I modify the Makefile or create that symbolic link
manually I
<br>
always get the error.
<br>
<br>
<br>
Should I use: add_custom_command ?
<br>
<br>
<br>
By the way, this is the driver webpage:
<br>
<a class="moz-txt-link-freetext"
href="https://github.com/OpenKinect/libfreenect">https://github.com/OpenKinect/libfreenect</a><br>
</blockquote>
</body>
</html>