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

CC/CXX/MinGW_HOME environment variables not set by setup/run script #60

Open
HumbleDeer opened this issue Nov 29, 2024 · 0 comments
Open

Comments

@HumbleDeer
Copy link

HumbleDeer commented Nov 29, 2024

It seems that the setup or "run me" script fails to set the environment variables CC, CXX and MINGW_HOME to their respective locations in the MinGW64 folder that MSYS creates during the initial setup.

This results in errors such as:
image
Where it cannot find the GCC binary, G++ binary or other MinGW locations.
In this particular example, they were referring to a location on my C drive, the default install location of MinGW.

pm3 ~/proxmark3$ set
[...]
CC=C:/MinGW/bin/gcc.exe
CXX=C:/MinGW/bin/g++.exe
MINGW_HOME=C:/MinGW/
[...]

This would've worked if MinGW was installed there. Mine wasn't, which revealed this problem.

The solution would be to use the same relative paths or variable based paths as the makefile script does, where it assigns these variables relative to the ProxSpace "home" (msys folder)

In my case, this was done by setting them from the terminal:

export CC=/mingw64/bin/gcc.exe
export CXX=/mingw64/bin/g++.exe
export MINGW_HOME=/mingw64/

Although these are clearly absolute paths meant to be used in the environment set up by MSYS.

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

1 participant