Comments (20)
I think your boost-filesystem library is too old. Do you know, which version do you use?
from mapcrafter.
I changed this little function, I think it should work now with your version.
from mapcrafter.
Thank you for the effort. Now the compiling goes further, but im getting a new error. The version of libboost-filesystem is 1.42.
~/bin/mapcrafter/src$ make
g++ -std=c++0x -Werror -O3 -I. -c mc/pos.cpp -o mc/pos.o
mc/pos.cpp: In static member function 'static mapcrafter::mc::RegionPos mapcrafter::mc::RegionPos::byFilename(const std::string&)':
mc/pos.cpp:52:66: error: 'struct boost::filesystem::basic_pathstd::basic_string<char, boost::filesystem::path_traits>::string_type' has no member named 'string'
make: *** [mc/pos.o] Error 1
from mapcrafter.
Ok, I also had this old version on my server. I recommend you to download the source code of boost (recent version 1.52) and build boost from source:
./bootstrap.sh --with-libraries=filesystem,iostreams,program_options,test,iostreams,system --prefix=/usr
Then install it (after uninstalling the old version):
./b2 install --prefix=/usr
from mapcrafter.
Ok, report back later. Thank you!
Update:
I uninstalled the old version of the boost and then i successfully installed the 1.52 boost.
Now I'm getting these errors:
It must be something simple, i just can't see it.
from mapcrafter.
I really like to help you, it's the first issue on my project. :D
I forgot to say that you should remove all your boost packages and then install the new boost. Then you can do a make clean and make it again. It should hopefully work then. :-)
from mapcrafter.
I just figured it out, i cloned mapcrafter again and now compile was succesfull. Neat!
from mapcrafter.
./mapcrafter -i ~/bin/minecraft-server/keinulammas/ -o ~/bin/kartta/ -d ~/bin/minecraft-server/keinulammas/data/ -j 2
Starting renderer for world "/home/username/bin/minecraft-server/keinulammas/".
Error Unable to load chest.png, largechest.png or enderchest.png!
from mapcrafter.
With data dir, the directory src/data from the source code is meant. You need there template/ and some minecraft images (See readme).
from mapcrafter.
Sorry to bother again with my stupid questions. I have no such a files in my computer or in server. I extracted minecraft.jar in both computers, but im unable to find such files. Then i copied those images from google to mapcrafter/src/data directory. Now i try run the mapcrafter but it still saying the same error, even i have the files. Where should i place the png files? The png files are in data/ folder. I'm really confused at the moment.
./mapcrafter -i ~/bin/minecraft-server/keinulammas/ -o ~/bin/kartta/ -d data/ -j 2
Starting renderer for world "/home/username/bin/minecraft-server/keinulammas/".
Error Unable to load chest.png, largechest.png or enderchest.png!
from mapcrafter.
You can use the python script in the default data/ directory to extract the needed images from a minecraft.jar. Try to extract the images from a minecraft.jar (the desktop one you play with, I don't know if the server minecraft.jar also has this images) into the data directory. Use the -f flag, to overwrite already existing images.
And again, it's no problem for me to help you :D
from mapcrafter.
The images must be in rgba color format. Maybe your googled' images had a wrong color format or stuff. I think I should add better error messages there^^
from mapcrafter.
This is from my desktop pc:
python2.7 find_images.py bin/minecraft/minecraft.jar
chest.png not found!
enderchest.png not found!
largechest.png not found!
terrain.png not found!
Also when i manually extract the minecraft.jar there is no such files. There is no png files in minecraft.jar. Could you upload the png files some where?
from mapcrafter.
Did you use the launcher minecraft.jar? You have to use the minecraft.jar from ~/.minecraft/bin/ .
If this does not work, I can upload the images later for you.
from mapcrafter.
Ah there they are. Thank you for the help, i'm currently rendering my world. :)
from mapcrafter.
No problem. Have some fun with the renderer! :D
from mapcrafter.
Hello.
Tried to install Mapcrafter, After successful installing boost 1.52 (with no errors, and according to your description above).
I get no errors when running "make all", but get this error, when trying to execute the compiled mapcraft (see bottom)
"root@localhost src]# make clean
rm -rf mapcrafter mapcrafter.o testtextures testtextures.o util.o mc/cache.o mc/chunk.o mc/nbt.o mc/pos.o mc/region.o mc/world.o render/image.o render/manager.o render/render.o render/textures.o render/tile.o
[root@localhost src]# make all
g++ -std=c++0x -Werror -O3 -I. -c util.cpp -o util.o
g++ -std=c++0x -Werror -O3 -I. -c mc/cache.cpp -o mc/cache.o
g++ -std=c++0x -Werror -O3 -I. -c mc/chunk.cpp -o mc/chunk.o
g++ -std=c++0x -Werror -O3 -I. -c mc/nbt.cpp -o mc/nbt.o
g++ -std=c++0x -Werror -O3 -I. -c mc/pos.cpp -o mc/pos.o
g++ -std=c++0x -Werror -O3 -I. -c mc/region.cpp -o mc/region.o
g++ -std=c++0x -Werror -O3 -I. -c mc/world.cpp -o mc/world.o
g++ -std=c++0x -Werror -O3 -I. -c render/image.cpp -o render/image.o
g++ -std=c++0x -Werror -O3 -I. -c render/manager.cpp -o render/manager.o
g++ -std=c++0x -Werror -O3 -I. -c render/render.cpp -o render/render.o
g++ -std=c++0x -Werror -O3 -I. -c render/textures.cpp -o render/textures.o
g++ -std=c++0x -Werror -O3 -I. -c render/tile.cpp -o render/tile.o
g++ -std=c++0x -Werror -O3 -I. -c mapcrafter.cpp -o mapcrafter.o
g++ -std=c++0x -Werror -O3 -o mapcrafter mapcrafter.o util.o mc/cache.o mc/chunk.o mc/nbt.o mc/pos.o mc/region.o mc/world.o render/image.o render/manager.o render/render.o render/textures.o render/tile.o -lpng -pthread -lboost_iostreams -lboost_system -lboost_filesystem -lboost_program_options
g++ -std=c++0x -Werror -O3 -I. -c testtextures.cpp -o testtextures.o
g++ -std=c++0x -Werror -O3 -o testtextures testtextures.o util.o mc/cache.o mc/chunk.o mc/nbt.o mc/pos.o mc/region.o mc/world.o render/image.o render/manager.o render/render.o render/textures.o render/tile.o -lpng -pthread -lboost_iostreams -lboost_system -lboost_filesystem -lboost_program_options
[root@localhost src]# ./mapcrafter
./mapcrafter: error while loading shared libraries: libboost_iostreams.so.1.52.0: cannot open shared object file: No such file or directory
[root@localhost src]#
"
from mapcrafter.
and the file is there
"[root@localhost src]# find / -name 'libboost_iostreams.so.1.52.0'
/root/boost_1_52_0/bin.v2/libs/iostreams/build/gcc-4.4.6/release/threading-multi/libboost_iostreams.so.1.52.0
/usr/lib/libboost_iostreams.so.1.52.0
"
from mapcrafter.
works like a charm after running ldconfig -v
from mapcrafter.
I recommend you to use the root user on linux only when you really need it, e.g. system administration. You can use a normal user for the most minecraft things.
I think I should make mapcrafter compatible with the older boost filesystems to make it easier to use mapcrafter with an older debian/ubuntu apt installed boost (maybe later).
from mapcrafter.
Related Issues (20)
- Error with 1.16 map generating HOT 3
- Error on Build (113 & 116) HOT 16
- [Feature Request] Add a pid/lockfile so multiple instances can't run at the same time HOT 2
- Unknown biome id 173 (Basalt Deltas) HOT 1
- Incorrectly parsed palette ID 24 at index 98 (max is 23 with 5 bits per entry) HOT 2
- Incorrectly parsed palette ID ## rendering a 1.16.1 world HOT 11
- Old biome data found even if force-upgraded the map and only parts of the trunks have been rendered
- Map not showing up HOT 3
- [Windows] environment:locale::facet::_S_create_c_locale HOT 2
- Unknown tag type with id 12. NBT data stream may be corrupted. HOT 4
- I keep getting a blank page after rendering HOT 2
- [world113] Support for other texture_size HOT 5
- What are some alternatives for Mapcrafter? HOT 9
- Unable to write after certain chunks already processed HOT 1
- get error in every chunk
- Support for Minecraft 1.17+ HOT 70
- support for 1.18 ? HOT 1
- Copyright of Textures/Blocks images for a repository? HOT 2
- Icons moved out of place except in top-left rotation HOT 1
- Quick help HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapcrafter.