Liblux/FreeImage problem

Discussion and help for Compilation problems and platform portability.

Moderator: coordinators

Liblux/FreeImage problem

Postby Pilchard123 » Mon Mar 12, 2012 12:26 pm

I'm trying to build from the source as of, IIRC, 10 March. I downloaded a fresh copy of these, and the dependencies.

When I tried to compile, I first got some errors relating to CL.hpp (which now seems to work), then I got some errors about being unable to link liblux. I'm building using VS2008, Release NoOpenCL for Win32.

So, I decided to recompile liblux, on its own. When I try to do that, I get the following:

Code: Select all
1>------ Rebuild All started: Project: liblux, Configuration: Release NoOpenCL Win32 ------
1>Deleting intermediate and output files for project 'liblux', configuration 'Release NoOpenCL|Win32'
1>Yacc'ing luxparse
1>Lexing luxlex
1>Compiling...
1>bruteforce.cpp
1>renderserver.cpp
1>rgbrefl.cpp
1>rgbillum.cpp
1>regular.cpp
1>irregular.cpp
1>gaussianspd.cpp
1>frequencyspd.cpp
1>equalspd.cpp
1>blackbodyspd.cpp
1>vegas.cpp
1>tilepx.cpp
1>lowdiscrepancypx.cpp
1>linear.cpp
1>hilbertpx.cpp
1>queryableregistry.cpp
1>queryableattribute.cpp
1>queryable.cpp
1>singlebsdf.cpp
1>schlickbsdf.cpp
1>multibsdf.cpp
1>mixbsdf.cpp
1>layeredbsdf.cpp
1>wardisotropic.cpp
1>schlickdistribution.cpp
1>blinn.cpp
1>beckmann.cpp
1>anisotropic.cpp
1>fresnelslick.cpp
1>fresnelnoop.cpp
1>fresnelgeneral.cpp
1>fresneldielectric.cpp
1>fresnelconductor.cpp
1>fresnelcauchy.cpp
1>speculartransmission.cpp
1>specularreflection.cpp
1>schlicktranslucentbtdf.cpp
1>schlickscatter.cpp
1>schlickbrdf.cpp
1>orennayar.cpp
1>nulltransmission.cpp
1>microfacet.cpp
1>lambertian.cpp
1>lafortune.cpp
1>fresnelblend.cpp
1>cooktorrance.cpp
1>brdftobtdf.cpp
1>asperity.cpp
1>microfacetdistribution.cpp
1>fresnel.cpp
1>bxdf.cpp
1>transform.cpp
1>raydifferential.cpp
1>quaternion.cpp
1>matrix4x4.cpp
1>bbox.cpp
1>volume.cpp
1>util.cpp
1>transport.cpp
1>timer.cpp
1>tgaio.cpp
1>texture.cpp
1>stats.cpp
1>spectrumwavelengths.cpp
1>spectrum.cpp
1>spd.cpp
1>shape.cpp
1>scene.cpp
1>sampling.cpp
1>renderinghints.cpp
1>renderfarm.cpp
1>primitive.cpp
1>pngio.cpp
1>photonmap.cpp
1>paramset.cpp
1>osfunc.cpp
1>motionsystem.cpp
1>mc.cpp
1>material.cpp
1>luxparse.cpp
1>luxlex.cpp
1>light.cpp
1>imagereader.cpp
1>igiio.cpp
1>film.cpp
1>filedata.cpp
1>exrio.cpp
1>c:\luxdevbase\deps\x86\freeimage3141\freeimage\source\libtiff\tif_config.h(156) : warning C4005: 'HAVE_STDLIB_H' : macro redefinition
1>        c:\luxdevbase\deps\x86\freeimage3141\freeimage\source\libjpeg\jconfig.h(12) : see previous definition of 'HAVE_STDLIB_H'
1>c:\LuxDevBase\lux\core\external\cimg.h(18465) : error C2017: illegal escape sequence
1>c:\LuxDevBase\lux\core\external\cimg.h(18937) : error C2017: illegal escape sequence
1>c:\LuxDevBase\lux\core\external\cimg.h(19041) : error C2017: illegal escape sequence
1>epsilon.cpp
1>dynload.cpp
1>c:\luxdevbase\deps\x86\freeimage3141\freeimage\source\libtiff\tif_config.h(156) : warning C4005: 'HAVE_STDLIB_H' : macro redefinition
1>        c:\luxdevbase\deps\x86\freeimage3141\freeimage\source\libjpeg\jconfig.h(12) : see previous definition of 'HAVE_STDLIB_H'
1>c:\LuxDevBase\lux\core\external\cimg.h(18465) : error C2017: illegal escape sequence
1>c:\LuxDevBase\lux\core\external\cimg.h(18937) : error C2017: illegal escape sequence
1>c:\LuxDevBase\lux\core\external\cimg.h(19041) : error C2017: illegal escape sequence
1>contribution.cpp
1>context.cpp
1>color.cpp
1>cameraresponse.cpp
1>camera.cpp
1>api.cpp
1>volumegrid.cpp
1>homogeneous.cpp
1>exponential.cpp
1>cloud.cpp
1>clearvolume.cpp
1>reinhard.cpp
1>nonlinear.cpp
1>maxwhite.cpp
1>lineartonemap.cpp
1>contrast.cpp
1>wrinkled.cpp
1>windy.cpp
1>uvmask.cpp
1>uv.cpp
1>tabulatedfresnel.cpp
1>tabulateddata.cpp
1>sellmeiertexture.cpp
1>scale.cpp
1>regulardata.cpp
1>multimix.cpp
1>mix.cpp
1>marble.cpp
1>lampspectrum.cpp
1>irregulardata.cpp
1>imagemap.cpp
1>harlequin.cpp
1>gaussiantexture.cpp
1>fresnelcolor.cpp
1>frequencytexture.cpp
1>fbm.cpp
1>equalenergy.cpp
1>dots.cpp
1>constant.cpp
1>colordepth.cpp
1>checkerboard.cpp
1>cauchytexture.cpp
1>brick.cpp
1>blender_wood.cpp
1>blender_voronoi.cpp
1>blender_texlib.cpp
1>blender_stucci.cpp
1>blender_noiselib.cpp
1>blender_noise.cpp
1>blender_musgrave.cpp
1>blender_marble.cpp
1>blender_magic.cpp
1>blender_distortednoise.cpp
1>blender_clouds.cpp
1>blender_blend.cpp
1>blender_base.cpp
1>blackbody.cpp
1>bilerp.cpp
1>band.cpp
1>random.cpp
1>metrosampler.cpp
1>lowdiscrepancy.cpp
1>erpt.cpp
1>torus.cpp
1>sphere.cpp
1>plymesh.cpp
1>paraboloid.cpp
1>nurbs.cpp
1>meshwaldtriangle.cpp
1>meshquadrilateral.cpp
1>meshmicrodisplacementtriangle.cpp
1>meshbarytriangle.cpp
1>mesh.cpp
1>loopsubdiv.cpp
1>lenscomponent.cpp
1>hyperboloid.cpp
1>heightfield.cpp
1>disk.cpp
1>cylinder.cpp
1>cone.cpp
1>photonsampler.cpp
1>parallelhashgrid.cpp
1>lookupaccel.cpp
1>kdtree.cpp
1>hybridhashgrid.cpp
1>hitpoints.cpp
1>hashgrid.cpp
1>sppmrenderer.cpp
1>samplerrenderer.cpp
1>hybridsamplerrenderer.cpp
1>hybridrenderer.cpp
1>velvet.cpp
1>shinymetal.cpp
1>scattermaterial.cpp
1>roughglass.cpp
1>null.cpp
1>mixmaterial.cpp
1>mirror.cpp
1>metal2.cpp
1>metal.cpp
1>mattetranslucent.cpp
1>matte.cpp
1>layeredmaterial.cpp
1>glossytranslucent.cpp
1>glossy2.cpp
1>glossy.cpp
1>glass2.cpp
1>glass.cpp
1>carpaint.cpp
1>sphericalfunction_ies.cpp
1>sphericalfunction.cpp
1>photometricdata_ies.cpp
1>sun.cpp
1>spot.cpp
1>sky.cpp
1>projection.cpp
1>pointlight.cpp
1>infinitesample.cpp
1>infinite.cpp
1>distant.cpp
1>area.cpp
1>sppm.cpp
1>single.cpp
1>path.cpp
1>multi.cpp
1>igi.cpp
1>exphotonmap.cpp
1>emission.cpp
1>distributedpath.cpp
1>directlighting.cpp
1>bidirectional.cpp
1>triangle.cpp
1>sinc.cpp
1>mitchell.cpp
1>gaussian.cpp
1>box.cpp
1>realistic.cpp
1>perspective.cpp
1>orthographic.cpp
1>environment.cpp
1>fleximage.cpp
1>unsafekdtree.cpp
1>tabreckdtree.cpp
1>sqbvhaccel.cpp
1>qbvhaccel.cpp
1>bvhaccel.cpp
1>Build log was saved at "file://c:\LuxDevBase\windows\Projects\luxrender\BuildTemp\liblux\SSE2\Release NoOpenCL\BuildLog.htm"
1>liblux - 6 error(s), 2 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


It seems that the errors are related to the dependencies. Would deleting the "deps\freeimage" folder and recompiling help?
Pilchard123
 
Posts: 407
Joined: Sun Oct 30, 2011 8:05 am

Re: Liblux/FreeImage problem

Postby Pilchard123 » Tue Mar 13, 2012 4:41 pm

Any advice? I tried deleting the FreeImage folder and re-downloading, but that didn't help in any way.
Pilchard123
 
Posts: 407
Joined: Sun Oct 30, 2011 8:05 am

Re: Liblux/FreeImage problem

Postby Lord Crc » Thu Mar 15, 2012 12:27 am

The file it complains about is cimg, which is unrelated to FreeImage. Can you try running "hg update --clean" in the lux directory, perhaps it's become corrupted. Otherwise I have no idea.
May contain traces of nuts.
User avatar
Lord Crc
Developer
 
Posts: 4458
Joined: Sat Nov 17, 2007 2:10 pm

Re: Liblux/FreeImage problem

Postby Pilchard123 » Thu Mar 15, 2012 12:47 pm

So it is. This is why I should read error messages more carefully. It compiles now, but there are still those macro definition warnings. I'll report back on whether the rest of the stuff compiles.

Thanks!

EDIT: It seems to work fine now, thanks. A couple failed, but IIRC they were openCL stuff. I have no openCL GFX card and so can't really do much with them anyway.
Pilchard123
 
Posts: 407
Joined: Sun Oct 30, 2011 8:05 am


Return to Compilation & Portability

Who is online

Users browsing this forum: No registered users and 0 guests