# problème lors de la compilation de hedgewars

**URL:** <https://www.debian-fr.org/t/probleme-lors-de-la-compilation-de-hedgewars/25216>\
**Category:** Programmation\
**Created:** [Février 20, 2016, 9:38 UTC](https://www.debian-fr.org/t/probleme-lors-de-la-compilation-de-hedgewars/25216 "2016-02-20T21:38:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thuban](https://www.debian-fr.org/user_avatar/www.debian-fr.org/thuban/32/4177_2.png) [@thuban](https://www.debian-fr.org/u/thuban)\
**Post date:** [Février 20, 2016, 9:38 UTC](https://www.debian-fr.org/t/probleme-lors-de-la-compilation-de-hedgewars/25216/1 "2016-02-20T21:38:08Z")

</div>

Bonjour!  
(je poste ici, hésitant avec suport debian, mais comme ce n’est pas forcément relatif à debian… bref, si les modérateurs jugent que ce post n’est pas à sa place, ils savent ce qu’il leur reste à faire 🙂 )  
Je souhaite compiler la dernière version de hedgewars, tant pour m’apprendre à compiler que pour rapporter d’éventuels bugs aux développeurs.  
Cependant, je rencontre un souci juste à la fin de la compilation. On dirait que cela vient du free pascal compiler. Est-ce parce que je suis en 64bits?  
voici le message :

`Linking CXX executable ../bin/hedgewars
[99%] Built target hedgewars
Scanning dependencies of target hwengine
[99%] Generating ../bin/hwengine
Error: Illegal parameter: -Nu
Error: /usr/bin/ppcx64 returned an error exitcode (normal if you did not specify a source file to be compiled)
make[2]: *** [bin/hwengine] Erreur 1
make[1]: *** [hedgewars/CMakeFiles/hwengine.dir/all] Erreur 2
make: *** [all] Erreur 2`  
Merci d’avance pour les idées.

---

<div class="post-metadata">

**Author:** ![panthere](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/p/5daacb/32.png) [@panthere](https://www.debian-fr.org/u/panthere)\
**Post date:** [Février 20, 2016, 9:38 UTC](https://www.debian-fr.org/t/probleme-lors-de-la-compilation-de-hedgewars/25216/2 "2016-02-20T21:38:14Z")

</div>

tu as utiliser quoi comme commande pour lancer la compil ?

```auto

```

---

<div class="post-metadata">

**Author:** ![thuban](https://www.debian-fr.org/user_avatar/www.debian-fr.org/thuban/32/4177_2.png) [@thuban](https://www.debian-fr.org/u/thuban)\
**Post date:** [Février 20, 2016, 9:38 UTC](https://www.debian-fr.org/t/probleme-lors-de-la-compilation-de-hedgewars/25216/3 "2016-02-20T21:38:23Z")

</div>

make, tout simplement.  
En fait, la compilation se passe ainsi :  
On lance d’abord cmake, avec les paramètres souhaités.  
Ensuite, on fait un make, et il s’occupe de tout.  
Le -Nu semble être un paramètre passé au compilateur pascal, mais il ne le connait pas…

---

<div class="post-metadata">

**Author:** ![kna](https://www.debian-fr.org/user_avatar/www.debian-fr.org/kna/32/5623_2.png) [@kna](https://www.debian-fr.org/u/kna)\
**Post date:** [Février 20, 2016, 9:38 UTC](https://www.debian-fr.org/t/probleme-lors-de-la-compilation-de-hedgewars/25216/4 "2016-02-20T21:38:37Z")

</div>

À quoi ressemble le fichier Makefile produit par cmake ?

---

<div class="post-metadata">

**Author:** ![thuban](https://www.debian-fr.org/user_avatar/www.debian-fr.org/thuban/32/4177_2.png) [@thuban](https://www.debian-fr.org/u/thuban)\
**Post date:** [Février 20, 2016, 9:38 UTC](https://www.debian-fr.org/t/probleme-lors-de-la-compilation-de-hedgewars/25216/5 "2016-02-20T21:38:38Z")

</div>

Le voici : [code]# CMAKE generated file: DO NOT EDIT!

# Generated by “Unix Makefiles” Generator, CMake Version 2.8

# Default target executed when no arguments are given to make.

default\_target: all  
.PHONY : default\_target

#=============================================================================

# Special targets provided by cmake.

# Disable implicit rules so canoncical targets will work.

.SUFFIXES:

# Remove some rules from gmake that .SUFFIXES does not remove.

SUFFIXES =

.SUFFIXES: .hpux\_make\_needs\_suffix\_list

# Suppress display of executed commands.

$(VERBOSE).SILENT:

# A target that is always out of date.

cmake\_force:  
.PHONY : cmake\_force

#=============================================================================

# Set environment variables for the build.

# The shell in which to execute make rules.

SHELL = /bin/sh

# The CMake executable.

CMAKE\_COMMAND = /usr/bin/cmake

# The command to remove a file.

RM = /usr/bin/cmake -E remove -f

# The top-level source directory on which CMake was run.

CMAKE\_SOURCE\_DIR = /home/xavier/Jeux/hedgewars-src-0.9.12

# The top-level build directory on which CMake was run.

CMAKE\_BINARY\_DIR = /home/xavier/Jeux/hedgewars-src-0.9.12

#=============================================================================

# Targets provided globally by CMake.

# Special rule for the target edit\_cache

edit\_cache:  
@$(CMAKE\_COMMAND) -E cmake\_echo\_color --switch=$(COLOR) --cyan “Running interactive CMake command-line interface…”  
/usr/bin/cmake -i .  
.PHONY : edit\_cache

# Special rule for the target edit\_cache

edit\_cache/fast: edit\_cache  
.PHONY : edit\_cache/fast

# Special rule for the target install

install: preinstall  
@$(CMAKE\_COMMAND) -E cmake\_echo\_color --switch=$(COLOR) --cyan “Install the project…”  
/usr/bin/cmake -P cmake\_install.cmake  
.PHONY : install

# Special rule for the target install

install/fast: preinstall/fast  
@$(CMAKE\_COMMAND) -E cmake\_echo\_color --switch=$(COLOR) --cyan “Install the project…”  
/usr/bin/cmake -P cmake\_install.cmake  
.PHONY : install/fast

# Special rule for the target install/local

install/local: preinstall  
@$(CMAKE\_COMMAND) -E cmake\_echo\_color --switch=$(COLOR) --cyan “Installing only the local directory…”  
/usr/bin/cmake -DCMAKE\_INSTALL\_LOCAL\_ONLY=1 -P cmake\_install.cmake  
.PHONY : install/local

# Special rule for the target install/local

install/local/fast: install/local  
.PHONY : install/local/fast

# Special rule for the target install/strip

install/strip: preinstall  
@$(CMAKE\_COMMAND) -E cmake\_echo\_color --switch=$(COLOR) --cyan “Installing the project stripped…”  
/usr/bin/cmake -DCMAKE\_INSTALL\_DO\_STRIP=1 -P cmake\_install.cmake  
.PHONY : install/strip

# Special rule for the target install/strip

install/strip/fast: install/strip  
.PHONY : install/strip/fast

# Special rule for the target list\_install\_components

list\_install\_components:  
@$(CMAKE\_COMMAND) -E cmake\_echo\_color --switch=$(COLOR) --cyan “Available install components are: “Unspecified””  
.PHONY : list\_install\_components

# Special rule for the target list\_install\_components

list\_install\_components/fast: list\_install\_components  
.PHONY : list\_install\_components/fast

# Special rule for the target package

package: preinstall  
@$(CMAKE\_COMMAND) -E cmake\_echo\_color --switch=$(COLOR) --cyan “Run CPack packaging tool…”  
/usr/bin/cpack --config ./CPackConfig.cmake  
.PHONY : package

# Special rule for the target package

package/fast: package  
.PHONY : package/fast

# Special rule for the target package\_source

package\_source:  
@$(CMAKE\_COMMAND) -E cmake\_echo\_color --switch=$(COLOR) --cyan “Run CPack packaging tool for source…”  
/usr/bin/cpack --config ./CPackSourceConfig.cmake /home/xavier/Jeux/hedgewars-src-0.9.12/CPackSourceConfig.cmake  
.PHONY : package\_source

# Special rule for the target package\_source

package\_source/fast: package\_source  
.PHONY : package\_source/fast

# Special rule for the target rebuild\_cache

rebuild\_cache:  
@$(CMAKE\_COMMAND) -E cmake\_echo\_color --switch=$(COLOR) --cyan “Running CMake to regenerate build system…”  
/usr/bin/cmake -H$(CMAKE\_SOURCE\_DIR) -B$(CMAKE\_BINARY\_DIR)  
.PHONY : rebuild\_cache

# Special rule for the target rebuild\_cache

rebuild\_cache/fast: rebuild\_cache  
.PHONY : rebuild\_cache/fast

# The main all target

all: cmake\_check\_build\_system  
$(CMAKE\_COMMAND) -E cmake\_progress\_start /home/xavier/Jeux/hedgewars-src-0.9.12/CMakeFiles /home/xavier/Jeux/hedgewars-src-0.9.12/CMakeFiles/progress.marks  
$(MAKE) -f CMakeFiles/Makefile2 all  
$(CMAKE\_COMMAND) -E cmake\_progress\_start /home/xavier/Jeux/hedgewars-src-0.9.12/CMakeFiles 0  
.PHONY : all

# The main clean target

clean:  
$(MAKE) -f CMakeFiles/Makefile2 clean  
.PHONY : clean

# The main clean target

clean/fast: clean  
.PHONY : clean/fast

# Prepare targets for installation.

preinstall: all  
$(MAKE) -f CMakeFiles/Makefile2 preinstall  
.PHONY : preinstall

# Prepare targets for installation.

preinstall/fast:  
$(MAKE) -f CMakeFiles/Makefile2 preinstall  
.PHONY : preinstall/fast

# clear depends

depend:  
$(CMAKE\_COMMAND) -H$(CMAKE\_SOURCE\_DIR) -B$(CMAKE\_BINARY\_DIR) --check-build-system CMakeFiles/Makefile.cmake 1  
.PHONY : depend

#=============================================================================

# Target rules for targets named hedgewars

# Build rule for target.

hedgewars: cmake\_check\_build\_system  
$(MAKE) -f CMakeFiles/Makefile2 hedgewars  
.PHONY : hedgewars

# fast build rule for target.

hedgewars/fast:  
$(MAKE) -f QTfrontend/CMakeFiles/hedgewars.dir/build.make QTfrontend/CMakeFiles/hedgewars.dir/build  
.PHONY : hedgewars/fast

#=============================================================================

# Target rules for targets named hwengine

# Build rule for target.

hwengine: cmake\_check\_build\_system  
$(MAKE) -f CMakeFiles/Makefile2 hwengine  
.PHONY : hwengine

# fast build rule for target.

hwengine/fast:  
$(MAKE) -f hedgewars/CMakeFiles/hwengine.dir/build.make hedgewars/CMakeFiles/hwengine.dir/build  
.PHONY : hwengine/fast

# Help Target

help:  
@echo “The following are some of the valid targets for this Makefile:”  
@echo “… all (the default if no target is provided)”  
@echo “… clean”  
@echo “… depend”  
@echo “… edit\_cache”  
@echo “… install”  
@echo “… install/local”  
@echo “… install/strip”  
@echo “… list\_install\_components”  
@echo “… package”  
@echo “… package\_source”  
@echo “… rebuild\_cache”  
@echo “… hedgewars”  
@echo “… hwengine”  
.PHONY : help

#=============================================================================

# Special targets to cleanup operation of make.

# Special rule to run CMake to check the build system integrity.

# No rule that depends on this can have commands that come from listfiles

# because they might be regenerated.

cmake\_check\_build\_system:  
$(CMAKE\_COMMAND) -H$(CMAKE\_SOURCE\_DIR) -B$(CMAKE\_BINARY\_DIR) --check-build-system CMakeFiles/Makefile.cmake 0  
.PHONY : cmake\_check\_build\_system

[/code]
