Building TexMaker 5 from source on windows - texmaker

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.

Related

Minko Engine SDK - Tons of compile errors

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

Trouble groking cython memoryviews ... how do I implement here?

Two functions: one which creates a 32-million integer array and another which uses it for a lookup millions of times.
from cpython cimport array as c_array
from array import array
def get_lut(file_location):
cdef c_array.array lut
with open(file_location, "rb") as f:
lut = array("I", f.read())
return lut
def use_lut(int[:] lut):
// Do a whole bunch of lookups.
Compiling with the following command:
c:\Users\Michael\Documents\Poker>set DISTUTILS_USE_SDK=1
c:\Users\Michael\Documents\Poker>python setup.py build_ext -i --compiler=msvc
Produces the following output:
Compiling handeval.pyx because it changed.
Cythonizing handeval.pyx
warning: View.MemoryView:288:5: Cannot profile nogil function.
warning: View.MemoryView:763:5: Cannot profile nogil function.
warning: View.MemoryView:899:5: Cannot profile nogil function.
warning: View.MemoryView:1063:5: Cannot profile nogil function.
warning: View.MemoryView:1070:5: Cannot profile nogil function.
warning: View.MemoryView:1124:5: Cannot profile nogil function.
warning: View.MemoryView:1131:5: Cannot profile nogil function.
warning: View.MemoryView:1142:5: Cannot profile nogil function.
warning: View.MemoryView:1163:5: Cannot profile nogil function.
warning: View.MemoryView:1223:5: Cannot profile nogil function.
warning: View.MemoryView:1295:5: Cannot profile nogil function.
warning: View.MemoryView:1317:5: Cannot profile nogil function.
warning: View.MemoryView:1352:5: Cannot profile nogil function.
warning: View.MemoryView:1362:5: Cannot profile nogil function.
running build_ext
building 'handeval' extension
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\amd64\cl.exe /c /nolo
go /Ox /MD /W3 /GS- /DNDEBUG -IC:\Users\Michael\Anaconda3\include -IC:\Users\Mic
hael\Anaconda3\include /Tchandeval.c /Fobuild\temp.win-amd64-3.4\Release\handeva
l.obj
handeval.c
handeval.c(2391) : warning C4244: '+=' : conversion from 'Py_ssize_t' to 'long',
possible loss of data
handeval.c(2420) : warning C4244: '+=' : conversion from 'Py_ssize_t' to 'int',
possible loss of data
handeval.c(2449) : warning C4244: '+=' : conversion from 'Py_ssize_t' to 'int',
possible loss of data
handeval.c(2478) : warning C4244: '+=' : conversion from 'Py_ssize_t' to 'int',
possible loss of data
handeval.c(2507) : warning C4244: '+=' : conversion from 'Py_ssize_t' to 'int',
possible loss of data
handeval.c(2536) : warning C4244: '+=' : conversion from 'Py_ssize_t' to 'int',
possible loss of data
handeval.c(2565) : warning C4244: '+=' : conversion from 'Py_ssize_t' to 'int',
possible loss of data
handeval.c(12955) : error C2275: 'PyGILState_STATE' : illegal use of this type a
s an expression
C:\Users\Michael\Anaconda3\include\pystate.h(191) : see declaration of '
PyGILState_STATE'
handeval.c(12955) : error C2146: syntax error : missing ';' before identifier '_
_pyx_gilstate_save'
handeval.c(12955) : error C2065: '__pyx_gilstate_save' : undeclared identifier
handeval.c(13026) : error C2065: '__pyx_gilstate_save' : undeclared identifier
handeval.c(13052) : error C2275: 'PyGILState_STATE' : illegal use of this type a
s an expression
C:\Users\Michael\Anaconda3\include\pystate.h(191) : see declaration of '
PyGILState_STATE'
handeval.c(13052) : error C2146: syntax error : missing ';' before identifier '_
_pyx_gilstate_save'
handeval.c(13052) : error C2065: '__pyx_gilstate_save' : undeclared identifier
handeval.c(13125) : error C2065: '__pyx_gilstate_save' : undeclared identifier
handeval.c(13152) : error C2275: 'PyGILState_STATE' : illegal use of this type a
s an expression
C:\Users\Michael\Anaconda3\include\pystate.h(191) : see declaration of '
PyGILState_STATE'
handeval.c(13152) : error C2146: syntax error : missing ';' before identifier '_
_pyx_gilstate_save'
handeval.c(13152) : error C2065: '__pyx_gilstate_save' : undeclared identifier
handeval.c(13242) : error C2065: '__pyx_gilstate_save' : undeclared identifier
handeval.c(13909) : error C2275: 'PyGILState_STATE' : illegal use of this type a
s an expression
C:\Users\Michael\Anaconda3\include\pystate.h(191) : see declaration of '
PyGILState_STATE'
handeval.c(13909) : error C2146: syntax error : missing ';' before identifier '_
_pyx_gilstate_save'
handeval.c(13909) : error C2065: '__pyx_gilstate_save' : undeclared identifier
handeval.c(13935) : error C2065: '__pyx_gilstate_save' : undeclared identifier
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\Bin\\
amd64\\cl.exe' failed with exit status 2
Whereas removing the int[:] type declaration from the use_lut signature compiles fine.
What am I doing wrong here?

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