last day (15 days later) » 

11:18 AM
Hi
 
Hi
So, did you look at the VLC windows build instructions?
 
11:51 AM
I can able to build it successfully. And it runs without any issues.
But there is no update check feature in the Help section.
 
Hmm ok, so you get the linking issues only when update check is enabled?
 
Yes.
In order to enable that i defined #define UPDATE_CHECK in update.h file.
 
After this I end up with these errors.
 
That means it triggers including the MinGW libraries
But at this point where you had successfully built it, you did it using Visual Studio or MinGW ?
 
11:55 AM
Using Visual studio
 
Ok, well that is not the right way
But, even though
Did you add the libmingwex.a to the linker inputs in Visual Studio?
 
yes
 
Did that at least reduce the unresovled symbol amount ?
If it did, can you show the linker errors after adding the library?
 
Errors were not reduced.
Error 1 error LNK2019: unresolved external symbol ___mingw_vfprintf referenced in function _fprintf D:\VidPlaya_offline\TryingToIncludeUpdateFacility\Vidplaya_Plugin_EmbeddedUpdate\vlcwin\libvlccore\libgcrypt.lib(libgcrypt_la-global.o)
Error 2 error LNK2001: unresolved external symbol ___mingw_vfprintf D:\VidPlaya_offline\TryingToIncludeUpdateFacility\Vidplaya_Plugin_EmbeddedUpdate\vlcwin\libvlccore\libgcrypt.lib(libgcrypt_la-misc.o)
Error 3 error LNK2001: unresolved external symbol _gpg_strerror D:\VidPlaya_offline\TryingToIncludeUpdateFacility\Vidplaya_Plugin_EmbeddedUpdate\vlcwin\libvlcc
 
12:16 PM
Ok let me go through them
 
Okay.
 
Are these all the errors? Because the numbers are not consecutive
 
Error 1 error LNK2019: unresolved external symbol ___mingw_vfprintf referenced in function _fprintf D:\VidPlaya_offline\TryingToIncludeUpdateFacility\Vidplaya_Plugin_EmbeddedUpdate\vlcwin\libvlccore\libgcrypt.lib(libgcrypt_la-global.o)
Error 2 error LNK2001: unresolved external symbol ___mingw_vfprintf D:\VidPlaya_offline\TryingToIncludeUpdateFacility\Vidplaya_Plugin_EmbeddedUpdate\vlcwin\libvlccore\libgcrypt.lib(libgcrypt_la-misc.o)
Error 3 error LNK2001: unresolved external symbol _gpg_strerror D:\VidPlaya_offline\TryingToIncludeUpdateFacility\Vidplaya_Plugin_EmbeddedUpdate\vlcwin\libvlcc
 
One thing I see already is that VLC is dependant on libgpg
At least 20/30 of the errors come from that
so you will have to build that too
What is the project layout? Do you have multiple projects in the solution?
Because I see libvlccore and lib_plugin
 
Okay. Again, I will try Clean and rebuild.
 
12:29 PM
Well, you didn't answer the question. There is no need to clean or rebuild. The thing I need to know is are you building multiple projects or one?
How did you create the Visual Studio project?
 
I build the entire project not one by one.
 
Ok clear, did you add the libmingwex.a to all the projects inside the solution?
And still most importantly, where does the solution come from? VLC does not list anything about Visual Studio in their wiki.
 
Ho. Sorry i didn't add that to all other projects. I shall add now and build again.
Actually my senior colleague gave me this source code.
I don't know where did he get that.
I found some questions related to this here.
https://forum.videolan.org/viewtopic.php?f=32&t=114441
I think he got this source here forum.videolan.org/viewtopic.php?f=32&t=114441
 
Ok that at least explains that is just a solution done by some external person. Ok, well, since I understand you don't want to use MinGW (and I understand that, I wouldn't wanna do that too) then the best option is to solve all the dependencies
Well, let's see if the libmingwex.a helps when you add it to tall
 
12:57 PM
it's building now.
 
1:08 PM
mingW related error are vanished.
Error 2627 error LNK2001: unresolved external symbol _gpg_strerror D:\VidPlaya_offline\TryingToIncludeUpdateFacility\Vidplaya_Plugin_EmbeddedUpdate\vlcwin\libvlccore\libgcrypt.lib(ecc.o)
Error 2628 error LNK2019: unresolved external symbol _gpg_strerror referenced in function __gcry_strerror D:\VidPlaya_offline\TryingToIncludeUpdateFacility\Vidplaya_Plugin_EmbeddedUpdate\vlcwin\libvlccore\libgcrypt.lib(libgcrypt_la-global.o)
Error 2629 error LNK2001: unresolved external symbol _gpg_strerror D:\VidPlaya_offline\TryingToIncludeUpdateFacility\Vidplaya_Plugin_EmbeddedUpdate\vlcwin\libvlccore\li
 
ok nice
Well the bad news is that you need the libgpg now
 
libgpg? where will i get this?
 
Well that's a good question, let mee look around but I guess you may have to build it from sources
there are some udivdi3 errors
try adding libmingw32.a to all the inputs
i'm not 100% sure but it may have that symbol
you are building 32bit application right ?
you can alos add libgcc.a
 
Yes. 32bit.
 
Ok, try add these 2 libs
I'll check if you can get prebuilt libgpg
 
1:17 PM
And i would like to let you know that is, I edited config.h not update.h. also I don't know whether it is safe to edit config.h or not.
 
I havent done anything with VLC sources so I don't have a clue what the effects are
The best I can do is try and help you resolve the symbols
Ok seems that for those symbols you need libgpg-error
 
I suspect that config.h is autogenerated and i'm not supposed edit this. But i'm not sure about this.
because i found the following lines on the top of config.h

/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
 
well yeah, you are not supposed to do that, but then again you are not building in the correct way
If you were building using MinGW then you would just run ./configure but now you don't have that option
 
So. What should i have to do now?
 
did adding those 2 libraries remove some more errors ?
 
1:29 PM
I didn't found libgcc.a. I think i should Run Mingw installation manager again.
 
Hmm ok
I have it under the mingw32-gcc dev package
 
1:46 PM
But still, I can't find binaries for libgpg-error so you will have to build that to have everything running.
 
2:01 PM
4 errors reduced.
Error 2 error LNK2001: unresolved external symbol _gpg_strerror D:\VidPlaya_offline\TryingToIncludeUpdateFacility\Vidplaya_Plugin_EmbeddedUpdate\vlcwin\libvlccore\libgcrypt.lib(ecc.o)
Error 3 error LNK2019: unresolved external symbol _gpg_strerror referenced in function __gcry_strerror D:\VidPlaya_offline\TryingToIncludeUpdateFacility\Vidplaya_Plugin_EmbeddedUpdate\vlcwin\libvlccore\libgcrypt.lib(libgcrypt_la-global.o)
Error 4 error LNK2001: unresolved external symbol _gpg_strerror D:\VidPlaya_offline\TryingToIncludeUpdateFacility\Vidplaya_Plugin_EmbeddedUpdate\vlcwin\libvlccore\libgcrypt.l
 
Ok, so now you have the gpg ones and some QT stuff. Do you know why VLC pulls in QT?
 
May be for GUI stuff.
 
Well, you'll have to get QT too
So now you have to download and compile QT with the studio that you are using for VLC and libgpg-error
 
I have Qt 5.2.0
 
ok
well then libgpg is the last trouble
 
2:13 PM
Yes.
 
Well, the best advice I can give is to google for some tutorials on this
or still, install Msys and Mingw and compile libgpg-error under that
or maybe ask your colleague where did he get it from - I mean the libgpg-error library
 
Okay.
 
Ok, hope you will now be able to successfully compile VLC
 
Yeah. Except the libgpg-error.
Thanks for the help.
libgpg-error.lib is there with me.
 
2:29 PM
Where? In MinGW or in the VLC source directory?
 
VLC source directory. It's been added to only one project now adding it to all other projects too.
 
ok great
 
Let me ask you one question. By seeing error itself how can expect that this file is missing ?
I'm new to this Win32 environment
 
Well, you can't
You google :D
To find which library has that symbol
 
Fine.
 
2:36 PM
I mean, most likely if it is an open source library you'll hit the function name in sources in some repository
Or some forum where people complain about it
 
Okay.
 
It's sad that we didn't do this while the bounty was available, but can you at least accept the answer? :)
 
Really I appreciate your patience. You have spent your precious time with me to guide a beginner like me.
Now got only 4 errors.

Error 62 error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall UpdateDialog::metaObject(void)const " (?metaObject@UpdateDialog@@UBEPBUQMetaObject@@XZ) D:\VidPlaya_offline\TryingToIncludeUpdateFacility\Vidplaya_Plugin_EmbeddedUpdate\vlcwin\lib_plugin\help.obj
Error 63 error LNK2001: unresolved external symbol "public: virtual void * __thiscall UpdateDialog::qt_metacast(char const *)" (?qt_metacast@UpdateDialog@@UAEPAXPBD@Z) D:\VidPlaya_offline\TryingToIncludeUpdateFacility\Vidplaya_Plugin_EmbeddedUpdate\vlcwin\lib_plugin\help
Sure.
Accepted.
Can you please +1 my question? So that i can get some reputations.
 
2:52 PM
ok
done
 
Thank you.
If i need further assistance can i get back to you?
Travelling to home, Bye. Thanks again.
 

  last day (15 days later) »