Get Error compiling in windows 7 64bit

2 replies [Last post]
kileyi
User offline. Last seen 8 years 24 weeks ago. Offline
Joined: 2015-10-28
Posts: 1

I want to compile the game from source code myself and i follower the guide from here.

http://hedgewars.org/kb/BuildingOnWindows

I have install the following software

CMake3.2.3

fpc-2.6.4.i386-win32

Qt_SDK_Win_offline_v1_1_4_en

tortoisehg-3.5.2-x64

minghc-7.10.2-x86_64

i use tortoisehg clone the source from source code from

http://hg.hedgewars.org/hedgewars/

and down to my

D:\PascalProjects\hedgewars-clone

and config

D:\PascalProjects\hedgewars-clone\tools\build_windows.bat

set PASCAL=D:\FPC\2.6.4\bin\i386-win32\
set QTDIR=D:\QtSDK\Desktop\Qt\4.7.4\mingw\bin

then i run the

build_windows.bat

and get some error i can not solve

what should i do next?

======================================================================

-- Building 0.9.22-r11249 (ead06147f84d)
-- Using DEBUG configuration
CMake Warning (dev) at cmake_modules/CheckHaskellModuleExists.cmake:14 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "HS_MODULE_base_mask" will no longer be dereferenced
when the policy is set to NEW. Since the policy is not set the OLD
behavior will be used.
Call Stack (most recent call first):
gameServer/CMakeLists.txt:8 (check_haskell_module_exists)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for openHandle in System.Entropy
-- Looking for openHandle in System.Entropy - not found
CMake Error at cmake_modules/CheckHaskellModuleExists.cmake:49 (message):
Haskell library 'entropy' required
Call Stack (most recent call first):
gameServer/CMakeLists.txt:21 (check_haskell_module_exists)

-- Configuring incomplete, errors occurred!
See also "D:/PascalProjects/hedgewars-clone/CMakeFiles/CMakeOutput.log".
See also "D:/PascalProjects/hedgewars-clone/CMakeFiles/CMakeError.log".

================================================================================

and if i run again,it gives different error infomation

it seems it lacks some of the library,but how can i set these library correctly?

and where shall i put them

================================================================================

-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
CMake Warning (dev) at misc/libphyslayer/CMakeLists.txt:22 (get_target_property)
:
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

The LOCATION property should not be read from target "physlayer". Use the
target name directly with add_custom_command, or use the generator
expression $, as appropriate.

This warning is for project developers. Use -Wno-dev to suppress it.

-- Could NOT find SDL_image (missing: SDL_IMAGE_INCLUDE_DIRS)
-- Could NOT find SDL_ttf (missing: SDL_TTF_LIBRARIES SDL_TTF_INCLUDE_DIRS)
CMake Error at d:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindPackageH
andleStandardArgs.cmake:138 (message):
Could NOT find GLUT (missing: GLUT_glut_LIBRARY)
Call Stack (most recent call first):
d:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindPackageHandleStandard
Args.cmake:374 (_FPHSA_FAILURE_MESSAGE)
d:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindGLUT.cmake:126 (FIND_
PACKAGE_HANDLE_STANDARD_ARGS)
hedgewars/avwrapper/CMakeLists.txt:5 (find_package)

-- Configuring incomplete, errors occurred!
See also "D:/PascalProjects/hedgewars-clone/CMakeFiles/CMakeOutput.log".
See also "D:/PascalProjects/hedgewars-clone/CMakeFiles/CMakeError.log".

nemo
nemo's picture
User offline. Last seen 2 weeks 2 days ago. Offline
Joined: 2009-01-28
Posts: 1861

The windows build instructions are very, very out of date.
I'd suggest trying to build under linux, if you can. Those instructions are much better maintained
(and easier).

However, if you manage to get the windows build working, please send us updates to the build instructions!

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Robin Shao
User offline. Last seen 8 years 12 weeks ago. Offline
Joined: 2016-01-17
Posts: 2

Hi kileyi,
have you build hg in win 7 please?

I am here.

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]