Comments (9)
@aequivalent2 you´re holding it wrong 😁
joking aside, check the client/Sample
folder in source code and use that as a starting point. (you most likely only need to rename the main method and fill in the stubs not implemented)
you´re using the wrong API functions, these are 2 levels below the ones you are interested in.
To give you an idea:
libfreerdp-client2.so
is the one that holds the abstractions for a client implementationlibfreerdp2.so
holds the abstractions for basic protocol related stuff and common code for client and server implementationslibwinpr2.so
is a wrapper library for platform independent functions we use all over the place
also keep in mind that android library loader has a bug (or feature?) that it only calls the JNI_OnLoad
function of the library you explicitly load in your code, so load all FreeRDP
related libraries manually in reverse dependency order
also, I´d recommend directly using our newer releases as FreeRDP 2
will get less attention now that we´ve released version 3
from freerdp.
@akallabeth Sorry for this interruption again I am not sure if i am wrong but we created a C# script based on the sample and it is not working either we are faceing the same problem. We load the libraries as well in another script with DLL import. Thanks for the Feedback
from freerdp.
@aequivalent2 well, the sample client works and also the SDL
client uses the same pattern. (C++
client) therefore not sure what your issue is.
you will most likely have to create a custom client context struct extending the client common struct that holds at least a reference to the C#
class instance and create the rest of the functions just like in the sample.
also the android client uses a similar pattern (with java JNI) so maybe get some ideas there?
from freerdp.
@akallabeth after a bit more Debugging i found out that freerdp_client_context_new() is failing because the creation of a new context fails. Specifically the fuction GetKnownPath which is called in freerdp_settings_new() returns null which then triggers a failure. I am building into a quest 3 within unity. Thanks for your further replies
from freerdp.
@aequivalent2 ok, so you are using an empty environment not handled?
GetKnownPath
is a wrapper around:
XDG_*
variables for various file locations (unix)SHGetFolderPath
(windows)ios_get_temp
, ... (IOS)
so, you can either set up ENV
variables conforming to the XDG_*
variables to specify where to store various files or extend the file ./winpr/libwinpr/path/shell.c
with your platform specific code.
as you´re the first one porting to this environment you may find one or two more glitches on the way.
from freerdp.
@akallabeth Hello again, we brought it to live, but we are failing, when we are trying to set the settings for the connection. We could not find the explicit way inside the sample. Could you help us?
from freerdp.
@aequivalent2 check the commandline parser?
from freerdp.
@akallabeth Hello, and sorry for my late response. We could not find some perfect implementation for our settings. We are students from a german school and are participating in the Jugend-Forscht contest. Is it maybe possible for you to help us via Teams or something else?
Kind regards
Leo
from freerdp.
@aequivalent2 join our matrix chat, you can pm me there.
from freerdp.
Related Issues (20)
- wlfreerdp and sdl-freerdp crashing with segfault in plasma6 when connecting to windows11 HOT 6
- How to implement USB device redirection in wfreerdp? HOT 1
- Nightly builds segfaults on Ubuntu 22.04.4 HOT 5
- Card Reader/Writer Redirection as "low-level" USB device is not working HOT 8
- The master branch fails to compile with GCC 14.1 HOT 1
- Wiki Documentation update needed for CLI command options listing HOT 1
- Ubuntu 24.04 - xfreerdp2 works with the /app: option but xfreerdp3 does not HOT 1
- Compilation with jpeg-turbo and GCC14 requires changing in winpr/libwinpr/utils/image.c HOT 1
- TimeZoneIanaAbbrevMap.c requires patching to compile with GCC14 HOT 1
- FreeRDP-2.11.6 fails to compile with GCC-14: incompatible pointer types in unicode.c HOT 2
- Black Screen? HOT 6
- Build fails with trying to link shared lib to static gstreamer lib (fPIC) HOT 1
- 3.5.1 build fails with fPIC linker error HOT 2
- How to start Windows applications form Linux short cut?(Or does FreeRDP have this feature?) HOT 2
- 3.5.1 build fails with fPIC linker error HOT 1
- kerberos doesn't work in FreeRDP3 HOT 3
- --from-stdin does not work in xfreerdp3 HOT 1
- Could not capture all the windows desktop dialog in server side HOT 2
- TestWinPRUtils "TestBacktrace" fails on 32-bit arm HOT 2
- Due to large number of Freerdp CLI options can't a YAML config file make life easier HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freerdp.