Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ MacOS QT QT-Creator
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 2-Aug-12 0:26am
Edited 2-Aug-12 0:29am
v2

1 solution

Rate this: bad
good
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.
 
—SA
  Permalink  
Comments
Arun Kumar K S at 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 at 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 at 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 at 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)

  Print Answers RSS
0 Afzaal Ahmad Zeeshan 256
1 OriginalGriff 251
2 BillWoodruff 240
3 Maciej Los 230
4 Sergey Alexandrovich Kryukov 195
0 OriginalGriff 6,419
1 Sergey Alexandrovich Kryukov 6,008
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 4,070


Advertise | Privacy | Mobile
Web04 | 2.8.1411019.1 | Last Updated 2 Aug 2012
Copyright © CodeProject, 1999-2014
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