Comments (9)
Can you PasteBin or Gist the output when you run 'make linux'?
I can't help you without the error.
from imagetomap-x.
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 -Os
pkg-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 -Os
pkg-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 -Os
pkg-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 -Os
pkg-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.
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.
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 -Os
pkg-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.
If you change it so it's:
if (fread(...)) {}
Does that work
from imagetomap-x.
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.
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 function
inflatenbt':
/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 to
inflateInit_'
/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 to
inflateEnd'
/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.
Pull the latest changes and see if it works now.
from imagetomap-x.
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)
- GTK2 problems HOT 1
- Colors seems corrupted when loading image HOT 9
- Blacks are Brown in 1.12 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 imagetomap-x.