[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make is not compiling my files
From: |
Parag N |
Subject: |
Re: make is not compiling my files |
Date: |
Mon, 28 Nov 2005 18:55:23 +0530 |
On 11/28/05, Ralf Wildenhues <address@hidden> wrote:
>
> * Parag N wrote on Mon, Nov 28, 2005 at 11:38:44AM CET:
> > I downloaded source rpm.
>
> What source rpm? Which package? From where? Name, URL needed.
> link to source rpm is
> http://download.fedora.redhat.com/pub/fedora/linux/core/4/SRPMS/sane-backends-1.0.15-9.src.rpm
> > install it in /usr/src/redhat/SOURCES.
>
> So your system is a RedHat or Fedora? Which version?
> my system is RHEL 4.0 with 2.6.9-22.EL kernel
>
> then i extract it. I found directory backend which contains many backend
> > scanner support files. i also want to add my own backend files so i add
> 2
> > files in backend directory and modify Makefile.
>
> Which Makefile.in? You changed the Makefile.in, not the Makefile,
> right?
> extract source from SRPM and the path to make file on my pc is
/usr/src/redhat/SOURCES/sane-backends-1.0.15/backend/Makefile.in
I first change this so that ./configure when generate Makefile it will
have my source files also listed.
> > before modifying Makefile i have to generate it from running
> > configure. I hope i have explained it simple steps what i did and i
> failed
> > to compile those newly added files besides adding them to Makefile and
> then
> > running make on it.
> > if require more explanation ask me.
>
> Yes, it needs more explanation. What are the names of the files you
> added? How _exactly_ did you change the Makefile.in? Show like this:
> copy the original file to Makefile.in.orig and paste
> diff -u Makefile.in.orig Makefile.in
diff -u Makefile.in.orig Makefile.in
--- Makefile.in.orig 2005-11-28 18:43:07.000000000 +0530
+++ Makefile.in 2005-11-28 18:44:38.000000000 +0530
@@ -150,7 +150,7 @@
umax_pp_low.c umax_pp_low.h umax_pp_mid.c umax_pp_mid.h umax-scanner.c \
umax-scanner.h umax-scsidef.h umax-uc1200s.c umax-uc1200se.c
umax-uc1260.c \
umax-uc630.c umax-uc840.c umax-ug630.c umax-ug80.c umax-usb.c v4l.c \
- v4l.conf v4l-frequencies.h v4l.h
+ umax-4100.c umax4100.conf v4l.conf v4l-frequencies.h v4l.h
.PHONY: all clean depend dist distclean install uninstall
@@ -436,6 +436,10 @@
libsane-umax1220u.la: ../sanei/sanei_constrain_value.lo
libsane-umax1220u.la: ../sanei/sanei_usb.lo
libsane-umax1220u.la: ../sanei/sanei_pv8630.lo
+libsane-umax4100.la: ../sanei/sanei_config2.lo
+libsane-umax4100.la: ../sanei/sanei_constrain_value.lo
+libsane-umax4100.la: ../sanei/sanei_scsi.lo
+libsane-umax4100.la: ../sanei/sanei_usb.lo
ifneq ($(DLL_PRELOAD),)
# need to make dll dependent on all sanei files:
Also show how it fails. Copy and paste, do not only use prose to
> explain technical issues.
Sorry but i didnot get how to show this but as u can see in above diff
output. the newly added files umax-4100.c is not compiling only the
original package is compiling besides asking ./configure to generate Makfile
which contains my source files name to be compiled.
how i can say that it failed by checking that umax4100.lo files is not
generated by Make.
Please read http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
> carefully. It is available in several translations, too. I'm sorry
> but if you don't follow those guidelines I'll be unable to help you.
I need help so no problem i am going to follow those guidelines.
I hope this helps u.
Regards,
Parag.
Cheers,
> Ralf
>