udoprog / cartography

A cartography rewrite for minecraft devinf (map generator)
7 stars 0 forks source link

Not able to build on OSX Snow Leopard #1

Open contentfree opened 14 years ago

contentfree commented 14 years ago

Installed libpng from macports.

Results of make:

$ make g++ -g -Wall -c src/main.cpp -o src/main.o g++ -g -Wall -c src/Level.cpp -o src/Level.o src/Level.cpp: In member function ‘const render* Level::LoadLevelFromFile(settingst, const char_, int, bool, int)’: src/Level.cpp:285: warning: comparison is always false due to limited range of data type g++ -g -Wall -c src/Image.cpp -o src/Image.o g++ -g -Wall -c src/nbt/nbt.cpp -o src/nbt/nbt.o g++ src/main.o src/Level.o src/Image.o src/nbt/nbt.o -o src/cart5 -lpng ld: warning: in /usr/local/lib/libpng.dylib, file is not of required architecture Undefined symbols: "_png_free_data", referenced from: write_image(settings, char const, int, int, Image, char const_)in main.o "_png_write_info", referenced from: write_image(settings, char const, int, int, Image, char const_)in main.o "_png_create_info_struct", referenced from: write_image(settings, char const, int, int, Image, char const_)in main.o "_png_write_row", referenced from: write_image(settings, char const, int, int, Image, char const_)in main.o "_gzclose", referenced from: nbt::Parser::parsefile(char const)in nbt.o "_gzopen", referenced from: nbt::Parser::parsefile(char const)in nbt.o "_png_set_IHDR", referenced from: write_image(settings, char const, int, int, Image, char const_)in main.o "gzread", referenced from: nbt::ByteTag::read(void)in nbt.o nbt::ShortTag::read(void)in nbt.o nbt::LongTag::read(void)in nbt.o nbt::FloatTag::read(void)in nbt.o nbt::DoubleTag::read(void)in nbt.o nbt::IntTag::read(void)in nbt.o nbt::StringTag::read(void)in nbt.o nbt::Parser::handle_byte_array(std::basic_string<char, std::chartraits, std::allocator >, void)in nbt.o "_png_init_io", referenced from: write_image(settings, char const, int, int, Image, char const_)in main.o "_png_destroy_write_struct", referenced from: write_image(settings, char const, int, int, Image, char const_)in main.o "_png_set_text", referenced from: write_image(settings, char const, int, int, Image, char const_)in main.o "_png_write_end", referenced from: write_image(settings, char const, int, int, Image, char const_)in main.o "_png_create_write_struct", referenced from: write_image(settings, char const, int, int, Image, char const_)in main.o ld: symbol(s) not found collect2: ld returned 1 exit status make: *\ [cart5] Error 1

contentfree commented 14 years ago

Sorry about the formatting. GH picked up the four spaces as code delimiters

udoprog commented 14 years ago

I would say your /usr/local/lib/libpng.dylib is bad, as the linker mentions.

Also, i'm no longer supporting this branch of cart5, for an alternative tool, see c10t.