Installing LibreCAD3.0

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Installing LibreCAD3.0

dabeegmon
Greetings

Dunno as to the 'proper' location for this request.
Also dunno as to the minutae on the etiquette so please just beat me somewhat if I overstep. (Remember - - - - beatings will continue until morale improves - - - - LOL!)

Following is where I'm at in the install (on Debian testing running using open source video drivers (Nouveau) on a multi-monitor system (if that might make a difference).

quote>
-- Found Lua 5.3 include dir: /usr/include/lua5.3
-- Found Lua 5.3 library: /usr/lib/x86_64-linux-gnu/liblua5.3.so
***** Lua command line interface *****
-- Checking for module 'cairo'
--   No package 'cairo' found
-- Found Cairo  include dir: CAIRO_INCLUDE_DIRS-NOTFOUND
-- Found Cairo  library: CAIRO_LIBRARIES-NOTFOUND
CMake Error at /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Cairo (missing: CAIRO_INCLUDE_DIRS CAIRO_LIBRARIES)
Call Stack (most recent call first):
  /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  luacmdinterface/cmake/FindCairo.cmake:90 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  luacmdinterface/CMakeLists.txt:9 (find_package)


CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
BZIP2_LIBRARY
    linked by target "lcviewernoqt" in directory /LibreCAD_3/lcviewernoqt
CAIRO_LIBRARIES
    linked by target "lcviewernoqt" in directory /LibreCAD_3/lcviewernoqt

-- Configuring incomplete, errors occurred!
See also "/LibreCAD_3/build/CMakeFiles/CMakeOutput.log".
See also "/LibreCAD_3/build/CMakeFiles/CMakeError.log".
>end quote

dpkg -l | grep cairo
ii  libcairo-5c0:amd64                    1.17                                     amd64        library for cairo nickle bindings
ii  libcairo-gobject2:amd64               1.16.0-4                                 amd64        Cairo 2D vector graphics library (GObject library)
ii  libcairo-perl                         1.106-3+b1                               amd64        Perl interface to the Cairo graphics library
ii  libcairo2:amd64                       1.16.0-4                                 amd64        Cairo 2D vector graphics library
ii  libcairomm-1.0-1v5:amd64              1.12.2-4                                 amd64        C++ wrappers for Cairo (shared libraries)
ii  libpangocairo-1.0-0:amd64             1.42.4-7~deb10u1                         amd64        Layout and rendering of internationalized text
ii  libpixman-1-0:amd64                   0.36.0-1                                 amd64        pixel-manipulation library for X and cairo
ii  python-cairo:amd64                    1.16.2-1+b1                              amd64        Python bindings for the Cairo vector graphics library
ii  python3-cairo:amd64                   1.16.2-1+b1                              amd64        Python3 bindings for the Cairo vector graphics library

shows that I do have some of the cairo packages installed.

I needed to install quite a number of new packages and many with their -dev counterparts to get to this point.
Likely missing something simple but I don't know what (sorry!).

Am suggestions on how to break the logjam?

TIA
Reply | Threaded
Open this post in threaded view
|

Re: Installing LibreCAD3.0

flywire
Thanks, latest devs affected the build. Issue noted, let's look into this.
Reply | Threaded
Open this post in threaded view
|

Re: Installing LibreCAD3.0

dabeegmon
Thanks - - - - maybe it wasn't my incompetence then (grin!)?

Is there anything that I can do to 'help' (besides keep out of the road)?
Reply | Threaded
Open this post in threaded view
|

Re: Installing LibreCAD3.0

Jedi18
Hi! Could you please share a few more details?

Did you follow the conan build instructions or attempt to manually install the dependencies? Also if possible could you share the entire build output in the console and CMakeCache.txt?
Reply | Threaded
Open this post in threaded view
|

Re: Installing LibreCAD3.0

Feragon
Administrator
In reply to this post by dabeegmon
Hello,

When you compile software depending on libraries on Debian, you need the -dev packages. Here, it looks like libcairo2-dev is missing.

However, Cairo is not required for the main LibreCAD executable (only for unit tests and the CLI version). When generating the CMake files (cmake ..) you can add those options:
cmake -DWITH_LUACMDINTERFACE=FALSE -DWITH_RENDERING_UNITTESTS=OFF -DWITH_CAIRO=OFF ..
Reply | Threaded
Open this post in threaded view
|

Re: Installing LibreCAD3.0

dabeegmon
This post was updated on .
In reply to this post by Jedi18
No Conan here - - - - that would seem to be for M$ Win systems - - - - not Debian AIUI.

root@memyself:/LibreCAD_3/build# cmake ..
***** LibreCAD *****
Version: 3.0

Options:
  - Qt user interface: ON
  - Lua command line interface: ON
  - Unit tests: ON
  - Rendering unit tests: ON
  - Documentation: OFF
  - LibreCAD DXF/DWG support:
  - Use libopencad: OFF
  - Use Cairo: OFF


CMake Warning (dev) in CMakeLists.txt:
  A logical block opening on the line

    /LibreCAD_3/CMakeLists.txt:107 (if)

  closes on the line

    /LibreCAD_3/CMakeLists.txt:109 (endif)

  with mis-matching arguments.
This warning is for project developers.  Use -Wno-dev to suppress it.

--
/// TinySpline Configuration Summary //////////////////////////////////////////
Platform:
  Id: linux-x86_64

Interface Configuration:
  With single precision  (default: OFF): OFF

Compiler Configuration:
  Compiler:       /usr/bin/c++
  C flags:        -std=c89 -Werror -Wall -Wextra -Wfloat-equal -pedantic
  C libraries:    -lm
  C++ flags:      -Werror -Wall -Wextra -Wfloat-equal
  C++ libraries:  -lm
  Binding flags:  -w -DSWIG
  Runtime libs:  
  Definitions:    
  Debug postfix:  
  Toolchain file:

Available Interfaces:
  C++:          ON

  C#:           OFF
    Compiler:

  D:            OFF

  Go:           OFF

  Java:         OFF
    Version:  
    Include:  
    Library:  
    Compiler:
    Archiver:

  Lua:          OFF
    Version:  
    Include:  /usr/include/lua5.3
    Library:  

  Octave:       OFF
    Version:  
    Include:  
    Library:  

  PHP:          OFF
    Version:  
    Include:  

  Python:       OFF
    Version:  
    Include:  
    Library:  

  R:            OFF
    Version:  
    Include:  
    Library:  

  Ruby:         OFF
    Version:  
    Include:  
    Library:  

Installation:
  Prefix: /usr/local
///////////////////////////////////////////////////////////////////////////////

-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR)
CMake Warning (dev) at /usr/share/cmake-3.13/Modules/FindOpenGL.cmake:270 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  lckernel/tinyspline/examples/c/CMakeLists.txt:20 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Code coverage requires gcov, lcov, and genhtml
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Could NOT find MkDocs (missing: MKDOCS_EXECUTABLE)
***** LibreCAD kernel *****
-- Boost version: 1.67.0
-- Found the following Boost libraries:
--   log
--   date_time
--   log_setup
--   system
--   filesystem
--   thread
--   chrono
--   atomic
-- Found Eigen3 include dir: /usr/include/eigen3
CMake Error at lckernel/CMakeLists.txt:262 (install):
  install TARGETS given no LIBRARY DESTINATION for shared library target
  "lckernel".


CMake Error at lckernel/CMakeLists.txt:263 (install):
  install TARGETS given no LIBRARY DESTINATION for shared library target
  "lckernel".


***** LibreCAD Lua scripts *****
***** LibreCAD lcadluascript *****
-- Found Eigen3 include dir: /usr/include/eigen3
-- Boost version: 1.67.0
-- Found the following Boost libraries:
--   log
--   date_time
--   log_setup
--   system
--   filesystem
--   thread
--   chrono
--   atomic
CMake Error at lcadluascript/CMakeLists.txt:85 (install):
  install TARGETS given no LIBRARY DESTINATION for shared library target
  "lcluascript".


CMake Error at lcadluascript/CMakeLists.txt:86 (install):
  install TARGETS given no LIBRARY DESTINATION for shared library target
  "lcluascript".


***** LibreCAD persistence *****
-- Found libDxfrw include dir: /usr/local/include/libdxfrw0
-- Found libDxfrw library: /usr/local/lib/libdxfrw.so
-- Boost version: 1.67.0
-- Found the following Boost libraries:
--   log
--   date_time
--   log_setup
--   system
--   filesystem
--   thread
--   chrono
--   atomic
-- Found Eigen3 include dir: /usr/include/eigen3
CMake Error at persistence/CMakeLists.txt:74 (install):
  install TARGETS given no LIBRARY DESTINATION for shared library target
  "persistence".


CMake Error at persistence/CMakeLists.txt:75 (install):
  install TARGETS given no LIBRARY DESTINATION for shared library target
  "persistence".


***** LibreCAD lcviewernoqt *****
CMake Warning (dev) at /usr/share/cmake-3.13/Modules/FindOpenGL.cmake:270 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib/x86_64-linux-gnu/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib/x86_64-linux-gnu/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib/x86_64-linux-gnu/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  lcviewernoqt/CMakeLists.txt:132 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

OpenGL include dir: /usr/include
-- Boost version: 1.67.0
-- Found the following Boost libraries:
--   log
--   date_time
--   log_setup
--   system
--   filesystem
--   thread
--   chrono
--   atomic
-- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
-- Found Eigen3 include dir: /usr/include/eigen3
CMake Error at lcviewernoqt/CMakeLists.txt:218 (install):
  install TARGETS given no LIBRARY DESTINATION for shared library target
  "lcviewernoqt".


CMake Error at lcviewernoqt/CMakeLists.txt:219 (install):
  install TARGETS given no LIBRARY DESTINATION for shared library target
  "lcviewernoqt".


***** LibreCAD Qt user interface *****
-- Found Eigen3 include dir: /usr/include/eigen3
-- Boost version: 1.67.0
-- Found the following Boost libraries:
--   log
--   date_time
--   log_setup
--   system
--   filesystem
--   thread
--   chrono
--   atomic
-- Found Lua 5.3 include dir: /usr/include/lua5.3
-- Found Lua 5.3 library: /usr/lib/x86_64-linux-gnu/liblua5.3.so
***** Lua command line interface *****
-- Checking for module 'cairo'
--   No package 'cairo' found
-- Found Cairo  include dir: CAIRO_INCLUDE_DIRS-NOTFOUND
-- Found Cairo  library: CAIRO_LIBRARIES-NOTFOUND
CMake Error at /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Cairo (missing: CAIRO_INCLUDE_DIRS CAIRO_LIBRARIES)
Call Stack (most recent call first):
  /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  luacmdinterface/cmake/FindCairo.cmake:90 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  luacmdinterface/CMakeLists.txt:9 (find_package)


CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
BZIP2_LIBRARY
    linked by target "lcviewernoqt" in directory /LibreCAD_3/lcviewernoqt
CAIRO_LIBRARIES
    linked by target "lcviewernoqt" in directory /LibreCAD_3/lcviewernoqt

-- Configuring incomplete, errors occurred!
See also "/LibreCAD_3/build/CMakeFiles/CMakeOutput.log".
See also "/LibreCAD_3/build/CMakeFiles/CMakeError.log".

the CMakeCache.txt file is some 26 screen long - - - - do you need all of it?

Please advise.
Reply | Threaded
Open this post in threaded view
|

Re: Installing LibreCAD3.0

dabeegmon
In reply to this post by Feragon
Feragon wrote
Hello,

When you compile software depending on libraries on Debian, you need the -dev packages. Here, it looks like libcairo2-dev is missing.

However, Cairo is not required for the main LibreCAD executable (only for unit tests and the CLI version). When generating the CMake files (cmake ..) you can add those options:
cmake -DWITH_LUACMDINTERFACE=FALSE -DWITH_RENDERING_UNITTESTS=OFF -DWITH_CAIRO=OFF ..
Thanks.
Tried the install - - - - didn't change anything.
Tried the command - - - -still complaining about missing the BZIP2_Library.

Thanks for the help!
Reply | Threaded
Open this post in threaded view
|

Re: Installing LibreCAD3.0

dabeegmon
In reply to this post by Jedi18
CMakeError.log_from_debian_stable_install

Trying to do some sleuthing, I'm no programmer - - - just trying to see if there's something that I 'could' change, above is the CMakeError.log for my install. I had not remembered that this first install was actually done on Debian stable.

I thought I try an install on Debian testing as my main work machine is running on that.

CMakeError.log_from_Debian_testing_install 

It would seem that a similar compile 'error', although a different number is listed', is causing the issue.

Hoping that this added information is useful.

TIA
Reply | Threaded
Open this post in threaded view
|

Re: Installing LibreCAD3.0

dabeegmon
Tried adding the libharfbuzz-dev packages to get a working install but still no joy.

Did a -make whilst disabling cairo (as described in a github issue thread) and was then able to get a working install.


Hopefully not too dumb a question - - -  what I was able to achieve seemed somewhat truncated - -  (yes I get that its development level software) - - - is it 'safe' to say that LibreCAD3.0 still has  away to go before prime time - - - yes?

Is there anything a non-programmer can do to help move the progress forward?

I don't think the software is ready for that yet but I would be quite interested in say something like writing docs/how tos etc.

Please advise.