Successful! It’s work! We have builds of all native libs and binaries of VCMI on FreeBSD! Configure options:
env CC="/usr/local/bin/ccache /usr/local/bin/g++46" CXX="/usr/local/bin/ccache /usr/local/bin/g++46" with_boost=yes enable_sdltest=yes LDFLAGS="-L/usr/local/lib/gcc46 -L/usr/local/lib -L/usr/lib -L/lib" LD_FLAGS=$LDFLAGS CPPFLAGS="-I/usr/local/lib/gcc46/include/c++/x86_64-portbld-freebsd8.1/bits -I/usr/local/lib/gcc46/include/c++ -I/usr/local/lib/gcc46/include -I/usr/local/include/boost -I/usr/local/include/SDL -I/usr/local/include -I/usr/include" CFLAGS="-g -O3 -funroll-loops" CXXFLAGS="-g -O3 -funroll-loops -std=c++0x" ./configure --prefix=/usr/local
With modified /etc/libmap.conf:
libstdc++.so.6 gcc46/libstdc++.so.6
But I need some help about configuration options and right way of installation.
After “gmake all” i run “gmake install” and install script copy all libs and bins to my prefix (/usr/local).
But I can’t find directory /usr/local/share/vcmi.
Anyway I make it by hands.
After run “vcmiclient” I receive this message:
$ vcmiclient
Starting...
Creating console and logfile: 1
At Error: Properties entry is missing for struct in schema
At Error: Schema not found!
Loading settings: 4
VCMI 0.88b (client)
Error: SDL says that 0x0 resolution is not available!
Initializing screen: 146
Abort trap (core dumped)
After this i run "vcmclient --help:
$ vcmiclient --help
Starting...
VCMI 0.88b - A Heroes of Might and Magic 3 clone
Copyright (C) 2007-2012 VCMI dev team - see AUTHORS file
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Usage:
Allowed options:
-h --help ] display help and exit
-v --version ] display version information and exit
-b --battle ] arg runs game in duel mode (battle-only
--start arg starts game from saved StartInfo file
--onlyAI runs without GUI, all players will be default AI
--oneGoodAI puts one default AI and the rest will be EmptyAI
--autoSkip automatically skip turns in GUI
-i --nointro ] skips intro movies
And run “vcmiclient --version”:
$ vcmiclient --version
Starting...
VCMI 0.88b
data directory: /usr/local/share/vcmi
library directory: /usr/local/lib/vcmi
binary directory: /usr/local/bin
After reading README.linux I’ve mount directory of installed WOG (Windows wersion) to /usr/local/share/vcmi,
copy “Sprites”, “Data” and “config” directories
from “/PATH_TO_SOURCE/” (/home/admin/VCMI/SVN/trunk) to “/DATA_PATH/vcmi”
(/usr/local/share/vcmi in my case) and run vcmiclient,
but program crashed and I receive very strange message:
$vcmiclient
Starting...
Creating console and logfile: 1
Loading settings: 16
VCMI 0.88b (client)
Warning: SDL says that 24bpp is wrong and suggests 32
New screen flags: 0
Initializing screen: 187
My Xorg server support 16 and 24 bit of video output, how it’s possible?
What I need configure/fix after installation for correct work of vcmiclient on FreeBSD?
I try make FreeBSD port, and I really need to know how do that correctly.