...experiment in an unrestricted hands-on web.

Navigation

Compiling new programs and libraries

Configure scripts

Open source software usually comes with a config.sub file in the root of the source tree. This file contains information about the host-machine(among other things). We want avr32 to be a host machine, so we insert....TODO...

Common errors and issues

Configuring

PKG_CONFIG_PATH

--enable-xxx --disable-xxx

Compiling

There is a lot of hidden bugs out there, the most common ones are the use of variable arguments and enums in c-code.

var_args

enums

glib (and \GMemChunck)

Some Makefiles use the -DG_DISABLE_DEPRECATED. This will make some perfectly well written programs to compile with errors, so you can take this flag away safely if it bothers you.

It still doesn't work

If your program still doesn't work, you could try to use strace to see what system calls your program is doing. This might give you a hint in addition to your own debug statements.

-- NilsMagnusLarsgrd - 05 Jul 2006

r1 - 05 Jul 2006 - 14:47 - NilsMagnusLarsgrd
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Atmel®, AVR® and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries.
All other trademarks are the property of their respective owners.
Powered by Wed, 08 Feb 2006 build 8740
Syndicate this site