Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error Win10-Qt5.9/MinGW53_32: SSMprotocol.cpp - 'CUtype' is not a class #69

Open
missingsnowman opened this issue Oct 27, 2023 · 3 comments

Comments

@missingsnowman
Copy link

<NOTE: Compiled fine on Ubuntu...>

c:\tools\FreeSSM>mingw32-make debug
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'c:/tools/FreeSSM'
g++ -c -fno-keep-inline-dllexport -pipe -fno-gcse -std=c++11 -g -std=gnu++11 -Wextra -Wall -W -fexceptions -mthreads -DUNICODE -D__FSSM_DEBUG__ -D__SERIALCOM_DEBUG__ -D__J2534_API_DEBUG__ -DQT_DISABLE_DEPRECATED_BEFORE=0x040000 -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I. -Isrc -Isrc/tinyxml -Isrc/windows -I../../Qt/5.9/mingw53_32/include -I../../Qt/5.9/mingw53_32/include/QtPrintSupport -I../../Qt/5.9/mingw53_32/include/QtWidgets -I../../Qt/5.9/mingw53_32/include/QtGui -I../../Qt/5.9/mingw53_32/include/QtANGLE -I../../Qt/5.9/mingw53_32/include/QtCore -Idebug -I. -I../../Qt/5.9/mingw53_32/mkspecs/win32-g++ -o debug/SSMprotocol.o src/SSMprotocol.cpp
src/SSMprotocol.cpp: In constructor 'SSMprotocol::SSMprotocol(AbstractDiagInterface*, QString)':
src/SSMprotocol.cpp:29:8: error: 'CUtype' is not a class, namespace, or enumeration
_CU = CUtype::Engine;
^
Makefile.Debug:17726: recipe for target 'debug/SSMprotocol.o' failed
mingw32-make[1]: *** [debug/SSMprotocol.o] Error 1
mingw32-make[1]: Leaving directory 'c:/tools/FreeSSM'
Makefile:51: recipe for target 'debug' failed
mingw32-make: *** [debug] Error 2

@missingsnowman
Copy link
Author

Qt version 5.15.2 works, albeit GUI is compressed in size and missing detail. Again, this was fine on Ubuntu so I have no idea as to the what or why. Other pre-compiled versions of FreeSSM from the forums have the same issue on my Win10-pro x64 install.

C:/Qt/5.15.2/mingw81_32/bin/qmake.exe -install qinstall C:/Qt/5.15.2/mingw81_32/bin/libstdc++-6.dll C:/FreeSSM/libstdc++-6.dll
mingw32-make[1]: Leaving directory 'c:/tools/FreeSSM'
image

@Comer352L
Copy link
Owner

Thanks for the information.
Unfortunately I don't think there's anything I can do.

The fact that compilation works with the newer version implies that there was a bug.
I would guess that it depends on the used MinGW version.
Is the MinGW version you are using with Qt 5.15 a newer one ?
Is it shipped with Qt ord did you have to download it manually ?

The GUI layout issue looks ver weird.
During all the years I've been using Qt I didn't face any problems in this area.

Qt 5 has become old and some things may have changed in recent Windows versions.
Did you try with Qt 6 ?

@vladr
Copy link

vladr commented Mar 19, 2024

Most likely due to e61ec87 + the old(er) version of g++ included in the Qt 5.5 toolchain (g++ 5.3, cca 2015).

(The use of Qt 5.5 probably comes from the DIY Subaru instructions.)

Was able to compile just fine with Qt 6.6.2 64-bit and the associated toolchain (g++ 11.2).

(UI with Qt 6.6.2 also looks OK on the latest Windows 11 on a high resolution display, i.e. not seeing the issue reported above with Qt 5.15.2.)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants