Compiling Freestyle

Has anybody here been able to successfully compile freestyle. I keep running into errors with /geometry/VertMat.h with lots of errors reading “error: `_coord’ was not declared in this scope”

Seems like it should be an easy fix, but I’ve had no such luck.

No dice on compiling it here, either. I keep getting errors related to qt… and there’s not a lot of help on the web for compiling freestyle, so debugging is arduous.

almost the same: VecMat.h problems.
May be a processor architecture problem (working with x86 only)?
I have the same errors on my PowerbookG4 with Os X and in my iMac G3 with Ubuntu Linux.

compiling for macs? I asked the creator of freestyle and he said that as he ahdnt any knowledge of macs or the ability to test them then he wasnt able to release a download package that would run on macs.

He said that he would be grateful if a mac coder could help out.

I still haven’t been able to get this to build yet. I’ve changed from GCC3 to GCC4, and they’ve released an updated version since then, so maybe I will give it another try.

Ok, I finally took time to actually look into the code and try to figure out what is going on. It turns out the problems (that I’m having) have to do with the changes that took place in the c++ parser in gcc 3.4. (this includes gcc 4.x as well)

The “problem” is that the parser was changed (actually it was totally re-written) and g++ was changed to be much more compliant to the ISO/ANSI standards.

So, there is nothing really wrong with the code, it just that many of the constructs are no longer accepted in current form.

the errors in src/geometry/VertMat.h reading “error: `_coord’ was not declared in this scope” are easy to fix. Just reference the lines listed in error output and edit those lines in the file by changing “_coord” to: “this->_coord”

That fixes errors from VertMat.h and the compilation goes a lot farther but then falls apart later on and the problems there are again related to the updates made to g++, but are a little more complex. (and I haven’t done any serious c++ coding in quite a while …) I’m working on it though.

If any other C++ hackers out there want to pitch in, please do. Once we get this worked out we can post the diff patches on freestyle’s sourceforge site. I’d really like to get freestyle working with gcc >= 3.4.

keep on!
I’ve found that qmake can make a project file for Apple Xcode (from 2.1 on).
The string to pass is:
qmake -spec macx-pbuilder name-of-project.pro
I’ve made this in every subdir (app, image, …, winged_edge)
and have ended with “sub-projects” in subdirs.