Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compile error when building Tilengine
#12
(12-17-2020, 01:08 AM)megamarc Wrote: Hi,
Those errors are from libpng complaining about not finding zlib implementation. Putting zlib headers is one part of the solution, but there must be the actual library with zlib.lib or similar name. Sometimes libpng includes zlib bundled inside, others it doesn't, that depens on who is packaging libpng. In your case, seems that libpng you downloaded doesn't include it, so you must provide it externally.

Thanks, that was helpful. I downloaded http://gnuwin32.sourceforge.net/downlink...ib-zip.php and copied zlib.lib from that zip to Tilengine-master\src\libpng\Win32

When trying to build I still got some errors:

Build started...
1>------ Build started: Project: Tilengine, Configuration: Debug Win32 ------
1>Tilengine.vcxproj -> C:\Tilengine\Tilengine-master\src\Win32_Debug\Tilengine.dll
1>        1 file(s) copied.
1>The system cannot find the path specified.
1>        0 file(s) copied.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(153,5): error MSB3073: The command "copy C:\Tilengine\Tilengine-master\src\Win32_Debug\Tilengine.dll C:\Tilengine\Tilengine-master\samples
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(153,5): error MSB3073: copy C:\Tilengine\Tilengine-master\src\Win32_Debug\Tilengine.lib C:\Tilengine\Tilengine-master\lib\Win32
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(153,5): error MSB3073:
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(153,5): error MSB3073: :VCEnd" exited with code 1.
1>Done building project "Tilengine.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

But this was easily fixed by creating the folder C:\Tilengine\Tilengine-master\lib\Win32
Reply


Messages In This Thread
RE: Compile error when building Tilengine - by Motherbrain - 12-17-2020, 03:18 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)