Code Monkey home page Code Monkey logo

Comments (9)

Vild avatar Vild commented on August 21, 2024

Can you PasteBin or Gist the output when you run 'make linux'?
I can't help you without the error.

from imagetomap-x.

sniggyfigbat avatar sniggyfigbat commented on August 21, 2024

OK, I updated some packages, and now I'm getting yet another, different set of errors. Here's the pastebin (I didn't do it before, as it was over 900 lines long). Same thing happens when I sudo it.

stefan@SCBdesktop:~$ cd /usr/local/src/ImageToMap-X-master/
stefan@SCBdesktop:/usr/local/src/ImageToMap-X-master$ make linux
make -f linux.mk
make[1]: Entering directory /usr/local/src/ImageToMap-X-master' mkdir -p obj/linux/src/ gcc -Wall -Werror -std=c99 -g -s -Ospkg-config --cflags gtk+-3.0-c src/generate.c -o obj/linux/src/generate.o mkdir -p obj/linux/src/ gcc -Wall -Werror -std=c99 -g -s -Ospkg-config --cflags gtk+-3.0-c src/main.c -o obj/linux/src/main.o mkdir -p obj/linux/src/ gcc -Wall -Werror -std=c99 -g -s -Ospkg-config --cflags gtk+-3.0-c src/map_render.c -o obj/linux/src/map_render.o mkdir -p obj/linux/src/ gcc -Wall -Werror -std=c99 -g -s -Ospkg-config --cflags gtk+-3.0-c src/nbtsave.c -o obj/linux/src/nbtsave.o src/nbtsave.c: In function ‘read_region_files’: src/nbtsave.c:671:13: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Werror=unused-result] src/nbtsave.c:684:13: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Werror=unused-result] src/nbtsave.c:689:13: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Werror=unused-result] cc1: all warnings being treated as errors make[1]: *** [obj/linux/src/nbtsave.o] Error 1 make[1]: Leaving directory/usr/local/src/ImageToMap-X-master'
make: *** [linux] Error 2

from imagetomap-x.

Vild avatar Vild commented on August 21, 2024

Thanks :)
I can bug lasarus to fix it, mean while you can just add (void) before fread on line 671, 684 and 689 in the file src/nbtsave.c

from imagetomap-x.

sniggyfigbat avatar sniggyfigbat commented on August 21, 2024

Still no dice, I'm afraid. I added '(void) ' (with the space) onto the beginning of each line, and got this:

stefan@SCBdesktop:/usr/local/src/ImageToMap-X-master$ sudo make linux
make -f linux.mk
make[1]: Entering directory /usr/local/src/ImageToMap-X-master' mkdir -p obj/linux/src/ gcc -Wall -Werror -std=c99 -g -s -Ospkg-config --cflags gtk+-3.0-c src/nbtsave.c -o obj/linux/src/nbtsave.o src/nbtsave.c: In function ‘read_region_files’: src/nbtsave.c:671:8: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Werror=unused-result] src/nbtsave.c:684:8: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Werror=unused-result] src/nbtsave.c:689:8: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Werror=unused-result] cc1: all warnings being treated as errors make[1]: *** [obj/linux/src/nbtsave.o] Error 1 make[1]: Leaving directory/usr/local/src/ImageToMap-X-master'
make: *** [linux] Error 2

from imagetomap-x.

Vild avatar Vild commented on August 21, 2024

If you change it so it's:
if (fread(...)) {}
Does that work

from imagetomap-x.

lasarus avatar lasarus commented on August 21, 2024

A simpler solution is to turn of warnings in the Makefile. Remove '-Wall' and '-Werror' and you should be fine. Otherwise WildN00b is working on the problem.

from imagetomap-x.

sniggyfigbat avatar sniggyfigbat commented on August 21, 2024

sorry, lasarus, your solution doesn't work at all. I just went straight back to the undefined references issue. I haven't copy-pasted all of it, as there are so many lines of error that the terminal deleted the first lines by the time it got to the end, but here's the last bit:

/usr/local/src/ImageToMap-X-master/src/nbtsave.c:89: undefined reference to deflateEnd' obj/linux/src/nbtsave.o: In functioninflatenbt':
/usr/local/src/ImageToMap-X-master/src/nbtsave.c:110: undefined reference to inflateInit2_' /usr/local/src/ImageToMap-X-master/src/nbtsave.c:112: undefined reference toinflateInit_'
/usr/local/src/ImageToMap-X-master/src/nbtsave.c:137: undefined reference to inflate' /usr/local/src/ImageToMap-X-master/src/nbtsave.c:144: undefined reference toinflateEnd'
/usr/local/src/ImageToMap-X-master/src/nbtsave.c:154: undefined reference to inflateEnd' collect2: error: ld returned 1 exit status make[1]: *** [bin/linux/ImageToMapX] Error 1 make[1]: Leaving directory/usr/local/src/ImageToMap-X-master'
make: *** [linux] Error 2

Before that it just went on about undefined references for hundreds of lines. Same thing happened with WildN00b's suggestion.

from imagetomap-x.

Vild avatar Vild commented on August 21, 2024

Pull the latest changes and see if it works now.

from imagetomap-x.

sniggyfigbat avatar sniggyfigbat commented on August 21, 2024

Redownloaded the zip, extracted the folder, ran make once, got the werror issues, remover the '-Wall -Werror' tags, straight back to the undefined references. Either I yanked the wrong thing, or nothing's changed. Sorry.

from imagetomap-x.

Related Issues (4)

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.