LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-18-2003, 02:01 PM   #1
redroge
LQ Newbie
 
Registered: Apr 2003
Posts: 6

Rep: Reputation: 0
library?!


i think i need a library for my linux programming stuff cuz i write a program and i keep getting error 2 when trying to compile.....i have redhat 8 and the the compiler i have is ummm.... the rpm file for it is gcc-objc-3.2-7.i386. thanks guys
 
Old 04-18-2003, 02:05 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,533

Rep: Reputation: 148Reputation: 148
Could you copy the error messages you get? It'd make it easier to find out what you need to do/change/install to fix it.
 
Old 04-18-2003, 02:05 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
the error won't just say "error 2" there will be a useful message you are not reading...

why do you just say you think you need a library???
 
Old 04-18-2003, 03:23 PM   #4
redroge
LQ Newbie
 
Registered: Apr 2003
Posts: 6

Original Poster
Rep: Reputation: 0
alright these are the processing messages i got when i was making a new "project"
Starting with installation
App [Yeah] Type [kde2normal]
unpacking <template.tar.gz> in </root/yeah>...
unpacking <admin.tar.gz> in </root/yeah>...
changing files [kde2normal]...
Starting with configuration
creating configuration files...
>make -f Makefile.dist
This Makefile is only for the CVS repository
This will be deleted before making the distribution
*** Creating acinclude.m4
*** Creating list of subdirectories
*** Creating configure.in
*** Creating aclocal.m4
*** Creating configure
*** Creating config.h template
*** Creating Makefile templates
*** Postprocessing Makefile templates
*** Creating date/time stamp
*** Finished
Don't forget to run ./configure
If you haven't done so in a while, run ./configure --help
QTDIR=/usr/lib/qt3-gcc3.2;
make configure...
>LDFLAGS="" CFLAGS="-O0 -g3 -Wall" CXXFLAGS="-O0 -g3 -Wall"
>./configure
checking build system type...
i686-pc-linux-gnu
checking host system type...
i686-pc-linux-gnu
checking target system type...
i686-pc-linux-gnu
checking for a BSD-compatible install...
/usr/bin/install -c
checking for -p flag to install...
yes
checking whether build environment is sane...
yes
checking for gawk...
gawk
checking whether make sets ${MAKE}...
yes
checking for style of include used by make...
GNU
checking for gcc...
gcc
checking for C compiler default output...
a.out
checking whether the C compiler works...
yes
checking whether we are cross compiling...
no
checking for suffix of executables...
checking for suffix of object files...
o
checking whether we are using the GNU C compiler...
yes
checking whether gcc accepts -g...
yes
checking dependency style of gcc...
gcc
checking how to run the C preprocessor...
gcc -E
checking for g++...
g++
checking whether we are using the GNU C++ compiler...
yes
checking whether g++ accepts -g...
yes
checking dependency style of g++...
gcc
checking whether g++ supports -Wundef...
no
checking whether g++ supports -Wbad-function-cast...
no
checking whether g++ supports -Wno-long-long...
no
checking whether g++ supports -Wnon-virtual-dtor...
no
checking whether g++ supports -fno-exceptions...
no
checking whether g++ supports -fno-check-new...
no
checking whether g++ supports -fexceptions...
no
checking how to run the C++ preprocessor...
g++ -E
checking whether g++ supports -frepo...
no
checking whether g++ supports -instances=explicit...
no
checking for ld used by GCC...
/usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld...
yes
checking for /usr/bin/ld option to reload object files...
-r
checking for BSD-compatible nm...
/usr/bin/nm -B
checking for a sed that does not truncate output...
checking whether ln -s works...
yes
checking how to recognise dependant libraries...
pass_all
checking for ANSI C header files...
yes
checking for sys/types.h...
yes
checking for sys/stat.h...
yes
checking for stdlib.h...
yes
checking for string.h...
yes
checking for memory.h...
yes
checking for strings.h...
yes
checking for inttypes.h...
yes
checking for stdint.h...
yes
checking for unistd.h...
yes
checking dlfcn.h usability...
yes
checking dlfcn.h presence...
yes
checking for dlfcn.h...
yes
checking the maximum length of command line arguments...
32768
checking command to parse /usr/bin/nm -B output from gcc object...
ok
checking for objdir...
.libs
checking for ranlib...
ranlib
checking for strip...
strip
checking if gcc static flag works...
no
checking if gcc supports -fno-rtti -fno-exceptions...
no
checking for gcc option to produce PIC...
-fPIC
checking if gcc PIC flag -fPIC works...
yes
checking if gcc supports -c -o file.o...
yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries...
yes
checking whether -lc should be explicitly linked in...
yes
checking how to hardcode library paths into programs...
immediate
checking whether stripping libraries is possible...
yes
checking dynamic linker characteristics...
GNU/Linux ld.so
checking if libtool supports shared libraries...
yes
checking whether to build shared libraries...
yes
checking whether to build static libraries...
no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking whether the g++ linker (/usr/bin/ld) supports shared libraries...
yes
checking for g++ option to produce PIC...
-fPIC
checking if g++ PIC flag -fPIC works...
yes
checking if g++ supports -c -o file.o...
yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries...
yes
checking whether -lc should be explicitly linked in...
yes
checking how to hardcode library paths into programs...
immediate
checking whether stripping libraries is possible...
yes
checking dynamic linker characteristics...
GNU/Linux ld.so
appending configuration tag "GCJ" to libtool
checking if gcj supports -fno-rtti -fno-exceptions...
(cached)
no
checking for gcj option to produce PIC...
-fPIC
checking if gcj PIC flag -fPIC works...
no
checking if gcj supports -c -o file.o...
no
checking whether the gcj linker (/usr/bin/ld) supports shared libraries...
yes
checking whether -lc should be explicitly linked in...
yes
checking how to hardcode library paths into programs...
immediate
checking whether stripping libraries is possible...
yes
checking dynamic linker characteristics...
GNU/Linux ld.so
checking for msgfmt...
/usr/bin/msgfmt
checking for gmsgfmt...
/usr/bin/msgfmt
checking for xgettext...
/usr/bin/xgettext
checking for main in -lutil...
yes
checking for main in -lcompat...
no
checking for crypt in -lcrypt...
yes
checking for socklen_t...
socklen_t
checking for dnet_ntoa in -ldnet...
no
checking for dnet_ntoa in -ldnet_stub...
no
checking for inet_ntoa...
yes
checking for connect...
yes
checking for remove...
yes
checking for shmat...
yes
checking crt_externs.h usability...
no
checking crt_externs.h presence...
no
checking for crt_externs.h...
no
checking for _NSGetEnviron...
no
checking for sys/types.h...
(cached)
yes
checking for stdint.h...
(cached)
yes
checking for poll in -lpoll...
no
checking CoreAudio/CoreAudio.h usability...
no
checking CoreAudio/CoreAudio.h presence...
no
checking for CoreAudio/CoreAudio.h...
no
checking for res_init...
no
checking for killpg in -lucb...
no
checking for int...
yes
checking size of int...
4
checking for long...
yes
checking size of long...
4
checking for char *...
yes
checking size of char *...
4
checking for char...
yes
checking size of char...
1
checking for dlopen in -ldl...
yes
checking for shl_unload in -ldld...
no
checking for X...
libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for IceConnectionNumber in -lICE...
yes
checking for libXext...
yes
checking for Xinerama...
no
checking for pthread_create in -lpthread...
yes
checking for extra includes...
no
checking for extra libs...
no
checking for libz...
-lz
checking for libpng...
-lpng -lz -lm
checking for libjpeg6b...
no
checking for libjpeg...
-ljpeg
checking for Qt...
creating API documentation...
>kdoc -p -d '/root/yeah/yeah-api' -L/usr/share/doc/kdelibs-devel-3//kdoc-reference -ldcop -linterfaces -lkabc -lkdecore -lkded -lkdefx -lkdejava -lkdeprint -lkdeui -lkfile -lkhtml -lkio -lkjs -lkparts -lkspell -lkssl -lqt *.h
kdoc: reading lib: dcop
kdoc: reading lib: interfaces
kdoc: reading lib: kabc
kdoc: reading lib: kdecore
kdoc: reading lib: kded
kdoc: reading lib: kdefx
kdoc: reading lib: kdejava
kdoc: reading lib: kdeprint
kdoc: reading lib: kdeui
kdoc: reading lib: kfile
kdoc: reading lib: khtml
kdoc: reading lib: kio
kdoc: reading lib: kjs
kdoc: reading lib: kparts
kdoc: reading lib: kspell
kdoc: reading lib: kssl
kdoc: reading lib: qt
kdoc: processing yeahdoc.h
kdoc: processing yeah.h
kdoc: processing yeahview.h
Generating documentation in html format...
creating yeah.pot
>make -f admin/Makefile.common package-messages
READY


now i will place i don't know what these are there not relaly error messages but there some form of message here....


Wide character in print at /usr/bin/aclocal-1.5 line 485.
configure.in:44: warning: do not use m4_patsubst: use patsubst or m4_bpatsubst
configure.in:75: warning: do not use m4_regexp: use regexp or m4_bregexp
autoheader-2.53: `config.h.in' is created
configure: error: Qt (>= Qt 3.0.3) (library qt-mt) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
Make sure that you have compiled Qt with thread support!




thats what it's doin and that library part is what makes me think i need some form of a library.....
 
Old 04-18-2003, 03:49 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
ok, you've not got qt3 installed just like the error mesage says. install it, and the qt3-devel package.
 
Old 04-18-2003, 03:52 PM   #6
redroge
LQ Newbie
 
Registered: Apr 2003
Posts: 6

Original Poster
Rep: Reputation: 0
when i try to install that it says packet already installed......?and won't let me open the archive
 
Old 04-18-2003, 04:46 PM   #7
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
I have just a vague idea your vyeperman3001. You know, you might got an answer if you've given this log the first time instead of mambling about compiling compilers and changing posts after rude comments (http://www.linuxquestions.org/questi...5&pagenumber=1)
Anyways,you do have a compiler on your system, it's not the gcc-obj as that's for object code. It's just the plain normal gcc and appearantly it has been there from the beginning.
As acid_kewpie said, install qt3.
(you will find it on your redhat cd's)
Just to be sure, install every qt and libqt file you find.
If you're absolutely sure qt is installed, try passing
./configure --with-qt-includes= --with-qt-libraries=
and after the = the directory where the qt3 include files/libraries are.
And do add your distro in your personal information, that is if you're not planning on namechanging again now
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which library ? wood@addanc Programming 3 02-20-2005 02:14 PM
adding a bulit in library to my library lg3 Linux - Software 1 10-17-2004 08:19 AM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM
what is the function library of the basic graphics library in rethat9.0? zerwolve Red Hat 0 04-29-2004 09:18 PM
library.. johnyy Linux - Software 2 06-23-2003 10:10 PM


All times are GMT -5. The time now is 02:11 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration