Open JlnWntr opened 3 years ago
No idea, since I have no experience with Windows based systems including cross compiling for it... Can't you compile it natively on Windows?
Give CMAKE a try... :)
Give CMAKE a try
I believe you have to know cmake in order to do that. (And that's an entirely different chore.)
How do you tell cmake
to use mingw or crosscompile for windows?
$ CC="x86_64-w64-mingw32-gcc" cmake ../usrsctp/
throws this error:
The C compiler
"/usr/bin/x86_64-w64-mingw32-gcc"
is not able to compile a simple test program.
Which is odd, since I've already compiled other libraries using mingw.
@tuexen : The possibility to crosscompile usrsctp is in my opinion really interesting combined with the idea that it is advertised to be portable. (Which it is.)
Give CMAKE a try
I believe you have to know cmake in order to do that. (And that's an entirely different chore.) How do you tell
cmake
to use mingw or crosscompile for windows?
$ CC="x86_64-w64-mingw32-gcc" cmake ../usrsctp/
throws this error:The C compiler "/usr/bin/x86_64-w64-mingw32-gcc" is not able to compile a simple test program.
No idea. I'm always referring to @weinrank for any cmake related question...
Which is odd, since I've already compiled other libraries using mingw.
@tuexen : The possibility to crosscompile usrsctp is in my opinion really interesting combined with the idea that it is advertised to be portable. (Which it is.)
I agree, but I have never done it...
Not touching CMake with a ten foot pole but I regularly built usrsctp for Windows as a Meson subproject via Dockcross in a CI environment, so it's definitely possible: https://github.com/rawrtc/ci-image/tree/cross/windows-x64
I tried to
CC="x86_64-w64-mingw32-gcc" ./configure --host=x86_64-w64-mingw64
on a Ubuntu subystem andmake
gave meAm I doing this right? :)