You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

wxwidgets build.sop.txt 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. https://wiki.wxwidgets.org/WxWidgets_Build_Configurations
  2. in dir C:\wxWidgets-3.0.4\build\msw
  3. 64bit wx build:
  4. mingw32-make -j8 -f makefile.gcc BUILD=release UNICODE=1 SHARED=0 CXXFLAGS="-std=gnu++11"
  5. in dir C:\wxWidgets-3.0.4x32\build\msw
  6. 32bit wx compile:
  7. mingw32-make.exe -j8 -f makefile.gcc BUILD=release CPP="gcc -E -D_M_IX86 -m32" LDFLAGS="-m32" CPPFLAGS="-m32" WINDRES="windres --use-temp-file -F pe-i386" UNICODE=1 SHARED=0 CXXFLAGS="-m32 -fno-keep-inline-dllexport -std=gnu++11"
  8. ---------------------------------------
  9. ******************
  10. FIX TIFF ERROR 32/64 bit
  11. ******************
  12. CHANGE:
  13. /* MSVC 14 does have snprintf() and doesn't allow defining it */
  14. #if !defined(_MSC_VER) || _MSC_VER < 1900
  15. # define snprintf _snprintf
  16. #endif
  17. to:
  18. /* MSVC 14 does have snprintf() and doesn't allow defining it. Also MinGW32
  19. starting with GCC 6.3 has changed _snprintf so that it is no longer suitable.
  20. It does have snprintf, so just use it. */
  21. #if defined (__MINGW32__) && (__GNUC__ > 6 || (__GNUC__ == 6 && __GNUC_MINOR__ > 2))
  22. /* do nothing*/
  23. #elif !defined(_MSC_VER) || _MSC_VER < 1900
  24. # define snprintf _snprintf
  25. #endif
  26. in wx\src\tiff\libtiff\tif_config.h
  27. -----------------------------------------
  28. ---------------------------------------
  29. ***************************************
  30. TO COMPILE CODEDWELLER WITH -std=gnu++11
  31. ***************************************
  32. add winerror include here in networking.cpp
  33. networking.cpp:
  34. //// Platform Specific Stuff ///////////////////////////////////////////////////
  35. #if defined(WIN32) || defined(WIN64)
  36. #include "winerror.h" // <--- line to add
  37. in /CodeDweller:
  38. g++ -std=gnu++11 -c *.cpp //add -m32 if 32bit
  39. ar rvs libCodedweller.a *.o