LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-07-2004, 12:36 PM   #1
gazza
Member
 
Registered: Jun 2003
Distribution: Mandrake 10.1 Official
Posts: 157

Rep: Reputation: 30
dcraw


I have a new Nikon D70, and the dcraw site says that *is* supported.

When I follow the instrctions on the dcraw web site which are :

"gcc -o dcraw -O3 dcraw.c -lm -ljpeg"

I get a this long list of errors,


==============================cut===========================================

dcraw.c:34:21: jpeglib.h: No such file or directory
dcraw.c:58: warning: redefinition of `ushort'
/usr/include/sys/types.h:152: warning: `ushort' previously declared here
dcraw.c:1209: error: parse error before "fill_input_buffer"
dcraw.c:1209: error: parse error before "cinfo"
dcraw.c: In function `fill_input_buffer':
dcraw.c:1216: error: `cinfo' undeclared (first use in this function)
dcraw.c:1216: error: (Each undeclared identifier is reported only once
dcraw.c:1216: error: for each function it appears in.)
dcraw.c:1218: error: `TRUE' undeclared (first use in this function)
dcraw.c: In function `kodak_jpeg_load_raw':
dcraw.c:1223: error: storage size of `cinfo' isn't known
dcraw.c:1224: error: storage size of `jerr' isn't known
dcraw.c:1225: error: `JSAMPARRAY' undeclared (first use in this function)
dcraw.c:1225: error: parse error before "buf"
dcraw.c:1226: error: `pixel' undeclared (first use in this function)
dcraw.c:1226: error: subscripted value is neither array nor pointer
dcraw.c:1233: error: `TRUE' undeclared (first use in this function)
dcraw.c:1242: error: `buf' undeclared (first use in this function)
dcraw.c:1243: error: `j_common_ptr' undeclared (first use in this function)
dcraw.c:1243: error: `JPOOL_IMAGE' undeclared (first use in this function)
==============================cut========================================

Also i downloaded the gimp plugin as well from the same site which says *once i have installed the dcraw* i can then install the gimp plugin with the command :

" gimptool --install rawphoto.c"


but when i try this i also get a long list of errors :

=====================================cut=================================

gcc -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -o /home/joda/.gimp-1.2/plug-ins/rawphoto rawphoto.c -L/usr/lib -lgimpui -lgimp -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm
rawphoto.c:27:21: gtk/gtk.h: No such file or directory
rawphoto.c:29:26: libgimp/gimp.h: No such file or directory
rawphoto.c:30:28: libgimp/gimpui.h: No such file or directory
rawphoto.c:31:30: libgimp/gimpintl.h: No such file or directory
rawphoto.c:33:23: missing binary operator before token "("
rawphoto.c:40: error: parse error before '*' token
rawphoto.c:46: error: parse error before "load_dialog"
rawphoto.c:46: error: parse error before '*' token
rawphoto.c:46: warning: type defaults to `int' in declaration of `load_dialog'
rawphoto.c:46: warning: data definition has no type or storage class
rawphoto.c:47: error: parse error before "load_image"
rawphoto.c:47: error: parse error before '*' token
rawphoto.c:47: warning: type defaults to `int' in declaration of `load_image'
rawphoto.c:47: warning: data definition has no type or storage class
rawphoto.c:49: error: parse error before "PLUG_IN_INFO"
rawphoto.c:49: warning: type defaults to `int' in declaration of `PLUG_IN_INFO'
rawphoto.c:51: warning: initialization makes integer from pointer without a castrawphoto.c:52: warning: excess elements in scalar initializer
rawphoto.c:52: warning: (near initialization for `PLUG_IN_INFO')
rawphoto.c:53: warning: excess elements in scalar initializer
rawphoto.c:53: warning: (near initialization for `PLUG_IN_INFO')
rawphoto.c:54: warning: excess elements in scalar initializer
rawphoto.c:54: warning: (near initialization for `PLUG_IN_INFO')
rawphoto.c:55: warning: data definition has no type or storage class
rawphoto.c:58: error: parse error before "gboolean"
rawphoto.c:58: warning: no semicolon at end of struct or union
rawphoto.c:59: warning: type defaults to `int' in declaration of `spin_val'
rawphoto.c:59: warning: data definition has no type or storage class
rawphoto.c:60: error: parse error before '}' token
rawphoto.c:60: warning: type defaults to `int' in declaration of `cfg'
rawphoto.c:61: warning: braces around scalar initializer
rawphoto.c:61: warning: (near initialization for `cfg')
rawphoto.c:61: error: `FALSE' undeclared here (not in a function)
rawphoto.c:61: error: initializer element is not constant
rawphoto.c:61: error: (near initialization for `cfg')
rawphoto.c:61: error: `FALSE' undeclared here (not in a function)
rawphoto.c:61: warning: excess elements in scalar initializer
rawphoto.c:61: warning: (near initialization for `cfg')
rawphoto.c:61: error: `FALSE' undeclared here (not in a function)
rawphoto.c:61: warning: excess elements in scalar initializer
rawphoto.c:61: warning: (near initialization for `cfg')
rawphoto.c:61: error: `FALSE' undeclared here (not in a function)
rawphoto.c:61: warning: excess elements in scalar initializer
rawphoto.c:61: warning: (near initialization for `cfg')
rawphoto.c:61: error: `FALSE' undeclared here (not in a function)
rawphoto.c:61: warning: excess elements in scalar initializer
rawphoto.c:61: warning: (near initialization for `cfg')
rawphoto.c:61: error: initializer element is not constant
rawphoto.c:61: error: (near initialization for `cfg')
rawphoto.c:62: warning: braces around scalar initializer
rawphoto.c:62: warning: (near initialization for `cfg')
rawphoto.c:62: warning: excess elements in scalar initializer
rawphoto.c:62: warning: (near initialization for `cfg')
rawphoto.c:62: warning: excess elements in scalar initializer
rawphoto.c:62: warning: (near initialization for `cfg')
rawphoto.c:62: warning: excess elements in scalar initializer
rawphoto.c:62: warning: (near initialization for `cfg')
rawphoto.c:62: warning: excess elements in scalar initializer
rawphoto.c:62: warning: (near initialization for `cfg')
rawphoto.c:63: warning: data definition has no type or storage class
rawphoto.c:67: warning: return type defaults to `int'
rawphoto.c: In function `MAIN':
rawphoto.c:68: error: storage class specified for parameter `query'
rawphoto.c:68: error: parse error before '{' token
rawphoto.c:75: warning: type defaults to `int' in declaration of `GimpParamDef'
rawphoto.c:75: error: storage class specified for parameter `GimpParamDef'
rawphoto.c:75: error: parse error before "load_return_vals"
rawphoto.c:75: error: declaration for parameter `GimpParamDef' but no such parameter
rawphoto.c:68: error: declaration for parameter `query' but no such parameter
rawphoto.c:77: error: `GIMP_PDB_IMAGE' undeclared (first use in this function)
rawphoto.c:77: error: (Each undeclared identifier is reported only once
rawphoto.c:77: error: for each function it appears in.)
rawphoto.c:77: warning: left-hand operand of comma expression has no effect
rawphoto.c:77: warning: left-hand operand of comma expression has no effect
rawphoto.c:77: error: parse error before '}' token
rawphoto.c:80: error: syntax error before "num_load_args"
rawphoto.c:82: error: syntax error before "num_load_return_vals"
rawphoto.c:85: warning: implicit declaration of function `gimp_install_procedure'
rawphoto.c:93: error: `GIMP_PLUGIN' undeclared (first use in this function)
rawphoto.c:94: error: `num_load_args' undeclared (first use in this function)
rawphoto.c:95: error: `num_load_return_vals' undeclared (first use in this function)
rawphoto.c:96: error: `load_args' undeclared (first use in this function)
rawphoto.c:97: error: `load_return_vals' undeclared (first use in this function)rawphoto.c:99: warning: implicit declaration of function `gimp_register_load_handler'
rawphoto.c: At top level:
rawphoto.c:103: error: parse error before '*' token
rawphoto.c: In function `run':
rawphoto.c:109: error: syntax error before "values"
rawphoto.c:110: error: `GimpRunModeType' undeclared (first use in this function)rawphoto.c:111: error: `GimpPDBStatusType' undeclared (first use in this function)
rawphoto.c:112: error: `gint32' undeclared (first use in this function)
rawphoto.c:113: error: `gchar' undeclared (first use in this function)
rawphoto.c:113: error: `command' undeclared (first use in this function)
rawphoto.c:113: error: `fname' undeclared (first use in this function)
rawphoto.c:113: warning: left-hand operand of comma expression has no effect
rawphoto.c:116: error: `nreturn_vals' undeclared (first use in this function)
rawphoto.c:117: error: `return_vals' undeclared (first use in this function)
rawphoto.c:117: error: `values' undeclared (first use in this function)
rawphoto.c:119: error: `status' undeclared (first use in this function)
rawphoto.c:119: error: `GIMP_PDB_CALLING_ERROR' undeclared (first use in this function)
rawphoto.c:120: error: `name' undeclared (first use in this function)
rawphoto.c:122: error: `GIMP_PDB_EXECUTION_ERROR' undeclared (first use in this
function)
rawphoto.c:123: error: `param' undeclared (first use in this function)
rawphoto.c:124: warning: implicit declaration of function `g_malloc'
rawphoto.c:133: warning: implicit declaration of function `g_free'
rawphoto.c:136: warning: implicit declaration of function `g_message'
rawphoto.c:136: warning: implicit declaration of function `_'
rawphoto.c:140: warning: implicit declaration of function `gimp_run_procedure2'
rawphoto.c:140: error: `nparams' undeclared (first use in this function)
rawphoto.c:146: warning: implicit declaration of function `gimp_get_data'
rawphoto.c:147: error: `GIMP_PDB_CANCEL' undeclared (first use in this function)rawphoto.c:148: error: `run_mode' undeclared (first use in this function)
rawphoto.c:149: error: `GIMP_RUN_INTERACTIVE' undeclared (first use in this function)
rawphoto.c:153: error: `image_id' undeclared (first use in this function)
rawphoto.c:157: error: `GIMP_PDB_IMAGE' undeclared (first use in this function)
rawphoto.c:159: error: `GIMP_PDB_SUCCESS' undeclared (first use in this function)
rawphoto.c:160: warning: implicit declaration of function `gimp_set_data'
rawphoto.c:163: error: `GIMP_PDB_STATUS' undeclared (first use in this function)rawphoto.c: At top level:
rawphoto.c:167: error: parse error before "load_image"
rawphoto.c:167: error: parse error before '*' token
rawphoto.c:168: warning: return type defaults to `int'
rawphoto.c: In function `load_image':
rawphoto.c:171: error: `gint32' undeclared (first use in this function)
rawphoto.c:171: error: parse error before "image"
rawphoto.c:172: error: `GimpDrawable' undeclared (first use in this function)
rawphoto.c:172: error: `drawable' undeclared (first use in this function)
rawphoto.c:173: error: `GimpPixelRgn' undeclared (first use in this function)
rawphoto.c:173: error: parse error before "pixel_region"
rawphoto.c:174: error: `guchar' undeclared (first use in this function)
rawphoto.c:174: error: `pixel' undeclared (first use in this function)
rawphoto.c:177: error: `filename' undeclared (first use in this function)
rawphoto.c:177: warning: assignment makes pointer from integer without a cast
rawphoto.c:181: error: request for member `check_val' in something not a structure or union
rawphoto.c:182: error: request for member `check_val' in something not a structure or union
rawphoto.c:183: error: request for member `check_val' in something not a structure or union
rawphoto.c:184: error: request for member `check_val' in something not a structure or union
rawphoto.c:185: error: request for member `check_val' in something not a structure or union
rawphoto.c:186: error: request for member `spin_val' in something not a structure or union
rawphoto.c:186: error: request for member `spin_val' in something not a structure or union
rawphoto.c:186: error: request for member `spin_val' in something not a structure or union
rawphoto.c:186: error: request for member `spin_val' in something not a structure or union
rawphoto.c:202: error: `image' undeclared (first use in this function)
rawphoto.c:202: warning: implicit declaration of function `gimp_image_new'
rawphoto.c:202: error: `GIMP_RGB' undeclared (first use in this function)
rawphoto.c:209: warning: implicit declaration of function `gimp_image_set_filename'
rawphoto.c:212: error: `layer' undeclared (first use in this function)
rawphoto.c:212: warning: implicit declaration of function `gimp_layer_new'
rawphoto.c:213: error: `GIMP_RGB_IMAGE' undeclared (first use in this function)
rawphoto.c:213: error: `GIMP_NORMAL_MODE' undeclared (first use in this function)
rawphoto.c:214: warning: implicit declaration of function `gimp_image_add_layer'rawphoto.c:217: warning: implicit declaration of function `gimp_drawable_get'
rawphoto.c:218: warning: implicit declaration of function `gimp_pixel_rgn_init'
rawphoto.c:218: error: `pixel_region' undeclared (first use in this function)
rawphoto.c:219: error: `TRUE' undeclared (first use in this function)
rawphoto.c:219: error: `FALSE' undeclared (first use in this function)
rawphoto.c:222: warning: implicit declaration of function `gimp_tile_height'
rawphoto.c:223: warning: implicit declaration of function `g_new'
rawphoto.c:231: warning: implicit declaration of function `gimp_pixel_rgn_set_rect'
rawphoto.c:237: warning: implicit declaration of function `gimp_drawable_flush'
rawphoto.c:238: warning: implicit declaration of function `gimp_drawable_detach'rawphoto.c: At top level:
rawphoto.c:244: error: parse error before "result"
rawphoto.c:244: warning: type defaults to `int' in declaration of `result'
rawphoto.c:244: error: `FALSE' undeclared here (not in a function)
rawphoto.c:244: warning: data definition has no type or storage class
rawphoto.c:246: error: parse error before '*' token
rawphoto.c: In function `callback_ok':
rawphoto.c:248: error: `TRUE' undeclared (first use in this function)
rawphoto.c:249: warning: implicit declaration of function `gtk_widget_destroy'
rawphoto.c:249: warning: implicit declaration of function `GTK_WIDGET'
rawphoto.c:249: error: `data' undeclared (first use in this function)
rawphoto.c: At top level:
rawphoto.c:252: error: parse error before "load_dialog"
rawphoto.c:252: error: parse error before '*' token
rawphoto.c:253: warning: return type defaults to `int'
rawphoto.c: In function `load_dialog':
rawphoto.c:254: error: `GtkWidget' undeclared (first use in this function)
rawphoto.c:254: error: `dialog' undeclared (first use in this function)
rawphoto.c:255: error: `table' undeclared (first use in this function)
rawphoto.c:256: error: `GtkObject' undeclared (first use in this function)
rawphoto.c:256: error: `adj' undeclared (first use in this function)
rawphoto.c:257: error: `widget' undeclared (first use in this function)
rawphoto.c:265: warning: implicit declaration of function `gimp_ui_init'
rawphoto.c:265: error: `TRUE' undeclared (first use in this function)
rawphoto.c:267: warning: implicit declaration of function `gimp_dialog_new'
rawphoto.c:268: error: `gimp_standard_help_func' undeclared (first use in this function)
rawphoto.c:269: error: `GTK_WIN_POS_MOUSE' undeclared (first use in this function)
rawphoto.c:270: error: `FALSE' undeclared (first use in this function)
rawphoto.c:272: error: `gtk_widget_destroy' undeclared (first use in this function)
rawphoto.c:275: warning: implicit declaration of function `gtk_signal_connect'
rawphoto.c:275: warning: implicit declaration of function `GTK_OBJECT'
rawphoto.c:275: warning: implicit declaration of function `GTK_SIGNAL_FUNC'
rawphoto.c:275: error: `gtk_main_quit' undeclared (first use in this function)
rawphoto.c:277: warning: implicit declaration of function `gtk_table_new'
rawphoto.c:278: warning: implicit declaration of function `gtk_container_set_border_width'
rawphoto.c:278: warning: implicit declaration of function `GTK_CONTAINER'
rawphoto.c:280: warning: implicit declaration of function `gtk_box_pack_start'
rawphoto.c:280: warning: implicit declaration of function `GTK_BOX'
rawphoto.c:280: warning: implicit declaration of function `GTK_DIALOG'
rawphoto.c:280: error: invalid type argument of `->'
rawphoto.c:281: warning: implicit declaration of function `gtk_widget_show'
rawphoto.c:285: warning: implicit declaration of function `gtk_check_button_new_with_label'
rawphoto.c:287: warning: implicit declaration of function `gtk_toggle_button_set_active'
rawphoto.c:287: warning: implicit declaration of function `GTK_TOGGLE_BUTTON'
rawphoto.c:287: error: request for member `check_val' in something not a structure or union
rawphoto.c:289: warning: implicit declaration of function `gtk_table_attach'
rawphoto.c:289: warning: implicit declaration of function `GTK_TABLE'
rawphoto.c:289: error: `GTK_FILL' undeclared (first use in this function)
rawphoto.c:291: error: `gimp_toggle_button_update' undeclared (first use in this function)
rawphoto.c:292: error: request for member `check_val' in something not a structure or union
rawphoto.c:297: warning: implicit declaration of function `gtk_label_new'
rawphoto.c:298: warning: implicit declaration of function `gtk_misc_set_alignment'
rawphoto.c:298: warning: implicit declaration of function `GTK_MISC'
rawphoto.c:299: warning: implicit declaration of function `gtk_misc_set_padding'rawphoto.c:304: warning: implicit declaration of function `gimp_spin_button_new'rawphoto.c:304: error: request for member `spin_val' in something not a structure or union
rawphoto.c:308: error: `gimp_float_adjustment_update' undeclared (first use in this function)
rawphoto.c:309: error: request for member `spin_val' in something not a structure or union
rawphoto.c:315: warning: implicit declaration of function `gtk_main'
rawphoto.c:316: warning: implicit declaration of function `gdk_flush'
/usr/include/bits/string2.h: At top level:
rawphoto.c:39: warning: `query' declared `static' but never defined
=================================cut======================================

Yes i know that i shouldnt be trying to install the plugin before I have installed dcraw but i thought id post the errors just in case they may offer more information as the what the problem may be.


Can anyone help ?

All I want to do is load the raw (NEF) files into gimp, but what a pain in the ass to sort out !

Its at times like this when I look at the Win XP disks and think should I .
 
Old 01-21-2005, 04:47 PM   #2
windowsfree
LQ Newbie
 
Registered: Feb 2003
Location: Halifax Nova Scotia
Distribution: Mandrake 10.1 and Topogo Linux
Posts: 12

Rep: Reputation: 0
You should try to install dcraw with rpmdrake (after you set up your urpmi sources at easyurpmi), I just did and haven't had any errors with either my canon 300D or my nikon D1x, good luck!
 
Old 09-16-2005, 11:30 AM   #3
mariealline
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Rep: Reputation: 0
Quote:
Originally posted by windowsfree
You should try to install dcraw with rpmdrake (after you set up your urpmi sources at easyurpmi), I just did and haven't had any errors with either my canon 300D or my nikon D1x, good luck!

What is rpmdrake and what is (after you set up your urpmi sources at easyurpmi)? Please explain.


Thank you,
mariealline
 
Old 09-16-2005, 11:36 AM   #4
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Quote:
Originally posted by mariealline
What is rpmdrake and what is (after you set up your urpmi sources at easyurpmi)? Please explain.


Thank you,
mariealline
Welcome to LQ.org. Rpmdrake is a gui to install/remove software in Mandrake. You can find more info about that right here:

http://clug.net.nz/index.php/RPMdrake

And here you will find a complete tutorial about setting up rpmdrake and urpmi:

http://www.mandrakehelp.com/RPM-HOWTO.html

Regards!
 
Old 09-16-2005, 12:21 PM   #5
mariealline
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Rep: Reputation: 0
Thanks for the answers. I have to find out exactly what version of linux is on my server. I know we have redhat linux but it seems there are many different versions of linux. When I find that out for sure I will let you know what it is but I dont' think it's mandrake so I still have to find out what version of dcraw I have to install on what version of linux.

Thank you,
Marie Alline
 
Old 09-16-2005, 01:09 PM   #6
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
You're welcome. Well, you could try typing "uname -r", "uname -a" and "uname -s" at the shell. It usually gives some good tips about what distribution of Linux you are using.

You could always compile the applications though. Should work pretty much on any Linux distribution, if you have the dependencies installed. Take a look into this link to learn how to install applications in Linux in a more "generic" way, be it from source or .rpm's:

http://www.linuxquestions.org/questi...threadid=45094

Good luck!
 
Old 09-16-2005, 04:33 PM   #7
mariealline
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Rep: Reputation: 0
Well, the noc at my server is telling me we have redhat 9.0

I downloaded dcraw.c from this page: http://www.cybercom.net/~dcoffin/dcraw/

Then I copied to my root directory using WinSCP3

I logged into root with putty and ran these commands as the instructions on the above page told me to do.

I got this error: gcc: dcraw.c: No such file or directory

I'm really not sure where to go from here.

Do I have to compile that file somehow or do I have the wrong file or what?

Sorry, I am really new to this application and have no idea what to do with it.

Thank you,
Marie Alline

 
  


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
RAW images - dcraw jaa1180 Linux - Software 7 03-17-2004 06:02 PM
dcraw 48 bit davidschob Linux - Software 0 03-04-2004 04:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:18 PM.

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