-
Notifications
You must be signed in to change notification settings - Fork 2
Uainstallation
Home - Back to the project home | UaManPage - Documentation
ua builds with the GNU auto tools. There is a script supplied which should do it all.
$ sh autogen.sh CFLAGS= CXXFLAGS=" -O3" $ make $ sudo make install
In essence, the build part does the following:
$ g++ -o ua -O3 ua.cc filei.cc -I. -lcrypto
You need [http://www.openssl.org/ OpenSSL] for the MD5 implementation.
ua will try to use hashed data structures, but those maybe implemented as extensions in [http://www.sgi.com/tech/stl/ STL]. You may also prefer sorted tree based data structures. If this is the case, compile as
$ sh autogen.sh CFLAGS= CXXFLAGS=" -O3 -D__NOHASH" $ make $ sudo make install
which results in
$ g++ -o ua -O3 -D__NOHASH ua.cc filei.cc -I. -lcrypto
NB. if your compiler is not gcc or older than gcc.3.x, the sorted data structures will be used automatically. Our tests actually do not show that much of a difference.
You can also use the routines and classes independently of the ua tool. The filei.h file contains the definition of the goodies and it is extensively documented. The filei.cc implementation file can be compiled to an object file and linked to other projects are archived in a library.
The source currently builds on standard UNIX-ish platforms. It should build under Cygwin/Windows as well but this hasn't been tested. Please let us know your experience building on different platforms so we can add platform-specific installation notes here.
[UaMainPage Back to the project home] | [UaManPage Documentation] | [/downloads Downloads]