OpenFL C++ Error: Could not guess MINGW_ROOT - haxe

I am new to OpenFL and were trying to get it to work for the first time. I have installed haxe, lime and openfl via command prompt, and installed Visual Studio Express 2010 using lime setup windows. But when I try to compile a brand new OpenFL project in Flash Develop targeting c++, I get the error "Error: Could not guess MINGW_ROOT (tried [c:/MinGW]) - please set explicitly".
Anyone had this problem before? or is there anything I have to configurate?
Thanks.

Hi your system is not yet setup for windows, check this link:
http://www.openfl.org/documentation/advanced-setup/platforms/setup-windows/
Basically you need to install Visual C++ and other stuff, luckily openfl have this automated. Just open the command prompt where openfl is and type:
openfl setup windows
Hope this helps!

For anyone that wants to know, it seems to work by installing mingw and setting the environment path. My mingw comes from Qt installation.
from console you can do something like
setx MINGW_ROOT "C:\Qt\5.6\mingw49_32\bin"
or
setx MINGW_ROOT "C:\Qt\5.6\mingw49_32\bin" /M

Related

Missing mfc140u.dll when trying to run windows application using Wine in Ubuntu

I want to run a c++ application written in vs2017 in Ubuntu 16.04. I've installed Wine version 3.0.3 as well as Winetricks version 20140817. When trying to run the application using 'wine app_name.exe' command, i get an error saying
002e:err:module:import_dll Library mfc140u.dll (which is needed by L"path_to_my_application_library") not found
I tried to install mfc140u via Winetrichs GUI using 'Install a Windows DLL or component' option but it seems not to be listed anywhere on the list of the available packages. Does anyone know how to make it available?
Make sure you are using the most up-to-date version of Wine (currently Wine 4). You can check by running:
wine --version
If you need to upgrade Wine, check out the instructions here.
That dll is a part of Visual C++ redistributable. You'll need to install it so the application will work. Instructions are here.
I don't use Wine, so there could be additional steps, but in the interest of helping:
I believe you need the appropriate version of the VC++ redistributable (Visual Studio C++ runtime). You need to install the version that the application you try to run was compiled with. Just start with the latest one and install and then install older versions if need be. MSDN Forums.
Download
vc_redist.x64.exe
from
https://www.microsoft.com/en-us/download/details.aspx?id=48145
from console run
wine uninstaller
uninstall any existing runtime version, then select "install" and browse for the vc_redist.x64.exe file, accept. Execute your Windows appplication

cargo-clone and cargo-edit don’t build on my Windows 10 PC

I installed Visual Studio C++ and Rust. Most things work fine, but building cargo-edit and cargo-clone fail. The error code hints at cmake missing but it's one of the items built ok. Windows 10 specific issue.
Thanks to help from the IRC #rust-beginners channel I found out that I needed to install cmake from cmake.org. Make sure you have it add itself to the path and restart your command prompt.
Cmake download

Haxe 3.4.0 installer used 'haxelib version' still reflects 3.3.0

I wanted to use Visual Studio Code for HaxeFlixel development and the Haxe extension noted that I needed Haxe 3.4.0. I went ahead and downloaded the new installer from the website and installed it on my laptop running Windows 10. However after installing it turned out that calling 'haxelib version' in the command prompt it still returned 3.3.0.
I tried rebooting. Uninstalling then rebooting and installing again. I could find nothing in the system environmental variables that could cause it. Tried updating the Haxe on my Desktop, and had the same issue. Which is running windows 8.1 on it.
Does someone know what might be the cause? Thank you for your time in advance.
To check the Haxe version, use haxe -version. haxelib is a separate application and can have a version number that's different from the compiler's version.
Haxelib 3.3.0 appears to be the version shipped with Haxe 3.4.0-rc.1.

OpenFL basic install on Windows doesn't work?

I went to http://www.openfl.org/archive/download/ and followed the steps for a really basic first test:
haxelib install lime
haxelib run lime setup
lime install openfl
lime create openfl:DisplayingABitmap
When I try to run it with:
cd DisplayingABitmap
lime test neko
I get:
Export/windows/neko/haxe/ApplicationMain.hx:1: characters 7-20 : Class not found : openfl.Assets
I haven't done anything before with Haxe or OpenFL so this is a fresh install. Anybody can guess what's going on? It doesn't seem to be seeing the contents of the openfl library, though it can perfectly generate the project.
(update: I tried the exact same on a Mac and it worked perfectly, so I think the problem has something to do with Windows)
Try to follow the steps at http://www.openfl.org/documentation/setup/install-haxe/ and reinstall the latest openfl, the contents under "archive" folder are mostly outdated.

c++ compiler issues - MinGW and visual studio c

several issues with both compilers.
Firstly, I've manually installed MinGW c++ compiler - the automated install was failing to download anything - exactly according to the instructions on the MinGW website, including adding C:\MinGW\bin to PATH system-wide, and restarted afterwars. However, g++ only launches if I cd to C:\MinGW\bin first. Secondly, when I do that, I get an error 'no include path in which to search for iostream', and when I look in c:\MinGW\bin\include (where all the header files seem to be', iostream.h is not there.
Finally, I tried downloading visual studio c++ from MS's website, which gives me the installer package vc_web.exe - but when I run this, it fails to download anything. My internet connection is otherwise fine so I can't think of any reason for this.
Any help would be much appreciated, thanks
-confused
As for Visual C++ Express, you can try the offline installer (which doesn't need an internet connection) http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express-iso
And regarding g++, it'll be easier for you to download an IDE that includes g++ and that sets everything up for you, I recommend CodeLite but there's also Code::Blocks

Resources