make tools bug in 0.6.2

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
micloos

make tools bug in 0.6.2

Post by micloos »

The lines 650-652 of config.cpp generate a compilation error
for make_translation
(game_event.cpp is not in the dependancies of make_translation)

Michel.
Dave
Founding Developer
Posts: 7071
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Post by Dave »

I have committed a change to CVS which fixes this problem.
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming
Khiraly
Posts: 114
Joined: October 22nd, 2003, 7:13 pm
Location: Hungary

Post by Khiraly »

make make_translation and
make merge_translations

does not work because the moving of files...

In utils/Makefile :
MAKE_TRANS_OBJS=../src/tools/make_translation.o src/config.o src/filesystem.o src/game_config.o src/l

In src/tools/make_translation.cpp

#include "../config.hpp"

But it doesnt compile:

Code: Select all

lama@khiraly:~/wesnoth/utils$ make make_translation
g++ -g -O2 -Wall -DWESNOTH_PATH=\"/usr/local/share/games/wesnoth-data\" -I. -Isrc -Isrc/tools -Isrc/widgets `sdl-config --cflags` `freetype-config --cflags` -c ../src/tools/make_translation.cpp -o ../src/tools/make_translation.o
../src/tools/make_translation.cpp: In function `void process_config(const 
   std::string&, const config&, std::map<std::string, std::string, 
   std::less<std::string>, std::allocator<std::pair<const std::string, 
   std::string> > >&)':
../src/tools/make_translation.cpp:28: request for member `begin' in `
   cfg->config::all_children() const', which is of non-aggregate type `<unknown 
   type>'
make: *** [../src/tools/make_translation.o] Error 1
lama@khiraly:~/wesnoth/utils$ 

ziberpunk

Post by ziberpunk »

You should use ./configure --enable-tools to make translation tools. Makefiles in utils/ are those that existed before autotools was used and I suppose they're not kept updated
Guillaume
Posts: 103
Joined: August 25th, 2003, 12:11 pm
Location: France
Contact:

Post by Guillaume »

Well,

I used configure --enable-tools, but I still have the same error as before.
However, there aren't any problem with merge_translations

Guillaume
Post Reply