Minko Engine SDK - Tons of compile errors - minko

I just pulled Minko Engine from github and followed all the instructions. Some of the projects have a ton of compile errors. I'm compiling this on Windows 10 with VS2015.
Here are some of the errors
Error LNK2005 "bool __cdecl std::uncaught_exception(void)" (?uncaught_exception#std##YA_NXZ) already defined in libcpmt.lib(uncaught.obj) minko-test E:\OneDrive\Projects\Minko\minko\test\msvcprt.lib(MSVCP140.dll) 1 Build
Error LNK2005 "protected: __cdecl std::basic_ios >::basic_ios >(void)" (??0?$basic_ios#DU?$char_traits#D#std###std##IEAA#XZ) already defined in libcpmt.lib(cin.obj) minko-test E:\OneDrive\Projects\Minko\minko\test\msvcprt.lib(MSVCP140.dll) 1 Build
Error LNK2005 "protected: __cdecl std::basic_streambuf >::basic_streambuf >(void)" (??0?$basic_streambuf#DU?$char_traits#D#std###std##IEAA#XZ) already defined in FlyweightTest.obj minko-test E:\OneDrive\Projects\Minko\minko\test\msvcprt.lib(MSVCP140.dll) 1 Build
Error LNK2005 "public: char __cdecl std::basic_ios >::widen(char)const " (?widen#?$basic_ios#DU?$char_traits#D#std###std##QEBADD#Z) already defined in libcpmt.lib(cin.obj) minko-test E:\OneDrive\Projects\Minko\minko\test\msvcprt.lib(MSVCP140.dll) 1 Build
Error LNK2005 "public: class std::basic_ostream > & __cdecl std::basic_ostream >::flush(void)" (?flush#?$basic_ostream#DU?$char_traits#D#std###std##QEAAAEAV12#XZ) already defined in main.obj minko-test E:\OneDrive\Projects\Minko\minko\test\msvcprt.lib(MSVCP140.dll) 1 Build
Error LNK2005 "public: class std::basic_ostream > & __cdecl std::basic_ostream >::operator<<(double)" (??6?$basic_ostream#DU?$char_traits#D#std###std##QEAAAEAV01#N#Z) already defined in EffectParserTest.obj minko-test E:\OneDrive\Projects\Minko\minko\test\msvcprt.lib(MSVCP140.dll) 1 Build
Error LNK2005 "public: class std::basic_ostream > & __cdecl std::basic_ostream >::operator<<(float)" (??6?$basic_ostream#DU?$char_traits#D#std###std##QEAAAEAV01#M#Z) already defined in AmbientLightTest.obj minko-test E:\OneDrive\Projects\Minko\minko\test\msvcprt.lib(MSVCP140.dll) 1 Build
Error LNK2005 "public: class std::basic_ostream > & __cdecl std::basic_ostream >::operator<<(int)" (??6?$basic_ostream#DU?$char_traits#D#std###std##QEAAAEAV01#H#Z) already defined in FlyweightTest.obj minko-test E:\OneDrive\Projects\Minko\minko\test\msvcprt.lib(MSVCP140.dll) 1 Build
Error LNK2005 "public: class std::basic_ostream > & __cdecl std::basic_ostream >::operator<<(unsigned int)" (??6?$basic_ostream#DU?$char_traits#D#std###std##QEAAAEAV01#I#Z) already defined in SignalTest.obj minko-test E:\OneDrive\Projects\Minko\minko\test\msvcprt.lib(MSVCP140.dll) 1 Build
Error LNK2005 "public: class std::basic_ostream > & __cdecl std::basic_ostream >::operator<<(unsigned __int64)" (??6?$basic_ostream#DU?$char_traits#D#std###std##QEAAAEAV01#_K#Z) already defined in FlyweightTest.obj minko-test E:\OneDrive\Projects\Minko\minko\test\msvcprt.lib(MSVCP140.dll) 1 Build
Error LNK2005 "public: class std::basic_ostream > & __cdecl std::basic_ostream >::operator<<(void const *)" (??6?$basic_ostream#DU?$char_traits#D#std###std##QEAAAEAV01#PEBX#Z) already defined in FlyweightTest.obj minko-test E:\OneDrive\Projects\Minko\minko\test\msvcprt.lib(MSVCP140.dll) 1 Build
Error LNK2005 "public: class std::basic_ostream > & __cdecl std::basic_ostream >::put(char)" (?put#?$basic_ostream#DU?$char_traits#D#std###std##QEAAAEAV12#D#Z) already defined in EffectParserTest.obj minko-test E:\OneDrive\Projects\Minko\minko\test\msvcprt.lib(MSVCP140.dll) 1 Build
Error LNK2005 "public: class std::basic_ostream > & __cdecl std::basic_ostream >::write(char const *,__int64)" (?write#?$basic_ostream#DU?$char_traits#D#std###std##QEAAAEAV12#PEBD_J#Z) already defined in minko-plugin-serializer.lib(TypeSerializer.obj) minko-test E:\OneDrive\Projects\Minko\minko\test\msvcprt.lib(MSVCP140.dll) 1 Build

Related

undefined reference to symbol '_ZN12QSqlDatabase11setHostNameERK7QString'

My program has a basic function for adding datas to database but when the code gives an error when it is compiled.
void MainWindow::AddLocationToDatabase()
{
QSqlDatabase db= QSqlDatabase::addDatabase("QMYSQL");
db.setHostName("localhost");
db.setUserName("root");
db.setPassword("*******");
db.setDatabaseName("databasename");
db.setPort(1111);
if(db.open()){
qDebug()<<"connected";
}
}
/usr/bin/ld: build/debug/mainwindow.o: undefined reference to symbol '_ZN12QSqlDatabase11setHostNameERK7QString'
/usr/lib/x86_64-linux-gnu/libQt5Sql.so.5: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [sub-pcapprogram-make_first-ordered] Error 2
06:57:04: The process "/usr/bin/make" exited with code 2.
When executing step "Make"
When I added "QT += sql", there was no error.

Building TexMaker 5 from source on windows

I have been trying to build Texmaker from 5 from the source tarball on http://www.xm1math.net/texmaker/download.html
I have installed a fresh QT 5.9, and a fresh MSVC 2015 Community edition.
When I try the build, it gets all the way through to the link stage, and dies with some missing symbols. In particular the symbols from the windows pdf device appear to be missing - it's as if the .pro file only copes with linux/mac builds.
Has anyone managed to make this work?
Mails to the author have gone unanswered.
I have some changes (additional folding options, such as "Fold all sections" etc) that I would like to test and pass back to the mainstream.
Thanks in advance for any help.
The exact section of the build log with the errors in, is:
link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST:embed /OUT:release\texmaker.exe #C:\Users\Robin\AppData\Local\Temp\texmaker.exe.7624.29140.jom
Creating library release\texmaker.lib and object release\texmaker.exp
fpdfview.obj : error LNK2019: unresolved external symbol "public: __cdecl CFX_WindowsDevice::CFX_WindowsDevice(struct HDC__ *)" (??0CFX_WindowsDevice##QEAA#PEAUHDC__###Z) referenced in function FPDF_RenderPage
fpdfview.obj : error LNK2019: unresolved external symbol "public: virtual __cdecl CFX_WindowsDevice::~CFX_WindowsDevice(void)" (??1CFX_WindowsDevice##UEAA#XZ) referenced in function FPDF_RenderPage
fpdf_sysfontinfo.obj : error LNK2019: unresolved external symbol "public: static class std::unique_ptr<class IFX_SystemFontInfo,struct std::default_delete<class IFX_SystemFontInfo> > __cdecl IFX_SystemFontInfo::CreateDefault(char const * *)" (?CreateDefault#IFX_SystemFontInfo##SA?AV?$unique_ptr#VIFX_SystemFontInfo##U?$default_delete#VIFX_SystemFontInfo###std###std##PEAPEBD#Z) referenced in function FPDF_GetDefaultSystemFontInfo
doc_form.obj : error LNK2019: unresolved external symbol __imp_EnumFontFamiliesExA referenced in function "int __cdecl RetrieveSpecificFont(struct tagLOGFONTA &)" (?RetrieveSpecificFont##YAHAEAUtagLOGFONTA###Z)
doc_form.obj : error LNK2019: unresolved external symbol __imp_GetDC referenced in function "int __cdecl RetrieveSpecificFont(struct tagLOGFONTA &)" (?RetrieveSpecificFont##YAHAEAUtagLOGFONTA###Z)
doc_form.obj : error LNK2019: unresolved external symbol __imp_ReleaseDC referenced in function "int __cdecl RetrieveSpecificFont(struct tagLOGFONTA &)" (?RetrieveSpecificFont##YAHAEAUtagLOGFONTA###Z)
cpdf_document.obj : error LNK2019: unresolved external symbol __imp_CreateCompatibleDC referenced in function "public: class CPDF_Font * __cdecl CPDF_Document::AddWindowsFont(struct tagLOGFONTA *,int,int)" (?AddWindowsFont#CPDF_Document##QEAAPEAVCPDF_Font##PEAUtagLOGFONTA##HH#Z)
cpdf_document.obj : error LNK2019: unresolved external symbol __imp_CreateFontIndirectA referenced in function "public: class CPDF_Font * __cdecl CPDF_Document::AddWindowsFont(struct tagLOGFONTA *,int,int)" (?AddWindowsFont#CPDF_Document##QEAAPEAVCPDF_Font##PEAUtagLOGFONTA##HH#Z)
cpdf_document.obj : error LNK2019: unresolved external symbol __imp_DeleteDC referenced in function "public: class CPDF_Font * __cdecl CPDF_Document::AddWindowsFont(struct tagLOGFONTA *,int,int)" (?AddWindowsFont#CPDF_Document##QEAAPEAVCPDF_Font##PEAUtagLOGFONTA##HH#Z)
cpdf_document.obj : error LNK2019: unresolved external symbol __imp_DeleteObject referenced in function "public: class CPDF_Font * __cdecl CPDF_Document::AddWindowsFont(struct tagLOGFONTA *,int,int)" (?AddWindowsFont#CPDF_Document##QEAAPEAVCPDF_Font##PEAUtagLOGFONTA##HH#Z)
cpdf_document.obj : error LNK2019: unresolved external symbol __imp_GetCharWidthW referenced in function "public: class CPDF_Font * __cdecl CPDF_Document::AddWindowsFont(struct tagLOGFONTA *,int,int)" (?AddWindowsFont#CPDF_Document##QEAAPEAVCPDF_Font##PEAUtagLOGFONTA##HH#Z)
cpdf_document.obj : error LNK2019: unresolved external symbol __imp_GetFontData referenced in function "class CFX_ByteString __cdecl `anonymous namespace'::FPDF_GetPSNameFromTT(struct HDC__ *)" (?FPDF_GetPSNameFromTT#?A0x2555c822##YA?AVCFX_ByteString##PEAUHDC__###Z)
cpdf_document.obj : error LNK2019: unresolved external symbol __imp_GetOutlineTextMetricsW referenced in function "public: class CPDF_Font * __cdecl CPDF_Document::AddWindowsFont(struct tagLOGFONTA *,int,int)" (?AddWindowsFont#CPDF_Document##QEAAPEAVCPDF_Font##PEAUtagLOGFONTA##HH#Z)
cpdf_document.obj : error LNK2019: unresolved external symbol __imp_SelectObject referenced in function "public: class CPDF_Font * __cdecl CPDF_Document::AddWindowsFont(struct tagLOGFONTA *,int,int)" (?AddWindowsFont#CPDF_Document##QEAAPEAVCPDF_Font##PEAUtagLOGFONTA##HH#Z)
fx_extension.obj : error LNK2019: unresolved external symbol __imp_CryptAcquireContextW referenced in function "void __cdecl FX_Random_GenerateMT(unsigned int *,int)" (?FX_Random_GenerateMT##YAXPEAIH#Z)
fx_extension.obj : error LNK2019: unresolved external symbol __imp_CryptReleaseContext referenced in function "void __cdecl FX_Random_GenerateMT(unsigned int *,int)" (?FX_Random_GenerateMT##YAXPEAIH#Z)
fx_extension.obj : error LNK2019: unresolved external symbol __imp_CryptGenRandom referenced in function "void __cdecl FX_Random_GenerateMT(unsigned int *,int)" (?FX_Random_GenerateMT##YAXPEAIH#Z)
fx_ge.obj : error LNK2019: unresolved external symbol "private: void __cdecl CFX_GEModule::InitPlatform(void)" (?InitPlatform#CFX_GEModule##AEAAXXZ) referenced in function "private: __cdecl CFX_GEModule::CFX_GEModule(char const * *,class CCodec_ModuleMgr *)" (??0CFX_GEModule##AEAA#PEAPEBDPEAVCCodec_ModuleMgr###Z)
fx_ge.obj : error LNK2019: unresolved external symbol "private: void __cdecl CFX_GEModule::DestroyPlatform(void)" (?DestroyPlatform#CFX_GEModule##AEAAXXZ) referenced in function "private: __cdecl CFX_GEModule::~CFX_GEModule(void)" (??1CFX_GEModule##AEAA#XZ)
release\texmaker.exe : fatal error LNK1120: 19 unresolved externals
jom: D:\Artifex\build-texmaker-Desktop_Qt_5_9_1_MSVC2015_64bit-Debug\Makefile.Release [release\texmaker.exe] Error 1120
jom: D:\Artifex\build-texmaker-Desktop_Qt_5_9_1_MSVC2015_64bit-Debug\Makefile [release] Error 2
15:04:01: The process "D:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project texmaker (kit: Desktop Qt 5.9.1 MSVC2015 64bit)
When executing step "Make"
15:04:01: Elapsed time: 00:41.

Error LNK2019: Unresolved external symbol with DirectX

I have been trying all day to setup a direct x window and I know it not my code that is messing up it is my compiler but i don't know how to fix this.
1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl ReleaseObjects(void)" (?ReleaseObjects##YAXXZ) referenced in function _WinMain#16
1>Main.obj : error LNK2019: unresolved external symbol "bool __cdecl InitScene(void)" (?InitScene##YA_NXZ) referenced in function _WinMain#16
1>Main.obj : error LNK2019: unresolved external symbol "bool __cdecl InitializeDirect3d11App(struct HINSTANCE__ *)" (?InitializeDirect3d11App##YA_NPAUHINSTANCE__###Z) referenced in function _WinMain#16
1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl DrawScene(void)" (?DrawScene##YAXXZ) referenced in function "int __cdecl messageloop(void)" (?messageloop##YAHXZ)
1>Main.obj : error LNK2019: unresolved external symbol "void __cdecl UpdateScene(void)" (?UpdateScene##YAXXZ) referenced in function "int __cdecl messageloop(void)" (?messageloop##YAHXZ)

How to make handler plugin to mysql in CentOS

Environment: CentOS+mysql-5.6.14
This is what I tried:
cd /usr/local/src/
tar zvfx ahiguti-HandlerSocket-Plugin-for-MySQL-1.0.6-71-g159ea6d.tar.gz
cd ahiguti-HandlerSocket-Plugin-for-MySQL-159ea6d/
./autogen.sh
./configure --with-mysql-source=/usr/local/src/mysql-5.1.47 --with-mysql-bindir=/usr/local/app/mysql/bin/ --with-mysql-plugindir=/usr/local/app/mysql/lib/mysql/plugin/ --prefix=/usr/local/app/mysql
make
but when i do 'make', I encounter the following errors:
In file included from database.cpp:16:
mysql_incl.hpp:12:1: warning: "HAVE_CONFIG_H" redefined
<command line>:1:1: warning: this is the location of the previous definition
database.cpp: In member function 'virtual void dena::dbcontext::init_thread(const void*, volatile int&)':
database.cpp:294: error: 'LOCK_thread_count' was not declared in this scope
database.cpp:296: error: 'threads' was not declared in this scope
database.cpp:297: error: 'thread_count' was not declared in this scope
database.cpp:310: error: 'create' is not a member of 'MDL_request'
database.cpp: In member function 'virtual void dena::dbcontext::term_thread()':
database.cpp:337: error: 'LOCK_thread_count' was not declared in this scope
database.cpp:340: error: 'thread_count' was not declared in this scope
database.cpp: In member function 'void dena::dbcontext::cmd_find_internal(dena::dbcallback_i&, const dena::prep_stmt&, ha_rkey_function, const dena::cmd_exec_args&)':
database.cpp:649: error: 'struct st_key' has no member named 'key_parts'
/data/install/mysql-5.6.14/sql/handler.h:2228: error: 'virtual int handler::index_read_map(uchar*, const uchar*, key_part_map, ha_rkey_function)' is protected
database.cpp:689: error: within this context
/data/install/mysql-5.6.14/sql/handler.h:2247: error: 'virtual int handler::index_prev(uchar*)' is protected
database.cpp:694: error: within this context
/data/install/mysql-5.6.14/sql/handler.h:2244: error: 'virtual int handler::index_next(uchar*)' is protected
database.cpp:698: error: within this context
/data/install/mysql-5.6.14/sql/handler.h:2256: error: 'virtual int handler::index_next_same(uchar*, const uchar*, uint)' is protected
database.cpp:701: error: within this context
database.cpp: In member function 'virtual void dena::dbcontext::cmd_open_index(dena::dbcallback_i&, size_t, const char*, const char*, const char*, const char*)':
database.cpp:770: error: cannot convert 'MEM_ROOT*' to 'Open_table_context*' for argument '3' to 'bool open_table(THD*, TABLE_LIST*, Open_table_context*)'
make[2]: *** [handlersocket_la-database.lo] error 1
make[1]: Leaving directory `/usr/local/src/HandlerSocket-Plugin-for-MySQL-1.0.6'
make: *** [all] error 2
You should use version 1.1 of https://github.com/DeNA/HandlerSocket-Plugin-for-MySQL

Gradle error with Android-studio and googleMap api

I created a simple project to test Google Api under android studio , but I have this error I tried to correct it by adding maps.jar to librairies of project structure no way :
Information:Compilation completed with 12 errors and 0 warnings in 17 sec
Information:12 errors
Information:0 warnings
/home/phenix-dz/AndroidStudioProjects/Geolocalisation/Geolocalisation/src/main/java/com/example/geolocalisation/MainActivity.java
Error:Error:line (4)Gradle: error: package com.google.android.maps does not exist
Error:Error:line (5)Gradle: error: package com.google.android.maps does not exist
Error:Error:line (6)Gradle: error: package com.google.android.maps does not exist
Error:Error:line (9)Gradle: error: cannot find symbol class MapActivity
Error:Error:line (11)Gradle: error: cannot find symbol class MapView
Error:Error:line (12)Gradle: error: cannot find symbol class MapController
Error:Error:line (16)Gradle: error: cannot find symbol variable super
Error:Error:line (17)Gradle: error: cannot find symbol method setContentView(int)
Error:Error:line (19)Gradle: error: cannot find symbol class MapView
Error:Error:line (19)Gradle: error: cannot find symbol method findViewById(int)
Error:Error:line (14)Gradle: error: method does not override or implement a method from a supertype
Error:Error:line (25)Gradle: error: method does not override or implement a method from a supertype
also I tried to add this code :
apply plugin: "java"
dependencies {
compile files('/home/phenix-dz/android-studio/sdk/add-ons/google_apis-671458-mac-x86/libs/maps.jar')
}
in build.gradle file but it gives me a same error.
Thanks