miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Windows x64 Lib

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Feature Request
View previous topic :: View next topic  
Author Message
Arkas
Guest





PostPosted: Mon Sep 03, 2018 2:04 pm    Post subject: Windows x64 Lib Reply with quote

Hello!
I saw that there is lib for Windows x32. Is there lib for Windows x64? If no, is it possible to generate it via Visual Studio 2017?

Have a good day!
Back to top
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Mon Sep 03, 2018 8:43 pm    Post subject: Reply with quote

well it should be possible to convert the win32 projects to x64.
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Arkas
Guest





PostPosted: Mon Sep 03, 2018 10:33 pm    Post subject: Reply with quote

I cant open the projet in VS 2017, but i reinstate VS 2015 and i will try to convert the lib to x64 from x32.
Back to top
Arkas
Guest





PostPosted: Wed Sep 05, 2018 12:15 pm    Post subject: Reply with quote

Hi!
I made a .lib for x64. But now, i have always this error when i compile the project.

" error LNK2019: unresolved external symbol __imp_UPNP_AddPortMapping referenced"

If someone could explain to me, it would be great! Smile
Back to top
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Fri Sep 07, 2018 4:22 pm    Post subject: Reply with quote

Have you built a static library or a DLL ?
depending on what you build, you need to define MINIUPNP_STATICLIB or MINIUPNP_EXPORTS

see https://github.com/miniupnp/miniupnp/blob/master/miniupnpc/msvc/miniupnpc.vcxproj
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Arkas
Guest





PostPosted: Sat Sep 08, 2018 12:05 pm    Post subject: Reply with quote

Hi! I have built a static library miniupnpc.lib.
Thanks, i will see your link.
Back to top
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Sun Sep 09, 2018 9:44 pm    Post subject: Reply with quote

Arkas wrote:
Hi! I have built a static library miniupnpc.lib.
Thanks, i will see your link.

So you need to define MINIUPNP_STATICLIB in the project using the lib
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Arkas
Guest





PostPosted: Tue Sep 11, 2018 9:55 am    Post subject: Reply with quote

Yes i have define STATIC_LIB and its ok, VS find the .lib. But he return this error:

https://i.gyazo.com/59e910ec3b89d7037adfef2942378058.png
Back to top
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Fri Sep 14, 2018 9:38 am    Post subject: Reply with quote

Arkas wrote:
Yes i have define STATIC_LIB and its ok, VS find the .lib. But he return this error:

https://i.gyazo.com/59e910ec3b89d7037adfef2942378058.png

I cannot view this image
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Arkas
Guest





PostPosted: Fri Sep 14, 2018 12:38 pm    Post subject: Reply with quote

The error said:

"[...]miniupnpc.lib is not designed to run under Windows or it contains an error. Reinstall the program using the original installation media, or contact your software system administrator for support."
Back to top
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Fri Sep 14, 2018 12:43 pm    Post subject: Reply with quote

I'm sorry I don't know what's wrong
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Arkas
Guest





PostPosted: Sat Sep 15, 2018 9:48 am    Post subject: Reply with quote

I'm afraid the project is not compatible with VS2017 Sad

Someone has already made a plugin with for Unreal, but compatible with the version that uses VS2015, not the latest versions of the engines.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Feature Request All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.