dermesser / libsocket

The ultimate socket library for C and C++, supporting TCP, UDP and Unix sockets (DGRAM and STREAM) on Linux, FreeBSD, Solaris. See also my uvco library for a refreshed version!
https://borgac.net/~lbo/doc/libsocket/
Other
799 stars 195 forks source link

problem installing library on ubuntu #18

Closed rovshenn closed 9 years ago

rovshenn commented 9 years ago

Hello,

Thank you for the library, I have a problem installing it on ubuntu 12.04. I have tried just to follow steps described at the top of README, but cmake CMakeLists.txt gives the following errors:

CMake Error at C/CMakeLists.txt:16 (ADD_LIBRARY): Cannot find source file:

$<TARGET_OBJECTS:socket_o>

CMake Error in C/CMakeLists.txt: Cannot find source file:

OBJECT

The problem with those errors and documentation, the documentation does not tell me what I should put for those variables and it is clear from the cmake errors those variables are not set.

Please let me know if I have overlooked something or if it is something that needs to be fixed.

Best, Rovshen MS CS Baylor U

dermesser commented 9 years ago

Could you provide the output of cmake --version? I know that the object library feature only comes with CMake 2.8.8 and later, and Ubuntu 12.04 is quite old (although CMake should have complained because the CMakeLists say that CMake 2.8 is needed).

rovshenn commented 9 years ago

Thank you very much. I have solved the issue, by using library in build rather than in linkage.