Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old February 19, 2015, 21:04   #1
DernHelm
Rookie
 
Join Date: Feb 2015
Posts: 1
DernHelm is on a distinguished road
Successfully built OmnibandTK-1.5 from src in Windows 7

I have successfully built OmnibandTK-1.5 from src;
Source Location:
http://angband.oook.cz/faangband/OmnibandTk-1.5.zip
http://angbandplus.github.io/Angband...mnibandtk.html
I Have Copies Of Course... OmnibandTk-1.5.zip on
www.zaimoni.com is just the binaries! (not mine)
I used msys_mingw release #8 to do the build in
Windows 7. I used the following directory structure:

bass24
Msys
OmniTk-1.5-Src
--build
--lib
--src
--tk
--variant
--CMakeLists
--CMakeLists.txt.orig
tcl8.5.7
TclTk-8.5.7
tk8.5.7
tktreectrl-2.2.9
zlib-1.2.2

I used cmake-3.2.0-rc1-win32-x86. I put cmake in
the Msys directory. In the msys_mingw shell you use:

PATH=$PATH:/cmake-3.2.0-rc1-win32-x86/bin

Do the following to change directories:

xxxx@XXXX ~
$ cat build

PATH=$PATH:/cmake-3.2.0-rc1-win32-x86/bin
cd /c/XYZ/OmnibandTk-1.5-Build/OmniTk-1.5-Src/build

xxxx@XXXX ~
$ . build
xxxx@XXXX /c/XYZ/OmnibandTk-1.5-Build/OmniTk-1.5-Src/build


First I built TclTk-8.5.7 then zlib-1.2.2.
I changed zlib-122 to zlib-1.2.2 in CMakeLists.
Remove "build/CMakeCache.txt". Then from build in your shell:


xxxx@XXXX /c/XYZ/OmnibandTk-1.5-Build/OmniTk-1.5-Src/build
$ cmake .. -G"MSYS Makefiles"
...
$ make
Scanning dependencies of target misc
[ 0%] Building C object src/misc/CMakeFiles/misc.dir/shlib.c.obj
[ 0%] Building C object src/misc/CMakeFiles/misc.dir/stubs.c.obj
Linking C static library libmisc.a
...
...
...
OmnibandTk-1.5-Build\Msys\mingw\bin\dlltool.exe: Can't open def file
OmnibandTk-1.5-Build/OmniTk-1.5-Src/src/music/BASS/bass24.def
make[2]: *** [src/music/BASS/CMakeFiles/libbass24.a] Error 1
make[1]: *** [src/music/BASS/CMakeFiles/music-bass.dir/all] Error 2
make: *** [all] Error 2

OmnibandTk-1.5-Build\Msys\mingw\bin\dlltool.exe: Can't open def file
OmnibandTk-1.5-Build/OmniTk-1.5-Src/src/sound/BASS-stream/bass24.def
make[2]: *** [src/sound/BASS-stream/CMakeFiles/libbass24.a] Error 1
make[1]: *** [src/sound/BASS-stream/CMakeFiles/sound-bass-stream.dir/all]
make: *** [all] Error 2


remove "ADD_SUBDIRECTORY (BASS)"


from OmnibandTk-1.5-Build\OmniTk-1.5-Src\src\music\CMakeLists.txt
remove "ADD_SUBDIRECTORY (BASS-stream)
"

from OmnibandTk-1.5-Build\OmniTk-1.5-Src\src\sound\CMakeLists.txt
This needs work!


There is some of:

[ 2%] Building C object src/common-dll/CMakeFiles/common.dir/icon-dll
OmnibandTk-1.5-Build/OmniTk-1.5-Src/src/common-dll/icon-dll.c:
In function `objcmd_ascii':
OmnibandTk-1.5-Build/OmniTk-1.5-Src/src/common-dll/icon-dll.c:1811:
warning: passing arg 2 of `Tcl_SetResult' discards qualifiers from
pointer target type


However:

[ 1%] Generating CMakeFiles/boot.dir/angband.rc.obj
Scanning dependencies of target boot
[ 2%] Building C object src/boot/CMakeFiles/boot.dir/main-boot.c.obj
Linking C executable angband.exe
[ 2%] Built target boot

[ 26%] Building C object variant/AngbandTk/CMakeFiles/angband_library.dir/src/z-virt.c.obj
Linking C shared library angband.dll
Creating library file: libangband.dll.a
[ 26%] Built target angband_library

[ 29%] Building C object variant/AngbandTk/borg/apw292/CMakeFiles/borg.dir/src/borg9.c.obj
Linking C shared library borg.dll
Creating library file: libborg.dll.a
[ 29%] Built target borg

[ 51%] Building C object variant/KAngbandTk/CMakeFiles/kangband_library.dir/src/z-virt.c.obj
Linking C shared library angband.dll
Creating library file: libangband.dll.a
[ 51%] Built target kangband_library

[ 73%] Building C object variant/OAngbandTk/CMakeFiles/oangband_library.dir/src/z-virt.c.obj
Linking C shared library angband.dll
Creating library file: libangband.dll.a
[ 73%] Built target oangband_library

z-util.c.obj
[100%] Building C object variant/ZAngbandTk/CMakeFiles/zangband_library.dir/src/z-virt.c.obj
Linking C shared library angband.dll
Creating library file: libangband.dll.a
[100%] Built target zangband_library

Yes!!!!!
I Tried It And It Starts Up! You have to put files in the
right directory... but ok.


Good Luck!
DernHelm is offline   Reply With Quote
Old February 20, 2015, 13:34   #2
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 57
Posts: 9,480
Donated: $60
Nick will become famous soon enoughNick will become famous soon enough
Nice work! In theory someone might be able to adapt this into an alternative front end to post-core-UI-split Vanilla, but I think in practice it might be more work than it's worth.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Reply


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
OmnibandTk 1.5 tnb Variants 18 February 15, 2013 12:07
Idea - Shops with custom-built items and changing prices ekolis Variants 4 April 5, 2012 09:15
Supporting Windows Magnate Development 3 January 1, 2012 16:02
Rename /src/player/util.c ? PaulBlay Development 10 August 6, 2009 22:11


All times are GMT +1. The time now is 12:52.


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