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

Build is broken on Windows #15

Open
disacrol opened this issue Jul 26, 2022 · 4 comments
Open

Build is broken on Windows #15

disacrol opened this issue Jul 26, 2022 · 4 comments

Comments

@disacrol
Copy link
Contributor

Build is broken in Windows due to PR #12.

This is because build folder and sub-folders creation gradle tasks were set back again as type "Exec", which requires a commandLine to be explicitly defined. Otherwise it will fail:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':slsqp4j:prepareC'.
> execCommand == null!

mkdir method should be able to automatically create directories recursively in any platform. See gradle docs regarding mkdir.

@pkernevez are you sure mkdir was failing to create the build folder and its subfolders in MacOsx? Because in Unix (I tried in CentOS / RedHat) mkdir worked its way just fine in creating the whole folder structure).

@disacrol
Copy link
Contributor Author

@pkernevez I could easily create a PR to make sure prepareC remains an Exec task specifying the commandLine if os is windows. But I'd rather make sure mkdir really fails in MacOS. Because the build script would be much cleaner that way.

@SergyD
Copy link

SergyD commented Feb 3, 2023

@disacrol Is there a way to solve this Issue? I tried to build it on Windows and I get the same exception.

@SergyD
Copy link

SergyD commented Feb 3, 2023

I did manage to get it going by using the old build.gradle file. However, gradle clean build fails because the maven plugin is obsolete, so I had to use ./gradlew clean build instead. Even after that, it gives me this failure:
Assembler messages:
Fatal error: can't create C:*\slsqp4j\slsqp4j\build\c\slsqp.o: No such file or directory

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':slsqp4j:compileC'.

Process 'command 'gcc'' finished with non-zero exit value 1

Any idea of what it can be?

@Serrof
Copy link

Serrof commented Jun 14, 2023

Does this broken build explain why the maven central jar does not work on windows?

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

3 participants