Re: [CinePaint] CinePaint 0.21-1 compilation error

Hartmut Sbosny <[email protected]>
Newsgroups gmane.comp.video.cinepaint.user
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.