GithubHelp home page GithubHelp logo

Comments (18)

feragon avatar feragon commented on July 3, 2024

Do you have the pthread library installed ?

from librecad_3.

Guruprasad-Rane avatar Guruprasad-Rane commented on July 3, 2024

I have libpthread-stubs0-dev installed. Is this the correct package for pthread?

from librecad_3.

feragon avatar feragon commented on July 3, 2024

It should be. Can you give me the content of this file ? [build dir]/CMakeFiles/cmTC_8dd12.dir/link.txt
I think CMake isn't pointing to the correct library

from librecad_3.

Guruprasad-Rane avatar Guruprasad-Rane commented on July 3, 2024

There is no directory named cmTC_8dd12.dir in CMakeFiles. Nothing with cmTC_*****.dir

from librecad_3.

Guruprasad-Rane avatar Guruprasad-Rane commented on July 3, 2024
$ dir -R CMakeFiles/
CMakeFiles/:
3.10.2		   CMakeError.log   CMakeTmp	       feature_tests.c
cmake.check_cache  CMakeOutput.log  feature_tests.bin  feature_tests.cxx

CMakeFiles/3.10.2:
CMakeCCompiler.cmake		   CMakeSystem.cmake
CMakeCXXCompiler.cmake		   CompilerIdC
CMakeDetermineCompilerABI_C.bin    CompilerIdCXX
CMakeDetermineCompilerABI_CXX.bin

CMakeFiles/3.10.2/CompilerIdC:
a.out  CMakeCCompilerId.c  tmp

CMakeFiles/3.10.2/CompilerIdC/tmp:

CMakeFiles/3.10.2/CompilerIdCXX:
a.out  CMakeCXXCompilerId.cpp  tmp

CMakeFiles/3.10.2/CompilerIdCXX/tmp:

CMakeFiles/CMakeTmp:

from librecad_3.

feragon avatar feragon commented on July 3, 2024

Do you have the libboost-all-dev installed ?
https://stackoverflow.com/questions/28029195/how-to-let-cmake-use-pthread-instead-of-lpthread

from librecad_3.

Guruprasad-Rane avatar Guruprasad-Rane commented on July 3, 2024

Yes. libboost-dev as well as libboost-all-dev are installed.

from librecad_3.

feragon avatar feragon commented on July 3, 2024

Can you try by removing everything related to threads in CMakeFiles ?
set(Boost_USE_MULTITHREADED ON), set(Boost_USE_MULTITHREADED ON), ${CMAKE_THREAD_LIBS_INIT}, FIND_PACKAGE ( Threads )

In those files : https://github.com/LibreCAD/LibreCAD_3/search?q=Threads&unscoped_q=Threads

from librecad_3.

Guruprasad-Rane avatar Guruprasad-Rane commented on July 3, 2024

Tried removing or commenting as you said but no luck.
I used cmake --debug-trycompile and all the necessary temp file are there intact.
CMakeFiles.tar.gz
Here is the complete CMakeFiles folder compressed.

from librecad_3.

Guruprasad-Rane avatar Guruprasad-Rane commented on July 3, 2024

I did a complete fresh git clone and it partly worked this time.
$ ./lcUI/librecad
qt5ct: using qt5ct plugin

(librecad:26519): GLib-GObject-WARNING **: 23:34:22.539: cannot register existing type 'GdkWindow'

(librecad:26519): GLib-GObject-CRITICAL **: 23:34:22.539: g_param_spec_object: assertion 'g_type_is_a (object_type, G_TYPE_OBJECT)' failed

(librecad:26519): GLib-GObject-CRITICAL **: 23:34:22.539: validate_pspec_to_install: assertion 'G_IS_PARAM_SPEC (pspec)' failed

(librecad:26519): GLib-GObject-WARNING **: 23:34:22.554: cannot register existing type 'GdkScreen'

(librecad:26519): GLib-CRITICAL **: 23:34:22.554: g_once_init_leave: assertion 'result != 0' failed

(librecad:26519): Gdk-CRITICAL **: 23:34:22.554: IA__gdk_screen_get_default_colormap: assertion 'GDK_IS_SCREEN (screen)' failed

(librecad:26519): Gdk-CRITICAL **: 23:34:22.554: IA__gdk_colormap_get_visual: assertion 'GDK_IS_COLORMAP (colormap)' failed

from librecad_3.

feragon avatar feragon commented on July 3, 2024

I can reproduce the bug on a fresh install.
You have to change the theme in Menu > Preferences > Qt5 Settings and change the theme.
Cleanlooks works but is ugly.

from librecad_3.

Guruprasad-Rane avatar Guruprasad-Rane commented on July 3, 2024

Librecad3 started with cleanlooks but looks like this.
screenshot from 2018-11-29 17-38-42

Tried to change icons theme on QT5 settings. but not luck.

from librecad_3.

Guruprasad-Rane avatar Guruprasad-Rane commented on July 3, 2024

qt5ct: using qt5ct plugin
qt5ct: D-Bus global menu: no
Error opening dir: No such file or directory
Output of ./librecad in terminal

from librecad_3.

feragon avatar feragon commented on July 3, 2024

I use Brise (KDE Qt theme), and it looks correct.

Concerning the console output, it's a Qt error message, and will not make LibreCAD crash

from librecad_3.

Guruprasad-Rane avatar Guruprasad-Rane commented on July 3, 2024

Whichever theme I use to select from QT Settings Librecad use to take bb10dark.
So I modified main.cpp
//QApplication::setStyle(QStyleFactory::create(style.getStyle()));
QApplication::setStyle("cleanlooks");
And it worked...
Not sure whether it is problem with LIbrecad or Cinnamon. But other QT based programs are working fine.

@feragon Thank you for the support...

from librecad_3.

feragon avatar feragon commented on July 3, 2024

Does it works better if you totally remove QApplication::setStyle ?

from librecad_3.

Guruprasad-Rane avatar Guruprasad-Rane commented on July 3, 2024

Yes. works better if QApplication::setStyle is removed. Style changes in QT5 settings reflected in Librecad as well.

from librecad_3.

feragon avatar feragon commented on July 3, 2024

Ok, then I'm going to remove this.
Thanks for the report !

from librecad_3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.