Programming :: Making A Project Distribution Folder?

Jun 25, 2010

I'm trying to make my first c project (a simple tic tac toe console game), and I am wondering how to make a final product (copy all source code files to a distribution folder upon compilation). Should I use a bash script or should I use a makefile to make the distribution folder? I'm not terrible familiar with either; I have a basic makefile to make an executable, and that's about all I know of make.

And if I do use a bash script, how do I copy over source code files? I tried cp ./*.c and cp ./*.h, but I think the script read it literally as moving a file named ./*.c (and ./*.h), and couldn't find it.

My makefile is pretty much this:

Code:
objectFiles = main.o io.o board.o game.o
ttt : $(objectFiles)
cc -o ttt $(objectFiles)

View 2 Replies


ADVERTISEMENT

General :: Making A Backup Of An Installed Distribution?

Jan 29, 2011

Is it possible to make an ISO of the distribution already installed? Well actually, I have made various changes according to my choice and don't want to do them again if I have to reinstall.

View 14 Replies View Related

General :: Process Of Making A Distribution From Scratch ( Concerning Libraries, Etc. )?

Jun 28, 2010

I have C in a Nutshell but I'm learning Bash right now. I've gone through a lot of LFS, but didn't complete it. I'm still learning about symbolic links, hard links, libraries, and this sort of thing. I'm wondering about quite a few things at this point. How the hell can anyone make a distribution from the ground up? Even if they start with another distribution as a base, how do they know (I realize one person doesn't do all the work) what to do, what order to do it in, how to synchronize what they're doing with what everyone else is doing, etc. How do you know which software to compile and install first? etc.

Also, I'm entirely confused by this: how can everyone (even large teams) get everything working together? Knowing that this works with that and that doesn't work with this unless it's patched but that's what we're going with, etc. I can't understand how these things can be done without an almost unbelievable amount of effort unless a lot more is done by ./configure and make than I know about at this point.And I don't understand how libraries work at all. I mean, I'm going to learn a lot more and I've been reading a lot... but how can all the distributions just download and install 50 updates at a time and not have to restart the computer most of the time!? There are a hundred things happening in the background constantly. How does everything not just fall apart as soon as you update one package, let alone 50 at a time!? I realize this is stuff that you learn by reading, but I've been reading for quite a while now and I do not understand even the basics about why any of this works or how to know what works and what doesn't unless every single little piece of every distribution is gone over with a 50,000-page reference manual that's constantly updated. And all of this can't be as complex and hard to do as it seems, or there couldn't possibly be a hundred distributions that work and are updated constantly. Linux From Scratch is a good example. You have to download all the very specific versions of the software and patch it with special little patches, etc. How the hell can anyone keep track of all of this? Going by what I know about things, it's almost hard to believe that it's even done.

View 14 Replies View Related

Ubuntu :: How To Change Project Folder Icon In Places

Aug 29, 2010

I have a folder in my Home folder and called "Projects". I want to change the icon of the folder Project so the icon changed in everywhere. In "Places", Open Dialogs, Save Dialogs and Normal View in Nautilus.

What I have done:
Change the icon using Right-Click -> Properties -> Basic Tab -> Clicked the current icon and changed it.

But this changed it only in Nautilus. If I added this folder to "Places" it will appear with the Default icon. The same thing if I browsed to it using Open Dialogs or Save Dialogs.

View 5 Replies View Related

General :: Delete A Subfolder ABC From Main Project Folder?

Jul 29, 2011

I want to delete a subfolder ABC in a main Project folder Globe. It occurs in many subfolders. It is very hectic to search and issue an rm -rf ABC command. I need to make a script for that .

View 4 Replies View Related

Programming :: Programming Languages For Project Euler / Additional Ideas?

Jun 28, 2009

I've been working in the real world for a year making some money to go back and finish my masters, and now I'm coming to the end of my contract and am realising how little i remember and how small my scope has become; i basically do shell scripts and perl these days, and its making me uneasy. So instead of bitching about it , I'm going to endevor to complete Project Euler Using randomly generated programming languages for each problem, selected from

And post the fruits of my attempts at my blog (shameless plug) aswell as opening up my svn repository when I'm done. (altho i need to ask in another thread about svn permissions....)To my shame i havent ever touched C#, JavaScript, Ruby or Python, so all in all its going to be very interesting how much i screw up.Anyone have any additional ideas, or languages I'm missing or such? I was considering TCL or Haskell or Erlang at a strech, but i dont know how useful these three would be.

View 14 Replies View Related

Programming :: Kdeveloper Cant See New Project?

Aug 20, 2010

also some options in menues are disable..when i go to the terminal it shows this msge:<unknown program name>(5763)/ KDevelop::allocateRepository: picked duchain directory "/home/forensic/.kdevduchain/{61e2fad9-a888-45c7-91e7-c7098bc67b94}/0"maybe i made mistake in one step of compiling it..

View 11 Replies View Related

Programming :: Way To Continue With C++ Project

Apr 26, 2010

I would like to ask your opinion for a new C++ project.I just finished writing a chess engine in a software engineering lecture.I don't see any way to continue with that project and I would like some new ideas.I would prefer to start something on my one but suggestions about small open source projects that are already out there are welcome.

View 3 Replies View Related

Programming :: Using GPL Artwork In My Project

Nov 5, 2010

I have project released under GPL. I have found an icon (.png) I want to use in it that also has a GPL license. What do I have to do, if anything, to use it legally? It's "just an icon", and while it represents a significant amount of work on someone's part, it doesn't come with any source code or embedded licenses that I can just copy and include with my project files. I'm sure I can use it because it's GPL and my project is GPL.

That's what GPL was designed for, but I don't want anyone to think I'm claiming I designed it or that I took it without giving proper credit. I just reread the GPL, and it looks like I can do anything I want with it as long as I don't restrict anyone else from doing the same and if I were to modify it, I'd have to put a notice "somewhere" (but where would that be for an icon?) acknowledging that modification. I don't see anything that would make me actually mention it at all in my documentation, etc. as long as I pass it along unmodified.

View 1 Replies View Related

Programming :: Which Distribution Is Best For Web Development?

Jun 20, 2010

I need help with choosing the right distribution for web development.My potential future employeer wants me to give him some ideas, We are going to create a new catalog website, using a CMS,So I need to know some good solutions,

1. Which CMS to use for such a website, my idea is Joomla!

2. Which platform would be effective, here's where I need to ask you, as I know only a little about Linux distributions. But my idea is openSUSE so far.

3. Which development tools to use, for PHP scripting and MySQL(also xhtml and css).

View 2 Replies View Related

Programming :: Fixing A Bug In Opensource Project?

May 12, 2010

I have the joyous task of having to find and fix a bug in a large opensource project for an assignment. Fixing the bug should only take about 4 hours according to the lecturer. I would prefer the source language of the project to be Java, since my C++ is quite rusty.

So, does anyone have some experience in this type of thing, and can you give me advice about which projects would not be nasty to an ignorant student? Also, which tools did you use to make it easier for you? I want to learn how to do this,but I'm just a bit clueless at present.

View 5 Replies View Related

Programming :: Write A CMakeList.txt For A Project?

Apr 6, 2009

I am trying to write a CMakeList.txt for a project (A). The project needs to use the library of another project (B). For gcc, using -L <path> -ldl works. How can I convert that into cmake file? I tried include_directories, that doesn't seem to work

View 3 Replies View Related

Programming :: How To Write Small Project With C++

Dec 29, 2010

I am trying to write my first small project with C++ - implement stl list like collection class. This is what i have a the moment:

Code:

#ifndef GUARD_link_list_h
#define GUARD_link_list_h
template <class T>
struct Node {

[code]....

View 1 Replies View Related

Programming :: How To Debug Large Project Using 'GDB'

Jun 21, 2010

I'm using ubuntu 9.04;I want to debug my project that comprises mutiple files.When I cd to the project folder and run the command "gdb rawusb_test",Once I tried the flag -g and changed the line "$(CC) -o $(PROG) $(OBJS) $(LIBS)" to "$(CC) -g -o $(PROG) $(OBJS) $(LIBS)", it didn't work!I want to trace the program "rawusb_test" line by line and see the parameters' values!Could you help me how I should debug this project or how the Makefile should be changed?

View 8 Replies View Related

Programming :: Debug Big C Language Project With GDB?

Nov 11, 2009

Now I have a project which include three directories /bin, /inc and /src. All of header files (*.h) are included in /inc and all of source(*.c) files are stored in /src, i.e. a.c, b.c, c.c..., the final generated executable file will locate in /bin. after compling with makefile, all of obj files will be generated in /src/obj like a.o, b.o, c.o, d....! Moreover an final.exe executable file will be generated in the /bin directory. Now if I want to debug it with GDB, how can I do it?

View 1 Replies View Related

Programming :: Which Distribution Is Best For Network Programming

Oct 29, 2010

which distribution is best of Linux for Network programming.Is that GCC complier is preloaded in the Linux distro...Which material is the best for the new comer in Linux

View 1 Replies View Related

Ubuntu :: Making Private Folder Appear With Ecryptfs-utils

May 7, 2011

I have a fresh install of Kubuntu 11.04 and I already have the lastest ecryptfs-utils installed. I have the ".Private" folder but not the "Private" folder.

When I try to set it up I get this error:

Quote:

$ ecryptfs-setup-private
ERROR: wrapped-passphrase file already exists, use --force to overwrite.

How do I get my "Private" folder to appear? I don't think I should just be throwing my stuff into ".Private" and I don't want to have to see all the hidden folders all the time either. Should I use the --force argument, and what would that do?

View 1 Replies View Related

General :: Making A Folder And All Its Files Read Only Via Script?

Jul 14, 2011

Quick question. I need to ensure that all my files within specific folders are marked as being read only if the folders name is 'Forms' for example. There may be many 'forms' folders on the server within many different directories.It is a requirement that everything within these folders are marked as being read only but people are not doing so for whatever reason, and would therefore like for it to be done automatically i.e. a script executed by a cron job every eve to esnure that all files within the forms directories are marked read only.

View 1 Replies View Related

General :: Making Script To Copy Files To Another Folder?

Jun 5, 2011

make a simple script to copy files from my "hfiles " directory to a "www" folder at leats I think its a directory, it has the permissions as "lrwxrwxrwx " but its like a public branch So I proceeded to make a file entittled MkPublic to copy the "hfiles" directory to the "www" branch

here is the code i used:

#!/bin/sh
# COPIES FILES
echo "copying files"

[code]....

when i try to run the script it tells me that there is a syntax error and an unexpected end of file and nothing seems to get copied anywhere so clearly there is something wrong with one im doing, i tried multiple ways : using the quotes, spacing the equal signs, but I seem to still get the same results.

View 8 Replies View Related

General :: Making Tar File From Folder - Unknown Option

Aug 6, 2010

I am trying to make my first tar file in linux. I am trying to make a tar file from a folder (with all subfolders and files) and using several commands I got several errors!

This is the tar usage:
tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...

Some of my attempts and responses:
tar -czf itic_glb_cognity-06082010.tar.gz itic-glb-cognity/
response: tar: z: unknown option (not using 'z' again!)
tar -cf itic-glb-cognity-06082010.tar.gz itic-glb-cognity/
response: tar: cannot stat itic-glb-cognity. Not dumped.

The last ones repeats for all the next attempts:
tar -cf itic-glb-cognity-06082010.tar.gz itic-glb-cognity
tar -cf iticglbcognity06082010.tar.gz itic-glb-cognity/
(full path + name without spaces) tar -cf iticglbcognity06082010.tar.gz /epos/webbus/bea/user_projects/domains/itic-glb-cognity

For some of the above a 10kb file was created, where the expected file would be about 250MB. I dont think it has anything to do with the user's rights, because I think I have them all.

View 6 Replies View Related

General :: Developing A Project In C Kernel Programming?

Mar 11, 2010

I am a Master's student.I am a newbie to Linux. I am interested in doing a term project in C kernel programming. I need help in developing a project in which I can use C kernel programming .

View 2 Replies View Related

Programming :: Debugging QT Project Through GDB In Command Line?

Jan 31, 2011

First step will obviously be to compile the QT project with -g option, but how to do that through command line?

View 6 Replies View Related

Programming :: Compile A Big Project In Command Line?

Jun 10, 2010

I've got the "OpenCryptoKi" project source from "sourceforge.net" at here:But I don't know how should I compile and build it by "GCC" or "Make"?!I have ubuntu 9.04 and I've set the linux runlevel at 3, but I'm not so familiar with compiling such project at commandline environment of linux

View 6 Replies View Related

Programming :: Include Boost In Eclipse Project?

Dec 14, 2010

I'm using Eclipse to build a small c++ program using boost.

Code:

#include<iostream>
#include<string>
#include <boost/regex.hpp>

[code]....

I can right click on boost::regex and it takes me to the header file regex_fwd.hpp, but when I go to build it, it gives me the error:

Code:

DescriptionResourcePathLocationType
/usr/include/boost/regex/v4/basic_regex.hpp undefined reference to `boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> >

[code]...

View 6 Replies View Related

Programming :: Invitation For Open Source Project?

Jul 19, 2011

I'm starting a open source project which involves web based Java, JBoss application server and JBoss Seam framework. I'm a student and I work on the project in my free time for training. Every one who want to take a part in this hobby project in his free time is invited.
Send me e-mail.

[URL]

I will send you development information

View 1 Replies View Related

Programming :: Developing HTML To PDF Converter Project?

Dec 31, 2010

I am new to linux. I am pursuing bachelors in computer science engineering. My final year project is to develop a "html to pdf converter using linux". I have some basic knowledge of commands used in unix

1) Where can I get the basic idea about the existing converters, their pros and cons.
2) Any kind of material or source where I can get basic idea.

View 14 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

Programming :: System For Create Project And Learn Web Server?

Jun 27, 2010

I am web developer, i am work with php,and want choice best linux for create my project
and learn web server

View 4 Replies View Related

Programming :: Doing Academic Project On Alix 3d3 System Boards?

Dec 9, 2010

i am doing my academic project on Alix 3d3 system boards can u me the OS and also i am writing some program using C which i have to load it into the system boards, so which compiler is best suited?

View 4 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







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