Page 1 of 1

How to build Basilisk?

Posted: 2018-03-02, 07:01
by dr_st
I'm trying to build Basilisk on Windows from the Github source, but seem to be missing the instructions on how to start. I haven't any experience building Mozilla-based apps before. The README mentions some things, but they all talk about general Mozilla things; is the process for Moebius/Basilisk exactly the same?

I tried following the instructions here:
https://developer.mozilla.org/en-US/doc ... requisites

But ./mach build fails claiming it cannot find the C compilers, so I must have missed some step. I installed VS 2017. Should I have gone with VS 2015 instead?

I apologize if I missed something obvious.

Re: How to build Basilisk?

Posted: 2018-03-02, 17:04
by Fedor2
viewtopic.php?f=19&t=13556
I can say that, building instructions is valid and for the Basilisk, but except one.
On windows VS2015 is mandatory.

By the way it is possible to build windows version on linux, i did that, i would better do business with linux, than with overbloated junk pile of VS2015.

Re: How to build Basilisk?

Posted: 2018-03-02, 17:41
by GMforker
Building Basilisk/UXP: viewtopic.php?f=61&t=17535

Re: How to build Basilisk?

Posted: 2018-03-07, 08:49
by dr_st
Thank you, guys. Between the two links I found enough information to help me build. It seems that the original Mozilla package I got was missing the start-shell-msvc2015.bat for whatever reason and that was causing my issues.

A couple things I still haven't figured out, though they are less important at this point:
  • Even with the ac_add_options --enable-official-branding and export MOZILLA_OFFICIAL=1, the build system still uses the 'unofficial' branding directory. Maybe I need another switch somewhere?
  • The mach installer target, which supposedly generates a self-extracting installer stops one place short. It generates all the ingredients but I still have to manually run copy /B 7zSD.sfx+app.tag+app.7z installer.exe. Is this expected?

Re: How to build Basilisk?

Posted: 2018-03-07, 10:43
by Moonchild
Fedor2 wrote:i would better do business with linux, than with overbloated junk pile of VS2015.
I suggest you don't diss Microsoft's compiler which is a lot more efficient at generating Windows code without massive optimization errors than gcc will ever be.
dr_st wrote:Even with the ac_add_options --enable-official-branding and export MOZILLA_OFFICIAL=1, the build system still uses the 'unofficial' branding directory. Maybe I need another switch somewhere?
Please make sure the mozconfig you generate is actually being used. Make sure it's named properly and in the correct location. alternatively export MOZCONFIG= with the path to the mozconfig file.
dr_st wrote:The mach installer target, which supposedly generates a self-extracting installer stops one place short. It generates all the ingredients but I still have to manually run copy /B 7zSD.sfx+app.tag+app.7z installer.exe. Is this expected?
No that is not expected.

Re: How to build Basilisk?

Posted: 2018-03-11, 06:58
by dr_st
Moonchild wrote:Please make sure the mozconfig you generate is actually being used. Make sure it's named properly and in the correct location. alternatively export MOZCONFIG= with the path to the mozconfig file.
Thanks, this fixed it. It just needed to be named .mozconfig, whereas step 7 here suggested copying it as "mozconfig.txt". A typo?
Moonchild wrote:No that is not expected.
Strange. Using the correct mozconfig still did not resolve it. Is it possible I am missing another flag somewhere?

Re: How to build Basilisk?

Posted: 2018-03-11, 15:10
by Fedor2
There is nothing to do with the mozconfig, if you build without it when default values are set does it properly make installer? As i see you poked installer files for vista, do you? you may done wrong.
I have poked good installer already, would help and share.