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

I can't build project in local machine #586

Open
aromeaya opened this issue Feb 19, 2021 · 3 comments
Open

I can't build project in local machine #586

aromeaya opened this issue Feb 19, 2021 · 3 comments

Comments

@aromeaya
Copy link

Hi!! We are trying to build the project in local machine.

We have installed this:

  • Java >= 8
  • Maven >= 3.0.0
  • Go (for cli and updater)
  • Make (for super-project, Liblouis, …)
  • Ruby (for super-project and website)
  • gem install nokogiri:1.5.6 commaparty:0.0.2 (for super-project and website)
  • gem install jekyll:3.3.0 rdf:1.1.15 rdf-xsd:1.1.4 rdf-aggregate-repo:1.1.0 sparql-client:1.1.6 sparql:1.1.8 rdf-turtle:1.1.7 rdf-rdfa:1.1.6 mustache:1.0.2 github-markup:1.4.0 coderay:1.1.0 (for website)

And launch "make dist" over https://github.com/daisy/pipeline.

But we have this error:

$ make dist
.make/main.mk:50: .make/target/maven.mk: No such file or directory
/usr/bin/sh: -c: línea 0: error sintáctico cerca del elemento inesperado `('
/usr/bin/sh: -c: línea 0: `C:/Program Files (x86)/GnuWin32/bin/make -C website target/maven/pom.xml'
make: *** [website/target/maven/pom.xml] Error 1

Can you help me? Thanks!!!

@bertfrees
Copy link
Member

Oh, I would be very surprised if the "super-build" script (the Makefile in the root folder to compile the complete Pipeline source) would just work on Windows.

I did play with the idea of including a make executable for Windows (and stumbled upon Make for Windows from the GnuWin32 project), but have not explored it further yet.

The build script has some other Unix-specific dependencies apart from (GNU) make at the moment, such as for instance bash. So a proper solution will also need to include Windows versions of those tools (or replace them with other tools).

We also spent some time a while back trying to make it work with Cygwin but abandoned that idea because I think it was really too cumbersome.

In all honesty: it is not very likely that we will make the super-build script cross-platform anytime soon, without external help, or without a good reason to do so. Of course I'm happy to help you if you want to continue with it. I think the GnuWin32 approach could work. However first ask yourself the question whether it is worth the effort: For most contributions, it is enough to be able to recompile only a very small part of Pipeline. The source code is heavily modularized and often you can make changes to a single module, and run the unit tests of that module. And it is not that hard to then substitute that one module in the full Pipeline "assembly" with your new version.

I'll also update the developer documentation because I notice it is slightly outdated.

@mmartida
Copy link

You said that it would be surprising the make running on windows, then it must be any procedure to compile and build for windows even over Linux or MacOS.
The "make dist" command will generate all available packages for all major OS?

Thanks.

@bertfrees
Copy link
Member

Yes, that is correct.

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

3 participants