[CMake] Error with link.txt

Bill Hoffman bill.hoffman at kitware.com
Tue Oct 9 11:54:49 EDT 2007


Martin Buchleitner wrote:
> Hi,
>
> In May i ported an project from normal Makefiles to a setup with cmake.
> In the last weeks the project was joined by a few new members and they 
> all
> get a common error:
>
> Linking CXX shared library libSubLibrary.so
> Error opening link script "CMakeFiles/BehaviorTasks.dir/link.txt"
> make[2]: *** [behaviors/tasks/libBehaviorTasks.so] Error 1
> make[1]: *** [behaviors/tasks/CMakeFiles/BehaviorTasks.dir/all] Error 2
> make: *** [all] Error 2
>
> I do not understand why this link.txt is not generated. All other 28 
> link.txt
> are generated like on my own test machine. The CMakeLists.txt looks like:
>
> ADD_LIBRARY(SubLibrary SHARED [a list of few cpp files])
>
>
> INCLUDE_DIRECTORIES(
>                     ${QT_INCLUDE_DIR}
>                     [a few other directories]
>                     )
>
> EOF
>
> I already noticed a ticket in the bug database, but this seems ocurre 
> only when
> relative paths are used - i do not use this option.
If you could tar up the whole binary tree of a failed build and send it 
to me .tar.gz,
I can take a look.  Or if you can provide a smaller example that shows 
the problem.
Please don't send the .tar.gz to the list...

-Bill





More information about the CMake mailing list