Discussion:
successfully built OmnibandTK-1.5 from src in Windows 7
(too old to reply)
xxxx
2015-02-20 02:36:48 UTC
Permalink
Raw Message
I have successfully built OmnibandTK-1.5 from src;
Source Location:
http://angband.oook.cz/faangband/OmnibandTk-1.5.zip
I Have Copies Of Course...
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 ~
$ 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 ~
$ . build
***@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 /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!
xxxx
2015-02-20 02:43:22 UTC
Permalink
Raw Message
Source Location:
http://angband.oook.cz/faangband/OmnibandTk-1.5.zip
http://angbandplus.github.io/AngbandPlus/omnibandtk.html
OmnibandTk-1.5.zip on www.zaimoni.com is just the binaries!
(not mine)

DernHelm on Oook dot CZ

Loading...