Page 1 of 1

hxmtmapper

PostPosted: Sat Nov 10, 2012 18:30
by xyz
LazyJ wrote:*bump*

not-so-unrelated: There's another mapper for Minetest (rewritten from scratch) — https://github.com/Nemo08/hxmtmapper

PostPosted: Tue Nov 13, 2012 18:55
by LazyJ
Thanks xyz for the hxmtmapper link.

I've installed haxe and neko (Ubuntu repositories) and tried running "compile' (./compile in the hxmtmapper-master directory). It stops to tell me that I have to run haxelib setup first.

Ok, when I run "haxelib setup" it asks me for the path to the haxelib repository with write access.

Now I'm stuck because I don't know where this repository is (I've never dealt with Haxe before this).

What is your recommedation for getting this to work, xyz?

Thanks!

PostPosted: Wed Nov 14, 2012 05:32
by LazyJ
Made a little progress but still haven't been able to compile the hxmtmapper.

After running

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
./compile.sh


in the hxmtmapper-master folder, I get this error message:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
~/haxe_mtmapper/nme/3,4,3/neash/Loader.hx:9: characters 0-22 : Class not found : sys.io.Process


Any ideas what to do next?

PostPosted: Wed Nov 14, 2012 12:12
by xyz
LazyJ wrote:Made a little progress but still haven't been able to compile the hxmtmapper.

After running

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
./compile.sh


in the hxmtmapper-master folder, I get this error message:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
~/haxe_mtmapper/nme/3,4,3/neash/Loader.hx:9: characters 0-22 : Class not found : sys.io.Process


Any ideas what to do next?

Try again with nme 3.4.4

PostPosted: Wed Nov 14, 2012 16:12
by LazyJ
Ok, some more progress made but still having errors.

Downloaded NME (with Haxe included) from: http://www.haxenme.org/download/

Extracted and installed the NME/Haxe bundle:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
./nme-installer.sh


Next I ran:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
haxelib install sqlite


Then xyz's:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
./compile.sh


Everything seemed to be installed at this point so I tried to run hxmtmapper with the example for creating a jpg file (with file path altered to match my minetest world map.sqlite location)

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hxmtmapper -bp ~/stable/043/worlds/LazyLand/map.sqlite  -i ~/minetestmapper_haxe/hxmtmapper-master/cpp/test/2012_11_13_LazyLand.jpg


This is where the next stumbling block occurs. This error message pops up in the terminal and the process stops:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Error : Could not load module sqlite3@sqlite_connect__1


I've checked through Synaptic to make sure SQLite3 is installed... it is.

Now what should I try?

Thanks!

PostPosted: Wed Nov 14, 2012 18:21
by xyz
LazyJ wrote:Now what should I try?

Thanks!

Try `haxelib install sqlite`

PostPosted: Thu Nov 15, 2012 17:37
by LazyJ
Thanks for your patience xyz.

I did run

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
haxelib install sqlite


(mentioned towards the upper-part of my last post) and still that sqlite error popped up. I also ran the other two examples that are provided in the "Readme.md" file (with file path changes to my worlds' map, of course).

ATTENTION FORUM ADMINS
Perhaps this portion of the thread should be moved to its own topic. Origianlly this was to discuss Mireq's minetestmapper rewritten in c++ but xyz and I have added several posts now that are detailing a different program. Besides, I think xyz's work deserves its own thread. Peaking into the html folder, xyz's minetestmapper appears to, possibly, function like Google Maps.

Thanks. :)

PostPosted: Fri Nov 16, 2012 13:10
by xyz
LazyJ wrote:ATTENTION FORUM ADMINS
Perhaps this portion of the thread should be moved to its own topic. Origianlly this was to discuss Mireq's minetestmapper rewritten in c++ but xyz and I have added several posts now that are detailing a different program. Besides, I think xyz's work deserves its own thread. Peaking into the html folder, xyz's minetestmapper appears to, possibly, function like Google Maps.

Thanks. :)

Moved. Actually, it's not mine but Nemo08's work (mostly).

PostPosted: Fri Nov 16, 2012 19:58
by Nemo08
LazyJ wrote:... and still that sqlite error popped up...

Try to copy sqlite3.ndll to folder where is your compiled Hxmtmapper

PostPosted: Sat Nov 17, 2012 17:01
by LazyJ
Nemo08 wrote:Try to copy sqlite3.ndll to folder where is your compiled Hxmtmapper


Ok, found and copied the sqlite3.ndll to the cpp folder where Hxmtmapper (executable) has been compiled.

Ran the command in the terminal, in the "cpp" directory where the Hxmtmapper executable is.

Instantly after hitting the "enter" button, a new, blank line came up in the terminal just as if the command had been completed, however there is no jpg file nor was there any error message.

Here is the directory tree under the "hxmtmapper-master" folder:

/hxmtmapper-master/
|_ /hxmtmapper-master/cpp/ (copied sqlite3.ndll below to this folder so it exists in both places)
|_ /hxmtmapper-master/html/
|_ /hxmtmapper-master/mods/
|_ /hxmtmapper-master/src/
|_ /hxmtmapper-master/temporary/
/hxmtmapper-master/colormapping.txt
/hxmtmapper-master/compile-debug.sh
/hxmtmapper-master/compile-win.bat
/hxmtmapper-master/compile.sh
/hxmtmapper-master/READMD.md
/hxmtmapper-master/sqlite3.ndll (copied this to cpp folder above so it exists in both places)

I'm running Ubuntu 12.04 if that provides any useful information.

What's the next step?

PostPosted: Tue Nov 20, 2012 19:41
by Nemo08
@LazyJ, sorry, i forgot, "colormapping.txt" file must be in folder with hxmtmapper executible :(
P.S. clone mapper from git, i merge last dev branch
P.P.S also, i dont know, whether the mapper to work with the latest base format and mapper dont generete single image from large bases.

PostPosted: Mon Feb 18, 2013 14:31
by nomohakon
How can i compile this on windows xp?