C++ Support on Windows

@josh any idea on how to get this done? if there isn’t any other way I will try writing the bat file

Is there a specific way to use make? cmake looks good but running make I get:
make: command not found

@dporobic: I suspect you need to ensure make is installed via some package and you will need to set the PATH to make in you YAML configuration file. I something similar for msbuild above.

Thanks for the info @josh . I’m curious to know if someone from the staff could update the list of languages here.

@andy5995 You can file a pull request using the “Edit this page on GitHub” link above the page.

1 Like

I forgot about that! Thank you @native-api I will do that right now.

mingw32-make seems to be installed and already in the path. There is also nmake but not in the path and needs to be added if required.

The error message is in https://github.com/travis-ci/travis-build/blob/2f71456c2cdd45dcbaffe03ec198ea4aa18fea33/lib/travis/build/appliances/check_unsupported.rb (found it via https://github.com/search?q=org%3Atravis-ci+"is+currently+unsupported"&type=Code ) and the list of supported languages is at https://github.com/travis-ci/travis-build/blob/fbb9de5ee0ba1b377d52cf00b8f679d5cce83f57/lib/travis/build/config.rb#L118 , so a pull request could fix that, too. The code also checks for an envvar, so you may be able to override the check by setting it if the build reads your global environment early enough.

FYI check out Linking against ncurses, no package from Chocolately yet for full directory structure and environment of a Windows builder to see what you can actually use.

I have the same issue here => https://travis-ci.com/waghanza/libui/jobs/167492314#L30

MSBuild file exist in above specified PATH, but this command could not be executed

Has someone succeeded to build C… project on travis / windows ?

Run MSBuild.exe instead of MSBuild. Git Bash’s MSYS doesn’t seem to always try to append .exe, unlike Cygwin.

Thank you for this debate. It has been very useful to me.

Regarding arguments to msbuild.exe, I managed to pass them by using double forward slash:
MSBuild.exe FreeCAD_Trunk.sln //m //nologo //verbosity:minimal //p:Configuration=Release //p:Platform=x64

As an alternative, I have just learned that you can also execute it through cmd.exe:

cmd.exe /C ‘MSBuild.exe FreeCAD_Trunk.sln /m:2 /nologo /verbosity:minimal /p:Configuration=Release /p:Platform=x64’

1 Like