Open x-channel opened 2 years ago
Your first command (sh linux.sh video
) fails building because I've not pushed it's source file, since it's not finished yet (the video options shouldn't be available yet in the build script, that's my mistake)
The cmd and gui versions seem to build fine, though. Check the bin/
directory, the binaries should be there
@x-channel does this still not build for you?
I can't compile: Ubuntu 20.04 ryzen 5 1600 nvidia gt 1030 ram 16 gb
~~^~~~~ utility.c:294:45: warning: unused parameter ‘sample_mode’ [-Wunused-parameter] 294~~^~~~~ utility.c:294:62: warning: unused parameter ‘distance_mode’ [-Wunused-parameter] 294~~^~~In file included from image2pixel.c:18: ../external/HLH_json.h: In function ‘json5__parse_string’: ../external/HLH_json.h:634:66: warning: unused parameter ‘err_code’ [-Wunused-parameter] 634~^~In file included from image2pixel.c:18: ../external/HLH_json.h: In function ‘json5_parse’: ../external/HLH_json.h:894:56: warning: unused parameter ‘flags’ [-Wunused-parameter] 894~~^~~ In file included from image2pixel.c:18: ../external/HLH_json.h: In function ‘HLH_json_parse_file’: ../external/HLH_json.h:156:4: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] 156~~~~~~../external/HLH_json.h: In function ‘HLH_json_parse_file_stream’: ../external/HLH_json.h:175:4: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] 175~~~~~~In file included from main_cmd.c:16: ../headers/libSLK.h: In function ‘SLK_mouse_get_layer_pos’: ../headers/libSLK.h:1807:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 1807~~^~~~ In file included from ../headers/libSLK.h:2378, from main_cmd.c:16: ../headers/../external/cute_png.h:803:24: warning: passing argument 1 of ‘ferror’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 803~~^~~~ In file included from ../headers/libSLK.h:2378, from main_cmd.c:16: ../headers/../external/cute_png.h: In function ‘cp_default_save_atlas’: ../headers/../external/cute_png.h:1667:29: warning: passing argument 1 of ‘cp_save_png’ from incompatible pointer type [-Wincompatible-pointer-types] 1667~~~~~../headers/../external/cute_png.h:244:41: note: in definition of macro ‘CUTE_PNG_CHECK’ 244 | #define CUTE_PNG_CHECK(X, Y) do { if (!(X)) { cp_error_reason = Y; CUTE_PNG_FAIL(); } } while (0) | ^ In file included from ../headers/libSLK.h:2378, from main_cmd.c:16: ../headers/../external/cute_png.h:780:29: note: expected ‘const FILE ’ {aka ‘const struct _IO_FILE ’} but argument is of type ‘const char ’ 780 | int cp_save_png(const FILE fp, const cp_image_t* img) |
~~~~^~ In file included from main_cmd.c:16: ../headers/libSLK.h: In function ‘backend_handle_events’: ../headers/libSLK.h:2505:74: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 2505 | f(text_input_active&&strlen(text_input)+strlen(event.text.text)<text_input_max) | ^../headers/libSLK.h: In function ‘backend_setup’: ../headers/libSLK.h:2594:81: warning: unused parameter ‘fullscreen’ [-Wunused-parameter] 2594 | int width, int height, int layer_num, const char *title, int fullscreen, int scale, int resizable) |
~~^~~~~~^~ In file included from ../headers/libSLK.h:2378, from main_cmd.c:16: ../headers/../external/cute_png.h: In function ‘cp_read_file_to_memory’: ../headers/../external/cute_png.h:222:25: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] 222~~~~~ In file included from ../headers/libSLK.h:2384, from main_cmd.c:16: ../headers/../external/HLH_slk.h: In function ‘HLH_slk_image_load_file’: ../headers/../external/HLH_slk.h:86:4: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] 86~~~~~ In file included from main_cmd.c:16: ../headers/libSLK.h: In function ‘backend_load_rgb_file’: ../headers/libSLK.h:3214:4: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] 3214~~~~~~~ ../headers/libSLK.h: In function ‘backend_load_pal_file’: ../headers/libSLK.h:3296:4: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] 3296~~~~~~~ caire@caire-A320MH:~/Downloads/SoftLK/SoftLK-tools-master/SLK_img2pixel$ sh linux.sh gui In file included from utility.c:17: ../external/stb_image.h: In function ‘stbi__zhuffman_decode_slowpath’: ../external/stb_image.h:4123:10: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 4123~~^~~~~ utility.c:294:45: warning: unused parameter ‘sample_mode’ [-Wunused-parameter] 294~~^~~~~ utility.c:294:62: warning: unused parameter ‘distance_mode’ [-Wunused-parameter] 294~~^~~In file included from image2pixel.c:18: ../external/HLH_json.h: In function ‘json5__parse_string’: ../external/HLH_json.h:634:66: warning: unused parameter ‘err_code’ [-Wunused-parameter] 634~^~In file included from image2pixel.c:18: ../external/HLH_json.h: In function ‘json5_parse’: ../external/HLH_json.h:894:56: warning: unused parameter ‘flags’ [-Wunused-parameter] 894~~^~~ In file included from image2pixel.c:18: ../external/HLH_json.h: In function ‘HLH_json_parse_file’: ../external/HLH_json.h:156:4: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] 156~~~~~~../external/HLH_json.h: In function ‘HLH_json_parse_file_stream’: ../external/HLH_json.h:175:4: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] 175~~~~~~In file included from main.c:14: ../headers/libSLK.h: In function ‘SLK_mouse_get_layer_pos’: ../headers/libSLK.h:1807:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 1807~~^~~~ In file included from ../headers/libSLK.h:2378, from main.c:14: ../headers/../external/cute_png.h:803:24: warning: passing argument 1 of ‘ferror’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 803~~^~~~ In file included from ../headers/libSLK.h:2378, from main.c:14: ../headers/../external/cute_png.h: In function ‘cp_default_save_atlas’: ../headers/../external/cute_png.h:1667:29: warning: passing argument 1 of ‘cp_save_png’ from incompatible pointer type [-Wincompatible-pointer-types] 1667~~~~~../headers/../external/cute_png.h:244:41: note: in definition of macro ‘CUTE_PNG_CHECK’ 244 | #define CUTE_PNG_CHECK(X, Y) do { if (!(X)) { cp_error_reason = Y; CUTE_PNG_FAIL(); } } while (0) | ^ In file included from ../headers/libSLK.h:2378, from main.c:14: ../headers/../external/cute_png.h:780:29: note: expected ‘const FILE ’ {aka ‘const struct _IO_FILE ’} but argument is of type ‘const char ’ 780 | int cp_save_png(const FILE fp, const cp_image_t img) |
~~~~^~ In file included from main.c:14: ../headers/libSLK.h: In function ‘backend_handle_events’: ../headers/libSLK.h:2505:74: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 2505 | if(text_input_active&&strlen(text_input)+strlen(event.text.text)<text_input_max) | ^ ../headers/libSLK.h: In function ‘backend_setup’: ../headers/libSLK.h:2594:81: warning: unused parameter ‘fullscreen’ [-Wunused-parameter] 2594 | void backend_setup(int width, int height, int layer_num, const char title, int fullscreen, int scale, int resizable) |~~^~~~ In file included from main.c:14: ../headers/libSLK.h: In function ‘backend_create_layer’: ../headers/libSLK.h:2762:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 2762 | if(index>=layer_count) | ^~ In file included from main.c:17: ../headers/libSLK_gui.h: In function ‘slk_gui_clip_text’: ../headers/libSLK_gui.h:209:62: warning: unused parameter ‘dst_size’ [-Wunused-parameter] 209 | static int slk_gui_clip_text(char dst, const char src, int dst_size, SLK_gui_rectangle area) |~~^~main.c: In function ‘main’: main.c:39:14: warning: unused parameter ‘argc’ [-Wunused-parameter] 39 | int main(int argc, char argv) |~~^~ main.c:39:27: warning: unused parameter ‘argv’ [-Wunused-parameter] 39 | int main(int argc, char argv) |~^~ In file included from ../headers/libSLK.h:2378, from main.c:14: ../headers/../external/cute_png.h: In function ‘cp_read_file_to_memory’: ../headers/../external/cute_png.h:222:25: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] 222 | #define CUTE_PNG_FREAD fread | ^ ../headers/../external/cute_png.h:359:3: note: in expansion of macro ‘CUTE_PNG_FREAD’ 359 | CUTE_PNG_FREAD(data, sizeNum, 1, fp); | ^~~~~~ In file included from ../headers/libSLK.h:2384, from main.c:14: ../headers/../external/HLH_slk.h: In function ‘HLH_slk_image_load_file’: ../headers/../external/HLH_slk.h:86:4: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] 86 | fread(buffer,size,1,f); | ^~~~~~ In file included from main.c:14: ../headers/libSLK.h: In function ‘backend_load_rgb_file’: ../headers/libSLK.h:3214:4: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] 3214 | fread(data,size,1,f); | ^~~~~~~~ ../headers/libSLK.h: In function ‘backend_load_pal_file’: ../headers/libSLK.h:3296:4: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] 3296 | fread(data,size,1,f); | ^~~~~~~~ caire@caire-A320MH:~/Downloads/SoftLK/SoftLK-tools-master/SLK_img2pixel$