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

Windows cross build documentation #2736

Conversation

RikyPlaza
Copy link
Contributor

Updated documentation for cross compilation of nut project with windows target.

The steps have been tested on Ubuntu 22.04 virtual machine (VirtualBox) but the binaries have not been tested yet.

Signed-off-by: RikyPlaza <158032745+RikyPlaza@users.noreply.github.com>
Signed-off-by: RikyPlaza <158032745+RikyPlaza@users.noreply.github.com>
Signed-off-by: RikyPlaza <158032745+RikyPlaza@users.noreply.github.com>
…lation

Signed-off-by: RikyPlaza <158032745+RikyPlaza@users.noreply.github.com>
Signed-off-by: RikyPlaza <158032745+RikyPlaza@users.noreply.github.com>
Signed-off-by: RikyPlaza <158032745+RikyPlaza@users.noreply.github.com>
Signed-off-by: RikyPlaza <158032745+RikyPlaza@users.noreply.github.com>
Signed-off-by: RikyPlaza <158032745+RikyPlaza@users.noreply.github.com>
Signed-off-by: RikyPlaza <158032745+RikyPlaza@users.noreply.github.com>
… command has been put into the script

Signed-off-by: RikyPlaza <158032745+RikyPlaza@users.noreply.github.com>
Signed-off-by: RikyPlaza <158032745+RikyPlaza@users.noreply.github.com>
Signed-off-by: RikyPlaza <158032745+RikyPlaza@users.noreply.github.com>
@AppVeyorBot
Copy link

Signed-off-by: RikyPlaza <158032745+RikyPlaza@users.noreply.github.com>
@jimklimov
Copy link
Member

Thanks, although I think a few typos for spellchecker to catch remain, some lines are too long, and I'm not sure I agree with libneon change.

@jimklimov jimklimov added packaging documentation Windows CI Entries related to continuous integration infrastructure (historically also recipes like Makefiles) portability We want NUT to build and run everywhere possible impacts-release-2.8.2 Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks) labels Jan 3, 2025
@jimklimov jimklimov added this to the 2.8.3 milestone Jan 3, 2025
@jimklimov
Copy link
Member

Actually, upon review most of the suggested fixes look questionable. For example:

  • Repetitive PKG_CONFIG_PATH is not needed if you re-use the same terminal where you have already set the variables according to big note in the beginning.
  • Explicit installation of pkgconf is also not needed if you followed docs/config-prereqs.txt and installed the needed toolkits.
  • Not sure which changes VirtualBox Guest Additions would bring that prerequisites don't already deliver. In context of font library I suppose something from X11 about graphics core?.. Notably, as you build something for another architecture, the headers, libraries and tools made for the build host itself are not all directly impactful.
  • Likewise, PATH=${PREFIX}/bin:... would include the location of Windows *.exe programs that your build host is not necessarily able to execute.
  • Explicit libtoolize etc. are not needed as you call the autogen.sh just afterwards, which involves them.
  • The CLI options added for ci_build.sh are not supported by the script.

Maybe something else...

Still, this PR did highlight some parts that could be more understandable - so thanks! I'll cherry-pick some of the changes into a new PR and add some clarifications, but would rather close this one.

@RikyPlaza
Copy link
Contributor Author

@jimklimov Hi!
Regarding the re-definitions of the environment variables you're totally right, i inserted them since i was not fully dedicated to this topic and i had to work in spots... In any case i don't think it's dangerous to have them
Regarding the PATH=${PREFIX}/bin:... yes, but the libtool binaries are installed in that location and would not be reachable if not exported...
the explicit libtoolize has been inserted since the autogen.sh script is was not working on my system, maybe something related to the fact that i'm using a virtual machine

using the commands reported in the docs to cross build the software caused every time some errors, this is the only way i got it working.

Great for the cherry picks! Hope that at least something in this PR can be usefuk :)

Tomorrow i'll be back in the office, hope to have chanche to test the software on windows as soon as possible.

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Entries related to continuous integration infrastructure (historically also recipes like Makefiles) documentation impacts-release-2.8.2 Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks) packaging portability We want NUT to build and run everywhere possible Windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants