Phylliida / orbslam-windows

Easy build for ORB Slam 2 on Windows
GNU General Public License v3.0
130 stars 73 forks source link

Compile as DLL #12

Open AndreV2890 opened 6 years ago

AndreV2890 commented 6 years ago

Hi,

is there any issue to compile as dll instead of static library? and in case, can i follow the readme file as it is?

Phylliida commented 6 years ago

There shouldn't be an issue in theory, but for some reason when I tried to compile it as a dll I got really strange errors, that's why I had to build it as a static library. Let me know if you manage to get a dll working.

To do that, in theory you would just change all of the

Runtime Library to Multi-threaded

in the readme into

Runtime Library to Multi-threaded DLL

and

Right click on ___ project -> Properties -> General: change Target Extension to .lib and Configuration Type to Static Library (.lib)

into

Right click on ___ project -> Properties -> General: change Target Extension to .dll and Configuration Type to Dynamic Library (.dll)

and then otherwise follow my tutorial as normal.

AndreV2890 commented 6 years ago

Unfortunately I failed to compile as dll for unknow strange reason. By the way in the readme you talk about 64bit compiler, If I have to compile as 32 bit is there any issue?

Phylliida commented 6 years ago

as long as you make sure to compile everything as 32 bit, no you should be fine