SimulIDE / SimulIDE

SimulIDE is a simple real-time electronic circuit simulator
GNU General Public License v3.0
188 stars 33 forks source link

building on Raspberry Pi #14

Open Foadsf opened 3 years ago

Foadsf commented 3 years ago

Considering that a great portion of tinkers use Raspberry Pi, building the software on this platform would help our user base. Besides it is very easy for me to mess up on my RPs than my computer. So the steps I took after cloning the repository and going to the build_XX folder:

Project MESSAGE: Warning: unknown QT: serialport

Info: creating stash file /path/to/SimulIDE/build_XX/.qmake.stash Project ERROR: Unknown module(s) in QT: svg script multimedia

../src/simavr/sim/read_elf.c:27:10: fatal error: libelf.h: No such file or directory
 #include <libelf.h>
          ^~~~~~~~~~
compilation terminated.
make: *** [Makefile:7040: read_elf.o] Error 1
guerinoni commented 3 years ago

Is libelf-dev present?

Foadsf commented 3 years ago

@guerinoni I deliberately did not install any of the dependencies. I need error messages to be indexed by the search engines.

Foadsf commented 3 years ago

lrelease ../resources/translations/*.ts; lrelease: could not exec '/usr/lib/qt5/bin/lrelease': No such file or directory make: *** [Makefile:1669: runLrelease] Error 1

Foadsf commented 3 years ago

I had to force reinstall qttools5-dev-tools by

sudo apt-get --reinstall install qttools5-dev-tools

but now I get the error

/usr/bin/ld: avrasmdebugger.o: file not recognized: file truncated collect2: error: ld returned 1 exit status make: *** [Makefile:1449: simulide] Error 1

Foadsf commented 3 years ago

you need to delete the avrasmdebugger.o file manually and run make again.

Foadsf commented 3 years ago

now the compile finishes successfully, but when running ./simulide I get the message

libEGL warning: DRI2: failed to authenticate qt5ct: using qt5ct plugin Simulation Stopped

but the GUI tuns anyway.

Foadsf commented 3 years ago

I was able to solve the problem by running sudo raspi-config then sellecting Advanced Options > GL Driver > GL (Fake KMS). But now I get the error:

QObject::startTimer: Timers cannot have negative intervals

Mihaylov93 commented 3 years ago

Thats an issue to be fixed, it also appears on the MinGW win build

Mihaylov93 commented 3 years ago

@Foadsf

QObject::startTimer: Timers cannot have negative intervals

That issue is gone in SR5