Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation failed on Mint #192

Closed
Guruprasad-Rane opened this issue Nov 26, 2018 · 18 comments
Closed

Installation failed on Mint #192

Guruprasad-Rane opened this issue Nov 26, 2018 · 18 comments

Comments

@Guruprasad-Rane
Copy link
Contributor

CMakeError.log
CMakeOutput.log

Tried installing LIbrecad3 on Linux Mint 19 Cinnamon but failed. CMakeError.log CMakeOutput.log files are attached.
If possible please let me know where things are going wrong.

@feragon
Copy link
Member

feragon commented Nov 26, 2018

Do you have the pthread library installed ?

@Guruprasad-Rane
Copy link
Contributor Author

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

@feragon
Copy link
Member

feragon commented Nov 26, 2018

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

@Guruprasad-Rane
Copy link
Contributor Author

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

@Guruprasad-Rane
Copy link
Contributor Author

$ 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:

@feragon
Copy link
Member

feragon commented Nov 26, 2018

@Guruprasad-Rane
Copy link
Contributor Author

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

@feragon
Copy link
Member

feragon commented Nov 27, 2018

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

@Guruprasad-Rane
Copy link
Contributor Author

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.

@Guruprasad-Rane
Copy link
Contributor Author

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

@feragon
Copy link
Member

feragon commented Nov 28, 2018

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.

@Guruprasad-Rane
Copy link
Contributor Author

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.

@Guruprasad-Rane
Copy link
Contributor Author

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

@feragon
Copy link
Member

feragon commented Nov 29, 2018

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

@Guruprasad-Rane
Copy link
Contributor Author

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...

@feragon
Copy link
Member

feragon commented Nov 30, 2018

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

@Guruprasad-Rane
Copy link
Contributor Author

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

@feragon
Copy link
Member

feragon commented Dec 1, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants