Extracting and Building UXP

General project discussion.
Use this as a last resort if your topic does not fit in any of the other boards but it still on-topic.
Forum rules
This General Discussion board is meant for topics that are still relevant to Pale Moon, web browsers, browser tech, UXP applications, and related, but don't have a more fitting board available.

Please stick to the relevance of this forum here, which focuses on everything around the Pale Moon project and its user community. "Random" subjects don't belong here, and should be posted in the Off-Topic board.
User avatar
OnlyZool
Newbie
Newbie
Posts: 3
Joined: 2023-06-25, 15:26

Extracting and Building UXP

Unread post by OnlyZool » 2023-06-25, 15:39

I have downloaded UXP source code; an older version of it, as well as the latest version available. But when I try to extract it, I get an error that the archive file is invalid. I have tried both .zip, and .tar.gz archives, and I have tried to extract them on both my PopOS PC, and my Windows PC. Any guidance would be appreciated.
In addition to that, can somebody give me, or point me towards, any documentation regarding compiling/building of UXP?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35650
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Extracting and Building UXP

Unread post by Moonchild » 2023-06-25, 15:41

"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
OnlyZool
Newbie
Newbie
Posts: 3
Joined: 2023-06-25, 15:26

Re: Extracting and Building UXP

Unread post by OnlyZool » 2023-07-05, 13:44

Hello,
I am trying to compile UXP on my Ubuntu based Pop_OS.
When I run ./mach configure, I am getting the following error:

Code: Select all

 0:02.55 Creating config.status
 0:02.61 Deriving optimal formula...
 0:02.72 Traceback (most recent call last):
 0:02.72   File "/home/asim/Downloads/uxp-src/configure.py", line 107, in <module>
 0:02.73     sys.exit(main(sys.argv))
 0:02.73   File "/home/asim/Downloads/uxp-src/configure.py", line 31, in main
 0:02.73     return config_status(config)
 0:02.73   File "/home/asim/Downloads/uxp-src/configure.py", line 102, in config_status
 0:02.73     return config_status(args=[], **encode(sanitized_config, encoding))
 0:02.73   File "/home/asim/Downloads/uxp-src/python/mozbuild/mozbuild/config_status.py", line 135, in config_status
 0:02.73     definitions = list(definitions)
 0:02.73   File "/home/asim/Downloads/uxp-src/python/mozbuild/mozbuild/frontend/emitter.py", line 185, in emit
 0:02.73     objs = list(self._emit_libs_derived(contexts))
 0:02.73   File "/home/asim/Downloads/uxp-src/python/mozbuild/mozbuild/frontend/emitter.py", line 219, in _emit_libs_derived
 0:02.73     self._link_libraries(context, obj, variable)
 0:02.73   File "/home/asim/Downloads/uxp-src/python/mozbuild/mozbuild/frontend/emitter.py", line 332, in _link_libraries
 0:02.73     context)
 0:02.73 mozbuild.frontend.reader.SandboxValidationError:
 0:02.73 ==============================
 0:02.73 ERROR PROCESSING MOZBUILD FILE
 0:02.73 ==============================
 0:02.73 
 0:02.73 The error occurred while processing the following file or one of the files it includes:
 0:02.73 
 0:02.73     /home/asim/Downloads/uxp-src/js/src/moz.build
 0:02.73 
 0:02.73 The error occurred when validating the result of the execution. The reported error is:
 0:02.73 
 0:02.73     USE_LIBS contains "icu", which does not match any LIBRARY_NAME in the tree.
 0:02.73 
 0:02.73 
 0:02.74 *** Fix above errors and then restart with\
 0:02.74                "/usr/bin/gmake -f client.mk build"
 0:02.74 gmake: *** [client.mk:377: configure] Error 1
Any help would be appreciated.

User avatar
jobbautista9
Keeps coming back
Keeps coming back
Posts: 786
Joined: 2020-11-03, 06:47
Location: Philippines

Re: Extracting and Building UXP

Unread post by jobbautista9 » 2023-07-06, 00:56

What's your mozconfig? Have you made sure you are building from inside the application directory (like palemoon-source) and not from the platform?
Image

merry mimas

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

Mima avatar by 絵虎. Pixiv post: https://www.pixiv.net/en/artworks/15431817

Image

User avatar
OnlyZool
Newbie
Newbie
Posts: 3
Joined: 2023-06-25, 15:26

Re: Extracting and Building UXP

Unread post by OnlyZool » 2023-07-06, 03:45

The uxp-src is the base directory where all the UXP source is. I am running my command from this directory. If you wish, I can post the content of the mozconfig file. It is the one that comes with "git clone" the UXP repository.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35650
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Extracting and Building UXP

Unread post by Moonchild » 2023-07-06, 09:46

You need an application with its necessary configuration to drive the build system. You cannot build UXP stand-alone.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite