CinePaint 0.21-1 compilation error

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

CinePaint 0.21-1 compilation error

by Rajesh Dhawan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am trying to compile CinePaint 0.21-1 but get this error on 'make':

br_Image.cpp: In member function `void
br::BrImgVector::set_TimesByStop(double)':
br_Image.cpp:334: error: `pow' was not declared in this scope
make[3]: *** [br_Image.lo] Error 1
make[3]: Leaving directory
`/home/rajesh/temp/cinepaint-0.21-1/plug-ins/bracketing_to_hdr/core'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/rajesh/temp/cinepaint-0.21-1/plug-ins/bracketing_to_hdr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rajesh/temp/cinepaint-0.21-1/plug-ins'
make: *** [all-recursive] Error 1

Any ideas?

Thanks,
-Raj

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cinepaint-users mailing list
Cinepaint-users@...
https://lists.sourceforge.net/lists/listinfo/cinepaint-users

Re: CinePaint 0.21-1 compilation error

by Frederic Fichter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Same thing here. So annoying.

Fred


On Aug 12, 2006, at 8:21 PM, Rajesh Dhawan wrote:

> Hi,
>
> I am trying to compile CinePaint 0.21-1 but get this error on 'make':
>
> br_Image.cpp: In member function `void
> br::BrImgVector::set_TimesByStop(double)':
> br_Image.cpp:334: error: `pow' was not declared in this scope
> make[3]: *** [br_Image.lo] Error 1
> make[3]: Leaving directory
> `/home/rajesh/temp/cinepaint-0.21-1/plug-ins/bracketing_to_hdr/core'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/home/rajesh/temp/cinepaint-0.21-1/plug-ins/bracketing_to_hdr'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/rajesh/temp/cinepaint-0.21-1/plug-
> ins'
> make: *** [all-recursive] Error 1
>
> Any ideas?
>
> Thanks,
> -Raj
>
> ----------------------------------------------------------------------
> ---
> Using Tomcat but need to do more? Need to support web services,  
> security?
> Get stuff done quickly with pre-integrated technology to make your  
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache  
> Geronimo
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Cinepaint-users mailing list
> Cinepaint-users@...
> https://lists.sourceforge.net/lists/listinfo/cinepaint-users


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cinepaint-users mailing list
Cinepaint-users@...
https://lists.sourceforge.net/lists/listinfo/cinepaint-users

Re: CinePaint 0.21-1 compilation error

by Frank Peters :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, 13 Aug 2006 22:48:12 +0200
Frederic Fichter <ffichter@...> wrote:

> Same thing here. So annoying.
>

The problem, from what I can gather by reading the source
comments, is that the HDR plugins have been completely
rewritten and apparently a few header files have been
left undeclared.  Adding "#include <cmath>" to a few
of the source files fixes some failures but the compile
still cannot complete.

Because I don't use any HDR formats, I simply deleted
the appropriate HDR lines from the Makefile in the plug-ins
directory and cinepaint-0.21-1 compiles and executes
without problems.

The problem should be easy to fix and I'm sure the developers
will release patches shortly.

But for the impatient cinepaint user that doesn't require
HDR, after running ./configure just delete these lines
from the plug-ins/Makefile, starting at about line 245:

bracketing_to_hdr
cineon
hdr
openexr

Frank Peters


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cinepaint-users mailing list
Cinepaint-users@...
https://lists.sourceforge.net/lists/listinfo/cinepaint-users

Re: CinePaint 0.21-1 compilation error

by Hartmut Sbosny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Samstag, 12. August 2006 20:21 schrieb Rajesh Dhawan:

> Hi,
>
> I am trying to compile CinePaint 0.21-1 but get this error on
> 'make':
>
> br_Image.cpp: In member function `void
> br::BrImgVector::set_TimesByStop(double)':
> br_Image.cpp:334: error: `pow' was not declared in this scope
> make[3]: *** [br_Image.lo] Error 1
> [...]
> Any ideas?


Hello Rajesh,

at the moment I can not offer a patch, because I have technical
problems to download the original release sources, I can describe
the changes to made only verbally.

Be "SRC" the CinePaint source directory. Open in the directory
 
   SRC/plug-ins/bracketing_to_hdr/core

the file "br_Image.cpp". Line 28

   //#include <cmath>                  // pow()

should be substituted by

   #include <cmath>                  // pow()

i.e. the comment characters are to remove. Hope, this helps for the
moment.

Thanks for reporting.
Hartmut

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cinepaint-users mailing list
Cinepaint-users@...
https://lists.sourceforge.net/lists/listinfo/cinepaint-users

Parent Message unknown Re: CinePaint 0.21-1 compilation error

by Daniel Fort-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I also had problems building 0.21-1.

Following Hartmut's instructions:

> the file "br_Image.cpp". Line 28
>
>    //#include <cmath>                  // pow()
>
> should be substituted by
>
>    #include <cmath>                  // pow()
>
> i.e. the comment characters are to remove. Hope, this helps for the
> moment.

Then I got this error:

In file included from br_PackBase.cpp:32:
br_PackBase.hpp: In member function `void br::PackBase::set_time(int,
double)':
br_PackBase.hpp:142: error: `log' was not declared in this scope
br_PackBase.cpp: In constructor `br::PackBase::PackBase(br::BrImgVector&)':
br_PackBase.cpp:112: error: `log' was not declared in this scope
make[3]: *** [br_PackBase.lo] Error 1

So I took the more drastic measures suggested by Frank Peters:

> But for the impatient cinepaint user that doesn't require
> HDR, after running ./configure just delete these lines
> from the plug-ins/Makefile, starting at about line 245:
>
> bracketing_to_hdr
> cineon
> hdr
> openexr

However, I didn't want to loose all the HDR capabilities and found that
only the bracketing_to_hdr plug-in needed to be removed for a successful
compile.

By the way, I also tried to build from the CVS tree and came up with this:

config.status: error: cannot find input file:
plug-ins/bracketing_to_hdr/core/Makefile.in

Upon closer examination it appears that most of the bracketing_to_hdr
files are missing from CVS. Hopefully this is just temporary until the
SourceForge servers are updated--I sure would like to play around with the
bracketing_to_hdr plug-in!

--Dan



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cinepaint-users mailing list
Cinepaint-users@...
https://lists.sourceforge.net/lists/listinfo/cinepaint-users

Re: CinePaint 0.21-1 compilation error

by Hartmut Sbosny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Montag, 14. August 2006 20:39 schrieb Daniel Fort:

> I also had problems building 0.21-1.
>
> Following Hartmut's instructions: [...]
>
> Then I got this error:
>
> In file included from br_PackBase.cpp:32:
> br_PackBase.hpp: In member function `void
> br::PackBase::set_time(int, double)':
> br_PackBase.hpp:142: error: `log' was not declared in this scope

Adding a "#include <cmath>" in

  "bracketing_to_hdr/core/br_PackBase.hpp"

should help here. But seemingly a "#include <cmath>" is missing in
more files, as Frank suggested. Unfortunately I can not simply detect
these errors, because my compiler doesn't complain of it, I'm reliant  
on bug reports. To accelerate the fixing a little bit, could you (or
Frank) be so kind to add a "#include <cmath>" in similar cases
(error: not declared `log', `exp', `pow', `sin') and to report the
files here and also the error (if any) which comes after it?

In
  "bracketing_to_hdr/core/HdrCalctorBase.cpp"
the "#include <cmath>" is ditto missing, I just notice.


[...]
> By the way, I also tried to build from the CVS tree and came up
> with this:
>
> config.status: error: cannot find input file:
> plug-ins/bracketing_to_hdr/core/Makefile.in
>
> Upon closer examination it appears that most of the
> bracketing_to_hdr files are missing from CVS.

Yes, I see that the CVS contains still the old bracketing_to_hdr, the
new br2hdr has been completely rewritten.


> Hopefully this is just temporary until the SourceForge servers are
> updated--I sure would like to play around with the bracketing_to_hdr
> plug-in!  

Nice to hear.

Thanks,
Hartmut

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cinepaint-users mailing list
Cinepaint-users@...
https://lists.sourceforge.net/lists/listinfo/cinepaint-users

Re: CinePaint 0.21-1 compilation error

by Frank Peters :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 15 Aug 2006 02:48:09 +0200
Hartmut Sbosny <hartmut.sbosny@...> wrote:

>
> Adding a "#include <cmath>" in
>
>   "bracketing_to_hdr/core/br_PackBase.hpp"
>

Adding "#include <cmath>" here allow the compile to proceed
but it then gets stopped with another error:

g++ ... WeightFunc.cpp  -fPIC -DPIC -o .libs/WeightFunc.o

WeightFunc.hpp: In constructor 'WeightFunc_Triangle<Unsign>::WeightFunc_Triangle(Unsign)':
WeightFunc.hpp:227: error: 'TRIANGLE' was not declared in this scope
WeightFunc.hpp:230: error: 'zmax_' was not declared in this scope
WeightFunc.hpp:231: error: 'minval_' was not declared in this scope
WeightFunc.hpp:232: error: 'maxval_' was not declared in this scope
WeightFunc.hpp: In member function 'Tweight WeightFunc_Triangle<Unsign>::operator()(Unsign) const':
WeightFunc.hpp:238: error: 'zmax_' was not declared in this scope

These variables are NOT declared in cmath.  I don't know what header
file or other file contains them.

Frank Peters


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cinepaint-users mailing list
Cinepaint-users@...
https://lists.sourceforge.net/lists/listinfo/cinepaint-users

Re: CinePaint 0.21-1 compilation error

by Daniel Fort-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Hartmut,

> Adding a "#include <cmath>" in
>
>   "bracketing_to_hdr/core/br_PackBase.hpp"
>
> should help here. But seemingly a "#include <cmath>" is missing in
> more files, as Frank suggested. Unfortunately I can not simply detect
> these errors, because my compiler doesn't complain of it, I'm reliant  
> on bug reports. To accelerate the fixing a little bit, could you (or
> Frank) be so kind to add a "#include <cmath>" in similar cases
> (error: not declared `log', `exp', `pow', `sin') and to report the
> files here and also the error (if any) which comes after it?
>
> In
>   "bracketing_to_hdr/core/HdrCalctorBase.cpp"
> the "#include <cmath>" is ditto missing, I just notice.
>  
Following your instructions "make" ended up with this error:

In file included from WeightFunc.cpp:27:
WeightFunc.hpp: In constructor
`WeightFunc_Triangle<Unsign>::WeightFunc_Triangle(Unsign)':
WeightFunc.hpp:227: error: `TRIANGLE' was not declared in this scope
WeightFunc.hpp:230: error: `zmax_' was not declared in this scope
WeightFunc.hpp:231: error: `minval_' was not declared in this scope
WeightFunc.hpp:232: error: `maxval_' was not declared in this scope
WeightFunc.hpp: In member function `Tweight
WeightFunc_Triangle<Unsign>::operator()(Unsign) const':
WeightFunc.hpp:238: error: `zmax_' was not declared in this scope
make[3]: *** [WeightFunc.lo] Error 1

It looks like "#include <cmath>" is declared in WeightFunc.hpp so this
is a different problem.

Hope this helps.

--Dan

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cinepaint-users mailing list
Cinepaint-users@...
https://lists.sourceforge.net/lists/listinfo/cinepaint-users

Re: CinePaint 0.21-1 compilation error

by Hartmut Sbosny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Dienstag, 15. August 2006 03:09 schrieb Frank Peters:

> Adding "#include <cmath>" here allow the compile to proceed
> but it then gets stopped with another error:
>
> g++ ... WeightFunc.cpp  -fPIC -DPIC -o .libs/WeightFunc.o
>
> WeightFunc.hpp: In constructor
> 'WeightFunc_Triangle<Unsign>::WeightFunc_Triangle(Unsign)':
> WeightFunc.hpp:227: error: 'TRIANGLE' was not declared in this
> scope WeightFunc.hpp:230: error: 'zmax_' was not declared in this
> scope WeightFunc.hpp:231: error: 'minval_' was not declared in this
> scope WeightFunc.hpp:232: error: 'maxval_' was not declared in this
> scope WeightFunc.hpp: In member function 'Tweight
> WeightFunc_Triangle<Unsign>::operator()(Unsign) const':
> WeightFunc.hpp:238: error: 'zmax_' was not declared in this scope
>
> These variables are NOT declared in cmath.  I don't know what
> header file or other file contains them.

Thanks Frank (& Daniel), for testing. The new error I do not realy
understand, the quoted variables and constants are declared (as
public or proteced) in a base class of that template, so that they
should be known. As far as that template is not used, I put under

  http://people.freenet.de/hsbosny/Download

a WeightFunc.hpp, where it is commented out. But it follows a similar
construction and I am not very optimistic.
Which version of g++ do you use? I'm afraid, I have to upgrade.

Thanks,
Hartmut

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cinepaint-users mailing list
Cinepaint-users@...
https://lists.sourceforge.net/lists/listinfo/cinepaint-users

Re: CinePaint 0.21-1 compilation error

by Frank Peters :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 16 Aug 2006 01:30:18 +0200
Hartmut Sbosny <hartmut.sbosny@...> wrote:

> > WeightFunc.hpp: In constructor
> > 'WeightFunc_Triangle<Unsign>::WeightFunc_Triangle(Unsign)':
> > WeightFunc.hpp:227: error: 'TRIANGLE' was not declared in this
> > scope WeightFunc.hpp:230: error: 'zmax_' was not declared in this
> > scope WeightFunc.hpp:231: error: 'minval_' was not declared in this
> > scope WeightFunc.hpp:232: error: 'maxval_' was not declared in this
> > scope WeightFunc.hpp: In member function 'Tweight
> > WeightFunc_Triangle<Unsign>::operator()(Unsign) const':
> > WeightFunc.hpp:238: error: 'zmax_' was not declared in this scope
> >

>
> As far as that template is not used, I put under
>
>   http://people.freenet.de/hsbosny/Download
>
> a WeightFunc.hpp, where it is commented out. But it follows a similar
> construction and I am not very optimistic.
>

For me, this new file solves the above indicated errors.  The
compile no longer fails at that point.

But, unfortunately, now another error is reported later on:

g++ ... -c mergeHdr_PackScheme2D_RGB.cpp  -fPIC -DPIC -o .libs/mergeHdr_PackScheme2D_RGB.o
br_ImgScheme1D.hpp: In member function 'int br::ImgView1D<T>::n_pixel() const':
br_ImgScheme1D.hpp:75: error: there are no arguments to 'dim' that depend on a template parameter, so a declaration of 'dim' must be available
br_ImgScheme1D.hpp:75: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
br_ImgScheme1D.hpp: In member function 'int br::ImgScheme1D<T>::n_pixel() const':
br_ImgScheme1D.hpp:108: error: there are no arguments to 'dim' that depend on a template parameter, so a declaration of 'dim' must be available
make[3]: *** [mergeHdr_PackScheme2D_RGB.lo] Error 1


> Which version of g++ do you use? I'm afraid, I have to upgrade.
>

I use both gcc-4.1.1 and gcc-3.4.6 (the latter is sometimes needed
because some code will fail with 4.1.1).

The same errors result when compiling cinepaint with either 4.1.1
or 3.4.6.

Frank Peters


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cinepaint-users mailing list
Cinepaint-users@...
https://lists.sourceforge.net/lists/listinfo/cinepaint-users

Re: CinePaint 0.21-1 compilation error

by Frank Peters :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 15 Aug 2006 22:26:44 -0400
Frank Peters <frank.peters@...> wrote:

>
> But, unfortunately, now another error is reported later on:
>
> g++ ... -c mergeHdr_PackScheme2D_RGB.cpp  -fPIC -DPIC -o .libs/mergeHdr_PackScheme2D_RGB.o
> br_ImgScheme1D.hpp: In member function 'int br::ImgView1D<T>::n_pixel() const':
> br_ImgScheme1D.hpp:75: error: there are no arguments to 'dim' that depend on a template parameter, so a declaration of 'dim' must be available
> br_ImgScheme1D.hpp:75: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
> br_ImgScheme1D.hpp: In member function 'int br::ImgScheme1D<T>::n_pixel() const':
> br_ImgScheme1D.hpp:108: error: there are no arguments to 'dim' that depend on a template parameter, so a declaration of 'dim' must be available
> make[3]: *** [mergeHdr_PackScheme2D_RGB.lo] Error 1
>

Following the advice given by the compiler, I included the
"-fpermissive" option to CXXFLAGS.  Now, the compile does
not fail at this point but, unfortunately, yet another error
occurs later on:

g++ ... -c ImageTable.cpp  -fPIC -DPIC -o .libs/ImageTable.o
../core/../gui/../core/Distributor.hpp: In destructor 'virtual br::EventReceiver::~EventReceiver()':
../core/../gui/../core/Distributor.hpp:98: error: 'void DistributorBase::logout(void*)' is inaccessible
../core/EventReceiver.hpp:51: error: within this context
make[3]: *** [ImageTable.lo] Error 1

So, to summarize, after adding "#include <cmath>" to br_Image.cpp,
br_PackBase.cpp, and HdrCalctorBase.cpp and then installing the
new WeightFunc.hpp and finally adding "-fpermissive" to CXXFLAGS,
the compile fails with the above error.

Although I understand C programming, C++ is still very unfamiliar
to me and I can't contribute much more than these simple error
reports.

Frank Peters


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cinepaint-users mailing list
Cinepaint-users@...
https://lists.sourceforge.net/lists/listinfo/cinepaint-users

Re: CinePaint 0.21-1 compilation error

by Hartmut Sbosny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Mittwoch, 16. August 2006 04:26 schrieb Frank Peters:

> On Wed, 16 Aug 2006 01:30:18 +0200
>
> For me, this new file solves the above indicated errors.  The
> compile no longer fails at that point.
>
> But, unfortunately, now another error is reported later on:
>
> g++ ... -c mergeHdr_PackScheme2D_RGB.cpp  -fPIC -DPIC -o
> .libs/mergeHdr_PackScheme2D_RGB.o br_ImgScheme1D.hpp: In member
> function 'int br::ImgView1D<T>::n_pixel() const':
> br_ImgScheme1D.hpp:75: error: there are no arguments to 'dim' that
> depend on a template parameter, so a declaration of 'dim' must be
> available br_ImgScheme1D.hpp:75: error: (if you use '-fpermissive',
> G++ will accept your code, but allowing the use of an undeclared
> name is deprecated) br_ImgScheme1D.hpp: In member function 'int
> br::ImgScheme1D<T>::n_pixel() const': br_ImgScheme1D.hpp:108:
> error: there are no arguments to 'dim' that depend on a template
> parameter, so a declaration of 'dim' must be available make[3]: ***
> [mergeHdr_PackScheme2D_RGB.lo] Error 1
>
> > Which version of g++ do you use? I'm afraid, I have to upgrade.
>
> I use both gcc-4.1.1 and gcc-3.4.6 (the latter is sometimes needed
> because some code will fail with 4.1.1).

Ups, I operated still with 3.3.4.

There seems exist some differences between my older g++ and the newer
ones in respect of visibility of elements of a base template in a
derived template (maybe, it has something to do with the option
'no-implicite-templates'). Meanwile I have downloaded g++ 4.1.1 and
compiled. Tomorrow I hope to deliver a version which is clean for g++
4.1.1.

So long I say thanks a lot for testing!
Hartmut

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cinepaint-users mailing list
Cinepaint-users@...
https://lists.sourceforge.net/lists/listinfo/cinepaint-users

Parent Message unknown Re: CinePaint 0.21-1 compilation error

by Daniel Fort-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Hartmut,

Can't believe it but it finally compiled, installed and the
bracketing_to_hdr plug-in launches.

The files you posted on:
>   http://people.freenet.de/hsbosny/Download
>
>  
helped and so did Frank Peter's suggestion:
>
> Following the advice given by the compiler, I included the
> "-fpermissive" option to CXXFLAGS.  
however, I kept adding #include <cmath> to several more files and didn't
get the  [ImageTable.lo] error.

So, here are the steps that worked for me:

Make sure that all of the following files have the line, "#include <cmath>":

FollowUpValuesBase.hpp
HdrCalctorBase.hpp
WeightFunc.hpp
br_Image.cpp
br_Image_utils.cpp
br_PackBase.cpp
br_PackImgScheme2D.hpp
mergeHdr_PackScheme2D_RGB.cpp

Then run the following:

CXXFLAGS='-fpermissive' ./configure
make
make install

I'm running Gentoo Linux on AMD64 with gcc-3.4.6-r1. Hope this helps others.

--Dan

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cinepaint-users mailing list
Cinepaint-users@...
https://lists.sourceforge.net/lists/listinfo/cinepaint-users

Re: CinePaint 0.21-1 compilation error

by Hartmut Sbosny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Donnerstag, 17. August 2006 08:07 schrieb Daniel Fort:

> Hi Hartmut,
>
> Can't believe it but it finally compiled, installed and the
> bracketing_to_hdr plug-in launches.
>
> The files you posted on:
> >   http://people.freenet.de/hsbosny/Download
>
> helped and so did Frank Peter's suggestion:
> > Following the advice given by the compiler, I included the
> > "-fpermissive" option to CXXFLAGS.

All the problems come from the following: Be `Base<>' a template
and `Derived<>' a template derived from `Base'. In `Derive' we use
a `Base' element, e.g a function `dim()':

template <typename T>
class Base {
  public:
    int dim();
    ...
};

template <typename T>
class Derived : public Base<T> {
  public:
    int use_dim_1() {return dim();}  // older g++: accepted
                                                                            // newer g++: error: `dim' not declared
    int use_dim_2() {return Base<T>::dim();}  // ok
    ...
};

The newer g++ want have a more explicite name  - it is easy to fix.


> however, I kept adding #include <cmath> to several more files and
> didn't get the  [ImageTable.lo] error.
>
> So, here are the steps that worked for me:
>
> Make sure that all of the following files have the line, "#include
> <cmath>":
>
> FollowUpValuesBase.hpp
> HdrCalctorBase.hpp
> WeightFunc.hpp
> br_Image.cpp
> br_Image_utils.cpp
> br_PackBase.cpp
> br_PackImgScheme2D.hpp
> mergeHdr_PackScheme2D_RGB.cpp
>
> Then run the following:
>
> CXXFLAGS='-fpermissive' ./configure
> make
> make install
>
> I'm running Gentoo Linux on AMD64 with gcc-3.4.6-r1. Hope this
> helps others.

Thanks Daniel, for all the effort. Under

  http://people.freenet.de/hsbosny/Download

I put the zipped tar file

  bracketing_to_hdr-0.21-20060818.tar.zip.

It contains a version fixed for g++ 4.1.1. The pathnames in the
archive are relative to the directory "plug-ins", i.e. to install so:

Copy the ~.tar.gz file into the CinePaint directory "plug-ins" and
  make this directory to the current.
gunzip ~.tar.gz   (creates ~.tar file)
tar xvf ~.tar     (unpackes tar archive into "./bracketing_to_hdr")
cd ..             (go to the CinePaint root dir)
./config.status   (creates Makefile(s) and .deps files)
make

Before one could save the old bracketing_to_hdr directory by renaming.

First I wanted to provide a patch file, but I have to train yet with
diff and patch.

Greetings,
Hartmut

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cinepaint-users mailing list
Cinepaint-users@...
https://lists.sourceforge.net/lists/listinfo/cinepaint-users

Parent Message unknown Re: CinePaint 0.21-1 compilation error

by Daniel Fort-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Hartmut,

Your instructions worked perfectly here.

> Thanks Daniel, for all the effort. Under
>
>   http://people.freenet.de/hsbosny/Download
>
> I put the zipped tar file
>
>   bracketing_to_hdr-0.21-20060818.tar.zip.
>
> It contains a version fixed for g++ 4.1.1. The pathnames in the
> archive are relative to the directory "plug-ins", i.e. to install so:
>
> Copy the ~.tar.gz file into the CinePaint directory "plug-ins" and
>   make this directory to the current.
> gunzip ~.tar.gz   (creates ~.tar file)
> tar xvf ~.tar     (unpackes tar archive into "./bracketing_to_hdr")
> cd ..             (go to the CinePaint root dir)
> ./config.status   (creates Makefile(s) and .deps files)
> make
>
>  

I went further and replaced the bracketing_to_hdr directory in a freshly
extracted cinepaint-0.21-1 source and the usual,

./configure
make
sudo make install

work fine now.
> First I wanted to provide a patch file, but I have to train yet with
> diff and patch.
>
>  
I figured the best way to make a patch file was to use CVS sources, but
when I tried your replacement files on it I got:

In file included from ../../lib/plugin_main.h:23,
                 from bracketing_to_hdr.cpp:61:
/usr/include/glib-1.2/glib.h:1308:23: warning: ISO C does not permit
named variadic macros
/usr/include/glib-1.2/glib.h:1311:25: warning: ISO C does not permit
named variadic macros
/usr/include/glib-1.2/glib.h:1314:26: warning: ISO C does not permit
named variadic macros
/usr/include/glib-1.2/glib.h:1317:25: warning: ISO C does not permit
named variadic macros
In file included from ../../lib/wire/wire_types.h:9,
                 from ../../lib/plugin_main.h:26,
                 from bracketing_to_hdr.cpp:61:
../../lib/wire/enums.h:126: error: extra `;'
make[3]: *** [bracketing_to_hdr.o] Error 1


Not sure why it worked on 0.21-1 and not on CVS, diff shows no change in
plugin_main.h and both builds should be using the same
/usr/include/glib-1.2/glib.h (glib-1.2.10-r5 from Gentoo portage).

--Dan

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cinepaint-users mailing list
Cinepaint-users@...
https://lists.sourceforge.net/lists/listinfo/cinepaint-users

Re: CinePaint 0.21-1 compilation error

by Hartmut Sbosny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Daniel,

Am Samstag, 19. August 2006 08:40 schrieb Daniel Fort:

>> First I wanted to provide a patch file, but I have to train yet
>> with diff and patch.
>
> I figured the best way to make a patch file was to use CVS sources,
> but when I tried your replacement files on it I got:
>
> In file included from ../../lib/plugin_main.h:23,
>                  from bracketing_to_hdr.cpp:61:
> /usr/include/glib-1.2/glib.h:1308:23: warning: ISO C does not
> permit named variadic macros
> /usr/include/glib-1.2/glib.h:1311:25: warning: ISO C does not
> permit named variadic macros
> /usr/include/glib-1.2/glib.h:1314:26: warning: ISO C does not
> permit named variadic macros
> /usr/include/glib-1.2/glib.h:1317:25: warning: ISO C does not
> permit named variadic macros
> In file included from ../../lib/wire/wire_types.h:9,
>                  from ../../lib/plugin_main.h:26,
>                  from bracketing_to_hdr.cpp:61:
> ../../lib/wire/enums.h:126: error: extra `;'
> make[3]: *** [bracketing_to_hdr.o] Error 1
>
>
> Not sure why it worked on 0.21-1 and not on CVS, diff shows no
> change in plugin_main.h and both builds should be using the same
> /usr/include/glib-1.2/glib.h (glib-1.2.10-r5 from Gentoo portage).

The current 'cinepaint' branch of the CVS is surely not in a coherent
state. The structure of the bracketing_to_hdr directory has been
changed from 0.20 to 0.21, and in `configure.in' the new structure is
inscribed, but the bracketing_to_hdr directory is still the old one.
(Kai-Uwe has obviously forgotten to update it. At present he is on
holiday and will be back on the air in a week.)

Assuming the above is the only inconsictency, one could try the
following (not tested):

Replace the CVS bracketing_to_hdr directory by the new version,
then the steps:
autoconf  (creates `configure' from `configure.in')
automake  (creates `Makefile.in' from `Makefile.in' + `configure')
./configure (creates `Makefile' from `Makefile.am')
make; make install

But as I said, not tested.

Hartmut

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cinepaint-users mailing list
Cinepaint-users@...
https://lists.sourceforge.net/lists/listinfo/cinepaint-users

Re: CinePaint 0.21-1 compilation error

by Hartmut Sbosny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Mittwoch, 23. August 2006 20:20 schrieb Hartmut Sbosny:

> automake  (creates `Makefile.in' from `Makefile.in' + `configure')
> ./configure (creates `Makefile' from `Makefile.am')

A bit mixed up, better is:

automake  (creates `Makefile.in' from `Makefile.am' + `configure')
./configure (creates `Makefile' from `Makefile.in')

Hartmut

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cinepaint-users mailing list
Cinepaint-users@...
https://lists.sourceforge.net/lists/listinfo/cinepaint-users

Parent Message unknown Re: CinePaint 0.21-1 compilation error

by Daniel Fort-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Hartmut,

> Replace the CVS bracketing_to_hdr directory by the new version,
> then the steps:
> autoconf  (creates `configure' from `configure.in')
> automake  (creates `Makefile.in' from `Makefile.in' + `configure')
> ./configure (creates `Makefile' from `Makefile.am')
> make; make install
>
> But as I said, not tested.

I just tested it and came up with the same errors as before. I also tried
it on a fresh CVS checkout and it wouldn't work at all unless I ran
autogen.sh first.

Guess we'll just wait until Kai-Uwe returns from vacation--or better yet,
we should all take a vacation. I'm up for that!

--Dan


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cinepaint-users mailing list
Cinepaint-users@...
https://lists.sourceforge.net/lists/listinfo/cinepaint-users

Re: CinePaint 0.21-1 compilation error

by Kai-Uwe Behrmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Back in europe.

The plug-in is checked into CVS with changes to the core directory.
core is difficult to use as it is a default for a filename allready. So I
renamed the directory core to bth_core including all dependencies.

Hope that is ok.

regards
Kai-Uwe Behrmann
                                + development for color management
                                + imaging / panoramas
                                + email: ku.b@...
                                + http://www.behrmann.name


Am 23.08.06, 16:48 -0700 schrieb Daniel Fort:

> Hi Hartmut,
>
> > Replace the CVS bracketing_to_hdr directory by the new version,
> > then the steps:
> > autoconf  (creates `configure' from `configure.in')
> > automake  (creates `Makefile.in' from `Makefile.in' + `configure')
> > ./configure (creates `Makefile' from `Makefile.am')
> > make; make install
> >
> > But as I said, not tested.
>
> I just tested it and came up with the same errors as before. I also tried
> it on a fresh CVS checkout and it wouldn't work at all unless I ran
> autogen.sh first.
>
> Guess we'll just wait until Kai-Uwe returns from vacation--or better yet,
> we should all take a vacation. I'm up for that!
>
> --Dan
>
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cinepaint-users mailing list
Cinepaint-users@...
https://lists.sourceforge.net/lists/listinfo/cinepaint-users

Parent Message unknown Re: CinePaint 0.21-1 compilation error

by Daniel Fort-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Kai-Uwe,
> The plug-in is checked into CVS with changes to the core directory.
> core is difficult to use as it is a default for a filename allready. So I
> renamed the directory core to bth_core including all dependencies.
>
> Hope that is ok.
 From a fresh CVS checkout this afternoon:

In file included from ../../lib/plugin_main.h:23,
                 from bracketing_to_hdr.cpp:61:
/usr/include/glib-1.2/glib.h:1308:23: warning: ISO C does not permit
named variadic macros
/usr/include/glib-1.2/glib.h:1311:25: warning: ISO C does not permit
named variadic macros
/usr/include/glib-1.2/glib.h:1314:26: warning: ISO C does not permit
named variadic macros
/usr/include/glib-1.2/glib.h:1317:25: warning: ISO C does not permit
named variadic macros
In file included from ../../lib/wire/wire_types.h:9,
                 from ../../lib/plugin_main.h:26,
                 from bracketing_to_hdr.cpp:61:
../../lib/wire/enums.h:126: error: extra `;'
make[3]: *** [bracketing_to_hdr.o] Error 1

That's pretty much the same problem as before when I was using Hartmut's
new sources on the CVS tree. So, there is still a problem. Of course
there is the possibility that there was a check-in that isn't updated on
the SourceForge servers yet.

--Dan

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cinepaint-users mailing list
Cinepaint-users@...
https://lists.sourceforge.net/lists/listinfo/cinepaint-users
< Prev | 1 - 2 | Next >