Skip to content

How to get gcc compiler options? #806

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

Open
sgaumer opened this issue May 19, 2025 · 1 comment
Open

How to get gcc compiler options? #806

sgaumer opened this issue May 19, 2025 · 1 comment
Labels

Comments

@sgaumer
Copy link

sgaumer commented May 19, 2025

I have MinGW installed in C:\mingw64. I'm not running from within a MSYS2 prompt. Setting the platform compiler to gcc from the command line changes the name of the compiler in the compile command, but all the compiler options remain in Microsoft cl.exe syntax. How can I change the compile command to work with gcc?

mvn clean install -Dorg.bytedeco.javacpp.platform.compiler=gcc
[INFO] gcc /IF:\work\folder\hpp\hpp-module\include "/IC:\Program Files\Java\jdk-1.8\include" "/IC:\Program Files\Java\jdk-1.8\include\win32" F:\work\folder\native\target\classes\com\package\ntv\jniWrapper.cpp F:\work\folder\native\target\classes\jnijavacpp.cpp /Oi /O2 /EHsc /Gy /GL /MD /LD /W3 /link /OUT:jniWrapper.dll /LIBPATH:F:\work\folder\hpp\release\windows-x86_64 "/LIBPATH:C:\Program Files (x86)\Intel\oneAPI\ipp\2021.11\lib" "/LIBPATH:C:\Program Files (x86)\Intel\oneAPI\ippcp\2021.11\lib" "/LIBPATH:C:\Program Files (x86)\Intel\oneAPI\mkl\2024.1\lib" "/LIBPATH:C:\Program Files (x86)\Intel\oneAPI\compiler\2024.1\lib" "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\lib\x64" "/LIBPATH:C:\Program Files\opencv\x64\vc17\lib" module.lib psapi.lib
@saudet
Copy link
Member

saudet commented May 20, 2025

Something like mvn clean install -Djavacpp.properties=windows-x86_64-mingw should work for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants