kees / scantool Goto Github PK
View Code? Open in Web Editor NEWLinux port of ScanTool.Net GPL ODB-II tool
Linux port of ScanTool.Net GPL ODB-II tool
I might have change the baudrate on the GUI at one point and now when I launch by typing
scantool
I get
Tue Nov 30 04:51:13 2021
Version: 2.1 for POSIX
Initializing All Modules...
---------------------------
Initializing Allegro... OK
Installing Timers... OK
Installing Keyboard... OK
Installing Mouse... OK
Loading Preferences... OK
Trying Windowed Graphics Mode... OK
Loading Data File... OK
Initializing Serial Module... OK
Opening COM4... OK
Displaying Main Menu...
-----------------------
write tty: Erreur d'entrée/sortie
*** buffer overflow detected ***: terminated
Shutting down Allegro due to signal #6
Abandon (core dumped)
arno@arno-ThinkPad-X220:~$
I can see the GUI window appear for an instant then disappear, so I can't reverse the setting.
I tried to look for a config file were the values for baud rate and COM port would be written/stored, to no avail
I'd appreciate if you could point towards something.
Xubuntu 21.04
scantool installed from distro repo
Environment: deb arm64 mobile, phosh 0.17.0-1pureos1, scantool 2.1.
Terminal Output:
`Downloads$ scantool
Wed Apr 20 11:39:44 2022
Version: 2.1 for POSIX
Initializing Allegro... OK
Installing Timers... OK
Installing Keyboard... OK
Installing Mouse... OK
Loading Preferences... OK
Trying Windowed Graphics Mode... OK
Loading Data File... OK
XIO: fatal IO error 0 (Success) on X server ":0"
after 77 requests (77 known processed) with 0 events remaining.
`
(gdb) run
Starting program: /usr/bin/scantool --debug
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
Wed Apr 20 12:01:43 2022
Version: 2.1 for POSIX
#12 helped and file removal launched UI, but crashed during UI navigation with:
~/Downloads$ scantoolWed Apr 20 12:08:05 2022
Version: 2.1 for POSIX
Initializing Allegro... OK
Installing Timers... OK
Installing Keyboard... OK
Installing Mouse... OK
Loading Preferences... OK
Trying Windowed Graphics Mode... OK
Loading Data File... OK
Initializing Serial Module... OK
Opening COM0... Error!
XIO: fatal IO error 0 (Success) on X server ":0"
after 10213 requests (10213 known processed) with 0 events remaining.
Steps to repeat
It fails to build unless I pass CPPFLAGS="-fcommon" (gcc>=10 defaults to -fno-common):
==> Starting build()...
gcc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Werror -DTERMIOS -c main.c
gcc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Werror -DTERMIOS -c main_menu.c
gcc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Werror -DTERMIOS -c serial.c
gcc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Werror -DTERMIOS -c options.c
gcc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Werror -DTERMIOS -c sensors.c
gcc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Werror -DTERMIOS -c trouble_code_reader.c
gcc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Werror -DTERMIOS -c custom_gui.c
gcc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Werror -DTERMIOS -c error_handlers.c
gcc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Werror -DTERMIOS -c about.c
gcc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Werror -DTERMIOS -c reset.c
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Werror -DTERMIOS -o scantool main.o main_menu.o serial.o options.o sensors.o trouble_code_reader.o custom_gui.o error_handlers.o about.o reset.o -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L/usr/lib -lalleg -lm
/usr/bin/ld: main_menu.o:(.bss+0x58): multiple definition of `is_not_genuine_scan_tool'; main.o:(.bss+0x168): first defined here
/usr/bin/ld: main_menu.o:(.bss+0x0): multiple definition of `comport'; main.o:(.bss+0x0): first defined here
/usr/bin/ld: main_menu.o:(.bss+0x18): multiple definition of `datafile'; main.o:(.bss+0x120): first defined here
/usr/bin/ld: main_menu.o:(.bss+0xc): multiple definition of `serial_timer_running'; main.o:(.bss+0xc): first defined here
/usr/bin/ld: main_menu.o:(.bss+0x10): multiple definition of `serial_time_out'; main.o:(.bss+0x10): first defined here
/usr/bin/ld: main_menu.o:(.bss+0x20): multiple definition of `log_file_name'; main.o:(.bss+0x130): first defined here
/usr/bin/ld: main_menu.o:(.bss+0x38): multiple definition of `code_defs_file_name'; main.o:(.bss+0x148): first defined here
/usr/bin/ld: main_menu.o:(.bss+0x40): multiple definition of `data_file_name'; main.o:(.bss+0x150): first defined here
/usr/bin/ld: main_menu.o:(.bss+0x48): multiple definition of `options_file_name'; main.o:(.bss+0x158): first defined here
/usr/bin/ld: main_menu.o:(.bss+0x50): multiple definition of `display_mode'; main.o:(.bss+0x160): first defined here
/usr/bin/ld: main_menu.o:(.bss+0x54): multiple definition of `system_of_measurements'; main.o:(.bss+0x164): first defined here
/usr/bin/ld: serial.o:(.bss+0x10): multiple definition of `serial_time_out'; main.o:(.bss+0x10): first defined here
/usr/bin/ld: serial.o:(.bss+0xc): multiple definition of `serial_timer_running'; main.o:(.bss+0xc): first defined here
/usr/bin/ld: serial.o:(.bss+0x0): multiple definition of `comport'; main.o:(.bss+0x0): first defined here
/usr/bin/ld: serial.o:(.bss+0x18): multiple definition of `datafile'; main.o:(.bss+0x120): first defined here
/usr/bin/ld: serial.o:(.bss+0x20): multiple definition of `log_file_name'; main.o:(.bss+0x130): first defined here
/usr/bin/ld: serial.o:(.bss+0x38): multiple definition of `code_defs_file_name'; main.o:(.bss+0x148): first defined here
/usr/bin/ld: serial.o:(.bss+0x40): multiple definition of `data_file_name'; main.o:(.bss+0x150): first defined here
/usr/bin/ld: serial.o:(.bss+0x48): multiple definition of `options_file_name'; main.o:(.bss+0x158): first defined here
/usr/bin/ld: serial.o:(.bss+0x50): multiple definition of `display_mode'; main.o:(.bss+0x160): first defined here
/usr/bin/ld: serial.o:(.bss+0x54): multiple definition of `system_of_measurements'; main.o:(.bss+0x164): first defined here
/usr/bin/ld: serial.o:(.bss+0x58): multiple definition of `is_not_genuine_scan_tool'; main.o:(.bss+0x168): first defined here
/usr/bin/ld: options.o:(.bss+0x154): multiple definition of `system_of_measurements'; main.o:(.bss+0x164): first defined here
/usr/bin/ld: options.o:(.bss+0x150): multiple definition of `display_mode'; main.o:(.bss+0x160): first defined here
/usr/bin/ld: options.o:(.bss+0x100): multiple definition of `comport'; main.o:(.bss+0x0): first defined here
/usr/bin/ld: options.o:(.bss+0x148): multiple definition of `options_file_name'; main.o:(.bss+0x158): first defined here
/usr/bin/ld: options.o:(.bss+0x118): multiple definition of `datafile'; main.o:(.bss+0x120): first defined here
/usr/bin/ld: options.o:(.bss+0x0): multiple definition of `temp_error_buf'; main.o:(.bss+0x20): first defined here
/usr/bin/ld: options.o:(.bss+0x10c): multiple definition of `serial_timer_running'; main.o:(.bss+0xc): first defined here
/usr/bin/ld: options.o:(.bss+0x110): multiple definition of `serial_time_out'; main.o:(.bss+0x10): first defined here
/usr/bin/ld: options.o:(.bss+0x120): multiple definition of `log_file_name'; main.o:(.bss+0x130): first defined here
/usr/bin/ld: options.o:(.bss+0x138): multiple definition of `code_defs_file_name'; main.o:(.bss+0x148): first defined here
/usr/bin/ld: options.o:(.bss+0x140): multiple definition of `data_file_name'; main.o:(.bss+0x150): first defined here
/usr/bin/ld: options.o:(.bss+0x158): multiple definition of `is_not_genuine_scan_tool'; main.o:(.bss+0x168): first defined here
/usr/bin/ld: sensors.o:(.bss+0x154): multiple definition of `system_of_measurements'; main.o:(.bss+0x164): first defined here
/usr/bin/ld: sensors.o:(.bss+0x0): multiple definition of `temp_error_buf'; main.o:(.bss+0x20): first defined here
/usr/bin/ld: sensors.o:(.bss+0x100): multiple definition of `comport'; main.o:(.bss+0x0): first defined here
/usr/bin/ld: sensors.o:(.bss+0x158): multiple definition of `is_not_genuine_scan_tool'; main.o:(.bss+0x168): first defined here
/usr/bin/ld: sensors.o:(.bss+0x110): multiple definition of `serial_time_out'; main.o:(.bss+0x10): first defined here
/usr/bin/ld: sensors.o:(.bss+0x10c): multiple definition of `serial_timer_running'; main.o:(.bss+0xc): first defined here
/usr/bin/ld: sensors.o:(.bss+0x118): multiple definition of `datafile'; main.o:(.bss+0x120): first defined here
/usr/bin/ld: sensors.o:(.bss+0x120): multiple definition of `log_file_name'; main.o:(.bss+0x130): first defined here
/usr/bin/ld: sensors.o:(.bss+0x138): multiple definition of `code_defs_file_name'; main.o:(.bss+0x148): first defined here
/usr/bin/ld: sensors.o:(.bss+0x140): multiple definition of `data_file_name'; main.o:(.bss+0x150): first defined here
/usr/bin/ld: sensors.o:(.bss+0x148): multiple definition of `options_file_name'; main.o:(.bss+0x158): first defined here
/usr/bin/ld: sensors.o:(.bss+0x150): multiple definition of `display_mode'; main.o:(.bss+0x160): first defined here
/usr/bin/ld: trouble_code_reader.o:(.bss+0x118): multiple definition of `datafile'; main.o:(.bss+0x120): first defined here
/usr/bin/ld: trouble_code_reader.o:(.bss+0x138): multiple definition of `code_defs_file_name'; main.o:(.bss+0x148): first defined here
/usr/bin/ld: trouble_code_reader.o:(.bss+0x100): multiple definition of `comport'; main.o:(.bss+0x0): first defined here
/usr/bin/ld: trouble_code_reader.o:(.bss+0x0): multiple definition of `temp_error_buf'; main.o:(.bss+0x20): first defined here
/usr/bin/ld: trouble_code_reader.o:(.bss+0x110): multiple definition of `serial_time_out'; main.o:(.bss+0x10): first defined here
/usr/bin/ld: trouble_code_reader.o:(.bss+0x10c): multiple definition of `serial_timer_running'; main.o:(.bss+0xc): first defined here
/usr/bin/ld: trouble_code_reader.o:(.bss+0x120): multiple definition of `log_file_name'; main.o:(.bss+0x130): first defined here
/usr/bin/ld: trouble_code_reader.o:(.bss+0x140): multiple definition of `data_file_name'; main.o:(.bss+0x150): first defined here
/usr/bin/ld: trouble_code_reader.o:(.bss+0x148): multiple definition of `options_file_name'; main.o:(.bss+0x158): first defined here
/usr/bin/ld: trouble_code_reader.o:(.bss+0x150): multiple definition of `display_mode'; main.o:(.bss+0x160): first defined here
/usr/bin/ld: trouble_code_reader.o:(.bss+0x154): multiple definition of `system_of_measurements'; main.o:(.bss+0x164): first defined here
/usr/bin/ld: trouble_code_reader.o:(.bss+0x158): multiple definition of `is_not_genuine_scan_tool'; main.o:(.bss+0x168): first defined here
/usr/bin/ld: custom_gui.o:(.bss+0x0): multiple definition of `datafile'; main.o:(.bss+0x120): first defined here
/usr/bin/ld: custom_gui.o:(.bss+0x10): multiple definition of `log_file_name'; main.o:(.bss+0x130): first defined here
/usr/bin/ld: custom_gui.o:(.bss+0x28): multiple definition of `code_defs_file_name'; main.o:(.bss+0x148): first defined here
/usr/bin/ld: custom_gui.o:(.bss+0x30): multiple definition of `data_file_name'; main.o:(.bss+0x150): first defined here
/usr/bin/ld: custom_gui.o:(.bss+0x38): multiple definition of `options_file_name'; main.o:(.bss+0x158): first defined here
/usr/bin/ld: custom_gui.o:(.bss+0x40): multiple definition of `display_mode'; main.o:(.bss+0x160): first defined here
/usr/bin/ld: custom_gui.o:(.bss+0x44): multiple definition of `system_of_measurements'; main.o:(.bss+0x164): first defined here
/usr/bin/ld: custom_gui.o:(.bss+0x48): multiple definition of `is_not_genuine_scan_tool'; main.o:(.bss+0x168): first defined here
/usr/bin/ld: error_handlers.o:(.bss+0x100): multiple definition of `datafile'; main.o:(.bss+0x120): first defined here
/usr/bin/ld: error_handlers.o:(.bss+0x0): multiple definition of `temp_error_buf'; main.o:(.bss+0x20): first defined here
/usr/bin/ld: error_handlers.o:(.bss+0x110): multiple definition of `log_file_name'; main.o:(.bss+0x130): first defined here
/usr/bin/ld: error_handlers.o:(.bss+0x128): multiple definition of `code_defs_file_name'; main.o:(.bss+0x148): first defined here
/usr/bin/ld: error_handlers.o:(.bss+0x130): multiple definition of `data_file_name'; main.o:(.bss+0x150): first defined here
/usr/bin/ld: error_handlers.o:(.bss+0x138): multiple definition of `options_file_name'; main.o:(.bss+0x158): first defined here
/usr/bin/ld: error_handlers.o:(.bss+0x140): multiple definition of `display_mode'; main.o:(.bss+0x160): first defined here
/usr/bin/ld: error_handlers.o:(.bss+0x144): multiple definition of `system_of_measurements'; main.o:(.bss+0x164): first defined here
/usr/bin/ld: error_handlers.o:(.bss+0x148): multiple definition of `is_not_genuine_scan_tool'; main.o:(.bss+0x168): first defined here
/usr/bin/ld: about.o:(.bss+0x18): multiple definition of `datafile'; main.o:(.bss+0x120): first defined here
/usr/bin/ld: about.o:(.bss+0x0): multiple definition of `comport'; main.o:(.bss+0x0): first defined here
/usr/bin/ld: about.o:(.bss+0x10): multiple definition of `serial_time_out'; main.o:(.bss+0x10): first defined here
/usr/bin/ld: about.o:(.bss+0xc): multiple definition of `serial_timer_running'; main.o:(.bss+0xc): first defined here
/usr/bin/ld: about.o:(.bss+0x20): multiple definition of `log_file_name'; main.o:(.bss+0x130): first defined here
/usr/bin/ld: about.o:(.bss+0x38): multiple definition of `code_defs_file_name'; main.o:(.bss+0x148): first defined here
/usr/bin/ld: about.o:(.bss+0x40): multiple definition of `data_file_name'; main.o:(.bss+0x150): first defined here
/usr/bin/ld: about.o:(.bss+0x48): multiple definition of `options_file_name'; main.o:(.bss+0x158): first defined here
/usr/bin/ld: about.o:(.bss+0x50): multiple definition of `display_mode'; main.o:(.bss+0x160): first defined here
/usr/bin/ld: about.o:(.bss+0x54): multiple definition of `system_of_measurements'; main.o:(.bss+0x164): first defined here
/usr/bin/ld: about.o:(.bss+0x58): multiple definition of `is_not_genuine_scan_tool'; main.o:(.bss+0x168): first defined here
/usr/bin/ld: reset.o:(.bss+0xc): multiple definition of `serial_timer_running'; main.o:(.bss+0xc): first defined here
/usr/bin/ld: reset.o:(.bss+0x10): multiple definition of `serial_time_out'; main.o:(.bss+0x10): first defined here
/usr/bin/ld: reset.o:(.bss+0x58): multiple definition of `is_not_genuine_scan_tool'; main.o:(.bss+0x168): first defined here
/usr/bin/ld: reset.o:(.bss+0x0): multiple definition of `comport'; main.o:(.bss+0x0): first defined here
/usr/bin/ld: reset.o:(.bss+0x18): multiple definition of `datafile'; main.o:(.bss+0x120): first defined here
/usr/bin/ld: reset.o:(.bss+0x20): multiple definition of `log_file_name'; main.o:(.bss+0x130): first defined here
/usr/bin/ld: reset.o:(.bss+0x38): multiple definition of `code_defs_file_name'; main.o:(.bss+0x148): first defined here
/usr/bin/ld: reset.o:(.bss+0x40): multiple definition of `data_file_name'; main.o:(.bss+0x150): first defined here
/usr/bin/ld: reset.o:(.bss+0x48): multiple definition of `options_file_name'; main.o:(.bss+0x158): first defined here
/usr/bin/ld: reset.o:(.bss+0x50): multiple definition of `display_mode'; main.o:(.bss+0x160): first defined here
/usr/bin/ld: reset.o:(.bss+0x54): multiple definition of `system_of_measurements'; main.o:(.bss+0x164): first defined here
collect2: error: ld returned 1 exit status
make: *** [makefile:56: scantool] Error 1
hi,
I noticed master added support for /dev/ttypUSB, this is neat and works out of the box, no need to symlink anymore
any plans for a new tag on the repo ?
I have a surface pro 4 running Ubuntu 22.04 at 2736x1824. Scaling doesn't work, even trying to force the scale in the cli it won't work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.