Tue 15 May 2007 09:14:12 AM UTC, comment #9:
Hello,
Some news from my aventures with TSP on Windows ...
1) I have installed Visual Studio 2003, launched Cmake again with my Cmake file (written by Eric) :
PROJECT(tsp_provider_dll C)
ADD_DEFINITIONS(-DTSP_SHARED_LIBS)
SET(TSP_INSTALL_DIR "C:\\Program Files\\tsp 0.8.3")
INCLUDE_DIRECTORIES(${TSP_INSTALL_DIR}/include)
LINK_DIRECTORIES(${TSP_INSTALL_DIR}/lib)
INCLUDE_DIRECTORIES(${TSP_INSTALL_DIR}/external/pthreadVC/include)
LINK_DIRECTORIES(${TSP_INSTALL_DIR}/external/pthreadVC/lib)
INCLUDE_DIRECTORIES(${TSP_INSTALL_DIR}/external/oncrpc/include)
LINK_DIRECTORIES(${TSP_INSTALL_DIR}/external/oncrpc/lib)
INCLUDE_DIRECTORIES(${TSP_INSTALL_DIR}/external/TspWin32/include)
SET(LIBS tsp_provider tsp_common tsp_services)
SET(LIBS ${LIBS} pthreadVC TspWin32)
ADD_LIBRARY(tsp_provider_dll SHARED tsp_provider_dll.c)
TARGET_LINK_LIBRARIES(tsp_provider_dll tsp_common tsp_services tsp_provider)
ADD_EXECUTABLE(tsp_provider_dll_test tsp_provider_dll_test.c)
TARGET_LINK_LIBRARIES(tsp_provider_dll_test ${LIBS} tsp_provider_dll)
Then I generated successfully my TSP_Provider_DLL projet :)
But ... when trying to debug it, I can't step into TSP portions of code (as if the installed TSP binaries did'nt contains any debug informations).
2) So I decided to compile the TSP 0.8.3 sources in debug mode.
Cmake generate me two successives errors :
- CMake Error : Unknown Target referenced : rpcgen_exec_cht
- CMake Error : tsp_consumer depends on unknown target : rpcgen_exec_cht
But when I open the TSP solution file and generate the ALL_BUILT I get no error : 18 successful, 0 errors, 0 ignored
Then, I modified my tsp_provider_dll Cmake file to use my freshly generated TSP binaries :
PROJECT(tsp_provider_dll C)
ADD_DEFINITIONS(-DTSP_SHARED_LIBS)
SET(TSP_INSTALL_DIR "C:\\Projets\\TSP\\tsp-0.8.3-Binaries")
INCLUDE_DIRECTORIES(${TSP_INSTALL_DIR}/Windows/include)
LINK_DIRECTORIES(${TSP_INSTALL_DIR}/Windows/bin/Debug)
INCLUDE_DIRECTORIES(${TSP_INSTALL_DIR}/external/pthreadVC/include)
LINK_DIRECTORIES(${TSP_INSTALL_DIR}/external/pthreadVC/lib)
INCLUDE_DIRECTORIES(${TSP_INSTALL_DIR}/external/oncrpc/include)
#LINK_DIRECTORIES(${TSP_INSTALL_DIR}/external/oncrpc/lib)
INCLUDE_DIRECTORIES(${TSP_INSTALL_DIR}/external/TspWin32/include)
SET(LIBS tsp_provider tsp_common tsp_services)
SET(LIBS ${LIBS} pthreadVC TspWin32)
ADD_LIBRARY(tsp_provider_dll SHARED tsp_provider_dll.c)
TARGET_LINK_LIBRARIES(tsp_provider_dll tsp_common tsp_services tsp_provider)
ADD_EXECUTABLE(tsp_provider_dll_test tsp_provider_dll_test.c)
TARGET_LINK_LIBRARIES(tsp_provider_dll_test ${LIBS} tsp_provider_dll)
And to make it work, I had to do some extra :
- tsp_rpc.h withc was missing in the generated include dir (I took it from the installed include dir).
- pthredVC.lib was missing in the generated binaries dir (I have copyied it from the install dir to /external/pthreadVC/lib dir)
- pthreadVC, oncrpc, and TspWin32 include files where missing too (I have copyied these from the install dir to /external/pthreadVC/include , /external/oncrpc/include and /external/TspWin32/includedir)
Then I succeed to generate tsp_provider_dll.
But still the same problem when debuging ...
3) What next ?
I think I have to fix the - CMake Error : Unknown Target referenced : rpcgen_exec_cht to go further (as the goal is to get a debug version of TSP)
So my priority is to get help to fix that point.
But any ideas or remarqs about the other points are welcome ...
Regards,
Jeff
|