-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
freerdp build fails #5718
Comments
@pfeatherstone I have no idea about this command 'mingw64 makepkg-mingw -sLf' but freerdp builds fine here (MSYS/MinGW // GCC 8.3.0 x86_64) using (freerdp) master branch. We used cmake to build freerdp from source (master branch). You should try again using cmake command. |
@sfhacker The documentation for this github repository explains how to build mingw packages. https://github.com/msys2/MINGW-packages#documentation |
@sfhacker I should have added that this documentation details to use the command: "mingw64 makepkg-mingw -sLf" inside the folder MINGW-packages/mingw-w64-freerdp |
@pfeatherstone It is working fine here. Perhaps your environment is broken or 'polluted' somehow. Have you tried using cmake command? Have you been able to fix the compilation errors? We don't see those errors in our MSYS/MINGW environment. |
The problem maybe because we switch to Win7 target by default |
@pfeatherstone You sound confused! Can you post the output of cmake command here? |
@sfhacker I think the confusion is that you're using MSYS version 1 with MINGW32. I'm using MSYS version 2 with MINGW64. The latter provides two environments: the MSYS2 environment and the MINGW64 environment. You get different behaviour when building in each one. |
Our environment works fine. We build large projects on a daily basis (e.g. OpenLDAP, Heimdal Kerberos, FreeRADIUS, etc). But your environment seems broken. You should sort that out first. |
And, you are using the correct MSYS2 environment, right? Tim S. |
@pfeatherstone I just duplicated the 64 bit build error; I will spend a hour or so trying to fix it. Edit2: Trying to build 32 bit to see if that works. Tim S. |
The suspense is intense |
At last someone knows what has to be done! We are mere beginners here! |
Going to build next without patch mingw-w64-redefinitions.patch. I have decided the quickest solution is to edit mingw-w64-redefinitions.patch. Tim S. |
I am not making much progress; but, still trying for a short time in hope of making some progress. |
The problem is beyond me at this time. Link to my work; no idea if the work is any good. Tim S. |
We were able to build it from source without any patching to the MinGW runtime but to freerdp codebase. There are freerdp outstanding issues (compilation and linking) from last year. No one has cared to fix and merge them to master branch. Anyway, thanks for your time on this issue. |
@sfhacker where can the patches you used be found? Tim S. |
@stahta01 I think properly need to check |
So the MINGW32 build doesn't work for me either (when using MSYS2). Are there any major differences between MSYS and MSYS2? I thought it was just the pacman package manager introduced in MSYS2, which incidentally is what i'm using to install dependencies. |
@pfeatherstone there are two different MINGW runtimes. MINGW from mingw.org is outdated and not actively developed. MSYS2 project use mingw-w64 runtime for 32 and 64 bit. |
I'm using mingw-w64 since that's what's shipped with MSYS2. Since neither the MINGW32 or the MINGW64 builds work and I have a working CYGWIN build (though much slower) and I'm running out of time, I will have to leave it at that. I might look into a freerdp proxy server than runs on linux so I can apply my mods there and connect with rdesktop on windows. |
There seems to be a lot of confusion and ignorance about certain projects. The same applies to CYGWIN, which does not produce native Windows binaries. We can make the freerdp native Windows binaries (master branch) available to anyone. Just let us know. |
@sfhacker so was you lying when you said you patched freerdp in order to build it? Tim S. |
Looks like sfhacker was likely building git master with patches. Tim S. |
Added patches I used to compile FreeRDP using Mingw32 and Mingw64 prompts. Used these commands to build make VERBOSE=1 -j1 |
I will test this right now! |
Note: I have no desire to use freerdp and I got it to build using changes copied from astrand mingw-part2 branch. No idea if the patches make sense; I have no knowledge of FreeRDP code. Tim S. |
@stahta01 Thank you! I will test on Monday |
Found a possible code bug in freerdp; but, I have no idea which is wrong. In file include/freerdp/server/rdpdr.h CreationTime and 5 others are of type UINT64 that maybe should be LARGE_INTEGER. MinGW64 has LARGE_INTEGER and Microsoft aggrees I see no way to proceed on building the server code because I do not believe the freerdp is correct. Tim S. |
Decided the server code can not be built using MSys2 Mingw64 GCC. Tim S. |
Above you mentioned you managed to build using mingw32 and mingw64. Do you mean you can’t hold using MSYS2 environment ? |
Build* |
Using git master I can build using my git package under MSys2. Edit2: When you have a build issue on a package that is not msys2 package related. Tim S. |
I am likely done working on this package; feel free to commit my work. I have no plans to do a pull-request. |
freerdp is available in mingw packages repository. See this page for more information https://packages.msys2.org/base/mingw-w64-freerdp Though it requires some patches to workaround the build issues. |
I ran: " MINGW_INSTALLS=mingw64 makepkg-mingw -sLf" inside the mingw-64-freerdp folder and got a whole host of errors relating to redeclarations. In my case the errors popped up in ntlm.c. I'm sure there are others.
Example:
The text was updated successfully, but these errors were encountered: