Hello I'm trying to get the enet library to link properly in Dolphin for ubuntu and android but keep running into problems. I believe it has something to do with my cmake code and was hoping some one more familiar with cmake and linux programming might have some insight into my problems.
This is what I added to CMakeList.txt in the main directory
include_directories(Externals)
add_subdirectory(Externals/enet)
and in externals/enet this is what the CMakeList.txt looks like
and how I include the code is with
#include "enet/enet.h"
which works fine in visual studios
The errors I'm getting are unreferenced objects such as enet_initialize()
and enet_host_services(), and pretty much any other function call to enet library.
Any help on the subject would be much appreciated.
This is what I added to CMakeList.txt in the main directory
include_directories(Externals)
add_subdirectory(Externals/enet)
and in externals/enet this is what the CMakeList.txt looks like
Code:
project(enet C)
set(SRCS
callbacks.c
compress.c
host.c
list.c
packet.c
peer.c
protocol.c)
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
set(SRCS ${SRCS} win32.c)
else()
set(SRCS ${SRCS} unix.c)
endif()
add_definitions(-Wno-parentheses-equality -DHAS_SOCKLEN_T)
add_library(enet STATIC ${SRCS})
and how I include the code is with
#include "enet/enet.h"
which works fine in visual studios
The errors I'm getting are unreferenced objects such as enet_initialize()
and enet_host_services(), and pretty much any other function call to enet library.
Any help on the subject would be much appreciated.