Fixed on GIT 32 bit builds not working on Windows in Release mode with MinGW

JaviCervera

Member
3rd Party Module Dev
Joined
Jul 12, 2017
Messages
80
Thanks, Mike, that fixed it! Now I have another problem, which is that now dlls are not copied to the output folder, while they were being correctly copied when using MinGW, so the program crashes on startup.
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
2,855
Mmh, it does so for me. It copies now OpenAL.dll all the time into the Release32, Release64, Debug32 or Debug64 folder.
Did you got the latest version and rebuild Trans from GH?
 

JaviCervera

Member
3rd Party Module Dev
Joined
Jul 12, 2017
Messages
80
I just replaced the old targets/glfw3/template/msvc folder in my Cerberus installation with the one in the zip you provided, and deleted the build folder of the project before building again. Is it required to rebuild transcc from GH then?
 

JaviCervera

Member
3rd Party Module Dev
Joined
Jul 12, 2017
Messages
80
Trying to run the ps1 script from PowerShell causes it to open on Notepad for some reason. It is probably something related to permissions, but I don't have time to dig deeper into it. My main OS is Linux, and Cerberus is working flawlessly there. I can wait until the next release to have MSVC working :)

BTW, I configured Cerberus to use an old version of MinGW that was in my old Monkey installation, and 32 bit executables built with it worked perfectly fine. The version is MinGW-W64-builds-4.2.0, which was built with the following args:

--mode=gcc-5.3.0 --buildroot=/c/mingw530 --rt-version=v4 --rev=0 --bootstrap --jobs=2 --threads=posix --exceptions=dwarf --arch=i686 --bin-compress

I'll try to use that setup on a newer Mingw-W64 version, since I usually configure it with Win32 threads and SJLJ exceptions, so chaging that might make it work.
 

Amon

Member
Joined
Nov 19, 2018
Messages
51
I'm trying to build the latest Cerberus from GitHub but getting the following error:

Directory: G:\Work\CerberusMSVC\src


Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 25/03/2021 13:14 build-ted-Desktop-Release
qmake : The term 'qmake' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At G:\Work\CerberusMSVC\src\rebuildall.ps1:179 char:5
+ qmake ../ted/ted.pro
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (qmake:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException


Microsoft (R) Program Maintenance Utility Version 14.16.27045.0
Copyright (C) Microsoft Corporation. All rights reserved.

NMAKE : fatal error U1052: file 'Makefile.Release' not found
Stop.
windeployqt : The term 'windeployqt' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At G:\Work\CerberusMSVC\src\rebuildall.ps1:193 char:5
+ windeployqt $deplpoy --no-svg --no-angle --no-compiler-runtime -- ...
+ ~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (windeployqt:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
2,855
I guess you don't have qt5.9.2 installed.

Edit: Yup, works fine. Even with MSVC 2019 being used to build Ted.
 
Last edited:

Amon

Member
Joined
Nov 19, 2018
Messages
51
I have QT 5.9.2 installed. It still fails with the same errors. What else do I need installed to use with the build command?
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
2,855
MSVC 2017 or 2019 for building Ted, then QT5.9.2 and MingW to build Trans, MakeDocs, CServer

1616783454772.png


If I understand that error message correctly it indicates that it can not find QMake, which is a tool that ships with QT5.9.2
 
Top Bottom