I hope this makes sense: Ive prepared the following note from my journal.
my system configuration partly includes the following: Qt Creater 1.3.1 Based on Qt 4.6.3 (32 bit) Built on Oct 6 2010 at 11:57:38 Maybe the version of Qt Creater I am using is at fault? I have NOT saved my edit, I am still on the librecad project as I downloaded. • Steps: Caution: my lingo may be off, never tried to 'run' (build) such a large project!! 1) Created my free git account. 2) forked the 'master branch' of the https://github.com/LibreCAD/LibreCAD repository 3) executed the following command from a Bash shell: git clone git://github.com/joseph-oc/LibreCAD 4) attempted to build all of the 'forked' repo within QtCreated. build all 'librecad'. 5) received the following error output from the compiler: ============================== lib/engine/rs_ellipse.h:363: error: expected ';' before 'private' make[2]: *** [../../generated/librecad/obj/rs_actioninterface.o] Error 1 make[2]: Leaving directory `/home/joseph/LibreCAD/librecad/src' make[1]: Leaving directory `/home/joseph/LibreCAD/librecad' make: Leaving directory `/home/joseph/LibreCAD' make[1]: *** [sub-src-make_default] Error 2 make: *** [sub-librecad-make_default-ordered] Error 2 Exited with code 2. Error while building project librecad When executing build step 'Make' ================================ 6) went into rs_ellipse.h, line 363 did compiler recommended edit before 'private' (ADDED SEMI-COLON) and received the following error: ===================================== lib/engine/rs_ellipse.h:345: error: expected ';' before '<' token make[2]: *** [../../generated/librecad/obj/rs_actioninterface.o] Error 1 make[2]: Leaving directory `/home/joseph/LibreCAD/librecad/src' make[1]: Leaving directory `/home/joseph/LibreCAD/librecad' make: Leaving directory `/home/joseph/LibreCAD' make[1]: *** [sub-src-make_default] Error 2 make: *** [sub-librecad-make_default-ordered] Error 2 Exited with code 2. Error while building project librecad When executing build step 'Make' ===================================== 7) do not want to proceed with my own additions regarding "Surveying" until I can get a clean copy on my system. That is where I stand. Look forward to comments and suggestions so I can move on. Thanks so much for your time. Sincerely, Joe O |
lib/engine/rs_ellipse.h:363 are
private: and g++ error says: lib/engine/rs_ellipse.h:363: error: expected ';' before 'private' That is, error are BEFORE 363 aka line 362 or previous and previous definition is: boost::fusion::tuple<double, double, double> operator()(double const& z) const { then your problem can be solved installing boost-devel (muparser-devel are also required) |
Rallaz and others:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> I have successfully installed the libboost-devl. The build no longer gives errors relating to that library. Unfortunately, the libmuparser library is still issuing errors. I paste the compiler output below. I installed libmuparcer0 Ver 1.32-1 and libmuparser-dev Ver 1.32-1. I have seen posting librecad forums regarding issues with the math libraries. There seems to be issues with the versions of g++ and libmuparser, at least I have had dependency issues trying to upgrade these files. Rallaz, if you can tell me the versions I should usef with regards to these issues and give me links to there locations, I am hoping to complete the compiling and have a functional configuration. Thanks ---------------------------------------------------------------------------------- Below are the compete compiler output from my last build, the above seems to be the issues. ---------------------------------------------------------------------------------- Running build steps for project librecad... Configuration unchanged, skipping QMake step. Starting: /usr/bin/make -w make: Entering directory `/home/joseph/LibreCAD' cd libraries/ && /usr/bin/make -f Makefile make[1]: Entering directory `/home/joseph/LibreCAD/libraries' cd libdxfrw/ && /usr/bin/make -f Makefile make[2]: Entering directory `/home/joseph/LibreCAD/libraries/libdxfrw' make[2]: Nothing to be done for `first'. make[2]: Leaving directory `/home/joseph/LibreCAD/libraries/libdxfrw' cd jwwlib/ && /usr/bin/make -f Makefile make[2]: Entering directory `/home/joseph/LibreCAD/libraries/jwwlib' make[2]: Nothing to be done for `first'. make[2]: Leaving directory `/home/joseph/LibreCAD/libraries/jwwlib' make[1]: Leaving directory `/home/joseph/LibreCAD/libraries' cd librecad/ && /usr/bin/make -f Makefile make[1]: Entering directory `/home/joseph/LibreCAD/librecad' cd src/ && /usr/bin/make -f Makefile make[2]: Entering directory `/home/joseph/LibreCAD/librecad/src' g++ -c -pipe -std=c++0x -g -std=c++0x -Wall -W -D_REENTRANT -DQC_APPKEY="/LibreCAD" -DQC_APPNAME="LibreCAD" -DQC_COMPANYNAME="LibreCAD" -DQC_COMPANYKEY="LibreCAD" -DQC_VERSION="master" -DQC_DELAYED_SPLASH_SCREEN=1 -DHAS_BOOST=1 -DQC_SCMREVISION="2.0.0beta1-127-g0e8950a" -DQC_APPDIR="librecad" -DQINITIMAGES_LIBRECAD=qInitImages_librecad -DQT_SVG_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -I/usr/include/qt4/QtHelp -I../../libraries/libdxfrw/src -I../../libraries/jwwlib/src -Icmd -Ilib/actions -Ilib/creation -Ilib/debug -Ilib/engine -Ilib/fileio -Ilib/filters -Ilib/gui -Ilib/information -Ilib/math -Ilib/modification -Ilib/scripting -Iactions -Imain -Iplugins -Iui -Iui/forms -I../res -I../../generated/librecad/moc -I../../generated/librecad/ui -o ../../generated/librecad/obj/rs_math.o lib/math/rs_math.cpp lib/math/rs_math.cpp:33:22: error: muParser.h: No such file or directory lib/math/rs_math.cpp: In static member function 'static double RS_Math::eval(const QString&, bool*)': lib/math/rs_math.cpp:301: error: 'mu' has not been declared lib/math/rs_math.cpp:301: error: expected ';' before 'p' lib/math/rs_math.cpp:302: error: 'p' was not declared in this scope lib/math/rs_math.cpp:307: error: expected type-specifier before 'mu' lib/math/rs_math.cpp:307: error: expected ')' before '::' token lib/math/rs_math.cpp:307: error: expected '{' before '::' token lib/math/rs_math.cpp:307: error: '::Parser' has not been declared lib/math/rs_math.cpp:307: error: 'e' was not declared in this scope lib/math/rs_math.cpp:307: error: expected ';' before ')' token make[2]: *** [../../generated/librecad/obj/rs_math.o] Error 1 make[2]: Leaving directory `/home/joseph/LibreCAD/librecad/src' make[1]: Leaving directory `/home/joseph/LibreCAD/librecad' make: Leaving directory `/home/joseph/LibreCAD' make[1]: *** [sub-src-make_default] Error 2 make: *** [sub-librecad-make_default-ordered] Error 2 Exited with code 2. Error while building project librecad When executing build step 'Make' <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Thanks for your time!!!! |
Joe O,
Please, remember to comment what is yuor system always seems to make things easier make: Entering directory `/home/joseph/LibreCAD' => seems you are in linux libmuparser-dev Ver 1.32-1 => seems Debian squeezy Compiler error: lib/math/rs_math.cpp:33:22: error: muParser.h: No such file or directory Verify if libmuparser-dev are correct installed ( if exist /usr/include/muParser/muParser.h) Verify in settings_linux.pro if these lines exist: exists("/usr/include/muParser") { INCLUDEPATH += "/usr/include/muParser" } Delete /home/joseph/LibreCAD/Makefile and /home/joseph/LibreCAD/librecad/src/Makefile and run qmake to regenerate makefiles If you are using qtcreator select the top project and click in "Build->Run qmake" |
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 |
Hi, we have a simplified building howto for linux: On Fri, Mar 29, 2013 at 9:36 AM, joseph_oc [via LibreCAD] <[hidden email]> wrote: Rallaz and others: Dongxu Li, Ph.D. www.librecad.org |
In reply to this post by joseph_oc
http://librecad.org/cms/home/from-source/linux.html sudo apt-get install g++ gcc make git-core libqt4-dev qt4-qmake libqt4-help qt4-dev-tools libboost-all-dev libmuparser-dev libfreetype6-dev
or:
On Fri, Mar 29, 2013 at 10:21 AM, Dongxu Li <[hidden email]> wrote:
Dongxu Li, Ph.D. www.librecad.org |
Free forum by Nabble | Edit this page |