Ogólne pytania dotyczące systemu
foreste
Beginner
Posty: 116 Rejestracja: 29 marca 2008, 01:51
Post
autor: foreste » 03 sierpnia 2009, 19:44
Witam.
Dzisiaj chciałem zrobić pakiet deb z czystym Firefoksem do mojego Debiana.
¦ciągnąłem źródła Firefoksa i po wydaniu polecenia:
Kod: Zaznacz cały
./configure lub ./configure --enable-application=APP
ten błąd:
Kod: Zaznacz cały
hecking whether we need to cast a derived template to pass as its base class... no
checking whether the compiler can resolve const ambiguities for templates... yes
checking whether the C++ "using" keyword can change access... yes
checking whether the C++ "using" keyword resolves ambiguity... yes
checking for "std::" namespace... yes
checking whether standard template operator!=() is ambiguous... unambiguous
checking for C++ reinterpret_cast... yes
checking for C++ dynamic_cast to void*... yes
checking whether C++ requires implementation of unused virtual methods... yes
checking for trouble comparing to zero near std: :o perator!=()... no
checking for LC_MESSAGES... yes
configure: error: --enable-application value not recognized (APP/build.mk does not exist).
Jak wygenerować lub gdzie znaleźć ten ,,build mk''?
michnik
Beginner
Posty: 162 Rejestracja: 20 lipca 2009, 12:54
Lokalizacja: Kraków
Post
autor: michnik » 03 sierpnia 2009, 21:31
foreste
Beginner
Posty: 116 Rejestracja: 29 marca 2008, 01:51
Post
autor: foreste » 04 sierpnia 2009, 12:42
T o jest gotowa skompilowana wersja, a ja kompiluję ze źródeł by stworzyć pakiet deb z:
a po wykorzystaniu domyślnego:
po wydaniu:
mam takie błędy:
Kod: Zaznacz cały
jsopcode.tbl:447: error: ‘]: *** [jstracer.o] Błąd 1
make[4]: Opuszczenie katalogu `/home/bartek/Pobieranie/firefox-3.5.1-source/mozilla-1.9.1/js/src'
make[3]: *** [libs_tier_js] Błąd 2
make[3]: Opuszczenie katalogu `/home/bartek/Pobieranie/firefox-3.5.1-source/mozilla-1.9.1'
make[2]: *** [tier_js] Błąd 2
make[2]: Opuszczenie katalogu `/home/bartek/Pobieranie/firefox-3.5.1-source/mozilla-1.9.1'
make[1]: *** [default] Błąd 2
make[1]: Opuszczenie katalogu `/home/bartek/Pobieranie/firefox-3.5.1-source/mozilla-1.9.1'
make: *** [build] Błąd 2
Co brakuje systemowi, tzn. dev?
giaur
Member
Posty: 1915 Rejestracja: 25 maja 2007, 22:16
Post
autor: giaur » 04 sierpnia 2009, 14:04
./configure lub ./configure --enable-application=APP
O jak ,,to lubię''. Nie komentuję tego, może roztargnienie. Przeczytaj dokładnie
i dowiedz się co to jest to "APP"
Analogiczny przykład. Jak w dokumentacji znajdziesz taki wpis:
"paramter=TwojeIP" to podasz tekst "TwojeIP" w parametrze czy ip twojego komputera?
Ludzie... myślenie nie boli ;-)
foreste
Beginner
Posty: 116 Rejestracja: 29 marca 2008, 01:51
Post
autor: foreste » 04 sierpnia 2009, 14:09
według tego robię
Building Firefox
Building Firefox requires at least 1 GB of disk space, 500 MB of RAM, and lots of available swap space.
# Get the source
hg clone
http://hg.mozilla.org/mozilla-central/
cd mozilla-central
# Setup a basic mozconfig file
echo '. $topsrcdir/browser/config/mozconfig' > mozconfig # let's build Firefox...
echo 'mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir-ff-release' >> mozconfig # ...in this directory...
echo 'mk_add_options MOZ_MAKE_FLAGS="-j4"' >> mozconfig # ...quickly.
# Build
make -f client.mk
* For a debug build, you need different configuration options in your mozconfig file. This requires more disk space, about 2.5 GB.
. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/objdir-ff-debug
ac_add_options --enable-debug
ac_add_options --disable-optimize
ArnVaker
Post
autor: ArnVaker » 04 sierpnia 2009, 15:01
You should use a .mozconfig file to obtain a reasonable release build.
Though it is possible to manually call configure with command-line options, this is not recommended.
The --enable-application=application flag is used to select an application to build. Add the following options to your mozconfig file:
Kod: Zaznacz cały
ac_add_options --enable-application=browser
>>oficjalne źródło<<
>>kompilacja Firefoxa według BLFS<<
foreste
Beginner
Posty: 116 Rejestracja: 29 marca 2008, 01:51
Post
autor: foreste » 04 sierpnia 2009, 17:41
R obię według tego linku co jest w poprzednim poście ale wywala mi takie błędy:
Kod: Zaznacz cały
short-wchar -pthread -pipe -DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions -D_REENTRANT -I/usr/local/include/libpng12 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/pixman-1 -I/usr/include/gtk-unix-print-2.0 -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/nsGNOMEShellService.pp /home/bartek/Desktop/firefox-3.5.2-source/mozilla-1.9.1/browser/components/shell/src/nsGNOMEShellService.cpp
/home/bartek/Desktop/firefox-3.5.2-source/mozilla-1.9.1/browser/components/shell/src/nsGNOMEShellService.cpp: In member function ‘virtual nsresult nsGNOMEShellService::OpenApplicationWithURI(nsILocalFile*, const nsACString&)’:
/home/bartek/Desktop/firefox-3.5.2-source/mozilla-1.9.1/browser/components/shell/src/nsGNOMEShellService.cpp:578: error: no matching function for call to ‘nsDerivedSafe<nsIProcess>::Run(int, const char**, int)’
/usr/lib/xulrunner-devel-1.9/include/nsIProcess.h:50: note: candidates are: virtual nsresult nsIProcess::Run(PRBool, const char**, PRUint32, PRUint32*)
make[7]: *** [nsGNOMEShellService.o] Błąd 1
make[7]: Opuszczenie katalogu `/home/bartek/Desktop/firefox-3.5.2-source/firefox-build/browser/components/shell/src'
make[6]: *** [libs] Błąd 2
make[6]: Opuszczenie katalogu `/home/bartek/Desktop/firefox-3.5.2-source/firefox-build/browser/components/shell'
make[5]: *** [libs] Błąd 2
make[5]: Opuszczenie katalogu `/home/bartek/Desktop/firefox-3.5.2-source/firefox-build/browser/components'
make[4]: *** [libs] Błąd 2
make[4]: Opuszczenie katalogu `/home/bartek/Desktop/firefox-3.5.2-source/firefox-build/browser'
make[3]: *** [libs_tier_app] Błąd 2
make[3]: Opuszczenie katalogu `/home/bartek/Desktop/firefox-3.5.2-source/firefox-build'
make[2]: *** [tier_app] Błąd 2
make[2]: Opuszczenie katalogu `/home/bartek/Desktop/firefox-3.5.2-source/firefox-build'
make[1]: *** [default] Błąd 2
make[1]: Opuszczenie katalogu `/home/bartek/Desktop/firefox-3.5.2-source/firefox-build'
make: *** [build] Błąd 2
Google mówi mało mi o tym.
giaur
Member
Posty: 1915 Rejestracja: 25 maja 2007, 22:16
Post
autor: giaur » 04 sierpnia 2009, 18:02
Ludzie... nie dobijajcie mnie...
Kod: Zaznacz cały
/.configure --prefix=/usr/local/bin/firefox --enable-application=browser --enable-update-channel=release --enable-update-packaging --enable-optimize --disable-debug --disable-tests --enable-official-branding
make
make install
Tyle jezeli chodzi o kompilacje firefoxa pod warunkiem ze sa wszystkie wymagane pakiety w wersjach .dev.
[ Dodano : 2009-08-04, 18:18 ]
foreste a tak w ogole to po co kompilujesz sam skoro masz system 32-bitowy? ¦ciągnij wersję skompilowaną z serwera mozilli
tmy123
Beginner
Posty: 144 Rejestracja: 18 kwietnia 2008, 19:43
Post
autor: tmy123 » 04 sierpnia 2009, 19:09
Do 64-bitowej wersji też są paczki do debiana. Nazwa kodowa Shiretoko.
Edit: Pomyłka, nie paczki a skompilowana wersja.
foreste
Beginner
Posty: 116 Rejestracja: 29 marca 2008, 01:51
Post
autor: foreste » 04 sierpnia 2009, 20:35
Z auważyłem, że mam za stare pakiety, będę do Sida chyba aktualizację robił. Ciekawe czy mój internet da radę?