|
Developer
Developer documentation.
Creating a PortPretty formatting XMLs in PMDOC: $ cd name.pmdoc/ $ for x in *.xml ; do xmllint --format $x --output $x ; done BuildingCommon errors and fixes
Pass to configure the --disable-dependency-tracking option. PackagingLow-level package managementTo list all Rudix packages installed: $ pkgutil --pkgs=org.rudix.pkg.* org.rudix.pkg.apr org.rudix.pkg.boost org.rudix.pkg.bvi org.rudix.pkg.bzr … To retrieve information about a package: $ pkgutil -v --pkg-info org.rudix.pkg.apr
package-id: org.rudix.pkg.apr
version: 1.4.2-1
volume: /
location:
install-time: Sun Nov 14 20:14:49 2010To list file content from a package: $ pkgutil --files org.rudix.pkg.wget usr usr/local usr/local/bin usr/local/bin/wget … To remove a package and its files: $ sudo pkgutil --unlink org.rudix.pkg.boost Do you really want to delete these files? yes … $ sudo pkgutil --forget org.rudix.pkg.boost Forgot package 'org.rudix.pkg.boost' on '/'. Try to find some information about a file in a package: $ pkgutil -v --file-info /usr/local/bin/wget
volume: /
path: /usr/local/bin/wget
pkgid: org.rudix.pkg.wget
pkg-version: 1.12
install-time: Wed Sep 1 22:13:00 2010
uid: 0 (root)
gid: 0 (wheel)
mode: 775 (?rwxrwxr-x )Links
MiscHow do I compile an Universal Binary?In most of the time you pass -arch i386 -arch x86_64to CFLAGS, CXXFLAGS and LDFLAGS. This is exactly what Rudix does (see Rules.mk file). There is another alternative, which is compile in two parts (for two architectures) and then join the binary with lipo: $ gcc -arch i386 hello.c -o hello-i386 $ gcc -arch x86_64 hello.c -o hello-x86_64 $ lipo -create -arch i386 hello-i386 -arch x86_64 hello-x86_64 -o hello ucontext routines are deprecatedIf you see #error ucontext routines are deprecated, and require _XOPEN_SOURCE to be definedchange in program's source the occurrences of #include <ucontext.h>to #include <sys/ucontext.h>. Another possible solution is to define XOPEN_SOURCE #define _XOPEN_SOURCE 1000in your sources. See also: | |
► Sign in to add a comment