FORUMS
Remove All Ads from XDA

[tool] dll-to-lib

276 posts
Thanks Meter: 102
 
By no2chem, Senior Member on 11th January 2013, 01:18 PM
Post Reply Email Thread
Hi all,

Now that we can build desktop applications on RT, I noticed that the x86_arm cross toolchain provided with VS2012 is missing a good number of lib files required for compiling applications. I wrote up this powershell script that will take a directory full of dlls as a parameter and convert them to .lib files... You'll need a working copy of VS2012 for this to work.

Hopefully someone finds this useful. Happy coding!
Attached Files
File Type: zip dll-to-lib-1.2.zip - [Click for QR Code] (1.5 KB, 2299 views)
The Following 9 Users Say Thank You to no2chem For This Useful Post: [ View ] Gift no2chem Ad-Free
 
 
11th January 2013, 11:27 PM |#2  
OP Senior Member
Thanks Meter: 102
 
More
I updated the script to add explicit ordinals to the DEF file and also to correctly parse functions without an RVA (redirected functions)
13th January 2013, 04:23 AM |#3  
OP Senior Member
Thanks Meter: 102
 
More
updated to 1.2, fixes some files (like ws2_32) from duplicate ordinal error due to bad regex
The Following User Says Thank You to no2chem For This Useful Post: [ View ] Gift no2chem Ad-Free
29th January 2013, 06:04 PM |#4  
Senior Member
Thanks Meter: 58
 
More
Quote:
Originally Posted by no2chem

updated to 1.2, fixes some files (like ws2_32) from duplicate ordinal error due to bad regex

I am still seeing that error with 1.2 on ws2_32.

What am I doing wrong?

Code:
Procssing  ws2_32.dll
Microsoft (R) Library Manager Version 11.00.50727.1
Copyright (C) Microsoft Corporation.  All rights reserved.

ws2_32.def : fatal error LNK1121: duplicate ordinal number '2'
1st February 2013, 01:32 AM |#5  
Retired Recognized Developer
Thanks Meter: 221
 
Donate to Me
More
Here is a working set of LIB files I use:
http://www.multiupload.nl/3I0D27IG7Y
Decompress them to "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\arm\".
1st February 2013, 01:54 AM |#6  
Senior Member
Thanks Meter: 58
 
More
Quote:
Originally Posted by schettj

I am still seeing that error with 1.2 on ws2_32.

What am I doing wrong?

Code:
Procssing  ws2_32.dll
Microsoft (R) Library Manager Version 11.00.50727.1
Copyright (C) Microsoft Corporation.  All rights reserved.

ws2_32.def : fatal error LNK1121: duplicate ordinal number '2'

As a follow up, when this does happen on a dll I need, I just edit the intermediate file to remove the offending lines and the run the link step manually, which seems to work.
22nd April 2014, 08:28 PM |#7  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by mamaich

Here is a working set of LIB files I use:
http://www.multiupload.nl/3I0D27IG7Y
Decompress them to "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\arm\".

I know this thread is a bit old, but I was wondering if these lib files are still available somewhere? I can't seem to access the multiupload link. it gives me an error saying the files are no longer available.

I would really appreciate a download link if anyone still has them.

Thank you!
23rd April 2014, 06:52 AM |#8  
Inactive Recognized Developer
Flag Seattle
Thanks Meter: 2,919
 
More
I've still got them at home, but I'm on a business trip right now so I'll need to get home before I could upload them. Is there some reason you can't just re-rip the LIBs using dll2lib?
The Following User Says Thank You to GoodDayToDie For This Useful Post: [ View ] Gift GoodDayToDie Ad-Free
25th April 2014, 02:04 AM |#9  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by GoodDayToDie

I've still got them at home, but I'm on a business trip right now so I'll need to get home before I could upload them. Is there some reason you can't just re-rip the LIBs using dll2lib?

Thanks GoodDayToDie. I think I may actually be okay. I've since figured out how to make the lib files using the script in this thread. In the next few days, probably the weekend I'm really hoping to compile my first RT program!

I hope you travel home safely.
The Following User Says Thank You to bridgeofstraws For This Useful Post: [ View ] Gift bridgeofstraws Ad-Free
1st May 2014, 03:57 AM |#10  
Member
Thanks Meter: 15
 
More
Quote:
Originally Posted by bridgeofstraws

Thanks GoodDayToDie. I think I may actually be okay. I've since figured out how to make the lib files using the script in this thread. In the next few days, probably the weekend I'm really hoping to compile my first RT program!

I hope you travel home safely.

Oh boy guess what this is:https://github.com/MakiseKurisu/WindowsRTLib
29th August 2015, 12:55 AM |#11  
mascondante's Avatar
Senior Member
Flag Western NC
Thanks Meter: 32
 
Donate to Me
More
Would it be possible to use this for Windows 10 Iot Core on the Raspberry Pi? I want to start porting simple apps to make this OS feel a bit more like a desktop.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes