GithubHelp home page GithubHelp logo

Cannot compile about mapcrafter HOT 20 CLOSED

mapcrafter avatar mapcrafter commented on September 7, 2024
Cannot compile

from mapcrafter.

Comments (20)

m0r13 avatar m0r13 commented on September 7, 2024

I think your boost-filesystem library is too old. Do you know, which version do you use?

from mapcrafter.

m0r13 avatar m0r13 commented on September 7, 2024

I changed this little function, I think it should work now with your version.

from mapcrafter.

mastis avatar mastis commented on September 7, 2024

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.

m0r13 avatar m0r13 commented on September 7, 2024

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.

mastis avatar mastis commented on September 7, 2024

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:

http://pastebin.com/jf8kbaWz

It must be something simple, i just can't see it.

from mapcrafter.

m0r13 avatar m0r13 commented on September 7, 2024

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.

mastis avatar mastis commented on September 7, 2024

I just figured it out, i cloned mapcrafter again and now compile was succesfull. Neat!

from mapcrafter.

mastis avatar mastis commented on September 7, 2024

./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.

m0r13 avatar m0r13 commented on September 7, 2024

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.

mastis avatar mastis commented on September 7, 2024

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.

m0r13 avatar m0r13 commented on September 7, 2024

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.

m0r13 avatar m0r13 commented on September 7, 2024

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.

mastis avatar mastis commented on September 7, 2024

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.

m0r13 avatar m0r13 commented on September 7, 2024

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.

mastis avatar mastis commented on September 7, 2024

Ah there they are. Thank you for the help, i'm currently rendering my world. :)

from mapcrafter.

m0r13 avatar m0r13 commented on September 7, 2024

No problem. Have some fun with the renderer! :D

from mapcrafter.

AndersPier avatar AndersPier commented on September 7, 2024

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.

AndersPier avatar AndersPier commented on September 7, 2024

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.

AndersPier avatar AndersPier commented on September 7, 2024

works like a charm after running ldconfig -v

from mapcrafter.

m0r13 avatar m0r13 commented on September 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.