GithubHelp home page GithubHelp logo

Comments (9)

akallabeth avatar akallabeth commented on June 5, 2024

@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 implementation
  • libfreerdp2.so holds the abstractions for basic protocol related stuff and common code for client and server implementations
  • libwinpr2.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.

aequivalent2 avatar aequivalent2 commented on June 5, 2024

@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.

akallabeth avatar akallabeth commented on June 5, 2024

@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.

aequivalent2 avatar aequivalent2 commented on June 5, 2024

@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.

akallabeth avatar akallabeth commented on June 5, 2024

@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.

aequivalent2 avatar aequivalent2 commented on June 5, 2024

@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.

akallabeth avatar akallabeth commented on June 5, 2024

@aequivalent2 check the commandline parser?

from freerdp.

aequivalent2 avatar aequivalent2 commented on June 5, 2024

@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.

akallabeth avatar akallabeth commented on June 5, 2024

@aequivalent2 join our matrix chat, you can pm me there.

from freerdp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.