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

ADL breaks cross-compiling for Windows on Linux #26

Closed
veox opened this issue Jan 21, 2014 · 11 comments
Closed

ADL breaks cross-compiling for Windows on Linux #26

veox opened this issue Jan 21, 2014 · 11 comments
Milestone

Comments

@veox
Copy link
Contributor

veox commented Jan 21, 2014

wolf0:

Veox, you gotta remove the check for ADL headers so I can properly cross-compile from Linux. Configure whines about not being able to check for them.

@veox
Copy link
Contributor Author

veox commented Jan 21, 2014

I'd like not to break ADL detection for everybody else.

cgminer had a change to windows-build.txt a month ago. Might be relevant.

@veox
Copy link
Contributor Author

veox commented Jan 21, 2014

Also, Drogean's been able to compile it, and submitted some changes to sgminer's docs: https://github.com/veox/sgminer/pull/13

@OhGodAPet
Copy link
Contributor

Can you just disable the check for headers only if cross-compiling?

@veox
Copy link
Contributor Author

veox commented Jan 21, 2014

Does specifying --disable-adl to configure help? Or do you want the
headers to be there, but no checks to be performed?

I can go ahead and just add --disable-adl-checks or some similar hack,
but that's what the checks are for, perhaps it is better that you post
the error log?

BTW, careful with what you distribute. The AMD ADL EULA allows
including object and header files only in object-code form.

@OhGodAPet
Copy link
Contributor

The issue is, I want to cross compile it with ADL support. It wouldn't make sense to disable ADL. Try cross-compiling, and configure will tell you that it can't check for the headers when cross compiling and abort. And I'm building binaries, so I don't have to worry.

veox referenced this issue Jan 22, 2014
Requested in https://github.com/veox/sgminer/issues/26

configure.ac needs an overhaul (see SDMINER_SDK).
@veox
Copy link
Contributor Author

veox commented Jan 22, 2014

@wolf9466 Please do post the error messages on how it fails before trying the https://github.com/veox/sgminer/tree/windows-cross-compile branch. There's some old stuff in configure.ac that needs fixing, and I don't want to play around with setting up cross-compiling just yet.

@OhGodAPet
Copy link
Contributor

You don't need to play around with setting up anything. Here's the error:

checking for ./ADL_SDK/adl_sdk.h... configure: error: cannot check for file existence when cross compiling

@veox
Copy link
Contributor Author

veox commented Jan 23, 2014

Did specifying --disable-adl-checks when running configure using branch windows-cross-compile above solve the issue?

@OhGodAPet
Copy link
Contributor

Nope.

@veox
Copy link
Contributor Author

veox commented Jan 23, 2014

Reordered the checks, try again.

@OhGodAPet
Copy link
Contributor

Works now.

@veox veox closed this as completed in e081a66 Jan 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants