|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I'm in the process of compiling POV-Ray 3.50c to run on a Solaris 8 SPARC
station, and I've gotten through several errors, but this one's stumping
me:
From the /povray/src/ directory:
$ make
roll-loops -fexpensive-optimizations -foptimize-sibling-calls -Wno-multichar
-opovray atmosph.o bbox.o bcyl.o benchmark.o bezier.o blob.o boxes.o
bsphere.o camera.o chi2.o colour.o colutils.o cones.o csg.o discs.o
express.o file_pov.o fncode.o fnintern.o fnpovfpu.o fnsyntax.o fpmetric.o
fractal.o
function.o gif.o gifdecod.o hcmplx.o hfield.o histogra.o iff.o image.o
interior.o
isosurf.o jpeg_pov.o lathe.o lbuffer.o lightgrp.o lighting.o matrices.o
media.o
mesh.o normal.o objects.o octree.o optin.o optout.o parse.o parsestr.o
parstxtr.o
pattern.o pgm.o photons.o pigment.o planes.o png_pov.o point.o poly.o
polygon.o polysolv.o pov_mem.o povms.o povmscpp.o povmsend.o povmsrec.o
povray.o
pov_util.o ppm.o prism.o quadrics.o quatern.o rad_data.o radiosit.o ray.o
render.o
renderio.o sor.o spheres.o sphsweep.o splines.o statspov.o super.o targa.o
texture.o tiff_pov.o tokenize.o torus.o triangle.o truetype.o txttest.o
userdisp.o
userio.o vbuffer.o vlbuffer.o warps.o unix.o povxlib.o -ltiff -lpng -lz
-lm -lX11
Undefined first referenced
symbol in file
jpeg_set_quality jpeg_pov.o
jpeg_write_scanlines jpeg_pov.o
jpeg_destroy_decompress jpeg_pov.o
jpeg_start_compress jpeg_pov.o
jpeg_read_scanlines jpeg_pov.o
jpeg_finish_decompress jpeg_pov.o
jpeg_start_decompress jpeg_pov.o
jpeg_destroy_compress jpeg_pov.o
jpeg_resync_to_restart jpeg_pov.o
jpeg_std_error jpeg_pov.o
jpeg_CreateDecompress jpeg_pov.o
jpeg_set_defaults jpeg_pov.o
jpeg_CreateCompress jpeg_pov.o
jpeg_read_header jpeg_pov.o
jpeg_finish_compress jpeg_pov.o
ld: fatal: Symbol referencing errors. No output written to povray
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `povray'
I have installed jpegsrc.v6b, so I don't know where else to find the various
jpeg libraries it seems to be looking for. Additionally, why is it 'povray'
that's erroring out, not the jpeg_pov.o file?
Any suggestions would be appreciated!
MidnightLightning
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Tue, 15 Apr 2003 13:27:23 -0400, MidnightLightning wrote:
> -ltiff -lpng -lz -lm -lX11
For a guess no -ljpeg ??
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
David Burnett wrote:
>On Tue, 15 Apr 2003 13:27:23 -0400, MidnightLightning wrote:
>> -ltiff -lpng -lz -lm -lX11
>
>For a guess no -ljpeg ??
>
Hmm, don't know if this is a better or worse error message:
$ make
c++ -Wno-multichar -O3 -finline-functions -ffast-math -fomit-frame-pointer
-funroll-loops -fexpensive-optimizations -foptimize-sibling-calls
-Wno-multichar -o povray atmosph.o bbox.o bcyl.o benchmark.o bezier.o
blob.o boxes.o bsphere.o camera.o chi2.o colour.o colutils.o cones.o csg.o
discs.o express.o file_pov.o fncode.o fnintern.o fnpovfpu.o fnsyntax.o
fpmetric.o fractal.o function.o gif.o gifdecod.o hcmplx.o hfield.o
histogra.o iff.o image.o interior.o isosurf.o jpeg_pov.o lathe.o lbuffer.o
lightgrp.o lighting.o matrices.o media.o mesh.o normal.o objects.o
octree.o optin.o optout.o parse.o parsestr.o parstxtr.o pattern.o pgm.o
photons.o pigment.o planes.o png_pov.o point.o poly.o polygon.o polysolv.o
pov_mem.o povms.o povmscpp.o povmsend.o povmsrec.o povray.o pov_util.o
ppm.o prism.o quadrics.o quatern.o rad_data.o radiosit.o ray.o render.o
renderio.o sor.o spheres.o sphsweep.o splines.o statspov.o super.o targa.o
texture.o tiff_pov.o tokenize.o torus.o triangle.o truetype.o txttest.o
userdisp.o userio.o vbuffer.o vlbuffer.o warps.o unix.o povxlib.o -ltiff
-lpng -ljpeg -lz -lm -lX11
ld: fatal: library -ljpeg: not found
ld: fatal: File processing errors. No output written to povray
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `povray'
It seems in the first one it was able to find a JPEG library, but it wasn't
complete, but in this one, there is no such thing as a -ljpeg library.
MidnightLightning
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
MidnightLightning <nomail@nomail> wrote:
> ld: fatal: library -ljpeg: not found
You either don't have libjpeg.so (or libjpeg.a) installed on your system,
or it's not in the search path of the compiler.
If it's the latter case, you need to add a -L/path/to/the/directory
where libjpeg.* is located to the linking command.
--
#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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> ld: fatal: library -ljpeg: not found
> ld: fatal: File processing errors. No output written to povray
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `povray'
>
> It seems in the first one it was able to find a JPEG library, but it wasn't
> complete, but in this one, there is no such thing as a -ljpeg library.
Since you said you installed yourself the libjpeg library,
I assume you did so in a directory you can write to (for instance
somewhere in your home directory). In order to let the linker find
this library, setup the LD_LIBRARY_PATH environment variable, e.g.:
(csh-like)
setenv LD_LIBRARY_PATH /home/you/path/to/libjpeg
or
(sh-like)
export LD_LIBRARY_PATH=/home/you/path/to/libjpeg
Then try linking again.
This environment variable should also be set for running the
program if you linked it with dynamic libraries.
Hope this helps,
- NC
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"MidnightLightning" <nomail@nomail> wrote in message
news:web.3e9d649c7dc5196ff3b9b4a70@news.povray.org...
> David Burnett wrote:
> >On Tue, 15 Apr 2003 13:27:23 -0400, MidnightLightning wrote:
> >> -ltiff -lpng -lz -lm -lX11
> >
> >For a guess no -ljpeg ??
> >
>
> Hmm, don't know if this is a better or worse error message:
>
> $ make
>
c++ -Wno-multichar -O3 -finline-functions -ffast-math -fomit-frame-pointer
> -funroll-loops -fexpensive-optimizations -foptimize-sibling-calls
> -Wno-multichar -o povray atmosph.o bbox.o bcyl.o benchmark.o bezier.o
> blob.o boxes.o bsphere.o camera.o chi2.o colour.o colutils.o cones.o
csg.o
> discs.o express.o file_pov.o fncode.o fnintern.o fnpovfpu.o fnsyntax.o
> fpmetric.o fractal.o function.o gif.o gifdecod.o hcmplx.o hfield.o
> histogra.o iff.o image.o interior.o isosurf.o jpeg_pov.o lathe.o
lbuffer.o
> lightgrp.o lighting.o matrices.o media.o mesh.o normal.o objects.o
> octree.o optin.o optout.o parse.o parsestr.o parstxtr.o pattern.o pgm.o
> photons.o pigment.o planes.o png_pov.o point.o poly.o polygon.o
polysolv.o
> pov_mem.o povms.o povmscpp.o povmsend.o povmsrec.o povray.o pov_util.o
> ppm.o prism.o quadrics.o quatern.o rad_data.o radiosit.o ray.o render.o
> renderio.o sor.o spheres.o sphsweep.o splines.o statspov.o super.o
targa.o
> texture.o tiff_pov.o tokenize.o torus.o triangle.o truetype.o txttest.o
> userdisp.o userio.o vbuffer.o vlbuffer.o warps.o unix.o povxlib.o -ltiff
> -lpng -ljpeg -lz -lm -lX11
> ld: fatal: library -ljpeg: not found
> ld: fatal: File processing errors. No output written to povray
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `povray'
>
> It seems in the first one it was able to find a JPEG library, but it
wasn't
> complete, but in this one, there is no such thing as a -ljpeg library.
>
> MidnightLightning
>
I've had problems similar to this when compiling on linux. It looks as if
you either have no libjpg files or the libjpg-devel files are not in place.
I realize you are not compiling for linux, but as both systems are unix
vaariants, maybe this will give you some place to start.
-->Jeff
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.471 / Virus Database: 269 - Release Date: 4/10/2003
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
>(sh-like)
>export LD_LIBRARY_PATH=/home/you/path/to/libjpeg
>
> Then try linking again.
> This environment variable should also be set for running the
>program if you linked it with dynamic libraries.
>
> Hope this helps,
> - NC
>
I'm using sh shell; should that command run in command line or from the
Makefile? I tried it on command line and got:
$ export LD_LIBRARY_PATH=/home/boydb/downloads/jpeg-6b/
LD_LIBRARY_PATH=/home/boydb/downloads/jpeg-6b/: is not an identifier
That folder has libjpeg.a in it. Should that line be added to the Makefile?
If so, I'm not familiar enough with the language it's written in to figure
that one out.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Warp wrote:
>MidnightLightning <nomail[at]nomail> wrote:
>> ld: fatal: library -ljpeg: not found
>
> You either don't have libjpeg.so (or libjpeg.a) installed on your system,
>or it's not in the search path of the compiler.
> If it's the latter case, you need to add a -L/path/to/the/directory
>where libjpeg.* is located to the linking command.
>
>#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 -
>
It is installed, I found it in one of my directories, and tried adding the
-L switch to the command, but got:
# make
c++ -Wno-multichar -O3 -finline-functions -ffast-math -fomit-frame-pointer
-funroll-loops -fexpensive-optimizations -foptimize-sibling-calls
-Wno-multichar -o povray atmosph.o bbox.o bcyl.o benchmark.o bezier.o
blob.o boxes.o bsphere.o camera.o chi2.o colour.o colutils.o cones.o csg.o
discs.o express.o file_pov.o fncode.o fnintern.o fnpovfpu.o fnsyntax.o
fpmetric.o fractal.o function.o gif.o gifdecod.o hcmplx.o hfield.o
histogra.o iff.o image.o interior.o isosurf.o jpeg_pov.o lathe.o lbuffer.o
lightgrp.o lighting.o matrices.o media.o mesh.o normal.o objects.o
octree.o optin.o optout.o parse.o parsestr.o parstxtr.o pattern.o pgm.o
photons.o pigment.o planes.o png_pov.o point.o poly.o polygon.o polysolv.o
pov_mem.o povms.o povmscpp.o povmsend.o povmsrec.o povray.o pov_util.o
ppm.o prism.o quadrics.o quatern.o rad_data.o radiosit.o ray.o render.o
renderio.o sor.o spheres.o sphsweep.o splines.o statspov.o super.o targa.o
texture.o tiff_pov.o tokenize.o torus.o triangle.o truetype.o txttest.o
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?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
You're doing this for Sun Solaris right?
You should not need to do anything fancy with LD_LIBRARY_PATH. That will
only help you during runtime if your libraries are in strange non-standard
places. The simple thing to do is :
1 ) go get the source code for the latest jpeg libs, and get png and zlib
and tiff while you're at it. Compile them all in a directory called
povray-3.50c/src/lib/png povray-3.50c/src/lib/jpeg etc etc. Then ensure
that the linker knows where these guys are with the correct linker
option like -R~foo/povray-3.50c/src/lib/bar
2 ) Go to http://www.blastwave.org and get the complete package for Solaris.
Unless you have the Forte 6 Update 2 compiler set and all the slick
development tools then your home-built version of POV-Ray will never be
particularly fast. It has been well demonstrated in the past that gcc
just simply can not create binaries that are as effectively optimized
as the Sun/Forte compilers.
Dennis Clarke
dcl### [at] blastwaveorg
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |