I'm new to arduino and trying to get IDE installed.
Both the 32 and 64 bit versions of Linux arduino IDE fail.
Thanks!
jay#jay-desktop $ bash arduino
Picked up JAVA_TOOL_OPTIONS:
Exception in thread "main" java.lang.UnsupportedClassVersionError: processing/app/Base : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
java info
jay#jay-desktop $ javac -version
javac 1.7.0_95
jay#jay-desktop $ java -version
java version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
Sounds like you are trying to run a version of the IDE that has been compiled for Java 1.8 on Java 1.7. Upgrading java to 1.8 ought to fix it.
Related
I recently re-installed Qt - and now I am having issues with my MySQL drivers for Qt. I now get the error:
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QODBC QODBC3 QPSQL QPSQL7
So I am trying to build the QMYSQL Driver. So far I have...
Downloaded the MySQL Community installer by running mysql-installer-web-community-8.0.18.0.msi
And installed the x86 version of the MySQL Connector C 6.11, which saved to C:\Program Files (x86)\MySQL\MySQL Connector C 6.1
Opened a Developer Command Prompt for VS 2017 and ran:
CD "C:\Qt\5.12.6\Src\qtbase\src\plugins\sqldrivers"
qmake -- MYSQL_INCDIR="C:/Program Files (x86)/MySQL/MySQL Connector C 6.1/include" MYSQL_LIBDIR="C:/Program Files (x86)/MySQL/MySQL Connector C 6.1/lib"
Which seems to work, as I get "yes" for MySQL:
Running configuration tests...
Checking for DB2 (IBM)... no
Checking for InterBase... no
Checking for MySQL... yes
Checking for OCI (Oracle)... no
Checking for ODBC... yes
Checking for PostgreSQL... no
Checking for SQLite (version 2)... no
Checking for TDS (Sybase)... no
Done running configuration tests.
Configure summary:
Qt Sql Drivers:
DB2 (IBM) .............................. no
InterBase .............................. no
MySql .................................. yes
OCI (Oracle) ........................... no
ODBC ................................... yes
PostgreSQL ............................. no
SQLite2 ................................ no
SQLite ................................. yes
Using system provided SQLite ......... no
TDS (Sybase) ........................... no
Qt is now configured for building. Just run 'nmake'.
Once everything is built, you must run 'nmake install'.
Qt will be installed into 'C:\Qt\5.12.6\msvc2017_64'.
Prior to reconfiguration, make sure you remove any leftovers from
the previous build.
Note: I have also tried installing the x64 version of MySQL Connector C 6.1 instead of x86, but when I run QMAKE then (after adjusting the INCDIR and LIBDIR parameters from qmake) It says 'no' for MySQL - which I believe means that I am correct to be trying to use the x86 version.
Then from the same CMD I run: nmake sub-mysql but I get the error:
c:\qt\5.12.6\src\qtbase\src\plugins\sqldrivers\mysql\qsql_mysql_p.h(60): fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
main.cpp
c:\qt\5.12.6\src\qtbase\src\plugins\sqldrivers\mysql\qsql_mysql_p.h(60): fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
Generating Code...
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
I've checked that 'mysql.h' DOES exist in 'C:\Program Files (x86)\MySQL\MySQL Connector C 6.1\include'.
Is there something else I am missing or doing wrong?
OS: Windows 10
Qt: 5.12.6
MySQL: C Connector 6.11 x86
Compiler: MSVC 2017
Setting up sbt (0.13.15.3) ... /usr/share/sbt/bin/sbt-launch-lib.bash:
line 73: java: command not found
dpkg: error processing package sbt
(--configure): subprocess installed post-installation script returned
error exit status 127
I have the Java bin directory in PATH and I've also set JAVA_HOME:
$ java -version
openjdk version "1.8.0_131" OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-0ubuntu1.16.04.2-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
I used the offline installer to install QT 5.5.1 (32 bit) in Linux Mint Cinnamon 17.2 (32 bit) in VirtualBox. Install was OK. Then QT creator doesn't launch. QT 5.5.0 works OK. Any ideas anyone?
From the command line it says could not initialize GLX.
I used the following configure options and commands to build qt5.5:
configure -developer-build -opensource -confirm-license -platform win32-msvc2013 -opengl desktop -nomake examples -nomake tests
nmake
QT is built successfully. After this, I installed QT creator 3.4.0 beta and configured qmake for qt5.5 and using Microsoft Visual studio C++ compiler 12.0 . Now when i try to build the qt3D examples using the QT creator, I am getting the following compile errors:
cpp.exe.2968.1625.jom
qtmain.lib(qtmain_win.obj) : error LNK2019: unresolved external symbol __imp__CommandLineToArgvW#8 referenced in function _WinMain#16
release\cylinder-cpp.exe : fatal error LNK1120: 1 unresolved externals
jom: C:\qt5.5\build-qt3d-Desktop-Release\examples\cylinder-cpp\Makefile.Release [release\cylinder-cpp.exe] Error 1120
jom: C:\qt5.5\build-qt3d-Desktop-Release\examples\cylinder-cpp\Makefile [release] Error 2
12:57:27: The process "C:\Qt\qtcreator-3.3.81\bin\jom.exe" exited with code 2.
Error while building/deploying project qt3d (kit: Desktop)
When executing step "Make"
12:57:27: Elapsed time: 00:03.
I understand that this error is because of winmain function missing which is required by visual studio compiler for any windows applications, However how does qt take care of it? What are the header files to be included to avoid this error for qt examples?
Please help me with your suggstions and let me know if I am missing any steps also.
I had a similar problem - I fixed it by linking Shell32.lib. See this discussion compilation of qt5.5 examples with qt creator with visual studio 2012 (msvc2012) fails for details.
Im running a c++ application and Asterisk in 64bit Ubuntu machine.My C++ application needs 32bit libcurl. And Asterisk needs 64bit libcurl to do some http calls in the dialpaln.Can I keep both 32bit and 64bit libcurl in the same machine and config asterisk to lookup for 64bit libcurl?
You can have on linux both 32 or 64 libs. 32bit apps will use libc.i686 and 32bit libs, 64bit apps will use 64bit libs.