Login  Register

Re: Building LibreCAD from Github fork

Posted by joseph_oc on Mar 29, 2013; 1:36pm
URL: https://forum.librecad.org/Building-LibreCAD-from-Github-fork-tp5707778p5707795.html

Rallaz and others:

Regarding previous POST:

SYSTEM:
My system is a linux kernal
Debian Squeeze Ver 6.07

HARDWARE:
Intel processor (Dual Core Pentium)
an older laptop "TOSHIBA"-Satellite
Compiling is slow, but programs run fine.
I have had 2 broken packages, but was able to remove and reinstall without a problem.

Compiler Error:
File muParser.h exists in the correct directory
The line of code you where questioning exists in settings_linux.pro
I deleted the 2 'Makefile'(s)

qmake successfully regenerated the makefiles
-----------------------------------------------------------------
That was the end of my success.
----------------------------------------------------------------
I did get a lot further but BUILD librecad gave errors after about 15 minutes into Build (1st time I only got 2 mins into BUILD).

This was the first build issue:
/home/joseph/LibreCAD/tools/ttf2lff/main.cpp:33: error: ft2build.h: No such file or directory

I searched for that "include" (ft2build.h) file and it does not seem to exist.
I searched /usr/include on the system and /home/joseph/LibreCAD and /usr/lib
I think I searched the whole filesystem, no luck.  Where should it be?
FT_Library does not seem to exist.

====================================
Compile Outputs

main.cpp:80: error: expected primary-expression before 'void'
make[2]: Leaving directory `/home/joseph/LibreCAD/tools/ttf2lff'
make[2]: *** [../../generated/tools/ttf2lff/obj/main.o] Error 1
make[1]: Leaving directory `/home/joseph/LibreCAD/tools'
make: Leaving directory `/home/joseph/LibreCAD'
make[1]: *** [sub-ttf2lff-make_default] Error 2
make: *** [sub-tools-make_default-ordered] Error 2
Exited with code 2.
Error while building project librecad
When executing build step 'Make'

=====================================
=====================================

FIRST Build Issue:

I believe this is the line 80 (along with the remainder of the function) in /home/joseph/LibreCAD/tools/ttf2lff/main.cpp that the Compiler is complaining about.

int moveTo(FT_Vector* to, void* fp) {
    if (firstpass) {
        if (to->x < xMin)
            xMin = to->x;
    } else {
        prevx = to->x;
        prevy = to->y;
        if (fp!=NULL) {
            if (startcontour) {
                startcontour = false;
                fprintf((FILE*)fp, "%s,%s",clearZeros((double)(to->x-xMin)*factor).c_str(), clearZeros((double)to->y*factor).c_str());
            } else {
                fprintf((FILE*)fp, "\n%s,%s",clearZeros((double)(to->x-xMin)*factor).c_str(), clearZeros((double)to->y*factor).c_str());
            }
        }
    }
    return 0;
}

Thanks for your time.

Joe O

PS Thanks so much for assistance and time!!!

end of post