CauldronDevelopmentLLC / CAMotics

Open-Source Simulation & Computer Aided Machining - A 3-axis CNC GCode simulator
Other
624 stars 143 forks source link

Fail to start Linux .deb file 1.1.1 #234

Closed kd7ura closed 5 years ago

kd7ura commented 7 years ago

im gettin a few dependency not met issues from the newest deb file download. on install it shows in the deb Package Managerthat (All Dependencies are met) one is from 2014 , libv8.so.3.14.5,,, libv8 installed for it but got a second issue ,,,,, camotics: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version GLIBCXX_3.4.20' not found (required by camotics). It seams the .deb file is broke,, not listing all the needed dependencies for the install. if all the dependencies to run the program are listed it will install them as well if not located in the system or it will at least show, that all depends are not met and cant be found. who ever is building the deb should take a look at all needed libs and plug them or load with the deb, i didnt find in sudo apt-get install for either one so, needs a little work. libstdc++.so.6: versionGLIBCXX_3.4.20 is all over google as missing for multiple programs, so its not a os installed issue needs to be with the program as installable or a simple call out for the required packages that the libs are in.,,, /home $ strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX ,, shows GLIBCXX_3.4.19 as latest on my install so another call out in the install for latest versions of the packages installed Or Second is the install docs for linux should post sudo apt-get distribution upgrade ,, before install to account for most recent libs as well, not every one is running the latest. ;)

kd7ura commented 7 years ago

sudo apt-get distribution-upgrade didnt fix GLIBCXX_3.4.20 error run:

strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX

gets 3.4.19 so digdug around and found:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9
sudo apt-get upgrade libstdc++6
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX

gets:

GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBCXX_3.4.22

:+1:

jcoffland commented 7 years ago

This is a duplicate of #178. The libv8 issue is documented in #215. README.md issue solved with referenced commit.

kd7ura commented 7 years ago

camotics: symbol lookup error: camotics: undefined symbol: _ZN7QString13toUtf8helperERKS

?????

kd7ura commented 7 years ago

still trying to get it running Linux mint 17.1 qt5.2 installed currently upgrading to 17.3 Its not just #178 , and #215, its a failure to run 1.1.1 and having deb installer show all dependencies are met before install ,and getting dependencies errors when trying to start the program. im doing what i can to get it running but digging for dependencies that should have been covered by the .deb is what the issue is about, im not psychic, cant read the dependencies from the either i rely on the deb doing what its supposed to do, like list all missing dependencies it cant find or showing the statement that dependencies cant be met or are missing Dependencies cannot install.

jcoffland commented 7 years ago

The package is also not psychic. I does not know what dependencies your particular Linux distro needs and it is nearly impossible to create packages that cover all the cases. This is a problem with release binaries packages for Linux outside of the distro's packaging system.

Please provide more information about how you got camotics: symbol lookup error: camotics: undefined symbol: ZN7QString13toUtf8_helperERKS. I need to narrow this issue down to one solvable problem. If there are other problems that are not cover by this issue or other issues then please open a new issue. And please provide enough context so that I can reproduce the problem.

kd7ura commented 7 years ago

1 one i downloaded the linux64.deb ver 1.1.1. 2 clicked it, package installer starts shows all dependencies are met, click install button, installs camotics click icon in other gets mouse timer 5/10 seconds then nothing. so terminal camotics gets v8 error, i fix, terminal again camotics gets camotics: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version GLIBCXX_3.4.20' not found so upgradei upgrade /libstdc++.so.6 to lates. terminal again camotics gets the QT error not shure yet what is about but gots to be QT.camotics: symbol lookup error: camotics: undefined symbol: ZN7QString13toUtf8_helperERKS i was lookin through the .md for reqs, will be checking mine as soon as upgrade is finished.
im running a supper fast 1.3 MB frontier communications dsl hookup back in a bit

kd7ura commented 7 years ago

1 one i downloaded the linux64.deb ver 1.1.1. 2 clicked it, package installer starts shows all dependencies are met, click install button, installs camotics click icon in other gets mouse timer 5/10 seconds then nothing. so terminal camotics gets v8 error, i fix, terminal again camotics gets camotics: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version GLIBCXX_3.4.20' not found so upgradei upgrade /libstdc++.so.6 to lates. terminal again camotics gets the QT error not shure yet what is about but gots to be QT.camotics: symbol lookup error: camotics: undefined symbol: ZN7QString13toUtf8_helperERKS i was lookin through the .md for reqs, will be checking mine as soon as upgrade is finished.
im running a supper fast 1.3 MB frontier communications dsl hookup back in a bit

kd7ura commented 7 years ago

here is a paste of term.

~ $ camotics CAMotics Website: http://camotics.org/ Copyright: (c) 2011-2015 Author: Joseph Coffland joseph@camotics.org Organization: Cauldron Development LLC Args: Config: **** Build ***** Version: 1.1.1 Date: Feb 26 2017 Time: 07:03:12 Repository: Git Revision: 0349ce6eb88d1e63c77bc7a50dd5e0653036a16d Branch: master Compiler: GNU 4.9.2 Options: -std=c++11 -Wno-deprecated-declarations -O3 -funroll-loops -fPIC Platform: linux2 4.9.0-1-amd64 Bits: 64 Mode: Release **** System **** CPU: Intel(R) Celeron(R) CPU 900 @ 2.20GHz CPU ID: GenuineIntel Family 6 Model 23 Stepping 10 CPUs: 1 Memory: 1.89GiB Free Memory: 226.72MiB Threads: POSIX_THREADS OS Version: 3.13 Has Battery: true On Battery: false UTC Offset: -7 PID: 2489 CWD: /home/home DPI: 96


camotics: symbol lookup error: camotics: undefined symbol: _ZN7QString13toUtf8helperERKS home@home-Presario-CQ56-Notebook-PC ~ $

should be a method for dgkg to run script at install of deb to check system for depends, or when building deb provide the libs for the build in additional folder in the build directory and link to these on install and run, the package builder knows what the package needs or should, he built it . no psy skills need then. package should script start run dpkg,check deps ,install deps, check again till all package deps are met or run a package deps check befor building the deb and include them in the deb file. we shouldnt need to install all the latest software development and debug packages and IDEs to run the program , as for the error above i believe its just another lib. i checked readme.sd for

Prerequisites

i upgradeded to 17.3 and not seeing , libqt5websockets-dev, i have libqt5opengl5-dev but not the listed libqt5opengl-dev, (scons) not installed ,some cairo installed ,ChakraCore nothing found. so the statment in the deb installer, Status All Dependencies are satisfied is false. im digin around try and find a solution for the dpkg check

kd7ura commented 7 years ago

Reading package lists... Done Reading package lists... Done Building dependency tree
Reading state information... Done zlib1g-dev is already the newest version. zlib1g-dev set to manually installed. libv8-dev is already the newest version. libqt4-dev is already the newest version. libqt4-dev set to manually installed. scons is already the newest version. The following extra packages will be installed: dpkg-dev g++ g++-4.8 git-man icu-devtools libboost-filesystem1.54-dev libboost-filesystem1.54.0 libboost-iostreams1.54-dev libboost-regex1.54-dev libboost-regex1.54.0 libboost-system1.54-dev libboost1.54-dev libcairo-script-interpreter2 liberror-perl libfontconfig1-dev libfreetype6-dev libglib2.0-dev libice-dev libicu-dev libpcre3-dev libpcrecpp0 libpixman-1-dev libpng12-dev libqt4-sql-sqlite libsm-dev libstdc++-4.8-dev libxcb-shm0-dev libxrender-dev x11proto-render-dev Suggested packages: debian-keyring g++-multilib g++-4.8-multilib gcc-4.8-doc libstdc++6-4.8-dbg git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-bzr git-cvs git-mediawiki git-svn libboost1.54-doc libboost-atomic1.54-dev libboost-chrono1.54-dev libboost-context1.54-dev libboost-coroutine.54-dev libboost-date-time1.54-dev libboost-exception1.54-dev libboost-graph1.54-dev libboost-graph-parallel1.54-dev libboost-locale1.54-dev libboost-log.54-dev libboost-math1.54-dev libboost-mpi1.54-dev libboost-mpi-python1.54-dev libboost-program-options1.54-dev libboost-python1.54-dev libboost-random1.54-dev libboost-serialization1.54-dev libboost-signals1.54-dev libboost-test1.54-dev libboost-thread1.54-dev libboost-timer1.54-dev libboost-wave1.54-dev libboost1.54-tools-dev libmpfrc++-dev libntl-dev libcairo2-doc libglib2.0-doc libice-doc icu-doc libsm-doc sqlite3-doc libstdc++-4.8-doc qt4-doc-html Recommended packages: libalgorithm-merge-perl libssl-doc qt4-designer qt4-doc The following NEW packages will be installed: build-essential dpkg-dev g++ g++-4.8 git git-man icu-devtools libboost-filesystem-dev libboost-filesystem1.54-dev libboost-filesystem1.54.0 libboost-iostreams-dev libboost-iostreams1.54-dev libboost-regex-dev libboost-regex1.54-dev libboost-regex1.54.0 libboost-system-dev libboost-system1.54-dev libboost1.54-dev libbz2-dev libcairo-script-interpreter2 libcairo2-dev liberror-perl libexpat1-dev libfontconfig1-dev libfreetype6-dev libglib2.0-dev libice-dev libicu-dev libpcre3-dev libpcrecpp0 libpixman-1-dev libpng12-dev libqt4-opengl-dev libqt4-sql-sqlite libsm-dev libsqlite3-dev libssl-dev libstdc++-4.8-dev libxcb-shm0-dev libxrender-dev qt4-dev-tools x11proto-render-dev 0 upgraded, 42 newly installed, 0 to remove and 4 not upgraded.

ran scons: warning: QT5DIR variable is not defined, using moc executable as a hint (QT5DIR=/usr) File "/tmp/CAMotics/config/qt5/init.py", line 406, in _detect Compiler: gcc (gnu) Platform: posix Mode: gnu Arch: x86 Jobs: 1 Checking for C library pthread... yes Checking for C header file zlib.h... yes Checking for C library z... yes Checking for C header file bzlib.h... yes Checking for C library bz2... yes Checking for C header file expat.h... yes Checking for C library expat... yes Checking for C header file pthread.h... yes Checking for C library pthread... yes Checking for C library dl... yes Checking for C library sqlite3... yes Checking for C header file sqlite3.h... yes Checking for C function sqlite3_backup_init()... yes Checking for C header file event.h... yes Checking for C library event... yes Checking for C++ header file re2/re2.h... yes Checking for C library re2... yes Checking for C library leveldb... no Checking for C header file mysql/mysql.h... no Checking for C function clock_gettime()... yes Checking for C library dl... yes Checking for C header file openssl/ssl.h... yes Checking for C library crypto... yes Checking for C library ssl... yes Checking for openssl version >= 1.0.0...yes Checking for C++ header file ChakraCore.h... no Need C++ header ChakraCore.h(cached) error: no result Checking for C++ header file v8.h... yes Checking for C library v8... yes Checking for C header file pthread.h... yes Checking for C library pthread... yes Checking for C header file valgrind/valgrind.h... no Checking for C library cbang-boost... yes Checking for C library cbang... yes Checking for C++ header file cbang/Exception.h... yes Package Qt5WebSockets was not found in the pkg-config search path. Perhaps you should add the directory containing `Qt5WebSockets.pc' to the PKG_CONFIG_PATH environment variable No package 'Qt5WebSockets' found OSError: 'pkg-config Qt5Core Qt5Gui Qt5OpenGL Qt5Network Qt5Widgets Qt5WebSockets --libs --cflags' exited 1: File "/tmp/CAMotics/SConstruct", line 85: env.EnableQtModules(qtmods.split()) File "/usr/lib/scons/SCons/Environment.py", line 223: return self.method(*nargs, kwargs) File "/tmp/CAMotics/config/qt5/init.py", line 941: self.ParseConfig('pkg-config %s --libs --cflags'% ' '.join(pcmodules)) File "/usr/lib/scons/SCons/Environment.py", line 1554: return function(self, self.backtick(command)) File "/usr/lib/scons/SCons/Environment.py", line 596: raise OSError("'%s' exited %d" % (command, status)) Failed home@home-Presario-CQ56-Notebook-PC ~ $ camotics ** CAMotics Website: http://camotics.org/ Copyright: (c) 2011-2015 Author: Joseph Coffland joseph@camotics.org Organization: Cauldron Development LLC Args: Config: **** Build ***** Version: 1.1.1 Date: Feb 26 2017 Time: 07:03:12 Repository: Git Revision: 0349ce6eb88d1e63c77bc7a50dd5e0653036a16d Branch: master Compiler: GNU 4.9.2 Options: -std=c++11 -Wno-deprecated-declarations -O3 -funroll-loops -fPIC Platform: linux2 4.9.0-1-amd64 Bits: 64 Mode: Release **** System **** CPU: Intel(R) Celeron(R) CPU 900 @ 2.20GHz CPU ID: GenuineIntel Family 6 Model 23 Stepping 10 CPUs: 1 Memory: 1.89GiB Free Memory: 285.71MiB Threads: POSIX_THREADS OS Version: 3.13 Has Battery: true On Battery: false UTC Offset: -7 PID: 12025 CWD: /home/home DPI: 96


camotics: symbol lookup error: camotics: undefined symbol: _ZN7QString13toUtf8helperERKS home@home-Presario-CQ56-Notebook-P

jcoffland commented 5 years ago

The remaining issue is better described in #263.