Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

WebRTC.Native.Win32 change output from a .dll file to .exe #147

Closed
polhaghverdian opened this issue Dec 14, 2019 · 8 comments
Closed

WebRTC.Native.Win32 change output from a .dll file to .exe #147

polhaghverdian opened this issue Dec 14, 2019 · 8 comments
Labels
invalid User error or by design

Comments

@polhaghverdian
Copy link

polhaghverdian commented Dec 14, 2019

Hi,

Is it possible to change the output from an .dll to .exe. when compiling?

I tried changing in the settings "configuration type" from .dll to .exe, but does not work.

https://imgur.com/Zu80uMF

@djee-ms djee-ms added the invalid User error or by design label Dec 14, 2019
@djee-ms
Copy link
Member

djee-ms commented Dec 14, 2019

Sorry @polhaghverdian this is never possible. A library and an executable are 2 different things. You cannot convert a shared library to an executable.

@polhaghverdian
Copy link
Author

polhaghverdian commented Dec 17, 2019

Sorry @polhaghverdian this is never possible. A library and an executable are 2 different things. You cannot convert a shared library to an executable.

@djee-ms
I dont want to convert the .dll file, but want to compile it to an executable. The project seems to produce .dll file instead.

@stephenatwork
Copy link
Member

@polhaghverdian to convert from dll into an exe, you'll need to supply an entry point such as main() yourself. Usually though, you would link the webrtc dll against your application instead. Is there some reason you don't want to take that approach?

@polhaghverdian
Copy link
Author

polhaghverdian commented Dec 18, 2019

@stephenatwork I dont see it necessary to have an dynamic library, which complicates development, and debugging in my case. I could give it a try but am convinced this wont be optimal. I need to have two separate projects one for the actual application and one for the library.

@djee-ms
Copy link
Member

djee-ms commented Dec 19, 2019

@polhaghverdian are you saying you want static linking? It is not clear to us what you are trying to achieve here, can you describe your use case please?

@polhaghverdian
Copy link
Author

@djee-ms Exactly am trying to achieve Static Linking ( Statically Linked Executable )

@djee-ms
Copy link
Member

djee-ms commented Dec 19, 2019

Ok then this is not currently supported. In v2.0 we plan to change the C++ interop layer, which currently has issues due to crossing DLL boundaries, and still have a DLL but make the C++ library statically linked by default (and using the DLL internally only), see the discussion on #123. Until then I'm afraid there's no simple solution.

@polhaghverdian
Copy link
Author

@djee-ms
@stephenatwork

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid User error or by design
Projects
None yet
Development

No branches or pull requests

3 participants