|
BuildingHawkscope
Building Hawkscope from source
Building HawkscopeIf you're into bleeding edge things, building Hawkscope from source is for you! Why wait for releases when you can get all the new features before everyone else - just build the latest version and enjoy. :) PrequisitesTo build Hawkscope, you need: Bare minimum:
Optional:
Quick build steps for all the lazy ones
Adding SWT native library to local Maven repositoryHawkscope uses Eclipse SWT native libraries for each os / arch. Library dependency is automatically selected via Maven profiles in pom.xml. Current profiles are: win32, win64, linux32, linux64. To install SWT native library to local Maven repository, find out your system architecture (i.e. if you're on Windows XP, it is most probably 32 bit, so your architecture would be win32), then install the appropriate jar from Hawkscope project's /lib folder. Refer to lib/install.txt to find the mvn install:install-file line that is suitable for you. If you want to build Hawkscope and there is no profile for your operating system and CPU architecture, you can create new Maven profile in pom.xml, download your SWT implementation from http://www.eclipse.org/swt/ and install it. Please feel free to contribute new profiles. Packaging Hawkscope + dependencies into executable JARTo build an executable jar, simply run: mvn clean package The jar will be in target/ folder, named: hawkscope-(version)-(os)-(arch)-jar-with-dependencies.jar Creating Windows installerRun ant dist-win. Installer will reside in dist/output/hawkscope-(version)-installer.exe Creating Mac OS X app + packaging it in a Disk ImageRun ant dist-mac and check the dist/output folder for goodies. Creating Debian PackageRun ant dist-deb and look at dist/output Running HawkscopeRunning Hawkscope from executable JARDoubleclick the executable jar, or execute in console: java -jar hawkscope-...jar On Mac: java -jar -XstartOnFirstThread hawkscope-...jar |
Sign in to add a comment
I am having problems building in OS X. When I build the 0.6.2 source off the download page and run the jar, the Hawkscope icon appears in the tray but when you click on it all you get is the busy cursor. Or, when I run "ant dist-mac" the app "You can't open the application 'Hawkscope' because it is not supported on this architecture". But when i download your dmg and install, Hawkscope works fine. Any idea what I'm doing wrong? Any help would be appreciated.
-Thanks
JTremolo0, this is an issue of SWT on Mac, when you want to run the jar, you have to run the jar with -XstartOnFirstThread? parameter to make it work, i.e.: java -jar -XstartOnFirstThread? hawkscope.jar
See the startup script from Mac distribution for more details: http://hawkscope.googlecode.com/svn/trunk/dist/mac/Hawkscope.app/Contents/MacOS/hawkscope