Programming :: Build A Spi Program Using C++?

Jan 19, 2011

I'm trying to build a spi program using c++. I'm able to perform half-duplex transfers using the read/write functions, it works perfectly. Now I need to perform a full-duplex transfer, but I'm facing some problems. When I try to receive more than one byte, the slave returns to me only one byte.Ex: I send: FF FF FF FF FF The slave must return: 03 02 00 13 04 But what is happening is:

1st Transfer:

tx: FF FF FF FF FF
rx: 03 00 00 00 00

2nd Transfer:

tx: FF FF FF FF FF
rx: 02 00 00 00 00

[code].....

View 3 Replies


ADVERTISEMENT

Programming :: Build A Simple Program For C Programming Class?

Feb 12, 2011

im trying to build a simple program for my C programming class, this is the source code

#include <stdio.h>
int main()
{
int length, width, length, height, area, perimeter;
perimeter = width + length + height;
area = width * length + heigth;

[Code]...

i dont see any error (you might)but every time i run it it runs but after it asks me to input for the width i do it but it doesn't take me to the length, it just stays blank until i input another value in the same place for the width, it asks me for 4 inputs in total i don;t know why, and after i run it different times it gives me different values for the perimeter and are. how can I fix this?

View 5 Replies View Related

Programming :: How To Use X86 To Build Assemly Program For Arm Machine?

Apr 14, 2011

my build machine is x86 machine that is running ubuntu10.04, my target machine is tegra2 that is running on Andrioid, I wish my program can run under shell of android, as first step , I wrote a simplest assembly program which does nothing, but I got a link error, can somebody help me?

View 4 Replies View Related

Programming :: Compile And Build Program Using A Makefile Template?

Jul 8, 2011

I am new to the whole concept of makefiles, and I'm trying to compile and build my program using a makefile template I have found. My project consists of three directories: "source", where my .cpp files are (source1.cpp, source2.cpp, source3.cpp), "include", where my .h files are (header1.h, header2.h, header3.h), and "obj", where the object files are to be stored (obj1.o, obj2.o, obj3.o). In the project root directory is my makefile, which is as follows:

Code:
EXEC = myexe
CC = g++
IDIR = include
SDIR = source
ODIR = obj

[Code]..

View 4 Replies View Related

Fedora :: Build A KDE Program From Source?

Apr 9, 2011

I'm trying to build a KDE program from source. I have installed the qt3-devel.i686 package. When I try to configure, I receive this error message

Quote:

checking for KDE... configure: error: in the prefix, you've chosen, are no KDE headers installed. This will fail. use another prefix!

Anyone know how I can build KDE programs in Fedora?

View 1 Replies View Related

Debian :: Build A .deb File Which Will Contain Perl Program?

Aug 18, 2010

I'd like to build a .deb file which will contain my Perl program. I just want it to be deployed with dpkg -i on debian systems later. So it's just a matter of having the good arborescence in my .deb package. For that purpose, in the debian/rules file, I'm declaring some dh_install lines in the install rule.

My issue is that I know how to achieve my goal, but only with writing a ton of dh_install lines (one line, for one file...)

example :
clean:
dh_testdir
dh_clean
install: build

[Code].....

View 4 Replies View Related

Software :: Using Command And Script To Build A Program Which Can Do Exception-statistic In Log

Aug 5, 2010

I have a log file and there are many different types of exception in this file. These could be looked as follow:

Code:

One can see there two types of exceptions: ORGNoCompetenceException and SocketException.

I will filter out the name/type of exception and the number of each type of exception. At last, this statistic data will write to file and create a Excel table.

View 1 Replies View Related

Fedora :: Fatal Error: Mismatch Between The Program And Library Build Versions Detected

Apr 13, 2011

I'm tring to run AMDOverdriveCtrl, since they don't have an RPM file for Fedora i tried to compile from source i followed the instruction in the readme files run the make command

Code:

% make
g++ -mwindows -s -pthread -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8 -ldl -o./Release/AMDOverdriveCtrl ./src/CFanSpeedPanel.o ./src/COvdrSettingsPanel.o ./src/CFanControlPanel.o ./src/CColorTempPanel.o ./src/BezierMath.o ./src/Color.o

[code]....

and tried to run the application, and i get this error message

Code:

$ AMDOverdriveCtrl
Fatal Error: Mismatch between the program and library build versions detected.

The library used 2.8 (no debug,Unicode,compiler with C++ ABI 1002,wx containers,compatible with 2.4,compatible with 2.6), and your program used 2.8 (no debug,Unicode,compiler with C++ ABI 1002,wx containers,compatible with 2.6).

View 1 Replies View Related

Programming :: Build Ip Packet With C,socket Programming?

Jan 30, 2011

How can we build a packet using C?we have a structure called sockaddr_in which is use to for IPv4,so that we can define address,port and etc in this way:

Code:
struct sockaddr_in sock;
sock.sin_family=AF_INET;

[code]...

View 5 Replies View Related

Programming :: Program A SH - Bash Program With Zenity To Play Radio Based On A Site?

Feb 15, 2011

I will have to code this. However I am lacking of time since I have too much to do. make a short code bash/dash to prompt the country with Zenity, then, get the PLS or m3u url and prompt with another zenity which radio to play. http://www.listenlive.eu/index.html

My code to get url's radio country.htm is:

Code:

View 2 Replies View Related

Programming :: Open Or Run A File/program Through A C++ Program

Jan 15, 2010

Ok so Basically i have 2 questions

1. i know how to create a file with c++ using but is there a way to save it to a specific location on your computer with windows and linux

Code:

2. i need to know how to run/execute/open a file in a c++ program im using and its not working

Code:

View 4 Replies View Related

Debian Programming :: Can't Build Android App

May 29, 2014

I'm trying to setup tools for developing android apps on my Debian Wheezy (backport) system. Eclipse with android plugins is installed. Android SDK installed using android-sdk_r22.6.2-linux.tgz available from URL...My problem is I can't build the android app. The console in Eclipse tells me something (translated) like this;

Code: Select all[2014-05-30 16:36:45 - adb] Unexpected exception 'Cannot run program "/usr/lib/android-sdk-linux/platform-tools/adb": java.io.IOException: error=2, No such file or directory' while attempting to get adb version from '/usr/lib/android-sdk-linux/platform-tools/adb'

I have searched the web quite extensively but found no solution. It seems the issue may be due to I'm having a 64bit system but building the app requires some 32bit stuff.Some older posts suggest adding package by "apt-get install ia32-libs". In later posts (i.e. URL....

Code: Select alldpkg --add-architecture i386
apt-get update
apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386

However doing apt-get install libc6:i386 asks me to remove 1536 installed packages and installing just 5 new...

Some info about my system ....
Code: Select all>uname -mrv
3.14-0.bpo.1-amd64 #1 SMP Debian 3.14.4-1~bpo70+1 (2014-05-14) x86_64

View 8 Replies View Related

Programming :: Ant Build.xml And Regular Expressions?

May 31, 2011

i am trying to create an exclude regular expression for my build.xml. The problem is, that i am trying to find some info on which REs are acceptable/valid for ant... Is ant using standard regular expressions? POSIX ones? Since it is a java-based tool, the "Java REs" are probably valid. I am a little bit confused. If somebody can help me out with the different RE standards, i would be most obliged.

View 1 Replies View Related

Programming :: Ant Build.xml File For Eclipse?

Mar 26, 2011

I've spent all day trying to figure how to write an ant build.xml file for eclipse. I must have read 20 sites on the web but some how I just am missing it I continue to get the error

Code:
/home/knox/workspace/HW/src/projectBuilder.xml:5: the file attribute is required
here is my file at this point after many variations
Code:
<?xml version="1.0" encoding="UTF-8"?>

[Code]...

It works fine if I leave out the Main-Class line in manifest but then the jar is not executable Dick

View 3 Replies View Related

Programming :: How To Build VS2005 Projects

Feb 3, 2011

I need to create a SW project both for Windows (written with MS Visual Studio 2005) and Linux. Currently I have a build script for windows and another for Linux. I would like to build the project for both platforms on a single PC. Is there a way of building VS2005 projects with Linux (not using Cmake)?

View 2 Replies View Related

Programming :: Can't Build Parted 2.3 On Kernel 2.6.34?

Jun 18, 2010

Im trying to build parted 2.3, but I always end-up in the same error:

Code:
In file included from arch/linux.c:42:
/usr/include/scsi/scsi.h:152: error: expected specifier-qualifier-list before 'u8'
/usr/include/scsi/scsi.h: In function 'scsi_varlen_cdb_length':
/usr/include/scsi/scsi.h:163: error: 'struct scsi_varlen_cdb_hdr' has no member named 'additional_cdb_length'

[Code]...

View 14 Replies View Related

Programming :: Build A Package Using A Different Lib Than The One Installed?

Jul 11, 2011

Is is possible to compile (but not install) a library, and then compile a package using that library instead of the version that's installed?

View 4 Replies View Related

Programming :: Build A 2D Graph In Java As A Picture?

Feb 3, 2011

I am trying to build a 2D plot for my data and I have the code for it. However, I want to save it as a jpg/png file so that I can have a link to it for my webpage. Below is the code:

Quote:

import java.awt.*;
import java.awt.font.*;
import java.awt.geom.*;
import javax.swing.*;

[Code].....

View 1 Replies View Related

Programming :: GCC And G++ Build Results If The -march=TYPE Is Not Specified?

May 25, 2010

I'm sure this has been covered somewhere before, but I couldn't find anything and so figured I would post here. I have been using Linux OSes for the past couple of years and also using GCC/G++ for application development. However, I have almost always been on x86 systems and never gained much experience using the wide range of optimization options available.

My question is, if I do not specify the -march=PROCTYPE option, will GCC still be able to detect the current architecture and build the code accordingly? I primarily ask this because I am working with an x86_64 system, and specifying -march=x86_64 in my makefiles generates errors about it being an unknown processor type, even though the CPU and OS are X86_64. I know this sounds like a newbie question, but it's just ground I've never had to cover before until now.

View 7 Replies View Related

Programming :: Build Whole Distribution From Source Codes?

Dec 11, 2008

I have downloaded whole linux source codes of fedora in a dvd. There are several rpm packages and lots of directories in it. I want to load all source codes to version control system (svn or cvs) which is loacated in a server and develop it step by step .During this time I want to build my own distribution. So I need to know how to build all these packages at once. Is there anyone who can explain "how to do" to me

View 1 Replies View Related

General :: Build ".a And .so" Libraries For That C Program?

Jan 18, 2010

Just i want one clarification regarding building libraries. I have a "c" program. i want to compile that program for ARM processor and i want to build ".a and .so" libraries for that c program.

View 1 Replies View Related

Programming :: Anjuta And Geany: Build Menu Is Grayed Out?

Mar 25, 2010

I am new to using Linux (Debian) and I wanted to install an IDE that covers all languages (C++, Java, SQL) so I decided to try Anjuta, but when I entered a simple "Hello World" code and tried to run it, I noticed that the Build > Compile selection was grayed out. I read on another forum that Anjuta can only compile projects so I switched to Geany, same problem. Do I have to install a compiler?

View 1 Replies View Related

Programming :: Make A Automated Build-script With Bash?

Apr 14, 2010

I'm trying to make a automated build-script with bash but i keep getting different errors that I can't seem to figure out. Could anyone please tell me what's wrong with this package of build-scripts? I'm posting the main build-script and attaching the rest of the scripts in a compressed form. The errors mainly comes from the scripts in "/first_installation/usr/share/siem-live/init"

[Code]...

View 2 Replies View Related

Programming :: Build Screen Shot Application In C/c++ Like In Distros?

Feb 14, 2011

i want to make a screen capture program for linux as my software engineering project. but i am not getting from where to start. i have a bit knowlege of gtk and that of c/c++ but from where can i get other references which i should know for building it.

View 4 Replies View Related

Programming :: Make An Automated Build-script With Bash

Apr 14, 2010

I'm trying to make a automated build-script with bash but I keep getting different errors that I cant't seem to solve for various reasons. what's wrong with this build-script? I'm posing the main build-script and attaching the rest of the scripts in a compressed form. Buld-script link: [URL]

[Code]....

View 3 Replies View Related

Programming :: Coding Dilemma: Build Application With PHP Framework?

May 7, 2009

I've been a PHP developer for about 6 years now - the last two years I have been pretty inactive though. Just recently though, I have been reading resources on all the different programming patterns (Factory, Singleton, Registry, Observer, MVC, etc) to try and get my head around good programming techniques. For myself though I find that I can only truly understand how these methods work when I am forced to do them myself.I have a large project I am doing at my workplace (me only) that involves building a very complex PHP application.

I would like to know your professional opinion; should I spend the extra time to program this PHP application myself and really, properly learn all these different programming patterns? Or, should I just build on top of a PHP framework like the Zend Framework for speed's sake (and flexibility/features)?

I have found understanding exactly how the Zend Framework works hard, just because I haven't been exposed to using these programming patterns myself. I hate that - I want to fully understand exactly what is happening in my application and know exactly how each part relates to others.

View 2 Replies View Related

Programming :: Build An Accounts System Database For A Project?

Apr 21, 2010

I have recently trying to build an Accounts system database for a project. When you run the program it goes in the main menu sort of like this.

Accounts System
Add a Customer With a Contract......1
Add a Customer Without a Contract...2
Display all Customers...............3
Find a Customer.....................4
Edit a Customer.....................5
Print a Statement...................6
Print an Invoice....................7
Load File...........................8
Save and Exit.......................9

When you add a customer with a contract, you add name, address, start contract, end contract, payment and email address. Now, is there a code I could write to get back to this menu. To not confuse anyone, all I just saying is supposing I accidentally push number 1 on the keyboard and suppose I didn't want to add a customer. In other words I need a code that can cancel (or stop) adding a customer to go back to the accounts system menu.

[Code]...

View 3 Replies View Related

Programming :: Build Module Against Headers That Are Not From Running Kernel?

Apr 13, 2011

I'm trying to debug a module I programmed but I don't want to do it on the running host but against UML (don't want to reboot every 5 minutes).

The UML kernel I downloaded is 2.6.38.2. I have already downloaded the ubuntu kernel headers for this version (they belong to natty though I'm running maverick.... when I installed the .deb file with dpkg I had no problem at all).

Now I'd like to build said module against these headers. How can I do it?

Here's the makefile for my module code...

View 1 Replies View Related

Programming :: Incorrect Selection Of The C Library With Build Root?

Aug 1, 2010

I'm trying to use buildroot to cross compile some libraries for me. To do so I've set up build root to point to my working tool chain in the menuconfig.All seems fine however when I try to make (buildroot) I get the following error

rm -rf /root/buildroot-2010.05/output/build/buildroot-config
mkdir -p /root/buildroot-2010.05/output/build
cp -dpRf package/config/buildroot-config /root/buildroot-2010.05/output/build/buildroot-config
Checking external toolchain settings
Incorrect selection of the C library
make: *** [/root/buildroot-2010.05/output/stamps/ext-toolchain-installed] Error 255

I know it's pointing to the correct files and gcc as any wrong paths are reported in make menuconfig.

View 1 Replies View Related

Programming :: Build Hardware Operated Through Parallel Ports?

Oct 15, 2010

Never done it before, don't know how but its due next week. I am a computer systems student and have been required to built a hardware that will be operated by a program in G++ through the parallel ports. The hardware, thats a piece of cake, the software, now that's were the real problem is. I don't even know were to start.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved