Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I created one application in Windows and Mac using Qt. It uses AVRDude(One cmmand line utility) utility to pass some instructions to the hardware device. I used AVRDUDE command line executable in windows to pass instructions.
I placed the command line(AVRDUDE) utility in the working folder and passed the command line arguments from my program.

How I can do this In Mac?

I compiled the AVRDUDE source in mac using the following commands
./cofigure
make
make install

I can call it from my current machine using my application.
how I can ship my application with this AVRDUDE utility in Mac.

I mean how to add this utility to my application for distribution
I am a windows programmer and new to Mac environment so dont know much about Mac

please help me...
Posted
Updated 1-Aug-12 23:29pm
v2

1 solution

Using one application in another one is not a good idea. You create a separate process, but the processes are well isolated. This is usual thing in Unix, but mostly because Unix is very old, and yet, it mostly used in the console applications, which is less of a problem.

As I can see, you use "make", it means you are using the source code. It would be much better to make a library out of this code and link it in your application. I don't know, maybe AVRDUDE already is based on some library you can use. Please see the developer's documentation on this utility.

—SA
 
Share this answer
 
Comments
Arun Kumar K S 2-Aug-12 20:12pm    
AVRDUDE is written in C. I dont know to edit this code to create a library. I want to know only how I can transfer my created command line utility to another machine. I know the make command creates the binary. how to transfer that from my develpment system to anther
Sergey Alexandrovich Kryukov 3-Aug-12 0:06am    
Nothing can be said based on your limited information. The answer can range from "absolutely incompatible" to "just recompile" (least likely though). A look at the code is required.
--SA
Arun Kumar K S 3-Aug-12 4:38am    
sh-3.2# make
make all-recursive
sh-3.2# sudo make install
make install-recursive
test -z "/usr/local/bin" || ./install-sh -c -d "/usr/local/bin"
/usr/bin/install -c avrdude '/usr/local/bin'
Backing up avrdude.conf in /usr/local/etc
test -z "/usr/local/etc" || ./install-sh -c -d "/usr/local/etc"
/usr/bin/install -c -m 644 avrdude.conf '/usr/local/etc'
test -z "/usr/local/share/man/man1" || ./install-sh -c -d "/usr/local/share/man/man1"
/usr/bin/install -c -m 644 avrdude.1 '/usr/local/share/man/man1'
Sergey Alexandrovich Kryukov 3-Aug-12 13:55pm    
And?
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900