ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: Trying to setup for developement.

To:
Subject: Re: [ts-7000] Re: Trying to setup for developement.
From: Triffid Hunter <>
Date: Sun, 13 Jan 2008 09:42:41 +1000 (EST)
On Sat, 12 Jan 2008, Richard wrote:

> Thanks for the help guys,  I am at the point where I can do soem
> development. I have the compiler set up and I made a new file called
> profiles.local which has the path to my bin.  I downloaded XEMACS but
> han having troubles using it so at i am using kate.

I recommend getting some of the plugins for kate, such as the tab bar 
plugin and the autocomplete plugin. Also, it's extremely customisable so 
spend some time poking around in the options. Eg; the line numbers (F11) 
are really handy, but off by default ;)

> I don't know if any of you know of Ultra Edit or ConEdit.  These are 
> programs i use in windows for embedded development and they allow you to 
> set up commands to handle the compiling for you.  In the end this is 
> what i want to have done in Linux.

This is what makefiles are for.

The basic syntax of a makefile is:

to build this (type of) file: we need these files
        then do this
        and this

to build this (type of) file: we need these files
        then do this
        and this
        and this too

Once you have written your makefile, simply type make at the terminal and 
it will figure out what to build, and in what order considering which 
files are present and newer than their dependencies.

Here's an example makefile I use for cross compiling a few projects for my 
ts-7260:

CROSS:=arm-linux-
INCLUDES:=-I../hokuyo-urg
DEFINES:=-D_GNU_SOURCE -DTESTDRIVE
LIBRARYPATHS:=-L../hokuyo-urg
LIBRARIES:=-lm -lurglaser

CC:=$(CROSS)gcc $(INCLUDES) $(DEFINES) $(LIBRARYPATHS) $(LIBRARIES)

TARGETS:=robot motortest

.PHONY: all
all: $(TARGETS)
         @echo done

.PHONY: clean
clean:
         @rm -f $(TARGETS)

robot: *.c *.h Makefile
         $(CC) -o $@ *.c

motortest: dcmd.c serio.c
         $(CC) -DDO_MOTOR_TEST -o $@ $^

%.so:
         $(CC) -DLINUX_OS --shared -o $@ $^
         $(CROSS)strip $@

%: %.c
         $(CC) -DLINUX_OS -o $@ $^
         $(CROSS)strip $@

--- end Makefile ---

So when I update the code, I simply type make and it figures out the rest 
for me :)

Ask google for tutorials.

> I spent some time and got the XEMACS help but am
> unable to figure out how to configure it.  As for Kate I haven't
> really looked into it.  One good thing i did like about kate is that
> it appears to have some c and c++ highlighting built in.  This is
> another feature that I want and these things will ultimately help me
> to decide what to use.

Almost all editors in linux have syntax highlighting, even nano!

> Any more help on these issues would be appreciated.  As i said before I 
> am fairly new to the Linux environment and well lets just say my best 
> friend is the "man" command, I just wish that busy box had it lol.

You should be able to find manuals for busybox commands via google, 
possibly even on the busybox page.


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU