Voxelands Forum

The official Voxelands discussion forum

You are not logged in.

#1 2018-01-07 23:15:44

stormchaser3000
Member
Registered: 2013-10-18
Posts: 38

RUN_IN_PLACE build not building run in place on windows 10

i have managed to compile voxelands on windows 10 and i was planing on releasing the build to the community but the problem is that the build refuses to be run in place. i checked the cmake-gui and it states that the build is run in place and i tried the command line version of cmake and appended -DRUN_IN_PLACE=1 to the command and it still refuses to build run in place.


my avatar is the face mesh of my skin

Offline

#2 2018-01-08 08:40:56

neoh4x0r
Member
Registered: 2016-08-26
Posts: 45

Re: RUN_IN_PLACE build not building run in place on windows 10

stormchaser3000 wrote:

i have managed to compile voxelands on windows 10 and i was planing on releasing the build to the community but the problem is that the build refuses to be run in place. i checked the cmake-gui and it states that the build is run in place and i tried the command line version of cmake and appended -DRUN_IN_PLACE=1 to the command and it still refuses to build run in place.

When you try to run it what happens ?
Do you get any output or an error message ?

And are these the commands that you are using ?

$ cd /path/to/source
$ mkdir build
$ cd build
$ cmake .. -DRUN_IN_PLACE=1
$ cat CMakeCache.txt  | grep -i RUN_IN_PLACE

# if RUN_IN_PLACE is enabled
RUN_IN_PLACE:BOOL=1

# if RUN_IN_PLACE is not enabled (the default)
RUN_IN_PLACE:BOOL=0

Last edited by neoh4x0r (2018-01-08 09:06:58)

Offline

#3 2018-01-08 22:07:02

stormchaser3000
Member
Registered: 2013-10-18
Posts: 38

Re: RUN_IN_PLACE build not building run in place on windows 10

ok by running cmake in the build directory (voxelands/build) i was able to get a run in place build however i still have the issue of voxelands not knowing where to find the textures

22:03:19: ACTION[main]: voxelands with SER_FMT_VER_HIGHEST=22, VER=1709.00 USE_GETTEXT=1 INSTALL_PREFIX=C:/Program Files (x86)/voxelands DATA_PATH=data BUILD_TYPE=Release
INFO: Initial run of init_mapnode with g_texturesource=NULL. If this segfaults, there is a bug with something not checking for the NULL value.
Irrlicht Engine version 1.8.4
 (Build 9200)
Using renderer: OpenGL 4.5.13506
AMD Radeon R7 250 Series: ATI Technologies Inc.
OpenGL driver version is 1.2 or better.
GLSL version: 4.5
Resizing window (1024 600)
22:03:21: ERROR[main]: WARNING: Font file was not found. Using default font.
INFO: Full run of init_mapnode with g_texturesource!=NULL

Last edited by stormchaser3000 (2018-01-08 22:07:38)


my avatar is the face mesh of my skin

Offline

#4 2018-01-09 01:42:43

neoh4x0r
Member
Registered: 2016-08-26
Posts: 45

Re: RUN_IN_PLACE build not building run in place on windows 10

stormchaser3000 wrote:

ok by running cmake in the build directory (voxelands/build) i was able to get a run in place build however i still have the issue of voxelands not knowing where to find the textures

22:03:19: ACTION[main]: voxelands with SER_FMT_VER_HIGHEST=22, VER=1709.00 USE_GETTEXT=1 INSTALL_PREFIX=C:/Program Files (x86)/voxelands DATA_PATH=data BUILD_TYPE=Release
INFO: Initial run of init_mapnode with g_texturesource=NULL. If this segfaults, there is a bug with something not checking for the NULL value.
Irrlicht Engine version 1.8.4
 (Build 9200)
Using renderer: OpenGL 4.5.13506
AMD Radeon R7 250 Series: ATI Technologies Inc.
OpenGL driver version is 1.2 or better.
GLSL version: 4.5
Resizing window (1024 600)
22:03:21: ERROR[main]: WARNING: Font file was not found. Using default font.
INFO: Full run of init_mapnode with g_texturesource!=NULL

There is no indication that textures could not be found.

However it does state that a font file could not be loaded.

Look at this file:

build/src/cmake_config.h

Does it contain the following line ?

#define USE_FREETYPE 1

if it does then you are tryint to load one of these fonts:

unifont.ttf
get unifont.ttf: http://unifoundry.com/unifont.html

or whatever is set in the config file (voxelands.conf) in the build directory

client.ui.font

If USE_FREETYPE is 0 then it is trying to load

data/textures/fontlucida.png

Is this file in the install path under data?

Last edited by neoh4x0r (2018-01-09 01:46:31)

Offline

#5 2018-01-10 00:27:23

stormchaser3000
Member
Registered: 2013-10-18
Posts: 38

Re: RUN_IN_PLACE build not building run in place on windows 10

i checked and unifont.ttf file is in voxelands/data/fonts


my avatar is the face mesh of my skin

Offline

#6 2018-01-10 10:29:34

neoh4x0r
Member
Registered: 2016-08-26
Posts: 45

Re: RUN_IN_PLACE build not building run in place on windows 10

stormchaser3000 wrote:

i checked and unifont.ttf file is in voxelands/data/fonts

What was in this file?

build/src/cmake_config.h

Does it contain:

#define USE_FREETYPE 1

or

#define USE_FREETYPE 0

Also is there a .conf file in the build directory ?

Last edited by neoh4x0r (2018-01-11 13:35:48)

Offline

Board footer

Powered by FluxBB