Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build libpng using mingw

I cannot find on Google any easy way to do this . I try this but make says "no target found an no makefile found. Stop". First I did was go into the directory of lpng162/scripts where I can found makefile for gcc but I am new to this makefiles and I don't have vstudio to build it easily. Please help. I cannot get it to work. I'm assuming this question to solved my other problems in linking this libpng16.lib into my .dll file. This is the only solution I can think of.

like image 696
mr5 Avatar asked Nov 03 '22 21:11

mr5


1 Answers

Anyways, I figured out how to do this makefile. I just go to lpng16/scripts and I found many makefiles there with a file extension. I choose the gcc because that's only familiar to me. I removed the name extension and put it in the directory where I can find the headers and source files then make. I don't know why they don't include this instruction in the manual or its just difficult to find it there. (just noob question)

like image 182
mr5 Avatar answered Nov 12 '22 13:11

mr5