Go Back   Angband Forums > Angband > Development

Thread Tools Display Modes
Old April 26, 2015, 05:58   #111
APWhite's Avatar
Join Date: Jul 2007
Location: St George Utah, USA
Posts: 244
APWhite is on a distinguished road
Originally Posted by Mark View Post
Thanks Nick,

I took the second option you suggested and the errors are gone. Trying to compile gives a new Windows error. "The program can't start because libpng12.dll is missing from your computer. Try reinstalling the program to fix this problem." (image attached)

The output window contains:

'Angband15MG.exe' (Win32): Loaded 'D:\Users\mark\Documents\GitHub\angband\build\Debug\Angband15MG.exe'. Symbols loaded.
'Angband15MG.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.
'Angband15MG.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
'Angband15MG.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file.
The program '[3840] Angband15MG.exe' has exited with code -1073741515 (0xc0000135) 'A dependent dll was not found'.

I found libpng12.dll in src\win\dll - not being quite sure what to do I put copies in \src and \src\win. This didn't help. Given the output window referenced other dll's in "C:\windows\SysWOW64" I copied libpng12.dll there too - and this just gave a strange error instead (perhaps the same error but in foreign characters). See attached.

Any ideas? And thanks to everyone helping get this far!
Did you try to change the Configuration Properties->General->Character Set to NOT SET?
APWhite is offline   Reply With Quote
Old May 24, 2015, 21:29   #112
Elfin Jedi
Join Date: Mar 2013
Posts: 102
Elfin Jedi is on a distinguished road
I am trying to build Angband with Netbeans using mingw as compiler. But I am not a computer programmer, and I keep getting this error:

Successfully compiled main.c.
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../libmingw32.a(main.o).text.startup+0xa7): undefined reference to `WinMain@16'
collect2.exe: error: ld returned 1 exit status
make.exe[3]: *** [angband.exe] Error 1
make.exe[2]: *** [all] Error 2
make.exe[1]: *** [subdirs] Error 2
make.exe": *** [all] Error 2

I don't know what to do about it.

Last edited by Elfin Jedi; May 25, 2015 at 00:54.
Elfin Jedi is offline   Reply With Quote
Old May 24, 2015, 21:39   #113
Elfin Jedi
Join Date: Mar 2013
Posts: 102
Elfin Jedi is on a distinguished road
Um... that is a : and then (after a space) a ( in the error not a frowning face.
Elfin Jedi is offline   Reply With Quote
Old May 8, 2016, 15:11   #114
Join Date: May 2016
Posts: 1
Ringil is on a distinguished road

sorry, I'm still confused about where to get the latest version.

When I compile the source-tarball on and start Angband, I see:
V 4.0.5

But when I fetch <master> from Github, I see:

Is it possible, that I can ignore the 3 in 4.0.3 ? (Don't say, never ignore the '3' in Angband

Regards, Thanks,
Ringil is offline   Reply With Quote
Old December 17, 2016, 23:58   #115
Join Date: Dec 2016
Posts: 1
aenea77 is on a distinguished road
Problem compiling angband with gcc 6

two days ago I updated my Linux Debian home server from stable(Jessie) to testing (Stretch), the version of the compiler changed to 6.2.1 20161124 (Debian 6.2.1-5).

After that I tried to compile the Angband source code taken from github and I obtained the following error:
/usr/bin/ld: -r and -pie may not be used together

The linker fails when it try to create angband.o, I'm not an expert on gcc but I did some research and it seems that the gcc included in the new Debian version is compiled with the option --enable-default-pie.
With this configuration a program compiled (and linked) through gcc will be a "position independent executable", this is a security feature.
Unfortunately ld can't be invoked with -r and -pie.
A possible solution that I found is to disable the option by using -fno-pie in the compiling phase and -no-pie in the linking phase.
I modified the Makefile under src directory and now the compiling process terminates correctly and I can play Angband again, for your reference I attach to my post the diff file.

Attached Files
File Type: txt Makefile-diff.txt (369 Bytes, 89 views)
aenea77 is offline   Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling Angband on MS-DOS Zababa Development 8 May 27, 2011 18:36
Compiling Angband 3.0.9 w/ xcode on OSX Iemortal Vanilla 8 April 16, 2011 17:41
Compiling Z+Angband under Windows Altefcat Variants 8 December 11, 2008 10:44
compiling vanilla angband on msvc++ 9 express hugh Vanilla 6 March 17, 2008 16:49
Trouble compiling angband 3.0.9 on linux RastaRuedi Vanilla 2 August 1, 2007 18:28

All times are GMT +1. The time now is 17:39.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.