|
source
The Arora source code is in a git repository and the main repository is currently hosted on github.com CheckoutTo checkout a copy of the source execute the following command git clone git://github.com/Arora/arora.git BrowseTo browse the source code go to: http://github.com/Arora/arora Information about GitMore information about git include tutorials and GUI tools can be found at http://git.or.cz/ BuildingFor beginner instructions, read BeginnerStepByStepInstructions. Arora requires Qt version 4.4 or newer. Get Qt from http://www.trolltech.com/ : Official Install Instructions and Download Page. On Linux check with your distribution for packages. Simple steps to build Arora: git clone git://github.com/Arora/arora.git cd arora qmake "CONFIG-=debug" -r make Type nmake instead of make if using Visual C++ to compile. To compile in debug simply remove the "CONFIG-=debug" from the qmake line. On OS X when using the binary Qt package use 'qmake -spec macx-g++' to generate the Makefile rather then the XCode project. If you get a compile error that goes something like: webview.cpp:(.text+0x300c): undefined reference to `QWebPage::createStandardContextMenu()' Try cleaning up the old object files with the following command make clean;qmake; Getting FlashTo have flash in Arora you need to use a newer version of webkit then the one that comes with Qt 4.4. You can either use qt-snapshot or you can use any version of Qt and QtWebKit Trunk. Building with QtWebKit TrunkIf you want to use Arora with QtWebKit trunk you need to get a copy WebKit trunk as well at Qt 4.4. Setting the environment variables QT_WEBKIT and WEBKITDIR and rebuilding Arora will cause it to use QtWebKit trunk. See the file 'webkittrunk.pri' in Arora's source for more details and customizations you might need to do to point it to the location of your QtWebKit checkout. Simple steps to build QtWebKit trunk: $ svn checkout http://svn.webkit.org/repository/webkit/trunk WebKit $ cd WebKit $ ./WebKitTools/Scripts/build-webkit --qt --release If qmake is not the qt4 binary (such as on debian where qmake points to the Qt3's qmake and qmake-qt4 points to the Qt4's qmake). To specify the version of qmake to use (such as on Debian) append the following to the build-webkit script --qmake=qmake-qt4 To compile in debug use --debug rather then --release WebKit will be built in the subdirectory WebKitBuild/Release/ And the build Arora with it: $ cd /path/to/arora/source $ export QT_WEBKIT=webkit_trunk # WEBKITDIR should be set to the parent directory of WebKitBuild $ export WEBKITDIR=$HOME/dev/webkit $ qmake "CONFIG-=debug" -r $ make clean $ make QtWebKit should pick up the plugins that are installed in your system. It will look in the normal locations and if it works in firefox it should also work in arora. If plugins don't work you can double check that arora is using webkit trunk run running ldd on arora to make sure it is using the correct webkit library. More details about the exact directories can be found in WebCore/plugins/PluginDatabase.cpp or for a quick cheatsheet: http://pastebin.com/f47afa819 |
also you might need these packages on ubuntu libqt4-dev flex gperf
How can we build webkit in parallel (like make -j3) ?
To build in parallel change return "make" in the function qtMakeCommand WebKitTools?/Scripts/webkitdirs.pm to return "make -j<number>" It's around 750 at the moment
i'm using kubuntu intrepid with kde 4.2 when i try to build webkit, i obtain these error messages:
../../../WebCore?/dom/XMLTokenizerQt.cpp:157: error: ‘NamedAttrMap?’ was not declared in this scope ../../../WebCore?/dom/XMLTokenizerQt.cpp:157: error: ‘attrs’ was not declared in this scope
https://launchpad.net/~gnumdk/+archive/ppa
Here jaunty current git packages.
Hello, I have 1.5.4.3 git version and QT 4.6.4 on my PowerMac? Motorola ppc7400 processor 10.4 OS and I try to compile with :
git clone git://github.com/Arora/arora.git cd arora qmake -spec macx-g++ make
qmake was running fine very quicly and does his job and then make was compiling fine at the beginning then I have many warnings like :
power-mac-g4-de-gilles-charabot:~/arora root# /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning fat file: /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libSystem.dylib does not contain an architecture that matches the specified -arch flag: i386 (file ignored)
then something like ( I have cut not to be too long ): /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning suggest use of -bind_at_load, as lazy binding may result in errors or different symbols being used /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols: keymgr_dwarf2_register_sections cthread_init_routine errno exit mach_init_routine keymgr_get_and_lock_processwide_ptr keymgr_get_and_lock_processwide_ptr_2 keymgr_set_and_unlock_processwide_ptr calloc dlopen dlsym free malloc operator delete(void) operator new(unsigned long) gxx_personality_v0 cxa_begin_catch cxa_end_catch cxa_rethrow typeinfo for std::bad_alloc floor vtable for cxxabiv1::si_class_type_info cxa_pure_virtual cxa_call_unexpected vtable for cxxabiv1::class_type_info getgid getuid vtable for cxxabiv1::vmi_class_type_info CFArrayCreate referenced from QtCore? expected to be defined in /System/Library/Frameworks/CoreFoundation?.framework/Versions/A/CoreFoundation? CFArrayGetCount referenced from QtCore? expected to be defined in /System/Library/Frameworks/CoreFoundation?.framework/Versions/A/CoreFoundation? CFArrayGetTypeID referenced from QtCore? expected to be defined in /System/Library/Frameworks/CoreFoundation?.framework/Versions/A/CoreFoundation? CFArrayGetValueAtIndex referenced from QtCore? expected to be defined in /System/Library/Frameworks/CoreFoundation?.framework/Versions/A/CoreFoundation? CFBooleanGetTypeID referenced from QtCore? expected to be defined in /System/Library/Frameworks/CoreFoundation?.framework/Versions/A/CoreFoundation? CFBooleanGetValue referenced from QtCore? expected to be defined in /System/Library/Frameworks/CoreFoundation?.framework/Versions/A/CoreFoundation? CFBundleCopyBundleURL referenced from QtCore? expected to be defined in /System/Library/Frameworks/CoreFoundation?.framework/Versions/A/CoreFoundation? CFBundleCopyExecutableURL referenced from QtCore? expected to be defined in /System/Library/Frameworks/CoreFoundation?.framework/Versions/A/CoreFoundation? CFBundleCopyInfoDictionaryForURL referenced from QtCore? expected to be defined in /System/Library/Frameworks/CoreFoundation?.framework/Versions/A/CoreFoundation? CFBundleCopyResourceURL referenced from QtCore? expected to be defined in /System/Library/Frameworks/CoreFoundation?.framework/Versions/A/CoreFoundation? CFBundleCreate referenced from QtCore? expected to be defined in /System/Library/Frameworks/CoreFoundation?.framework/Versions/A/CoreFoundation? CFBundleGetBundleWithIdentifier referenced from QtCore? expected to be defined in /System/Library/Frameworks/CoreFoundation?.framework/Versions/A/CoreFoundation?
then at the end:
symbol typeinfo name for QSharedDataused from dynamic library /Library/Frameworks/QtNetwork?.framework/QtNetwork?(single module) not from earlier dynamic library QtXmlPatterns?.framework/Versions/4/QtXmlPatterns?(single module) collect2: ld returned 1 exit status make1?: [../Arora.app/Contents/MacOS/Arora] Error 1 make: [sub-src-make_default-ordered] Error 2 power-mac-g4-de-gilles-charabot:~/arora root#
I have saved Makefile to Makefile-i386 and I change manually Makefile with vim to substitute ppc against X86 and i386. Then I use make clean and make with the new Makefile.
It was compiling nearly fine, just warning like :
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning suggest use of -bind_at_load, as lazy binding may result in errors or different symbols being used symbol typeinfo for QFactoryInterfaceused from dynamic library /Library/Frameworks/QtCore?.framework/QtCore?(single module) not from earlier dynamic library QtScript?.framework/Versions/4/QtScript?(single module) symbol typeinfo for QFactoryInterfaceused from dynamic library /Library/Frameworks/QtCore?.framework/QtCore?(single module) not from earlier dynamic library QtGui?.framework/Versions/4/QtGui?(single module)
and so on … …
Aora.app is now working fine on my PowerPC Mac !