sleepy-discord icon indicating copy to clipboard operation
sleepy-discord copied to clipboard

Problem with libcryptoMT.lib

Open Qzername opened this issue 6 years ago • 20 comments

I have this error: cannot open file "libcryptoMT.lib" When I'll link debs/lib folder, I have a lot of errors. What I should do?

Include Directories & Library Directories: D:\bot\yourWaifu-sleepy-discord-b6df33e\include D:\bot\yourWaifu-sleepy-discord-b6df33e\deps D:\bot\yourWaifu-sleepy-discord-b6df33e\deps\include D:\bot\yourWaifu-sleepy-discord-b6df33e\include\sleepy_discord\IncludeNonexistent D:\bot\yourWaifu-sleepy-discord-b6df33e\Release <- for sleepy_discord.h D:\bot\yourWaifu-sleepy-discord-b6df33e\deps\cpr\opt\curl\builds\libcurl-vc14-x86-release-static-ipv6-sspi-winssl\lib <- for libcurl_a.h

Qzername avatar Jun 25 '18 16:06 Qzername

Ok, so I add libcryptoMT.lib to D:\bot\yourWaifu-sleepy-discord-b6df33e\deps\cpr\opt\curl\builds\libcurl-vc14-x86-release-static-ipv6-sspi-winssl\lib and worked, now I have problem with libsslMT.lib. When I add libsslMT.lib to D:\bot\yourWaifu-sleepy-discord-b6df33e\deps\cpr\opt\curl\builds\libcurl-vc14-x86-release-static-ipv6-sspi-winssl\lib again I have a lot of erros

Qzername avatar Jun 25 '18 17:06 Qzername

can you give me the list of errors? I can't tell what's causing the issue without it, the error messages generally give me info that I would need to understand what went wrong.

yourWaifu avatar Jun 25 '18 19:06 yourWaifu

image image

image

Qzername avatar Jun 25 '18 19:06 Qzername

It looks like you might want to recompile both sleepy_discord and libcurl. libcurl is missing some functions in it's lib file. sleepy_discord looks like it was compiled for release while GLaDOS was compiled for debug, which caused values to be different then what the linker expected.

yourWaifu avatar Jun 25 '18 19:06 yourWaifu

So I need change debug to release?

Qzername avatar Jun 25 '18 19:06 Qzername

this might help https://stackoverflow.com/questions/14714877/mismatch-detected-for-runtimelibrary

yourWaifu avatar Jun 25 '18 19:06 yourWaifu

So I changed Runtime Library image And I have now 140 errors and 174 warnings image image image image

image image image this isn't all

Qzername avatar Jun 25 '18 19:06 Qzername

Everything should have the same Runtime library value. I looked up some of your other errors and they also seem to be caused by mismatch.

yourWaifu avatar Jun 25 '18 19:06 yourWaifu

sleepy_discord.vcxproj and glados.vcxproj have same runtime library. Now I have 44 errors. image image image

Qzername avatar Jun 25 '18 20:06 Qzername

try linking Wldap32.lib

yourWaifu avatar Jun 25 '18 20:06 yourWaifu

and maybe Ws2_32.lib

yourWaifu avatar Jun 25 '18 20:06 yourWaifu

Where's it? I can't find it in Sleepy discord.

Qzername avatar Jun 25 '18 20:06 Qzername

I'm newby in Visual Studio so I don't know where is it.

Qzername avatar Jun 25 '18 20:06 Qzername

it's a windows library, so I don't know, it should have been added the directory to your list of library directories through inherited values.

yourWaifu avatar Jun 25 '18 20:06 yourWaifu

I already noticed that you are a noob at Visual Studio

yourWaifu avatar Jun 25 '18 20:06 yourWaifu

I find it and I copied it to special folder. I linked it and I have now 151 errors and 1 warning. image image image image image image image image

Qzername avatar Jun 25 '18 20:06 Qzername

you could just copy and paste the errors from output instead of using screenshot. Other then that, I'm starting to get a bit tired of this mess. Just DM me your files over on Discord and I'll tell you what's wrong and how to fix it here.

yourWaifu avatar Jun 25 '18 20:06 yourWaifu

Ok. So if you want here's my discord tag: Username#1459

Qzername avatar Jun 25 '18 20:06 Qzername

Instructions for DMing me are here in the 2nd sentence https://yourwaifu.github.io/sleepy-discord/documentation.html#a-warm-welcome join Discord API server https://discord.gg/discord-api and direct message Sleepy Flower Girl

yourWaifu avatar Jun 25 '18 20:06 yourWaifu

I was able to compile it.

Ok, first of all, I noticed that the library directories on sleepy discord is all wrong and the include directories wasn't the same as the default. You can find the default values here https://github.com/yourWaifu/sleepy-discord/blob/master/sleepy_discord/sleepy_discord.vcxproj#L150

After fixing that, recompiled libcurl with VC=15, and copied it's lib file to deps/lib. Next I tried compiling hello, by first adding wldap32.lib and Normaliz.lib to the list of additional dependencies. Compile was successful moving on to GLaDOS.

I noticed that the code was basically the same as hello so I just followed the instructions on my guide but added wldap32.lib and Normaliz.lib to the list of additional dependencies.

yourWaifu avatar Jun 25 '18 22:06 yourWaifu