numworks / epsilon

Modern graphing calculator operating system.
https://www.numworks.com/resources/engineering/software/
1.75k stars 463 forks source link

Make simulator : Warning #553

Open ljoets opened 6 years ago

ljoets commented 6 years ago

Hello,

With an up-to-date Git clone folder, when I try to make PLATFORM=simulator on GNU/Linux, I see this warning. But epsilon.elf seems to work fine.

CXX     apps/code/menu_controller.o
CXX     apps/code/python_toolbox.o
CXX     apps/code/python_text_area.o
apps/code/python_text_area.cpp: In member function ‘virtual void Code::PythonTextArea::ContentView::drawLine(KDContext*, int, const char*, size_t, int, int) const’:
apps/code/python_text_area.cpp:112:62: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     while (text[whitespaceOffset] == ' ' && whitespaceOffset < length) {
                                             ~~~~~~~~~~~~~~~~~^~~~~~~~
apps/code/python_text_area.cpp:142:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (tokenFrom != length) {
         ~~~~~~~~~~^~~~~~~~~
CXX     apps/code/sandbox_controller.o
CXX     apps/code/script.o
CXX     apps/code/script_node_cell.o
Fgdesmo commented 6 years ago

good morning. I'm a new user of numworks. yesterday I installed the SDK system with mysis, but I have problems starting the computer simulator. when I try to give the command "make PLATFORM = simulator", the simulator does not start. I followed the Numworks site guide, but I have some doubts. in which folder do you need to be before executing "export PATH = / mingw64 / bin: $ PATH"? maybe I did something wrong with the installation. HELP me please. Thank you very much for the attention. good day

adriweb commented 6 years ago

The make PLATFORM=simulator (warning, no spaces, here and in the other commands you mentioned) does not launch it, it only builds it. You then need to run the created executable file.

Fgdesmo commented 6 years ago

ok. thank you. I did not explain correctly. it does not create the "epsilon.elf" file. it gives me an error. tonight, as soon as I finish working I try to send a screen shoot. Thank so much

Fgdesmo commented 6 years ago

Good evening, here is the error that comes when I try to create the EPSILON simulator: $ make PLATFORM=simulator HOSTCC kandinsky/fonts/rasterizer /bin/sh: pkg-config: comando non trovato /bin/sh: pkg-config: comando non trovato /bin/sh: gcc: comando non trovato make: *** [kandinsky/Makefile:57: kandinsky/fonts/rasterizer] Error 127

I have no idea what may cause this problem. I do not know the Linux environment, because I've always worked in Windows. Could it be a configuration problem? where can I find information on using the simulator, its configuration and how to edit files? I'm a fan of electronics and I enjoy building with microcontrollers, but in this environment I'm really in trouble .. I'm waiting for help. Thank you very much for the attention. Good night John PS: I apologize for my English from "google translator" ... ;-)

Fgdesmo commented 6 years ago

I apologize. I tried to reinstall the different packages and I get the following error when I try to create the EPSILON simulator: $ make PLATFORM=simulator I18N apps/i18n.cpp HOSTCC escher/image/inliner HOSTCC kandinsky/fonts/rasterizer /bin/sh: pkg-config: comando non trovato /bin/sh: pkg-config: comando non trovato kandinsky/fonts/rasterizer.c:15:10: fatal error: ft2build.h: No such file or directory

include

      ^~~~~~~~~~~~

compilation terminated. make: *** [kandinsky/Makefile:57: kandinsky/fonts/rasterizer] Error 1 I do not know what to do...

adriweb commented 6 years ago

Very much the same thing as multiple issues here on GitHub, just install the pkg-config package.

Fgdesmo commented 6 years ago

ok. thanks a lot. tonight I try to download the configuration file and let you know. to download pkg-config I have to write" pacman -S pkg-config "?

adriweb commented 6 years ago

Almost, see here: https://github.com/numworks/epsilon/issues/549#issuecomment-395495383 or here: https://github.com/numworks/epsilon/issues/554#issuecomment-395968333 You can close the issue afterwards.

Fgdesmo commented 6 years ago

perfect!!!!!!!!! now he created the "epsilon.exe" simulator. I thank you very much for your help. now I try to do some experiment ... One last question, could you explain to me where I can find instructions for reprogramming and to modify the calculator's applications? is there a manual or should I look for information here on github? thanks again and goodnight!

ljoets commented 6 years ago

Sorry, but what does that have to do with the first post ?

adriweb commented 6 years ago

Maybe he assumed build warning ~ build error...

Louson commented 5 years ago

Fixed in pull request https://github.com/numworks/epsilon/pull/628. Sorry, I should have seen this post earlier.

But since, similar error do still exist :

mobluse commented 4 years ago

I compiled the simulator in Raspbian Buster Linux on Raspberry Pi 4 B and get many warnings, but the simulator seems to work.

$ make PLATFORM=simulator 2>&1 |tee makesimulator.txt
$ grep 'warning:' makesimulator.txt 
poincare/src/derivative.cpp:78:38: warning: ‘result’ may be used uninitialized in this function [-Wmaybe-uninitialized]
python/src/py/scope.c:36:22: warning: unsigned conversion from ‘int’ to ‘unsigned char’ changes value from ‘280’ to ‘24’ [-Woverflow]
python/src/py/scope.c:37:25: warning: unsigned conversion from ‘int’ to ‘unsigned char’ changes value from ‘281’ to ‘25’ [-Woverflow]
python/src/py/scope.c:38:25: warning: unsigned conversion from ‘int’ to ‘unsigned char’ changes value from ‘282’ to ‘26’ [-Woverflow]
python/src/py/scope.c:39:24: warning: unsigned conversion from ‘int’ to ‘unsigned char’ changes value from ‘283’ to ‘27’ [-Woverflow]
python/src/py/scope.c:40:24: warning: unsigned conversion from ‘int’ to ‘unsigned char’ changes value from ‘284’ to ‘28’ [-Woverflow]
ion/src/shared/crc32.cpp:16:55: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘unsigned int’} [-Wsign-compare]
ion/src/simulator/linux/images.cpp:43:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
ion/src/shared/unicode/utf8_helper.cpp:113:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘unsigned int’} [-Wsign-compare]
apps/graph/graph/graph_controller_helper.cpp:51:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘unsigned int’} [-Wsign-compare]
apps/graph/graph/graph_controller_helper.cpp:55:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘unsigned int’} [-Wsign-compare]
apps/graph/graph/integral_graph_controller.cpp:44:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘unsigned int’} [-Wsign-compare]
apps/graph/graph/intersection_graph_controller.cpp:28:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘unsigned int’} [-Wsign-compare]
apps/graph/graph/intersection_graph_controller.cpp:33:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘unsigned int’} [-Wsign-compare]
apps/graph/graph/intersection_graph_controller.cpp:36:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘unsigned int’} [-Wsign-compare]
apps/code/console_controller.cpp:406:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘unsigned int’} [-Wsign-compare]
apps/regression/graph_controller.cpp:118:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘unsigned int’} [-Wsign-compare]
apps/regression/graph_controller.cpp:122:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘unsigned int’} [-Wsign-compare]
apps/regression/graph_controller.cpp:128:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘unsigned int’} [-Wsign-compare]
apps/main.cpp:36:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
apps/title_bar_view.cpp:97:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘unsigned int’} [-Wsign-compare]
apps/title_bar_view.cpp:102:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘unsigned int’} [-Wsign-compare]