Ubuntu :: Compiling Libs Under A Different Directory

Feb 21, 2010

I am fairly new to ubuntu. I have to compile some libraries under ubuntu in a directory other than the default directory and then get the shared object libs (.so) libs for building some custome kernels. I created a directory structure as follows:

/home/username/build-target
/home/username/src-<libname> =>here are the source files for the lib. I need to compile

Now I create a directory /home/username/src-openssl and download the source code and untar it under this directory and issue ./configure --prefix=/home/username/build-target --exec-prefix=/home/username/build-target and then make and make install. I was expecting that the shared object libraries created (.so) files should have gone under /home/username/build-target/libs, however I just see only libssl.a and libcrypto.a and not .so files under the build-target/lib directory. For grep also I did the same thing as above however I don't see any lib directory created under build-target directory as I was expecting.

View 1 Replies


ADVERTISEMENT

Fedora :: Compiling C++ Program On 11 - No Such File Or Directory

May 25, 2010

I wrote a program in c++ on fedora 11. When i compiled it using g++. it displays the following error:

g++ fibnocci.cpp
fibnocci.cpp:2:22: error: iostream.h: No such file or directory
fibnocci.cpp: In function int main():
fibnocci.cpp:8: error: cout was not declared in this scope
fibnocci.cpp:8: error: endl was not declared in this scope

View 2 Replies View Related

General :: Compiling Modular Programs - Not Present Directory

Jul 6, 2010

I am trying to write modular program but when I try to compile I come to know I don't have any files in /usr/src/linux. I have installed fedora 12 which has 2.6.31.5-127.fc12.i686.PAE. I am including in my code:

linux/kernel.h
linux/module.h

Those are not present directory in /usr/src/linux is not present. My goal is to compile modular programs.

View 10 Replies View Related

Programming :: Compiling Recursive Makefile In Directory Structure

May 18, 2011

I'm having problems with compiling recursive Makefiles in my directory structure:
My folder layout is:
top/|- one/|- one.c (With main function)|- zero.c|- two/|- two.cin my top folder the make file looks like:

Code:
MAKE_DIRECTORIES = one two
.PHONY: all
all: $(MAKE_DIRECTORIES)

.PHONY: $(MAKE_DIRECTORIES)
$(MAKE_DIRECTORIES):
@echo $@
$(MAKE) --directory=$@
in my one and two folder I have the following Makefile:

Code:
.PHONE: all
all:
@echo $@
$(CC) $(CFLAGS) *.c
But when I compile it from top folder: make

I get following output:
Code:
one
two
Which states that directory statement by echo in main Makefile is ok but the files are not compiled in one and two.

View 5 Replies View Related

Software :: Gcc Looking In Wrong Directory For Libfreetype.so While Compiling Xorg-server-1.1.1

Mar 17, 2010

I am building a BLFS (Beyond Linux from Scratch) system. I am using a Slackware style package management system. Currently I am trying to build xorg-server-1.1.1 but whn it come to finding libfreetype.so its looking in my build directory (/tmp/mybuild/pachage-freetype/usr/lib/) and not /usr/lib/. I checked /usu/lib/pkgconfig and found that my freetype2.pc (amongst others) file was pointing to my build dir so I fixed it (along with all the others). but when I try building again I gat the same error. I checked my $PATH and my $PKG_CONFIG_PATH and both are correct.

this is a snip of my terminal output

Code:

(cd .libs && rm -f libosandcommon.la && ln -s ../libosandcommon.la libosandcommon.la)
if gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../include -I../../include -I../../include -I../../include -I../../include -I../../include -

[code]....

View 10 Replies View Related

Ubuntu :: Fatal Error: Iostream.h: No Such File Or Directory Compilation Terminated While Compiling C++ Code

Dec 9, 2010

whenever i am trying to compile a c++ program i am getting the following error sample.cpp:1: fatal error: iostream.h: No such file or directory compilation terminated

View 1 Replies View Related

Ubuntu :: PHP Libs That Don't Come With The Standard Install?

May 22, 2010

I need some PHP libs that don't come with the standard install - I assume that means I'll have to build PHP from source. Can I use a package manager to download the source? How? If I do, will it have the code for all the libraries? Are there specific instructions for building and installing on ubuntu?

View 2 Replies View Related

Ubuntu Installation :: Accidentally Removed Libs - Can't Log Onto 10.04

May 9, 2010

i was trying to remove the flash plugin 32bit wrapper (don't remember the exact name of the package),using the command apt-get -y remove --purge and i saw somehow uninstalled a bunch of other programs like the gnome-network manager,emphaty...Now i rebooted and can't log on anymore .Is there a way to repair this,like running an upgrade from the livecd to restore the missing parts without wiping out my conf & other programs ? I've tried this that i found some other forum ,but i didn't work

Code:

sudo mkdir /mnt/repair
sudo mount /dev/sda3 /mnt/repair
sudo chroot /mnt/repair su

[code]....

I'm running a dual-boot with windows 7

View 1 Replies View Related

Ubuntu Installation :: 10.04 - How To Reinstall QT Libs (Getting Error)

Sep 23, 2010

I have some issue with QT in ubuntu , almost all QT application I cant use now. If I use Q4wine:
q4wine: symbol lookup error: /usr/lib/libQtSql.so.4: undefined symbol: _ZN14QObjectPrivate15checkWindowRoleEv

If KGet
q4wine: symbol lookup error: /usr/lib/libQtSql.so.4: undefined symbol: _ZN14QObjectPrivate15checkWindowRoleEv

SMPlayer
smplayer: symbol lookup error: smplayer: undefined symbol: _ZN9QListData7detach3Ev

Like all my QT applications is facing problem, How I can reinstall the qt libs? I am using ubuntu 10.04.

View 2 Replies View Related

SUSE :: How To Get RMP Dependencies/libs

Feb 17, 2011

I wanted to install an rpm package on two suse 10 systems. It installed successfully on one system but on the other it throws an error like

Code: error: Failed dependencies: rpmlib(PayloadIsLzma) <= 4.4.2-1 is needed by linuxProj-1-1.noarch

Now this means that rpnm package has no error but the rpm in itself is lacking some libs. So can anyone tell me that how can I download and add these libs to the already installed rpm. Note the difference between rpm and rpm package.

View 1 Replies View Related

General :: How To Write C Libs To Php

Mar 7, 2011

I need to use a lib developed by me in c in my php app but i don't now how. I will use it in Linux.

View 2 Replies View Related

General :: See The Source Of Libs?

Oct 23, 2010

Is it possible to find out the source of libdb_cxx-4.3.so and other lib files in Linux? If yes, how?

View 6 Replies View Related

Ubuntu Multimedia :: No Proprietary Libs On Installation Disc

Mar 2, 2010

My friend just installed Ubuntu from cd on a computer without Internet connection. She hoped to be able to open some video and music files there, but it turns out there were no proprietary libs in the installer. And since the majority of the files were avi, mp3 and mp4, they couldn't be read.I am an experienced Linux user, but I have mainly dealt with Gentoo, plus I'm used to be able to download and install programs directly through a package manager. However since my friend's computer isn't connected we don't have that possibility.

how can I install proprietary libs (like for the formats mentioned) to this computer? Could they be available from the installation disc, and if so how do I get them? Can I transfer packages with a memory stick? (And is there some easy way to find all dependencies?) Or any other solution?I do have a 3G mobile modem dongle which perhaps we could use. However I have bad impressions of those and Linux. Will it work without a great deal of configuring (or extra software)? Otherwise, this method would mean an extra step.

View 2 Replies View Related

Ubuntu Multimedia :: Building Ffmpeg With Shared Libs?

Jun 15, 2010

Im trying to build ffmepg with shared lib under ubuntu 8.04 hardy. Im was following these instructions :

>> Install FFmpeg and x264 on Ubuntu Hardy Heron 8.04 LTS <<

But it was not for shared library. So in the part 7. I added "--enable-shared" to the "configure" command but when I compile ("make") I ve got an error:

"
/usr/bin/ld: /usr/local/lib/libopencore-amrnb.a(wrapper.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/libopencore-amrnb.a: could not read symbols: Bad value

[code]...

I read another thread saying how to resolve this error :

>> trouble with ffmpeg and shared libs <<

but its still make the error when i follow these instructions...

I decided to add "--enable-pic" flag to "configure" but the error still happen.

View 1 Replies View Related

Ubuntu :: Have To Install All Libs Required For PCSX2 Within Chroot Itself?

Nov 6, 2010

I'm running Ubuntu 10.10 64bit and I have succesfully installed 10.10 32bit as a chroot using URL...I'm able to go into the chroot shell and it works perfectlyI want to run PCSX2. I have it downloaded in my personal Downloads folder but how to I access it from a chroot? also will I have to install all the libs required for PCSX2 within the chroot itself?

View 9 Replies View Related

SUSE :: How To Install X11 Libs SLES-10.1

Jan 21, 2010

I'm trying to install OpenDX(dx)-4.2.0, a scientific graphics visualization tool on Suse Linux 10.1 . But its giving following error:

icc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -Dlinux -I/opt/intel/MESA/7.5.2/DRI2PROTO/include/X11/extensions -I/usr/X11R6/include -g -O2 -I/usr/X11R6/include -D_GNU_SOURCE -c callm_xinit.c
callm_xinit.c catastrophic error: could not open source file "Xm/Xm.h"

[Code]....

To resolve this error, I tried to install Mesa OpenGL libraries (mesa-7.5.2). But its not getting installed even after resolving dependencies such as libdrm, dri2proto, libpthread-stubs.

Are there any rpm distributions available for mesa libraries on Suse?

View 2 Replies View Related

Red Hat :: RHEL6 Have Ia32-libs (or Equivalent)?

Feb 10, 2011

I recently upgraded my RHEL system from 5.5 to 6.0. When I went to install a 32-bit application I got the normal failure for missing 32-bit libs (/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory). With RHEL5, simply installing ia32-libs takes care of this problem.

In this case, a "yum search ia32-libs" shows no such package exits. So either it doesn't exist or I've got a yum config problem (although I can pull x86_64 packages just fine). If it doesn't exist, is there an equivalent package?

View 1 Replies View Related

Debian :: Cannot Locate Ia32-libs Package

Sep 11, 2011

I am trying to locate the ia32-libs package, no luck. This is for squeeze. Is there a source (for inclusion in sources.list) that serves this package?

View 2 Replies View Related

Fedora :: Gecko-Libs Dependency Error In Yum

Jul 23, 2009

Last night I was updating my system and I ran into some dependency errors. It seems like gecko-libs is having problems. here are my yum update results.

Code:
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package epiphany.i586 0:2.26.3-1.fc11 set to be updated
---> Package firefox.i586 0:3.5.1-1.fc11 set to be updated
--> Processing Dependency: gecko-libs = 1.9.1 for package: epiphany-2.26.3-1.fc11.i586
---> Package xulrunner.i586 0:1.9.1.1-1.fc11 set to be updated
---> Package yelp.i586 0:2.26.0-5.fc11 set to be updated
--> Finished Dependency Resolution
epiphany-2.26.3-1.fc11.i586 from updates has depsolving problems
--> Missing Dependency: gecko-libs = 1.9.1 is needed by package epiphany-2.26.3-1.fc11.i586 (updates)
Error: Missing Dependency: gecko-libs = 1.9.1 is needed by package epiphany-2.26.3-1.fc11.i586 (updates)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest

Code:
sudo rpm -qa|grep yum
yum-3.2.23-3.fc11.noarch
yum-metadata-parser-1.1.2-12.fc11.i586
anaconda-yum-plugins-1.0-4.fc11.noarch
yum-utils-1.1.22-1.fc11.noarch
PackageKit-yum-0.4.8-2.fc11.i586
PackageKit-yum-plugin-0.4.8-2.fc11.i586
yumex-2.0.5-6.fc11.noarch

View 14 Replies View Related

Fedora X86/64bit :: 32 Bit Compatibility On FC10 - C++ Libs

Oct 22, 2009

I assumed this had to be a FAQ, but after hours of searching, how to do this on FC11, but that didn't work with the yum on FC10. I don't need a huge list, but at least the basics (ld-linux.so, and I imagine the C++ compatibility libs).

View 2 Replies View Related

OpenSUSE :: SpiderOak Incompatible Qt Libs In 11.4 After KDE 4.6.3 Upgrade

May 27, 2011

After upgrading KDE from 4.6.0 to 4.6.3 SpiderOak will fail to run with message. Cannot mix incompatible Qt library (version 0x40703) with this library (version 0x40701). There's no more SO package in Non-OSS, apparently due to some support issues. That's a pity, since Dropbox had conceded access to US agencies, IMO SpiderOak is a really good option, and has been working very nicely until now. Anyway, Yast tells me that KDE 4.6.0 uses Qt 4.7.1, while 4.6.3 brings in Qt 4.7.3. A possible solution may be found here, originally for Qt 4.7.2. I'll try it and report.

View 5 Replies View Related

Debian :: Coexistence Of 64 / 32 Bits Libs In Squeeze

Mar 22, 2011

There are three new "k1DZ 1n the Block" for CAD users in Linux :
Bricscad
Ares Commander Edition
Draftsight

there used to be Varicad, which also runs in 64 bits natively, as well as QCad ( 2D only ) and BRLCAD ( more of a solid modeler than a Drafting program ), both built from source. Those new K1dZ out there are awesome, but they only run in 32 bits. My system is Squeeze 64 Bits and has multilib enabled... i can install the *deb, and it complains about architecture, so i use --force.. default install is in /opt... still this asks for some libraruies which i do have for 64bits, but do not exist for 32...

So my questions are :
Should I install these 32 bits libraries to run the application ( mostly issues related to rendering ) they would land in /usr/lib32/...
But naming convention in apt or synaptic would still refer them by the same name as their 64 bits counterparts. How does apt (synaptic ) deals with this?

I find all this to much of an unnatural thing to do to my Squeeze install just to make an app fit and run. So far I can remove the app using synaptic but I am very reticent about installing those 32 bits specific libs required by the app. I already have the ia32-libs metapackage installed.

View 3 Replies View Related

Software :: Build The Required Libs For SynCE?

Jul 16, 2011

Trying to build the required libs for synCE, www.synce.org, as listed in their web site under building from sources. Came upon a snag, on building the odccm library which needs gnet-2. I loaded gnet-2 from my distribution DVD, and then did an #ldconfig afterwards, but it still says that it needs gnet-2. Not sure why it can't see it. I tried to build gnet-2 from source, but had a difficult time finding it as it is deprecated and Gnome only had the latest build which did not build (errors).

From configure script for odccm-0.11: no package 'gnet-2.0' found. Part of configure script is below.

Code:
if test -n "$PKG_CONFIG"; then
if test -n "$GNET_CFLAGS"; then
pkg_cv_GNET_CFLAGS="$GNET_CFLAGS"
else
if test -n "$PKG_CONFIG" &&

[Code]...

View 3 Replies View Related

Programming :: G++ Linking Error With Multiple Libs

Jan 9, 2011

I tried to link my executable program with 2 static libraries using g++. The 2 static libraries have the same function name. I'm expecting a "multiple definition" linking error from the linker, but I did not received.

Code:

//staticLibA.h
#ifndef _STATIC_LIBA_HEADER
#define _STATIC_LIBA_HEADER
int hello(void);

[code]....

View 4 Replies View Related

Programming :: Shared Libs - Multiple Files In C++?

Oct 20, 2010

I'm trying to change a group of cpp files to one shared lib. I have created a shared lib with a single file. I then did this with a group of files. The difference in what I'm doing is that before with the single file, .a, was added into a single .o file. Now I'm trying to add it to my main.cpp file which is NOT a .o file. I'm now getting these compiler errors from the main.cpp where is doesn't seem to recognize the semaphores.Example Error: undefined reference to `sem_wait'If I were not to use the share libs this compiles and runs as I expected it to.Something tells me this is a compiler flag issue, at least I hope it is

View 1 Replies View Related

Slackware :: Tools To Purge Unused Pkg/libs?

Jun 30, 2011

Are there some effective tools to purge the system of unused libs/pkg and other files?Till now I found localepurge (i do not remember where i found it) which does some trick, but I am sure there is a lot of other things laying around in Slack with no real reason to be there in some minimal installation.I found also unsuedpkg in google.code, but it does nothing on a fresh system.Such question won't rise if Slack team wouldn't be forgetting about Slack's significance in server segment and putting big efforts in "deskopisation" of it. I'd be happy seeing directories like xlibs/ and mm_stuff/ where all x related libs and multimedia related ehhh... files could go (I hope developers will see this message).

View 3 Replies View Related

Fedora :: Upgrading Dbus-Libs But Computer Will Not Boot

Oct 21, 2010

I've been having problems with Dolphin hanging on me and I found out that the problem is due to something with dbus 1.2x. So I downloaded the source for dbus 1.3.1 and proceeded to update dbus by incrementally uninstalling and installing all of the packages it requires. Today I noticed that both dbus-libs 1.24 and dbus-libs 1.3.1 were installed, so I went to get rid of the 1.2 version so that yum would stop telling me there was a conflict.

This is what I did:
Code:
su
rpm -e --nodeps dbus-libs
rpm -Uvh file:///root/rpmbuild/RPMS/X86_64/dbus-libs(versionNum).rpm

I ran that once and restarted, but I think that something happened the first time because rather than it replacing the 1.2x version with 1.3.1 all that was left was 1.2x. So I did the same process as the last time, but after removing dbus-libs I forgot the path to the RPMbuild so I closed konsole and tried to open Dolphin. Well, obviously that's not going to work. So then I, even more stupidly, restarted... And now Fedora won't boot up. How do I reinstall dbus-libs without a bootable Fedora?

View 2 Replies View Related

Programming :: Cross-compile Some Libs For Using In A ARM11 Board

Apr 14, 2011

I need to cross-compile some libs for using in a ARM11 board running Linux (at this time, 2.6.28, but I'll try update it... and for costs reason, maybe it turns on a ARM9 board). The libs are libfprint, libusb-1.0 (that is a requirement of libfprint), libSDL (and some of its extensions) and maybe libsqlite3. How I can make this, with the development files in the host machine (an Ubuntu 10.04 32bits machine) and the runtime files at the host ARM11 Board.

View 6 Replies View Related

Red Hat / Fedora :: Corrupted Libs: Kernel Panic Error

Feb 14, 2011

I untared a few libs on the wrong server (that's the when you're supposed to start laughing!) and I corrupted my server. Everytime it boots up, I get the following error:

/sbin/init: relocation error: /lib/tls/libc.so.6: symbol _dl_out_of_memory, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference. Kernel panic - not syncing. Attempted to kill init!

I can I restore the original libs? I'm running RHEL 2.6.9-42 on a Proliant DL585.

View 6 Replies View Related

General :: Installed Qt Libs - Set Environmental Variable PATH

Sep 5, 2010

I have bash. I installed Qt libs and want to set environmental variable PATH, I tried some stuff from qt tutorials..

Here is what i tried:

Code:

and it does nothing so i tried

Code:

then checked path

Code:

Now there are two issues
1) the make gives error that header not found( probably make don't have the path)

2) when i closed the terminal and opened it again the PATH I newly entered was not there !

View 3 Replies View Related







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