Having trouble compiling.

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Having trouble compiling.

Postby Surreal Killa on Sat Mar 01, 2008 9:20 am

Hi. So I installed build-essentials and when I download a program's source and cd to the directory and type ./configure it outputs some info and things seem to be working but when I type make it says there is nothing to make.

"No targets specified and no makefile found."

But I look and there are files called makefile in the directory and even if I specifically point to them with make it says there's nothing to do with that file.
Surreal Killa
Level 1
Level 1
 
Posts: 24
Joined: Sat Mar 01, 2008 9:15 am
Location: Melbourne, Victoria, Australia.

Linux Mint is funded by ads and donations.
 

Re: Having trouble compiling.

Postby MagnusB on Sat Mar 01, 2008 12:08 pm

./configure makes the makefile, if it is aborted due to some error it does not finish, thus compiling will not work. ./configure usually check for:
1. Correct compilers are installed and configured.
2. Correct dependencies are installed and configured.
1 usually goes without issues, but 2 can cause some issues, even if you have the correct package installed it can't find it or something similar.
Can you tell us what you are trying to compile, and post the output of ./configure?
Image
You're not drunk if you can lie on the floor without holding on.
--Dean Martin
MagnusB
Level 6
Level 6
 
Posts: 1255
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway

Re: Having trouble compiling.

Postby Surreal Killa on Sat Mar 01, 2008 12:39 pm

Right now I am trying to compile GPicView 0.1.9.

./configure outputs:

Code: Select all
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... 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 for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
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 whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
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 for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
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 static flag -static 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... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
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++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for ANSI C header files... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PACKAGE... configure: error: Package requirements (gtk+-2.0 >= 2.6.0) were not met:

No package 'gtk+-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables PACKAGE_CFLAGS
and PACKAGE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


So I suppose I need gtk+-2.0?
Surreal Killa
Level 1
Level 1
 
Posts: 24
Joined: Sat Mar 01, 2008 9:15 am
Location: Melbourne, Victoria, Australia.

Re: Having trouble compiling.

Postby MagnusB on Sat Mar 01, 2008 12:45 pm

You should have GTK+ 2.0 installed, at least according to Synaptic (I am using Daryna). Try http://www.getdeb.net/app/GPicView instead...
Image
You're not drunk if you can lie on the floor without holding on.
--Dean Martin
MagnusB
Level 6
Level 6
 
Posts: 1255
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway

Re: Having trouble compiling.

Postby Surreal Killa on Sat Mar 01, 2008 12:51 pm

Well I have a freshly installed and updated Daryna, so I don't know why it isn't there if it's supposed to be. Also, I'm using GPicView as an example. I've tried compiling things before on Ubuntu and it's never worked, so I'm trying to figure out why.
Surreal Killa
Level 1
Level 1
 
Posts: 24
Joined: Sat Mar 01, 2008 9:15 am
Location: Melbourne, Victoria, Australia.

Re: Having trouble compiling.

Postby MagnusB on Sat Mar 01, 2008 1:16 pm

Like it say below, it is looking for GTK, but can't find it (most likely it is placed in a non standard place), I am not sure how to fix this. I got a similar issue when I was trying to compile Transmission, but I used a deb instead.
Ohh, I just saw, you do not have GTK+ 2.6.0 (or above), Daryna use 2.12.2, if I managed to read it correctly.. Try compiling an older version, upgrading GTK+ could be painful... Try compiling GPaint instead, I think that is easier. Compiling could be hard, especially since using a package manager is common today.
But I am not especially experienced with compiling, my success % is well below 50.....
Image
You're not drunk if you can lie on the floor without holding on.
--Dean Martin
MagnusB
Level 6
Level 6
 
Posts: 1255
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway


Return to Newbie Questions

Who is online

Users browsing this forum: austin.texas, Google Adsense [Bot], twomby and 49 guests