[Lemon-user] Problem compiling Lemon on Windows
Alpár Jüttner
alpar at cs.elte.hu
Fri Jul 2 05:58:35 CEST 2010
On Thu, 2010-07-01 at 14:14 -0700, Allen Brookes wrote:
> Hi,
>
> When I try to create NMake makefiles I get an error in CMake that says
> there is an error in the configuration file.
Which CMAKE version?
"Something is wrong in the config file" is pretty few info to identify
the problem. What is the _exact_ CMAKE error message (you should see it
at the lower half text area of the cmake-gui)?
I checked the config files with CMAKE 2.8.1, it works perfectly with
release 1.2 and also with the latest devel version. It's hard to believe
that it works differently on different machine. Also, you used to have a
compilation error which means the configuration phase used to work.
Is it possible to make a test on a third machine to ensure that the
problem is not with your windows system?
Regards,
Alpar
P.S: I won't be available on the next week (from tomorrow), that's why I
also keep posting your answers to the lemon-user list. If you do so,
too, someone else may continue investigating your problem.
> On Wed, Jun 30, 2010 at 9:58 PM, Alpár Jüttner <alpar at cs.elte.hu>
> wrote:
> Hi,
>
> On Mon, 2010-06-28 at 11:40 -0700, Allen Brookes wrote:
>
> > I tried copying the working source to the other machine, in
> the same
> > location. I get errors that make it seem like there is
> something
> > different about the source. It gets errors that say:
> >
> > BuildingCustomRule C:/lemon-1.2/test/CMakeLists.txt
> >
> > And then
> >
> > The system cannot find the path specified
> > Project : error PRJ0019: A tool returnd an error code from
> "Building
> > Custom Rule C:/lemon-1.2/test/CMakeLists.txt"
> >
>
>
> I really can't imagine what could be the problem. Now it fails
> even
> before the start of the actual compilation.
>
>
> > I'm not sure what to try next.
>
>
> Let's do the following: Follow the instruction of
> http://lemon.cs.elte.hu/trac/lemon/wiki/InstallCmake
> step-by-step from
> scratch, with the NMake option. Instead of a simple 'nmake'
> command, use
>
> nmake VERBOSE=1
>
> Then please send the full relevant error message you get. At
> least
> everything starting from the last
>
> [ ??% ] Building CXX object ...
>
> message.
>
>
>
> Regards,
> Alpar
>
>
>
> >
> > Allen
> >
> > On Mon, Jun 28, 2010 at 8:20 AM, Alpár Jüttner
> <alpar at cs.elte.hu>
> > wrote:
> > On Mon, 2010-06-28 at 07:58 -0700, Allen Brookes
> wrote:
> > > Hi,
> > >
> >
> > > The source code is just Lemon 1.2.
> >
> >
> > I'm overlooked this info, sorry for it.
> >
> > > The OS version and compiler versions are the same
> on both
> > machines
> > > and I have tried numerous times downloading Lemon,
> running
> > CMake and
> > > compiling the Lemon sources, with the same result
> each time.
> >
> >
> > It is strange.
> >
> > The next thing I would try is to copy the working
> source and
> > build tree
> > from machine 1. to machine 2. to the _same location_
> and try
> > to rebuild.
> > Could you try to do this?
> >
> > > I sent the problem and the error output
> >
> >
> > Is this the full compiler log? It is very
> uninformative, I
> > can't even
> > see from the error report which .cc file was being
> compiled
> > when the the
> > problem occurred. Also the error report refers to a
> variable
> > or type 'C'
> > but there is no such a thing in lemon/adaptors.h
> >
> > Unfortunately, I don't have an easy access to
> VS2005. Would it
> > be
> > possible to try to compile it with a newer version,
> say
> > VS2008? The
> > express edition can be downloaded for free.
> >
> >
> > Regards,
> > Alpar
> >
> >
> >
> >
> >
> > > Allen
> > >
> > >
> > > On Mon, Jun 28, 2010 at 7:09 AM, Alpár Jüttner
> > <alpar at cs.elte.hu>
> > > wrote:
> > > Hi,
> > >
> > > It is fairly difficult to give any advice
> in this
> > case,
> > > especially
> > > without having access to the source you
> want to
> > compile.
> > >
> > > If you do exactly the same on the two
> machines, the
> > result
> > > should be the
> > > same, as well. So, I advise you to repeat
> the
> > compilation
> > > process from
> > > scratch on the second machine, using
> exactly the
> > same compiler
> > > etc. If
> > > you still do not succeed, describe your
> problem at a
> > level
> > > that make it
> > > possible to reproduce the error (i.e.
> provide a
> > source code
> > > that shows
> > > the symptoms). It is pretty much
> impossible to help
> > without
> > > it.
> > >
> > > Regards,
> > > Alpar
> > >
> > >
> > >
> > > On Fri, 2010-06-25 at 08:30 -0700, Allen
> Brookes
> > wrote:
> > > > Hi,
> > > >
> > > > I successfully compiled Lemon on one of
> my
> > machines, but
> > > when I tried
> > > > on the other I get a bunch of
> compilation errors.
> > As far as
> > > I can
> > > > tell I have done the same thing on both
> machines.
> > > >
> > > > I have Visual Studio 2005. I used CMake
> 2.8.1 to
> > generate a
> > > solution
> > > > and project files. I compiled the
> ALL_BUILD
> > project and get
> > > the
> > > > following errors:
> > > >
> > > > Error 1 error C3855:
> > > 'lemon::SplitNodesBase<DGR>::NodeMapBase':
> > > > template parameter 'T' is incompatible
> with the
> > declaration
> > > C:
> > > > \lemon-1.2\lemon\adaptors.h 2925
> > > > Error 2 error C3855:
> > > 'lemon::SplitNodesBase<DGR>::ArcMapBase':
> > > > template parameter 'T' is incompatible
> with the
> > declaration
> > > C:
> > > > \lemon-1.2\lemon\adaptors.h 2953
> > > > Error 3 error C3203: 'NodeMapBase' :
> unspecialized
> > class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3266
> > > > Error 4 error C3203: 'NodeMapBase' :
> unspecialized
> > class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3267
> > > > Error 5 error C3203: 'ArcMapBase' :
> unspecialized
> > class
> > > template can't
> > > > be used as a template argument for
> template
> > parameter
> > > '_Map', expected
> > > > a real type C:\lemon-1.2\lemon
> \adaptors.h 3292
> > > > Error 6 error C3203: 'ArcMapBase' :
> unspecialized
> > class
> > > template can't
> > > > be used as a template argument for
> template
> > parameter
> > > '_Map', expected
> > > > a real type C:\lemon-1.2\lemon
> \adaptors.h 3293
> > > > Error 7 error C3855:
> > > 'lemon::SplitNodesBase<DGR>::NodeMapBase':
> > > > template parameter 'T' is incompatible
> with the
> > declaration
> > > C:
> > > > \lemon-1.2\lemon\adaptors.h 2925
> > > > Error 8 error C3855:
> > > 'lemon::SplitNodesBase<DGR>::ArcMapBase':
> > > > template parameter 'T' is incompatible
> with the
> > declaration
> > > C:
> > > > \lemon-1.2\lemon\adaptors.h 2953
> > > > Error 9 error C3203: 'NodeMapBase' :
> unspecialized
> > class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3266
> > > > Error 10 error C3203: 'NodeMapBase' :
> > unspecialized class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3267
> > > > Error 11 error C3203: 'ArcMapBase' :
> unspecialized
> > class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3292
> > > > Error 12 error C3203: 'ArcMapBase' :
> unspecialized
> > class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3293
> > > > Error 13 error C3855:
> > > 'lemon::SplitNodesBase<DGR>::NodeMapBase':
> > > > template parameter 'T' is incompatible
> with the
> > declaration
> > > C:
> > > > \lemon-1.2\lemon\adaptors.h 2925
> > > > Error 14 error C3855:
> > > 'lemon::SplitNodesBase<DGR>::ArcMapBase':
> > > > template parameter 'T' is incompatible
> with the
> > declaration
> > > C:
> > > > \lemon-1.2\lemon\adaptors.h 2953
> > > > Error 15 error C3203: 'NodeMapBase' :
> > unspecialized class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3266
> > > > Error 16 error C3203: 'NodeMapBase' :
> > unspecialized class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3267
> > > > Error 17 error C3203: 'ArcMapBase' :
> unspecialized
> > class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3292
> > > > Error 18 error C3203: 'ArcMapBase' :
> unspecialized
> > class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3293
> > > > Error 19 error C3855:
> > > 'lemon::SplitNodesBase<DGR>::NodeMapBase':
> > > > template parameter 'T' is incompatible
> with the
> > declaration
> > > C:
> > > > \lemon-1.2\lemon\adaptors.h 2925
> > > > Error 20 error C3855:
> > > 'lemon::SplitNodesBase<DGR>::ArcMapBase':
> > > > template parameter 'T' is incompatible
> with the
> > declaration
> > > C:
> > > > \lemon-1.2\lemon\adaptors.h 2953
> > > > Error 21 error C3203: 'NodeMapBase' :
> > unspecialized class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3266
> > > > Error 22 error C3203: 'NodeMapBase' :
> > unspecialized class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3267
> > > > Error 23 error C3203: 'ArcMapBase' :
> unspecialized
> > class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3292
> > > > Error 24 error C3203: 'ArcMapBase' :
> unspecialized
> > class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3293
> > > > Error 25 error C3855:
> > > 'lemon::SplitNodesBase<DGR>::NodeMapBase':
> > > > template parameter 'T' is incompatible
> with the
> > declaration
> > > C:
> > > > \lemon-1.2\lemon\adaptors.h 2925
> > > > Error 26 error C3855:
> > > 'lemon::SplitNodesBase<DGR>::NodeMapBase':
> > > > template parameter 'T' is incompatible
> with the
> > declaration
> > > C:
> > > > \lemon-1.2\lemon\adaptors.h 2925
> > > > Error 27 error C3855:
> > > 'lemon::SplitNodesBase<DGR>::ArcMapBase':
> > > > template parameter 'T' is incompatible
> with the
> > declaration
> > > C:
> > > > \lemon-1.2\lemon\adaptors.h 2953
> > > > Error 28 error C3855:
> > > 'lemon::SplitNodesBase<DGR>::ArcMapBase':
> > > > template parameter 'T' is incompatible
> with the
> > declaration
> > > C:
> > > > \lemon-1.2\lemon\adaptors.h 2953
> > > > Error 29 error C3203: 'NodeMapBase' :
> > unspecialized class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3266
> > > > Error 30 error C3203: 'NodeMapBase' :
> > unspecialized class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3266
> > > > Error 31 error C3203: 'NodeMapBase' :
> > unspecialized class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3267
> > > > Error 32 error C3203: 'ArcMapBase' :
> unspecialized
> > class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3292
> > > > Error 33 error C3203: 'NodeMapBase' :
> > unspecialized class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3267
> > > > Error 34 error C3203: 'ArcMapBase' :
> unspecialized
> > class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3292
> > > > Error 35 error C3203: 'ArcMapBase' :
> unspecialized
> > class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3293
> > > > Error 36 error C3203: 'ArcMapBase' :
> unspecialized
> > class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3293
> > > > Error 37 error C3855:
> > > 'lemon::SplitNodesBase<DGR>::NodeMapBase':
> > > > template parameter 'T' is incompatible
> with the
> > declaration
> > > C:
> > > > \lemon-1.2\lemon\adaptors.h 2925
> > > > Error 38 error C3855:
> > > 'lemon::SplitNodesBase<DGR>::ArcMapBase':
> > > > template parameter 'T' is incompatible
> with the
> > declaration
> > > C:
> > > > \lemon-1.2\lemon\adaptors.h 2953
> > > > Error 39 error C3203: 'NodeMapBase' :
> > unspecialized class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3266
> > > > Error 40 error C3203: 'NodeMapBase' :
> > unspecialized class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3267
> > > > Error 41 error C3203: 'ArcMapBase' :
> unspecialized
> > class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3292
> > > > Error 42 error C3203: 'ArcMapBase' :
> unspecialized
> > class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3293
> > > > Error 43 error C2248:
> > >
> 'std::basic_ios<_Elem,_Traits>::basic_ios' :
> > > > cannot access private member declared in
> class
> > > > 'std::basic_ios<_Elem,_Traits>' C:
> \Program Files
> > \Microsoft
> > > Visual
> > > > Studio 8\VC\include\istream 842
> > > > Error 44 error C2248:
> > >
> 'std::basic_ios<_Elem,_Traits>::basic_ios' :
> > > > cannot access private member declared in
> class
> > > > 'std::basic_ios<_Elem,_Traits>' C:
> \Program Files
> > \Microsoft
> > > Visual
> > > > Studio 8\VC\include\ostream 581
> > > > Error 45 error C2248:
> > >
> 'std::basic_ios<_Elem,_Traits>::basic_ios' :
> > > > cannot access private member declared in
> class
> > > > 'std::basic_ios<_Elem,_Traits>' C:
> \Program Files
> > \Microsoft
> > > Visual
> > > > Studio 8\VC\include\istream 842
> > > > Error 46 error C2248:
> > >
> 'std::basic_ios<_Elem,_Traits>::basic_ios' :
> > > > cannot access private member declared in
> class
> > > > 'std::basic_ios<_Elem,_Traits>' C:
> \Program Files
> > \Microsoft
> > > Visual
> > > > Studio 8\VC\include\ostream 581
> > > > Error 47 error C3855:
> > > 'lemon::SplitNodesBase<DGR>::NodeMapBase':
> > > > template parameter 'T' is incompatible
> with the
> > declaration
> > > C:
> > > > \lemon-1.2\lemon\adaptors.h 2925
> > > > Error 48 error C3855:
> > > 'lemon::SplitNodesBase<DGR>::ArcMapBase':
> > > > template parameter 'T' is incompatible
> with the
> > declaration
> > > C:
> > > > \lemon-1.2\lemon\adaptors.h 2953
> > > > Error 49 error C3203: 'NodeMapBase' :
> > unspecialized class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3266
> > > > Error 50 error C3203: 'NodeMapBase' :
> > unspecialized class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3267
> > > > Error 51 error C3203: 'ArcMapBase' :
> unspecialized
> > class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3292
> > > > Error 52 error C3203: 'ArcMapBase' :
> unspecialized
> > class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3293
> > > > Error 53 error C3855:
> > > 'lemon::SplitNodesBase<DGR>::NodeMapBase':
> > > > template parameter 'T' is incompatible
> with the
> > declaration
> > > C:
> > > > \lemon-1.2\lemon\adaptors.h 2925
> > > > Error 54 error C3855:
> > > 'lemon::SplitNodesBase<DGR>::ArcMapBase':
> > > > template parameter 'T' is incompatible
> with the
> > declaration
> > > C:
> > > > \lemon-1.2\lemon\adaptors.h 2953
> > > > Error 55 error C3203: 'NodeMapBase' :
> > unspecialized class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3266
> > > > Error 56 error C3203: 'NodeMapBase' :
> > unspecialized class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3267
> > > > Error 57 error C3203: 'ArcMapBase' :
> unspecialized
> > class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3292
> > > > Error 58 error C3203: 'ArcMapBase' :
> unspecialized
> > class
> > > template
> > > > can't be used as a template argument for
> template
> > parameter
> > > '_Map',
> > > > expected a real type C:\lemon-1.2\lemon
> \adaptors.h
> > 3293
> > > >
> > > > Does anyone know what I did wrong?
> > > >
> > > > Thanks,
> > > > Allen
> > >
> > > >
> _______________________________________________
> > > > Lemon-user mailing list
> > > > Lemon-user at lemon.cs.elte.hu
> > > >
> > http://lemon.cs.elte.hu/mailman/listinfo/lemon-user
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
>
>
More information about the Lemon-user
mailing list