FreeRDP: Error after integration with other code
I am trying to integrate my own developments into the source code, in particular, the FLTK library. I made the necessary improvements in the file client/X11/CMakeLists.txt added the inclusion of his code in the compilation.
I performed my work based on the cfltk library.
...
set(GFREE gfree)
add_subdirectory(${GFREE})
set(GFREE_FLAGS
gfree
cfltk
fltk
fltk_images
fltk_jpeg
fltk_z
png16
m
X11
Xinerama
Xfixes
Xcursor
Xft
Xrender
fontconfig
)
ADD_LIBRARY(cfltk STATIC IMPORTED)
set_target_properties(cfltk PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/gfree_lib/libcfltk.a)
ADD_LIBRARY(fltk STATIC IMPORTED)
set_target_properties(fltk PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/gfree_lib/libfltk.a)
ADD_LIBRARY(fltk_images STATIC IMPORTED)
set_target_properties(fltk_images PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/gfree_lib/libfltk_images.a)
ADD_LIBRARY(fltk_jpeg STATIC IMPORTED)
set_target_properties(fltk_jpeg PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/gfree_lib/libfltk_jpeg.a)
ADD_LIBRARY(fltk_z STATIC IMPORTED)
set_target_properties(fltk_z PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/gfree_lib/libfltk_z.a)
....
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} freerdp-client freerdp m ${GFREE_FLAGS})
....

During the connection process, connection error messages appear::
[21:01:24:425] [4624:4625] [ERROR][com.freerdp.core.nego] - Protocol Security Negotiation Failure
[21:01:24:426] [4624:4625] [ERROR][com.freerdp.core] - rdp_client_connect:freerdp_set_last_error_ex ERRCONNECT_SECURITY_NEGO_CONNECT_FAILED [0x0002000C]
[21:01:24:426] [4624:4625] [ERROR][com.freerdp.core.connection] - Error: protocol security negotiation or connection failure
Compiled with default flags. If I compile WITHOUT my own code, everything is connected. Why does the integration of third-party code affect the connection so much when I don’t touch the developers’ code directly? Maybe I should specify some specific flags when compiling? Please tell me, I ask for help!
Just in case, I attach the source code and the build and compilation logs.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (8 by maintainers)
ok, then you´re on your own, looks like
cfltkdoes someting nasty withsocketet al… Since this is aUItoolkit, you might want to implement your own client and not just use theX11implementation, then you might have better luck.