Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linker Tools Errors please help #254

Open
koboltzz opened this issue Dec 28, 2018 · 2 comments
Open

Linker Tools Errors please help #254

koboltzz opened this issue Dec 28, 2018 · 2 comments

Comments

@koboltzz
Copy link

Hi everybody,

since at the end of year 2018 guetzli is still a incredible good tool to compress images I decided to compile windows binaries.
I use Win7+Visual Studio 2015+followed the steps closely. But no matter what I do, I can not point the project to use C:\vcpkg\packages\ as additional lib since I always get the missing "png.h" error. When I copy this file to guetzli dir I get this error instead:

LNK2019 unresolved external symbol png_create_read_struct referenced in function "bool __cdecl `anonymous namespace'::ReadPNG(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int *,int *,class std::vector<unsigned char,class std::allocator<unsigned char> > *)" (?ReadPNG@?A0x1b7a9cb8@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAH1PEAV?$vector@EV?$allocator@E@std@@@3@@Z) guetzli C:\guetzli\guetzli.obj 1
Can somebody help me?

@mrundle
Copy link

mrundle commented Feb 1, 2019

I'm running into the same thing. I'm completely unaccustomed to Windows development but want to use this tool to create a small program for a family member.

If I figure it out I'll comment here.

@koboltzz
Copy link
Author

koboltzz commented Feb 1, 2019

I found the solution :)
The instructions are wrong. You don't need libpng... You need libpng 64bit. Look at the vckpg documentary to install 64 bit libraries and you can build it.
I have to say sadly, opencl and Cuda only works till ~5 Megapixel pictures. Anything bigger results in error messages. But the '-c' command of the Cuda version Really works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants