POV-Ray : Newsgroups : povray.unix : jpeg_pov.o Server Time
8 Jul 2024 17:32:11 EDT (-0400)
  jpeg_pov.o (Message 10 to 19 of 19)  
<<< Previous 9 Messages Goto Initial 10 Messages
From: David Burnett
Subject: Re: jpeg_pov.o
Date: 18 Apr 2003 09:49:44
Message: <pan.2003.04.18.13.49.03.221452@ntlworld.com>
On Thu, 17 Apr 2003 22:51:43 -0400, MidnightLightning wrote:

 userdisp.o userio.o vbuffer.o  vlbuffer.o warps.o unix.o povxlib.o  -ltiff
> -lpng -lz -lm  -lX11 -L/home/boydb/downloads/jpeg-6b/libjpeg.a
> Undefined                       first referenced
> jpeg_set_quality                    jpeg_pov.o
> etc, etc, etc, same errors as before.
> 
> Did I put that in the correct place, or can you better explain where to put
> it in the Makefile?

You're no quite there, you need -L/home/boydb/downloads/jpeg-6b and
-ljpeg

Note that the -L/home... needs to be before the -ltiff -png etc and it
is a path to the directory the library is in, not the library, and it may
or may not require a trailing /, but more than likely not.

Dave


Post a reply to this message

From: Warp
Subject: Re: jpeg_pov.o
Date: 18 Apr 2003 14:15:42
Message: <3ea040ce@news.povray.org>
MidnightLightning <nomail@nomail> wrote:
> I'm using sh shell

  Which perverted system gives you sh as default shell?
  If you really use the command-line even a bit, you should promptly change
to something better, such as zsh (see 'man chsh').

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Christopher James Huff
Subject: Re: jpeg_pov.o
Date: 18 Apr 2003 19:23:34
Message: <cjameshuff-779756.19230218042003@netplex.aussie.org>
In article <3ea040ce@news.povray.org>, Warp <war### [at] tagpovrayorg> 
wrote:

>   Which perverted system gives you sh as default shell?
>   If you really use the command-line even a bit, you should promptly change
> to something better, such as zsh (see 'man chsh').

I personally have always got along with tcsh, the default under Mac OS 
X. (In fact, /bin/sh used to be just a link to /bin/tcsh...in Jaguar it 
is a version of bash, which is another shell I've seen highly 
recommended.)

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Warp
Subject: Re: jpeg_pov.o
Date: 18 Apr 2003 22:10:33
Message: <3ea0b019@news.povray.org>
Christopher James Huff <cja### [at] earthlinknet> wrote:
> In fact, /bin/sh used to be just a link to /bin/tcsh...

  Then that system is broken and you won't be able to run regular sh script
files in that system.
  An extremely simple example:

for F in a b c; do echo $F ; done

  In tcsh it will give:

for: Command not found.

  Aargh!

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: jpeg_pov.o
Date: 19 Apr 2003 04:34:05
Message: <3ea109fd@news.povray.org>
In article <3ea0b019@news.povray.org> , Warp <war### [at] tagpovrayorg>  wrote:

> for: Command not found.
>
>   Aargh!

Yes, the given example does give this message.  However, I haven't noticed
problems with scripts from common (Free/Open)BSD packages...

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Warp
Subject: Re: jpeg_pov.o
Date: 19 Apr 2003 09:29:30
Message: <3ea14f39@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
> Yes, the given example does give this message.  However, I haven't noticed
> problems with scripts from common (Free/Open)BSD packages...

  Either they use a real sh shell or you haven't found a script which
happens to use a typical sh command which tcsh does not support.

  In Linux sh is typically a link to bash. bash is almost completely
sh-compatible, but there are certain things that work differently
(eg. how it handles multiple escaping characters), but these are
seldom used in actual scripts.
  I personally prefer zsh. It has several enhancements which I can't
find in bash, and I have yet to find an sh incompatibility (there might
be some, but I haven't found any yet).

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Christopher James Huff
Subject: Re: jpeg_pov.o
Date: 19 Apr 2003 13:16:43
Message: <cjameshuff-896137.13155119042003@netplex.aussie.org>
In article <3ea0b019@news.povray.org>, Warp <war### [at] tagpovrayorg> 
wrote:

>   Then that system is broken and you won't be able to run regular sh script
> files in that system.

Probably why they changed it in Jaguar.


>   An extremely simple example:
> 
> for F in a b c; do echo $F ; done
> 
>   In tcsh it will give:
> 
> for: Command not found.
> 
>   Aargh!

Last login: Fri Apr 18 19:19:21 on ttyp2
Welcome to Darwin!
[bluebox:~] cjh% sh
sh-2.05a$ for F in a b c; do echo $F ; done
a
b
c
sh-2.05a$ exit
exit
[bluebox:~] cjh% sh --version
GNU bash, version 2.05a.0(1)-release (powerpc-apple-darwin6.0)
Copyright 2001 Free Software Foundation, Inc.
[bluebox:~] cjh%

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Florian Pesth
Subject: Re: jpeg_pov.o
Date: 19 Apr 2003 14:02:09
Message: <3ea18f21$1@news.povray.org>
Warp wrote:
>   I personally prefer zsh. It has several enhancements which I can't
> find in bash, and I have yet to find an sh incompatibility (there might
> be some, but I haven't found any yet).
> 
Can you give some examples? I have compiled a linux system right now 
(after the "linux from scratch" manual), and it should be no big deal to 
compile also zsh, if it's better. I have written some bash scripts, is 
zsh also bash compatibel?

Regards,
Florian Pesth


Post a reply to this message

From: Warp
Subject: Re: jpeg_pov.o
Date: 19 Apr 2003 16:18:07
Message: <3ea1aeff@news.povray.org>
Florian Pesth <fpe### [at] compuservede> wrote:
> Can you give some examples? I have compiled a linux system right now 
> (after the "linux from scratch" manual), and it should be no big deal to 
> compile also zsh, if it's better. I have written some bash scripts, is 
> zsh also bash compatibel?

  I have never used bash, so I don't know what kind of enhancement it has
compared to sh, so I don't know if zsh implements the same enhancements
as well.

  Anyways, some features I like in zsh are for example the configurability
(with the 'setopt' command, which you can use to for example configure
the file completion and command history to work like in tcsh, like in
4dos, or as a hybrid of both (which I personally use), etc), and then
its shortcut and enhanced commands. For example in sh you would write:

for FILE in *.txt; do some_command $FILE; done

  This works ok in zsh, but you can also do it like this:

for FILE (*.txt) some_command $FILE

  (If there are several commands, you can put them inside {} brackets.)

  Moreover, you can do things like this:

for((I=0; I<100; ++I)) echo $I

etc, etc.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: MidnightLightning
Subject: Re: jpeg_pov.o
Date: 20 Apr 2003 21:40:03
Message: <web.3ea34b7c7dc5196f76b67fde0@news.povray.org>
David Burnett wrote:
>On Thu, 17 Apr 2003 22:51:43 -0400, MidnightLightning wrote:
>
> userdisp.o userio.o vbuffer.o  vlbuffer.o warps.o unix.o povxlib.o  -ltiff
>> -lpng -lz -lm  -lX11 -L/home/boydb/downloads/jpeg-6b/libjpeg.a
>> Undefined                       first referenced
>> jpeg_set_quality                    jpeg_pov.o
>> etc, etc, etc, same errors as before.
>>
>> Did I put that in the correct place, or can you better explain where to put
>> it in the Makefile?
>
>You're no quite there, you need -L/home/boydb/downloads/jpeg-6b and
>-ljpeg
>
>Note that the -L/home... needs to be before the -ltiff -png etc and it
>is a path to the directory the library is in, not the library, and it may
>or may not require a trailing /, but more than likely not.
>
>Dave
>

Thank you, that suggestion worked; I successfully finished the make command.
Thank you everyone for your help.

MidnightLightning


Post a reply to this message

<<< Previous 9 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.