how to add library and that's directory in avr studio5

Go To Last Post
20 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

HI
I USE AVR STUDIO 5
NOW, I try write a project(lufa_VirtualSerial) that have several library into varity directory,
can you say to me what i do to include these directori on toolchain to when i want build my project don't encounter to any error ?
for exampel now i biuld my projet encounter the error that you see on blow picture:

thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Which version of 5. Early ones had problems with path specifications in -I and -L

BTW you are a brave man trying to get LUFA to build "inside" Studio. Most would just "use external".

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

version 5.0

Quote:

BTW you are a brave man trying to get LUFA to build "inside" Studio.Most would just "use external".

why ? or what? or how?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Definitely replace 5.0 - it was completely broken in this area. The most recent issue from Atmel is actually 6.0.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

now , what have to i do ?

this mean i don't ask my question in area of forum ?

or i don't work with this version or is better don't work with version?

thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You need to upgrade from the very buggy version 5.0 you are using to the slightly less buggy version 6.0. Is this clear?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Is this clear?

yes!

thanks
but i don't upgrade now becuase my download rate is very blow so now i want to upgrade it will finish on tomorow!

now, can you tell me for do this work "how to add library and that's directory " in winavr what have to i do ?

thanks alot

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well there's no point trying to make it work with the buggy version. Wait until you have the new software then try that.

But as I say, LUFA is pretty dependent on a nest of Makefiles and files/directories that it will be very hard to replicate within AVR Studio. The simplest option is simply to tell Studio to invoke make externally on the top level Makefile in the LUFA project and let it handle and nesting complexity.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

now, can you tell me for do this work "how to add library and that's directory " in winavr what have to i do ?

Simply put, you need to get comfortable with working on the command line, typing in commands e.g. to run make. Tell us how much you have used Windows CMD etc, so we know at what level to start talking.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Tell us how much you have used Windows CMD etc, so we know at what level to start talking.

if you'r intent is "Windows CMD command line" i never used these, i use mfile builder .

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

if you'r intent is "Windows CMD command line" i never used these, i use mfile builder .

This is a shame as it's in this environment that Dean designed LUFA to be used.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

mojtaba_led wrote:
Quote:

Tell us how much you have used Windows CMD etc, so we know at what level to start talking.

if you'r intent is "Windows CMD command line" i never used these, i use mfile builder .

To make it clear:
LUFA is not only a bynch of source code. It is also the specification of how to build it, i.e. the makefiles that comes with it.

You can not simply add the source files to e.g. AVR Studio.

In order to understand LUFA you also need to have some understanding of the makefiles that comes with it, and then

EITHER use them,

OR do the same things that they o (defines etc) in your build environment (be is Atmel Studio, or whatever).

Unless you are prepared to run use the makefiles that comes with LUFA there is no way to simply build LUFA and the emos "out of the box".

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

excuse me i don't understand exactly you say becuase my english is worse.

ok.
now please give me a link to learn how to add library in "simple case" (no lufa and like this project or library or .c file)in winavr to studi about this work more.

exuseme for any thing (worse english and low lelvel information)

thank you

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

1. Do you want to add the files in the lufa library into the studio project (part of the project )?

(or)

2. Just add the include paths to studio so that the compiler will pick up for compilation?

If (1) please follow http://avrstudio5.wordpress.com/...

For (2)
1. From studio -> Open solution explorer -> Right click project -> Properties -> Toolchain tab -> AVR/GNU C Compiler -> Directories -> Include Paths

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

As I understand, you might be trying to run the example,
\LUFA-120219\Demos\Device\LowLevel\VirtualSerial

from the LUFA library. If this is the case, I see that there is a .aps file (Studio 4 project file) inside the folder. From studio 5/6 you can say File menu -> Import -> AVR Studio 4 project and specify the file LUFA-120219\Demos\Device\LowLevel\VirtualSerial\VirtualSerial.aps

for me it imported and I got an error

process_begin: CreateProcess(NULL, avr-gcc --version, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [gccversion] Error 2

you can try this one and see (Probably should not take > 5 min) :)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have compiled the LUFA VirtualSerial Demo from within AVR Studio 5 (5.1.208).

I posted the tutorial "LUFA & Studio5 - Beginner's Guide " in the Tutorial Section.

Here's the link to the tutorial: https://www.avrfreaks.net/index.p...

Hope this helps.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Chuck, your guide is excellent, :)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

soundararajan,

Thanks for the compliment. Hope you and others find it useful.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

thanks

Quote:

If (1) please follow http://avrstudio5.wordpress.com/... ... t-quickly/


this link id filter in my country please another!

Quote:

1. From studio -> Open solution explorer -> Right click project -> Properties -> Toolchain tab -> AVR/GNU C Compiler -> Directories -> Include Paths


this metod isn't complete . it need other setting to complete i did it but can't compile corectly and encounter to errore that send it's picture in my first post in this topic.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

I have compiled the LUFA VirtualSerial Demo from within AVR Studio 5 (5.1.208).

I posted the tutorial "LUFA & Studio5 - Beginner's Guide " in the Tutorial Section.

Here's the link to the tutorial: https://www.avrfreaks.net/index.p... ... p;t=118597

Hope this helps.


thanks
but i don't any problem with comilpe the lufa in winavr or avrstudio5!

i asked "how to add library and that's directory in avr studio5
"for another project , e.g. lufa lib!?