Click here to Skip to main content
13,046,356 members (68,165 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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
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 1-Aug-12 23:26pm
Updated 1-Aug-12 23:29pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.

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
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.
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'

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 2 Aug 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100