LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-11-2007, 09:51 AM   #1
eichmen
LQ Newbie
 
Registered: Mar 2007
Posts: 7

Rep: Reputation: 0
Insert Assembler File In Jpeg Application


Hi,I have modified the jccolor.c file of the jpeg-6a application.I have converted the file to assembler with :
sslittle-na-sstrix-gcc -O2 jccolor.c -S
Then I have replace some code with my mmx code in the function : rgb_ycc_convert.
Now I'm trying to recompile the whole application inserting the jccolor.s file but I donīt know how.

Can somebody tell me how can I compile the whole application inserting my modification
Thank you.
 
Old 05-12-2007, 07:06 AM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 36
gcc file1.c file2.s -o myapp

gcc will treat a .s file as input, just like a .c or .o file. Is that what you mean?
 
Old 05-14-2007, 03:22 AM   #3
eichmen
LQ Newbie
 
Registered: Mar 2007
Posts: 7

Original Poster
Rep: Reputation: 0
The exact problem is :
I have modified the Makefile with :

CC= /home/martin/workspace/bin/sslittle-na-sstrix-gcc -O2 -I/usr/openwin/include -I/home/workspace/simple/sslittle-na-sstrix/include -I/home/workspace/simple/lib/gcc-lib/sslittle-na-sstrix/2.7.2.3 -I.

AR2= /home/martin/workspace/bin/sslittle-na-sstrix-ranlib

LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolormartin_mmx_m.s jcdctmgr.c jchuff.c \
jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \
jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \
jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \
jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \
jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \
jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \
jquant2.c jutils.c jmemmgr.c

CLIBOBJECTS= jcapimin.o jcapistd.o jctrans.o jcparam.o jdatadst.o jcinit.o \
jcmaster.o jcmarker.o jcmainct.o jcprepct.o jccoefct.o jccolormartin_m.s \
jcsample.o jchuff.o jcphuff.o jcdctmgr.o jfdctfst.o jfdctflt.o \
jfdctint.o

where jccolormartin_mmx_m.s is the file I have changed.

When I execute the Makefile this error appears :

/home/martin/workspace/bin/sslittle-na-sstrix-gcc -O2 -I/usr/openwin/include -I/home/workspace/simple/sslittle-na-sstrix/include -I/home/workspace/simple/lib/gcc-lib/sslittle-na-sstrix/2.7.2.3 -I. -o cjpeg cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o cdjpeg.o libjpeg.a
libjpeg.a(jcinit.o): In function `jinit_compress_master':
jcinit.c:31: undefined reference to `jinit_color_converter'
make: *** [cjpeg] Error 1

How can I fix it?

Last edited by eichmen; 05-14-2007 at 03:27 AM.
 
  


Reply



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
How to make a Gnome icon from a picture (jpeg file)? will103 Linux - Software 1 06-10-2006 04:22 AM
How to draw the JPEG file into GtkWidget stny Programming 3 04-26-2006 08:14 PM
Insert date and timestamp Into File name petenyce Linux - Newbie 9 10-13-2005 12:16 PM
Html file to Jpeg or Png? akihandyman Mandriva 2 10-02-2004 10:00 AM
file to convert from pictClipping extension to jpeg - macutils dumpthecore Linux - Newbie 0 11-12-2003 01:07 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:40 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration