miikasyvanen / FastECU

FastECU tuning/logging/flashing software for OEM ECUs
GNU General Public License v3.0
27 stars 6 forks source link

Build instructions #73

Open ajl236 opened 1 year ago

ajl236 commented 1 year ago

Thanks for sharing this excellent project! I would love to build this on my Windows 11 PC could you please advise on which Qt & Ming versions to use or other relevant config ?

miikasyvanen commented 1 year ago

Hi!

If you are only building it for testing on your pc, it should work with latest Qt/MinGW versions. Just make sure Qt contains QtSerial, QtCharts and QtXml modules and that MinGW is 32-bit version so that OpenPort drivers works. On newer versions of Qt these should be included but I have used Qt 5.12.8 for compatibility reasons when developing software so it works also on older OS version.

miikasyvanen commented 1 year ago

Also post what errors you get when building so I can see what the possible problem might be.

For the reference, in Win7 I use: QtCreator 4.11.2 Qt 5.12.8 MinGW 7.3.0 32bit

But basicly it should compile any combination at least higher versions than those.

ajl236 commented 1 year ago

Thanks for this, I reinstalled Qt 6.4.2 open source with Ming 64 & 32 bit. I can now build the code in QT Creator 10 Community edition. The next step for me is to figure out the message that pops up when starting the project

image

miikasyvanen commented 1 year ago

It cannot read app config files, check that you have config folder with 4 config files in same folder where the app is started.

miikasyvanen commented 1 year ago

E.g. if you are using shadow build for it, you need to copy at least apps config folder in root of the shadow build folder.

ajl236 commented 1 year ago

Thanks again I copied the config folder to the build folder which worked. Now I have an error shown (also copied op20pt32.dll to the source code and build folder) like this;

image

miikasyvanen commented 1 year ago

Did you copy op dll from FastECU folder and compile software in 32-bit mode?

Newest version of op dll has some problems with some ECUs and therefore I bundled older version of dll with software (in precompiled windows zip). Also it doesn't want to work when software is compiled as 64-bit.

ajl236 commented 1 year ago

It seems FastECU can find the op20pt32.dll file if it is in the project debug folder or if it is not there from the Windows System folder. The screenshots here shows ProcessMonitor watching FastECU in debug mode and also the Qt screen. I think but am not sure that Qt is debugging in 32-bit mode as 32-bit mingw is being used.

image

image

miikasyvanen commented 1 year ago

Can you build and run it in non-debug mode and switching build configuration to release?

ajl236 commented 1 year ago

It runs OK in build release mode without debug

ajl236 commented 1 year ago

I am stuck understanding why the code only runs in Qt when not debugging but debugging shows the error.

image

miikasyvanen commented 1 year ago

I need to find out cause for that. It shows some different error without op2 too, and earlier it runs in debug mode also.

matthewtoye commented 10 months ago

Good day,

I am having the same issues as well. When in debug mode, the op20 dll fails to load, but works fine in release. I tried recreating your build environment using the same versions for everything and it still does it. Possibly something with us being on windows and you being on a Linux distro?

jimihimi commented 7 months ago

image Adding this to the debugger settings will ignore the SIGILL and allow it to run in debug mode on windows