Editor compiling


#1

hmm…hey guys out there ! :wink:

I’ve got some problems with compiling the editor on linux, after compiling the whole game, It seems there are some editor specific *.o files, but there’s no binary for it :o

then I tried to compile directly the main.cpp from the ‘editor’ directory with the included build.sh but I got some errors:

user@laptop:/media/vstick/Games/frogatto-1.0/editor$ sh build.sh
ls: Zugriff auf ../*.cpp nicht m?glich: No such file or directory                   //ls: Access on ../*.cpp not possible: No such file or directory
main.cpp:8:30: error: character_type.hpp: No such file or directory
main.cpp:9:25: error: draw_tile.hpp: No such file or directory
main.cpp:10:26: error: filesystem.hpp: No such file or directory
main.cpp:11:23: error: foreach.hpp: No such file or directory
main.cpp:12:19: error: key.hpp: No such file or directory
main.cpp:13:21: error: level.hpp: No such file or directory
main.cpp:14:28: error: level_object.hpp: No such file or directory
main.cpp:15:22: error: raster.hpp: No such file or directory
main.cpp:16:23: error: texture.hpp: No such file or directory
main.cpp:17:24: error: tile_map.hpp: No such file or directory
main.cpp:18:24: error: wml_node.hpp: No such file or directory
main.cpp:19:26: error: wml_parser.hpp: No such file or directory
main.cpp:20:25: error: wml_utils.hpp: No such file or directory
main.cpp:21:26: error: wml_writer.hpp: No such file or directory
main.cpp:26: error: ?wml? has not been declared
main.cpp:26: error: expected ?,? or ?...? before ?node?
main.cpp:27: error: ?wml? has not been declared
main.cpp:27: error: expected ?)? before ?node?
main.cpp:30: error: ?tile_map? was not declared in this scope
main.cpp:30: error: template argument 1 is invalid
main.cpp:33: error: expected constructor, destructor, or type conversion before ?<? token
main.cpp:36: error: variable or field ?init? declared void
main.cpp:36: error: ?wml? has not been declared
main.cpp:275: error: expected ?}? at end of input
Command exited with non-zero status 1
0.32user 0.04system 0:00.39elapsed 92%CPU (0avgtext+0avgdata 101280maxresident)k
0inputs+8outputs (0major+6761minor)pagefaults 0swaps
user@laptop:/media/vstick/Games/frogatto-1.0/editor$

It looks like it doesn’t know, where those header files are, but copying them from the ‘src’ directory doesn’t work
Additionally, I don’t understand the errors with ‘ls’ command (line 2, I know it’s german but with dict.leo.org It shouldn’t be a problem or just look in the comment…)

Hope, somebody can help :slight_smile:

greetings


#2

The editor is built into the game, just press ctrl+e while playing.


#3

Oh ;D

Such an easy solution, thanks!


#4

Could that be mentioned in the INSTALL file? It would have saved me a bit of searching :slight_smile:


#5

Indeed. It is done now in SVN for the future! :slight_smile: