[MinGW 4.9.2][Qt Creator 3.3.0]Cannot compile RCC++ - MSVC_VER undefined

244 views
Skip to first unread message

und3fi...@gmail.com

unread,
Mar 4, 2015, 2:05:50 PM3/4/15
to runtimecompi...@googlegroups.com
Hello,
I have a problem compiling RCC++ using Qt creator with MinGW.

I get 2 errors from the file Compiler_PlatformWindows.cpp  (and maybe some more; but they haven't come up yet), the first issue I have resolved.
(1)
Aurora\RuntimeCompiler\Compiler_PlatformWindows.cpp:190:2: error: jump to label 'ERROR_EXIT' [-fpermissive]

Aurora\RuntimeCompiler\Compiler_PlatformWindows.cpp:95:9: error: from here [-fpermissive]

Aurora\RuntimeCompiler\Compiler_PlatformWindows.cpp:166:12: error: crosses initialization of 'wchar_t* pCommandLine'

(2)

and _MSC_VER is undefined in const unsigned int MSCVERSION = _MSC_VER;

Aurora\RuntimeCompiler\Compiler_PlatformWindows.cpp:423:34: error: '_MSC_VER' was not declared in this scope

I easily fixed the first issue by moving

wchar_t* pCommandLine = L"cmd /q";
before the goto, (for the ones having this problem)

But how do I fix the _MSVC_VER problem?
Thank you for your help!


PS:
What I did:
First, I downloaded RCC++ from github and opened the CMakeFiles.txt from the folder "Aurora" from Qt creator. Then, I created the project, everything was fine, and finally I compiled the project.

Doug Binks

unread,
Mar 4, 2015, 2:21:13 PM3/4/15
to runtimecompi...@googlegroups.com
MinGW isn't a supported platform at this time - I believe you're the first to need it.

I could look into this, or you could and submit a pull request. It looks like the cmake or Qt is not setting UNIX as the system, so the cmake/ProjectFile.cmake adds the PlatformWindows.cpp and not PlatformPosix.cpp which is presumably what you need for MinGW.

--
You received this message because you are subscribed to the Google Groups "Runtime-Compiled C++" group.
To unsubscribe from this group and stop receiving emails from it, send an email to runtimecompiledcpl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Doug Binks

unread,
Mar 4, 2015, 3:19:51 PM3/4/15
to runtimecompi...@googlegroups.com

und3fined .

unread,
Mar 6, 2015, 11:06:37 AM3/6/15
to runtimecompi...@googlegroups.com
Ok. Thank you!
From what I did, it seems we should keep PlatformWindows.cpp. By replacing _MSVC_VER to 1500 for example, several errors pop up.
(1) __except - I don't think we can do much about it.

Aurora\RuntimeObjectSystem\RuntimeObjectSystem_PlatformWindows.cpp: In member function 'virtual bool RuntimeObjectSystem::TryProtectedFunction(RuntimeProtector*)':

Aurora\RuntimeObjectSystem\RuntimeObjectSystem_PlatformWindows.cpp:170:13: error: expected 'catch' before '__except'

__except( m_pImpl->SimpleExceptionFilter( GetExceptionInformation(), pProtectedObject_ ) )

{



(2) freetype link error. It should be easy to fix.

I have a question: is it possible to use the function "system" to compile the code with any compiler we want? From what I read, it seems to work on Windows/Mac/Linux.

Doug Binks

unread,
Mar 6, 2015, 11:19:59 AM3/6/15
to Runtime-Compiled C++
The problem here is that MinGW isn't a Windows Runtime Environment, nor does it have Visual Studio as a compiler - it's a minimalist POSIX runtime environment for Windows and the cmake files need to be altered so that the UNIX components are used. All the _PlatformWindows assume a full Windows system, and won't work on MinGW.

I've looked into this a little, and found that cmake has a MINGW variable which is set when on MinGW. The required work is thus to modify the cmake files where UNIX is found to add UNIX OR MINGW. This may still throw up some issues, but it's the first step needed.

I may get some time to look into this myself within a week or two, but for now you could always try to use one of the many free versions of Visual Studio for which the project works well.

und3fi...@gmail.com

unread,
Mar 6, 2015, 11:57:15 AM3/6/15
to runtimecompi...@googlegroups.com
Ok, no problem.
I will try it on Visual Studio.
Thank you again!

Sanyaade Adekoya

unread,
Apr 8, 2015, 11:41:47 PM4/8/15
to runtimecompi...@googlegroups.com

I have compiled Runtime-Compiled C++ in the past on Windows using CodeClocks (http://www.codeblocks.org/) which is a MingW based but not with QT though.
You can configure CMake to generate CodeBlocks makefiles for you or you can import Visual Studio project into CodeBlocks.

Installing QT on windows may need to setup the path environment values as well

Hope this help!

God blesses!!!

Best regards,
Sanyaade

God Sony

unread,
May 2, 2016, 9:42:17 AM5/2/16
to Runtime-Compiled C++
hi,@Sanyaade Adekoya,Have you try to clion with cmake to compile?
current  I try to build use clion with cmake to build but failt,

and the same error like above 

C:\Users\Administrator\Downloads\RuntimeCompiledCPlusPlus-master\RuntimeCompiledCPlusPlus-master\Aurora\RuntimeCompiler\Compiler_PlatformWindows.cpp: In member function 'void Compiler::RunCompile(const std::vector<FileSystemUtils::Path>&, const CompilerOptions&, std::vector<FileSystemUtils::Path>, const FileSystemUtils::Path&)':
C:\Users\Administrator\Downloads\RuntimeCompiledCPlusPlus-master\RuntimeCompiledCPlusPlus-master\Aurora\RuntimeCompiler\Compiler_PlatformWindows.cpp:404:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
 char* pCharTypeFlags = "";
                        ^
C:\Users\Administrator\Downloads\RuntimeCompiledCPlusPlus-master\RuntimeCompiledCPlusPlus-master\Aurora\RuntimeCompiler\Compiler_PlatformWindows.cpp: In function 'void GetPathsOfVisualStudioInstalls(std::vector<VSVersionInfo>*)':
C:\Users\Administrator\Downloads\RuntimeCompiledCPlusPlus-master\RuntimeCompiledCPlusPlus-master\Aurora\RuntimeCompiler\Compiler_PlatformWindows.cpp:434:34: error: '_MSC_VER' was not declared in this scope
  const unsigned int MSCVERSION = _MSC_VER;
                                  ^
C:\Users\Administrator\Downloads\RuntimeCompiledCPlusPlus-master\RuntimeCompiledCPlusPlus-master\Aurora\RuntimeCompiler\Compiler_PlatformWindows.cpp:469:18: error: 'KEY_WOW64_32KEY' was not declared in this scope

any help will be pleasure!

在 2015年4月9日星期四 UTC+8上午11:41:47,Sanyaade Adekoya写道:

Doug Binks

unread,
May 2, 2016, 10:15:19 AM5/2/16
to Runtime-Compiled C++

God Sony

unread,
May 2, 2016, 10:38:53 AM5/2/16
to Runtime-Compiled C++
oh,thanks ,I will try it later,BTW,will you add this link to rc++ wiki?

在 2016年5月2日星期一 UTC+8下午10:15:19,Doug Binks写道:

Doug Binks

unread,
May 2, 2016, 10:48:39 AM5/2/16
to Runtime-Compiled C++
I've already added the link to the readme, but sure I will also add to the wiki (it's also referenced in the MinGW support issue).

--

God Sony

unread,
May 2, 2016, 10:57:35 AM5/2/16
to Runtime-Compiled C++
hi,one more question:
when will support  mobile  platform? I want to use not only server site but and the clients site,

can I  embed  rc++ into ue4 ?or ue4 already had this  for mobile?

在 2016年5月2日星期一 UTC+8下午10:48:39,Doug Binks写道:
I've already added the link to the readme, but sure I will also add to the wiki (it's also referenced in the MinGW support issue).
On 2 May 2016 at 15:38, God Sony <sony...@gmail.com> wrote:
oh,thanks ,I will try it later,BTW,will you add this link to rc++ wiki?

在 2016年5月2日星期一 UTC+8下午10:15:19,Doug Binks写道:

--
You received this message because you are subscribed to the Google Groups "Runtime-Compiled C++" group.
To unsubscribe from this group and stop receiving emails from it, send an email to runtimecompiledcplusplus+unsub...@googlegroups.com.

Doug Binks

unread,
May 2, 2016, 11:02:45 AM5/2/16
to Runtime-Compiled C++
I don't intend to add mobile support in the near future - this is a large amount of work and I don't do any mobile development myself.

I've used RCC++ alongside UE4, though there are some issues due to the fact it has it's own build system.

To unsubscribe from this group and stop receiving emails from it, send an email to runtimecompiledcpl...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Runtime-Compiled C++" group.
To unsubscribe from this group and stop receiving emails from it, send an email to runtimecompiledcpl...@googlegroups.com.

God Sony

unread,
May 2, 2016, 11:10:32 AM5/2/16
to Runtime-Compiled C++
thanks of reply ,I see it mobile platform is not so easy 

and just the question about on mingw64 compile,

after git clone the mingw 64 brach,but not work

what I missing ?

here is the log 





在 2016年5月2日星期一 UTC+8下午11:02:45,Doug Binks写道:
I don't intend to add mobile support in the near future - this is a large amount of work and I don't do any mobile development myself.

I've used RCC++ alongside UE4, though there are some issues due to the fact it has it's own build system.
On 2 May 2016 at 15:57, God Sony <sony...@gmail.com> wrote:
hi,one more question:
when will support  mobile  platform? I want to use not only server site but and the clients site,

can I  embed  rc++ into ue4 ?or ue4 already had this  for mobile?

在 2016年5月2日星期一 UTC+8下午10:48:39,Doug Binks写道:
I've already added the link to the readme, but sure I will also add to the wiki (it's also referenced in the MinGW support issue).
On 2 May 2016 at 15:38, God Sony <sony...@gmail.com> wrote:
oh,thanks ,I will try it later,BTW,will you add this link to rc++ wiki?

在 2016年5月2日星期一 UTC+8下午10:15:19,Doug Binks写道:

--
You received this message because you are subscribed to the Google Groups "Runtime-Compiled C++" group.
To unsubscribe from this group and stop receiving emails from it, send an email to runtimecompiledcplusplus+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Runtime-Compiled C++" group.
To unsubscribe from this group and stop receiving emails from it, send an email to runtimecompiledcplusplus+unsub...@googlegroups.com.

Doug Binks

unread,
May 2, 2016, 11:14:11 AM5/2/16
to Runtime-Compiled C++
I have no idea, I don't maintain the MinGW port.

Given that Visual Studio compiler toolchain is free for small studios and individuals, I'd recommend using that rather than MinGW on the Windows platform.

On 2 May 2016 at 16:10, God Sony <sony...@gmail.com> wrote:
thanks of reply ,I see it mobile platform is not so easy 

and just the question about on mingw64 compile,

after git clone the mingw 64 brach,but not work

what I missing ?

here is the log 





在 2016年5月2日星期一 UTC+8下午11:02:45,Doug Binks写道:
I don't intend to add mobile support in the near future - this is a large amount of work and I don't do any mobile development myself.

I've used RCC++ alongside UE4, though there are some issues due to the fact it has it's own build system.
On 2 May 2016 at 15:57, God Sony <sony...@gmail.com> wrote:
hi,one more question:
when will support  mobile  platform? I want to use not only server site but and the clients site,

can I  embed  rc++ into ue4 ?or ue4 already had this  for mobile?

在 2016年5月2日星期一 UTC+8下午10:48:39,Doug Binks写道:
I've already added the link to the readme, but sure I will also add to the wiki (it's also referenced in the MinGW support issue).
On 2 May 2016 at 15:38, God Sony <sony...@gmail.com> wrote:
oh,thanks ,I will try it later,BTW,will you add this link to rc++ wiki?

在 2016年5月2日星期一 UTC+8下午10:15:19,Doug Binks写道:

--
You received this message because you are subscribed to the Google Groups "Runtime-Compiled C++" group.
To unsubscribe from this group and stop receiving emails from it, send an email to runtimecompiledcpl...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Runtime-Compiled C++" group.
To unsubscribe from this group and stop receiving emails from it, send an email to runtimecompiledcpl...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Runtime-Compiled C++" group.
To unsubscribe from this group and stop receiving emails from it, send an email to runtimecompiledcpl...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages