General :: Compile A C Code Which Uses SSH Library?

Jan 26, 2011

i try to compile a c code which uses SSH library,but i get this error

Code:
libssh.h: No such file or directory

i searched and i found that This happens if a library used for linking is not present in the standard library directories used by gcc.

By default, gcc searches the following directories for header files:

/usr/local/include/
/usr/include/

and the following directories for libraries:

/usr/local/lib/
/usr/lib/

i update my libssh from libssh-0.4.2-1.fc13.i686 to libssh-0.4.6-1.fc13.i686, and there are files called libssh.so.4 and libssh.so.4.0.2 in /ur/lib, but i still can't compile it with this command:

gcc test.c

View 3 Replies


ADVERTISEMENT

General :: Install Compile And Run Library .a Or .so Files?

Dec 23, 2010

i know how to install software but i don't know

1: how to install library .a or .so files

i: how to install tar.gz i use the method like ./configure. make make install but most of the time i got the message nothing to make .in lots of tar.gz there is no installation document no make file no .configure file that make me quite confused how to install them or run them.now i got sample source code of cuda i got them in tar.gz form when i extract them i found a folder in folder i found folder like c ,doc,shared etc when i open each folder i found more folder n file like that src, doc common ,lib, in these folder i found source code file header files libraries file make files .i don't know how to run this kind of project can the be installed on the system .how to run them they don't have .run file or script they don't have configure file .how to compile them ,how to run them & how to install them

View 1 Replies View Related

General :: Use Compile File Build Package Without Messing Up Library

Apr 11, 2010

I want to build a package from source using src2pkg, but I don't know how to avoid library miss match. Suppose I have Firefox 3.5.2 on Slackware 13.0 64 and I want to upgrade it to 3.6.2. Last time when I venturesomely installed Firefox-3.6.2-current into my Slackware 13.0, I got library miss match. Thus, instead of upgrading the whole packages to current (which is impractical and cumbersome), I want to build 3.6.2 from source. How can I do this? Is there any guideline how to use src2pkg? Or should I rather use makepkg? Do I need to create a Makefile?

View 7 Replies View Related

General :: Including Lzo Compressor Library In Source Code?

Apr 11, 2010

I have downloaded lzo-2.00 package and have installed it linux kernel 2.6 version. Now I want to include the lzo library in the source code of linux.According to the instructions given in the package, I have copied the files (minilzo.c,minilzo.h,lzoconf.h,lzodefs.h)in the source directory(/mm),added minilzo.o to my Makefile and have included(#include minilzo.h) from my program. But when I compile the kernel,I am getting errors.

Errors:

->limits.h:No such file or directory
->assert.h:No such file or directory

View 3 Replies View Related

General :: Compile A Code From A Different Directory?

Jul 14, 2010

I do a lot of programming and I have to compile the code quite often. It's not convenient to move to the directory that contains the source code every time I want to compile it. So is there a way to compile a code from the my current directory (say /home example) without moving to the directory that contains the source. I remember being able to do this but forgotten how.

EDIT: I'm using makefiles to compile. Lets say I'm in the home directory and when I type

make -f /code/make_file

this doesn't seem to work

View 4 Replies View Related

General :: How To Compile A Linphone 3.3.2 Source Code

Mar 13, 2011

I've created a GUI for my voip software wherein i'm using the source code of linphone 3.3.2 for video and all protcol stuffs . It is like i've got my own gtk GUI instead of the linphone's glade . Hope you get the picture of what i'm doing . I would like to know how to compile the source code since because i do not know about make files and stuffs . Kindly help me solve this .

View 2 Replies View Related

General :: Compile Java Code On Ubuntu?

Apr 26, 2011

how to compile java code on ubuntu linux? also is it possible to incorporate C code in Java GUI?

View 1 Replies View Related

General :: Use Eclipse To Compile And Debug Source Code On Ns-2 Simulator?

Dec 13, 2010

I want to use eclipse to compile and debug source code on ns-2 simulator.

1.how can i configure the parameter on eclipse.

2.how can i compile the source code *.cc

View 3 Replies View Related

Slackware :: 13.0 - How To Compile Libdnet Library

Jan 3, 2010

My system is slackware64 13 and I am having problems during compilation of libdnet library. How to compile this program? I compile like this:
Code:
configure --with-python && make
I know this is not slackware related but I want to give it a try...

View 4 Replies View Related

Programming :: Compile Static Libcurl Library Under Windows ?

Jun 3, 2009

I have been working on this for a long time.

I could get the static libcurl library ( a "libcurl.lib" file and a "curl.h" file), which supposed to be working under Windows.

Yet I tried Visual c++ 6.0 but it wasn't working at all.

Some idea on that ? I don't mind to try MinGW and Dev C++ if it will really work. (Cygwin is not good since it require client to have cygwin.dll in run-time folder).

View 1 Replies View Related

Programming :: Link A Code In C++ With Tinyxmldll Library

Jul 1, 2010

i am trying to link a code in C++ with tinyxmldll library:

Code:

master out # ls -la
total 1388
drwx------ 2 root root 4096 May 10 14:02 .
drwx------ 6 root root 4096 Apr 5 08:35 ..

[code].....

When i link, i get 'undefined reference' error:

Code:

master hneat # make nt
g++ -g -DTIXML_USE_STL -DHCUBE_NOGUI -fPIC -I./hneat -L./hneat -I/home/niko/hyperneat3/HyperNEAT_v3_0/JGTL/include/ -I/home/niko/hyperneat3/HyperNEAT_v3_0/tinyxmldll/include/ -I./Experiments -I../ -I./ -L/home/niko/hyperneat3/HyperNEAT_v3_0/tinyxmldll/out/ -L/usr

[code]....

The problem is, the symbols contain weird characters. How do I tell g++ that it should ignore these characters and link the functions correctly?

View 4 Replies View Related

Programming :: Library To Send Mail Via C/c++ Code

Sep 10, 2010

Is there a library to send mail via c/c++ code in linux ? Or what can I use ?

View 1 Replies View Related

Ubuntu :: Any Link To Get Source Code For PThread Library?

Aug 27, 2010

Can anyone please let me know of a link where I can find the source code for Linux pthread library?

View 2 Replies View Related

Ubuntu :: Install A Library - LibRaw-0.8.5 - From Source Code

Jan 28, 2010

Ubuntu 9.10 is the running system. I need to install a library (LibRaw-0.8.5) from source code as the version I need is not present in the repositories. So far, I managed to extract the .tar.gz, but now I have no clue how to install it and make it work with DigiKam... I tried the sudo make install stuff, but it seems I don't do it right or what

View 12 Replies View Related

Programming :: SDL Code Optimisation / Change Of Library For Low End Systems?

Mar 23, 2011

I have a question about choice of library to be used on low-end systems. I've so far been using SDL to create a user interface for a media system, and it's been working fantastically on my development machine, a dual core 2GHz machine with 2Gb RAM and an Intel graphics card. I get a frame rate of up to 100fps, and there is no slowdown at all. However when I run the exact same program on an embedded motherboard, the VIA EPIA EN15000G, which has a 1.5GHz processor, and a VIA P4M800 graphics chip (possibly the worst graphics chip ever invented as far as Linux support goes), I get a frame rate of less than 5fps. This makes the entire program totally unusable, and I've been left in a bit of a pickle. I've looked into alternatives like SFML, but that looks like it won't help at all on an unaccelerated system. I've also tried using OpenChrome drivers on it, and that made a negligible or nonexistent difference.

Can anybody suggest anything I could look into re: optimising my code or changing libraries goes? I already use SDL_DisplayFormatAlpha to convert my surfaces to the correct format. I haven't looked into Dirty Rectangles yet massively, as there's not much movement at all on the GUI, just the changing of button states.

Would use of OpenGL help at all if using the OpenChrome driver, which apparently has 2D acceleration? I'm more than willing to totally overhaul the code if needs be.

View 7 Replies View Related

CentOS 5 :: Compile The Fakeroot 1.15 But It Always Failed To Load The Shared Library Libfakeroot?

Jun 7, 2010

I have tried to compile the fakeroot 1.15 on centos 5, but it always failed to load the shared library libfakeroot.so file. I tried compiling 32 as well as 64 bit version of library but always it failed to load the library and give the following error:

ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded: ignored.

any workaround to get this working?

View 1 Replies View Related

Ubuntu :: Code Library Required By VISA Not Located / Loaded

Mar 31, 2010

I need to create a test setup in my lab that will run power supplies for an indefinite amount of time. It could be anywhere from days to months at a time. This rules out matlab, as its memory leaks won't let it run that long, and LabView is too buggy (at least in my experience. and it has memory leaks as well). So I need a way to program GPIB (since that is the interface these power supplies have). So far, PyVISA seems to be the most likely way to be able to do this.

However, I keep receiving the following error:
Code:
pyvisa.visa_exceptions.VisaIOError: VI_ERROR_LIBRARY_NFOUND: A code library required by VISA could not be located or loaded.
Searching around, this apparently means that I'm missing GPIB drivers, but I'm not.
linux-gpib installed, and the card appears in /dev.

That being said, every now and then the gpib interfaces simply disappear from /dev,and the only way I can get them back is to reinstall linux-gpib. Also, has anybody else succeeded in working with GPIB outside of LabView and Matlab, and if so how? I'm also open to other options, having made no progress on this after over a week. The two real requirements is that I need programming interface to be scpi commands, and I would prefer to code in python or C/C++.

View 5 Replies View Related

Programming :: Link Code With The Real Time Library Using Qmake (.pro)?

Aug 23, 2010

I am trying to write suitable .pro file for my application. I need real-time library. Have you some ideas how to do that? I just need the line for linking with real-time library...

View 2 Replies View Related

Programming :: Find Source Code Of C Library Files In Ubuntu?

Feb 26, 2009

Where do i found source code of c library files in ubuntu.

View 2 Replies View Related

Ubuntu :: How To Compile Source Code

Jul 24, 2009

I downloaded wine from a windows laptop, but because you have to have a computer running Linux to download it as a .deb package, I had to download the source code as a tar. bz2.

Does anyone know how I compile it and make it executable?

View 6 Replies View Related

Programming :: Cannot Compile C++ Code In Terminal

Feb 13, 2011

I am unable to compile C++ program in terminal. Whenever I try to add "#include<iostream.h>" it shows an error and thats why I can not use "cout" and "cin" functions. I installed g++ for this but the problem persists.

View 4 Replies View Related

Programming :: Can't Compile F77 Code Using Gfortran Or G77

Nov 17, 2009

I have legacy fortran 77 code that used to compile seamlessly using g77 on an old machine. I've tried to recompile it on a new machine (old one is dead) using the original makefile, but the linker fails under g77, while there are persisting syntax errors using gfortran. I have two source files readmixed.f and subroutines.f. Under g77 the object files are produced using

Quote:

$ f77 -c readmixed.f -o readmixed.o
$ f77 -c subroutines.f -o subroutines.o

but the linking fails with

Quote:

$ f77 readmixed.o subroutines.o -o readmixed
subroutines.o(.text+0x0): In function `norm1_':
: multiple definition of `norm1_'
readmixed.o(.text+0x3987): first defined here

[code].....

View 2 Replies View Related

Programming :: Compile (gcc) Using Code From Other Projects?

Jan 16, 2010

I'm trying to write a helper for the mount utility (mount.truecrypt) and there are some things in the util-linux-ng package that would be helpful. For example, in fstab.c, there is a lock_mtab() function. I want to be able to do something like:

Code:

#include "fstab.h"
int main(int argc, char *argv[])
{
lock_mtab();

[code]....

But I don't know how to compile it. I was trying (naively) something like:

Code:

$ gcc mount.truecrypt.c fstab.c -o mount.truecrypt

But I guess the problem is fstab needs a whole bunch of other stuff. Should I just build the entire util-linux-ng package and then use the output somehow? If anyone is interested in mount.truecrypt (to be compatible with mount and /etc/fstab) you might be interested in giving me a little bit of guidance. I've got enough code to build the actual truecrypt command thus far. In fact, it's useable, but not robust (ie, doesn't lock the mtab, etc). You can browse the source for util-linux-ng here: [URL] and download a tagged release here:[URL]

View 5 Replies View Related

Ubuntu :: Unable To Compile Code Using Glib?

May 7, 2010

I'm trying to compile some code [URL], which uses Glib. I have the libglib2.0-dev package installed, but running ./configure reports that Glib is not installed. Is the autoconfig script wrong or out of date, or do I need something else installed?

View 1 Replies View Related

Ubuntu :: Cannot Compile GTK Code After Update To Natty

May 14, 2011

After updating to natty I cannot compile any Gtk+ code, no matter what I do I get linker errors. This is not a problem with the way I'm building it, I'm familiar with the correct usage of pkg-config.

Even this code will fail to link:
Code:
#include <gtk/gtk.h>
int main(int argc, char** argv) {
gkt_init(&argc, &argv);
gtk_main(); }
(Compiled with the standard commands to compile Gtk+ stuff)

I always get the following output:
Code:
/usr/lib/libgtk-x11-2.0.so: undefined reference to `g_source_get_time'
/usr/lib/libgtk-x11-2.0.so: undefined reference to `g_get_monotonic_time'
/usr/lib/libgdk_pixbuf-2.0.so: undefined reference to `g_simple_async_result_take_error'
/usr/lib/libgdk-x11-2.0.so: undefined reference to `g_slist_free_full'

View 2 Replies View Related

Software :: Compile Python Source Code With 64 Bit?

Jun 28, 2010

I've taken the source code for Zlib1.2.3, built and installed in a 64 Bit linux machine. Then when i downloaded Python 2.5.4 source and tried to build(make), i got the following error

gcc -pthread -shared build/temp.linux-x86_64-2.5/opt/cinecert/Python-2.5.4/Modules/zlibmodule.o -L/usr/local/lib -lz -o build/lib.linux-x86_64-2.5/zlib.so /usr/bin/ld: /usr/local/lib/libz.a(adler32.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libz.a: could not read symbols: Bad value collect2: ld returned 1 exit status

View 3 Replies View Related

Software :: Compile Assembly Code In Fedora11?

Jun 21, 2010

how to compile assembly code in linux? I am using AMD processor code instructions...is that amd registers inbuilt? with what file extension i should give while writing assembly code program?

View 14 Replies View Related

Programming :: Install To Compile Objective C Code?

Dec 25, 2010

Can anyone tell me what GNUSTep packages do i need to install to compile objective c code ?

Code:
gnustep-back.i686 0.18.0-4.fc14 fedora
gnustep-base.i686 1.20.1-2.fc14 fedora
gnustep-base-devel.i686 1.20.1-2.fc14 fedora
gnustep-base-doc.noarch 1.20.1-2.fc14 fedora
gnustep-examples.i686 1.3.0-3.fc14.1 updates

[Code]...

View 1 Replies View Related

Programming :: Tell Makefile Not To Compile Debug Code?

Mar 4, 2010

I've been trying to work out a way to stop chunks of code being compiled using a variable in my makefile but can't work it out. What I mean is for example in my code I might have.

/****output comms portdata********/
printf("
debug comms port %d",ReadPort("ttys1);

I only wish this code to be compiled when I'm debugging. What I've tried is using #ifdef with

#ifdef COMM_PORT_DEBUG
printf("
debug comms port %d",ReadPort("ttys1);
#endif

Then in my make file I set COMM_PORT_DEBUG to 1 so

DEBUG_DEFS = COMM_PORT_DEBUG=1

I then thought I could put it into my in my link line

all: $(CC) $(CPFLAGS) $(DEBUG_DEFS) $(INC_PATHS) $(SOURCE) -o $(PROGRAM) $(LIB_DIRS) $(GAME_LIBS)

but this gives a

gcc: COMM_PORT_DEBUG=1: No such file or directory

is there a way to do this sort of thing? Or am I barking up the wrong tree?

View 1 Replies View Related

OpenSUSE :: Compile Some Code - Install Other Distros Repos?

Apr 17, 2011

I am trying to build the java gnome gtk+ bindings on open suse and ran into a snag. the libcairo2-dev package is not apart of pensuse - how ever it is apart of ubuntu and the debian launchpad. can i install other distros repos to solve this issue? actually no i cant. how to install this package? zypper install libcairo2-dev comes back as not found.

View 9 Replies View Related







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