Author Topic: PATCH: MSVC import and compiler flags  (Read 2694 times)

Offline White-Tiger

  • Multiple posting newcomer
  • *
  • Posts: 80
PATCH: MSVC import and compiler flags
« on: February 26, 2014, 05:23:21 pm »
hello all, I've recently fixed the project importer a bit to actually do what it's supposed to do.
for MSVC 10+ projects, it should now import them with almost all config values so that you can import and compile right away (without the need to set up anything manually)
This was previously not given as it basically only imported files but no flags at all (debug wasn't debug, UNICODE not defined, no optimizations, missing libs etc.)

Sadly this patch is quite huge and changed almost everything, and some might not be happy with it at all :P Since I've only updated the msvc10loader not the 7 one... (as I don't care about that one and have no projects to test with anyway)
So the importer for 10+ is quite different to the 7 one.. (you guys tried to keep it in sync...)

Here's a list of actual changes compared to before:
  • Import and understand every possible flag for the ability to compile right away. (not perfect, but works so far)
       such as: charset, obj dir, out dir, release/debug, lib name, optimization, runtime, warning level, disabled warnings, output file (also Console and StaticLibrary project types)
  • Not only add compiler/linker flags, also add pre/post compile commands
  • Ability to differentiate between global and target flags, also better parsing of values
  • Macro replacement improved, it now uses the actual Workspace path for $(SolutionDir) etc.
  • Adding some default shit for MSVC (libs, pdb file name etc.)
  • Actually being able to parse MSVC 12+ files
  • Small code cleanup, improvements and bug fixes


For msvc compiler flags:
  • changed /DEBUG to lowercase
  • I guess "check against "/NDEBUG"" should have been the define: "/DNDEBUG" (couldn't find /NDEBUG as an option and only know about NDEBUG as define)
  • added option "Name .pdb same as output file" (which is necessary since the pdb files will otherwise be named after the VC version)
  • added character set options such as UNICODE and deprecated MultiByte
  • added missing linker warning parsing (caused me once a lot of troubles) also allow exclamation marks in paths (I know it's normally not used, but I use them from time to time, and it doesn't hurt to properly allow it ;) They are valid characters after all)
  • added missing runtime library to known ones (static multi-threaded debug)

Also added exclamation marks (!) to global warning/error regexs
Code: Text
  1. Index: options_common_re-gf.xml
  2. ===================================================================
  3. --- options_common_re-gf.xml    (revision 9661)
  4. +++ options_common_re-gf.xml    (working copy)
  5. @@ -6,7 +6,7 @@
  6.             msg="4"
  7.             file="1"
  8.             line="2">
  9. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):([0-9]+):[ \t]([Ww]arning:[ \t].*)]]>
  10. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):([0-9]+):([0-9]+):[ \t]([Ww]arning:[ \t].*)]]>
  11.      </RegEx>
  12.      <RegEx name="Preprocessor error"
  13.             type="error"
  14. @@ -13,7 +13,7 @@
  15.             msg="3"
  16.             file="1"
  17.             line="2">
  18. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t](.*)]]>
  19. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t](.*)]]>
  20.      </RegEx>
  21.      <RegEx name="Compiler warning"
  22.             type="warning"
  23. @@ -20,7 +20,7 @@
  24.             msg="3"
  25.             file="1"
  26.             line="2">
  27. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t]([Ww]arning:[ \t].*)]]>
  28. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t]([Ww]arning:[ \t].*)]]>
  29.      </RegEx>
  30.      <RegEx name="Compiler error (2)"
  31.             type="error"
  32. @@ -27,7 +27,7 @@
  33.             msg="3"
  34.             file="1"
  35.             line="2">
  36. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t](.*)]]>
  37. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t](.*)]]>
  38.      </RegEx>
  39.      <RegEx name="Compiler error (3)"
  40.             type="error"
  41. @@ -38,7 +38,7 @@
  42.             type="warning"
  43.             msg="2"
  44.             file="1">
  45. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):\(\.text\+[0-9a-fA-FxX]+\):[ \t]([Ww]arning:[ \t].*)]]>
  46. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):\(\.text\+[0-9a-fA-FxX]+\):[ \t]([Ww]arning:[ \t].*)]]>
  47.      </RegEx>
  48.      <RegEx name="Linker error"
  49.             type="error"
  50. @@ -45,19 +45,19 @@
  51.             msg="3"
  52.             file="1"
  53.             line="2">
  54. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t](.*)]]>
  55. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t](.*)]]>
  56.      </RegEx>
  57.      <RegEx name="Linker error (2)"
  58.             type="error"
  59.             msg="2"
  60.             file="1">
  61. -        <![CDATA[[][{}() \t#%$~[:alnum:]&_:+/\.-]+\(.text\+[0-9A-Za-z]+\):([ \tA-Za-z0-9_:+/\.-]+):[ \t](.*)]]>
  62. +        <![CDATA[[][{}() \t#%$!~[:alnum:]&_:+/\.-]+\(.text\+[0-9A-Za-z]+\):([ \tA-Za-z0-9_:+/\.-]+):[ \t](.*)]]>
  63.      </RegEx>
  64.      <RegEx name="Linker error (3)"
  65.             type="error"
  66.             msg="2"
  67.             file="1">
  68. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):\(\.text\+[0-9a-fA-FxX]+\):(.*)]]>
  69. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):\(\.text\+[0-9a-fA-FxX]+\):(.*)]]>
  70.      </RegEx>
  71.      <RegEx name="Linker error (lib not found)"
  72.             type="error"
  73. @@ -75,7 +75,7 @@
  74.             type="error"
  75.             msg="2"
  76.             file="1">
  77. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):[ \t](undefined reference.*)]]>
  78. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):[ \t](undefined reference.*)]]>
  79.      </RegEx>
  80.      <RegEx name="General warning"
  81.             type="warning"
  82. Index: options_common_re.xml
  83. ===================================================================
  84. --- options_common_re.xml       (revision 9661)
  85. +++ options_common_re.xml       (working copy)
  86. @@ -10,7 +10,7 @@
  87.             type="info"
  88.             msg="2"
  89.             file="1">
  90. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):[ \t]+([iI]n ([cC]lass|[cC]onstructor|[dD]estructor|[fF]unction|[mM]ember [fF]unction).*)]]>
  91. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):[ \t]+([iI]n ([cC]lass|[cC]onstructor|[dD]estructor|[fF]unction|[mM]ember [fF]unction).*)]]>
  92.      </RegEx>
  93.      <RegEx name="'Skipping N instantiation contexts' info (2)"
  94.             type="info"
  95. @@ -17,7 +17,7 @@
  96.             msg="3"
  97.             file="1"
  98.             line="2">
  99. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t]+(\[[ \t]+[Ss]kipping [0-9]+ instantiation contexts[ \t]+\])]]>
  100. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t]+(\[[ \t]+[Ss]kipping [0-9]+ instantiation contexts[ \t]+\])]]>
  101.      </RegEx>
  102.      <RegEx name="'Skipping N instantiation contexts' info"
  103.             type="info"
  104. @@ -24,13 +24,13 @@
  105.             msg="3"
  106.             file="1"
  107.             line="2">
  108. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t]+(\[[ \t]+[Ss]kipping [0-9]+ instantiation contexts[ \t]+\])]]>
  109. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t]+(\[[ \t]+[Ss]kipping [0-9]+ instantiation contexts[ \t]+\])]]>
  110.      </RegEx>
  111.      <RegEx name="'In instantiation' warning"
  112.             type="warning"
  113.             msg="2"
  114.             file="1">
  115. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):[ \t]+([Ii]n [Ii]nstantiation.*)]]>
  116. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):[ \t]+([Ii]n [Ii]nstantiation.*)]]>
  117.      </RegEx>
  118.      <RegEx name="'Required from' warning"
  119.             type="warning"
  120. @@ -37,7 +37,7 @@
  121.             msg="3"
  122.             file="1"
  123.             line="2">
  124. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t]+([Rr]equired from.*)]]>
  125. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t]+([Rr]equired from.*)]]>
  126.      </RegEx>
  127.      <RegEx name="'Instantiated from' info (2)"
  128.             type="info"
  129. @@ -44,7 +44,7 @@
  130.             msg="3"
  131.             file="1"
  132.             line="2">
  133. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t]+([Ii]nstantiated from .*)]]>
  134. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t]+([Ii]nstantiated from .*)]]>
  135.      </RegEx>
  136.      <RegEx name="'Instantiated from' info"
  137.             type="info"
  138. @@ -51,7 +51,7 @@
  139.             msg="3"
  140.             file="1"
  141.             line="2">
  142. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t]+([Ii]nstantiated from .*)]]>
  143. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t]+([Ii]nstantiated from .*)]]>
  144.      </RegEx>
  145.      <RegEx name="Resource compiler error"
  146.             type="error"
  147. @@ -58,7 +58,7 @@
  148.             msg="3"
  149.             file="1"
  150.             line="2">
  151. -        <![CDATA[windres.exe:[ \t]([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t](.*)]]>
  152. +        <![CDATA[windres.exe:[ \t]([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t](.*)]]>
  153.      </RegEx>
  154.      <RegEx name="Resource compiler error (2)"
  155.             type="error"
  156. @@ -70,7 +70,7 @@
  157.             msg="4"
  158.             file="1"
  159.             line="2">
  160. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):([0-9]+):[ \t]([Ww]arning:[ \t].*)]]>
  161. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):([0-9]+):([0-9]+):[ \t]([Ww]arning:[ \t].*)]]>
  162.      </RegEx>
  163.      <RegEx name="Compiler note (2)"
  164.             type="info"
  165. @@ -77,7 +77,7 @@
  166.             msg="3"
  167.             file="1"
  168.             line="2">
  169. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t]([Nn]ote:[ \t].*)]]>
  170. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t]([Nn]ote:[ \t].*)]]>
  171.      </RegEx>
  172.      <RegEx name="Compiler note"
  173.             type="info"
  174. @@ -84,7 +84,7 @@
  175.             msg="3"
  176.             file="1"
  177.             line="2">
  178. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t]([Nn]ote:[ \t].*)]]>
  179. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t]([Nn]ote:[ \t].*)]]>
  180.      </RegEx>
  181.      <RegEx name="General note"
  182.             type="info"
  183. @@ -96,7 +96,7 @@
  184.             msg="3"
  185.             file="1"
  186.             line="2">
  187. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t](.*)]]>
  188. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t](.*)]]>
  189.      </RegEx>
  190.      <RegEx name="Compiler warning (2)"
  191.             type="warning"
  192. @@ -103,7 +103,7 @@
  193.             msg="3"
  194.             file="1"
  195.             line="2">
  196. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t]([Ww]arning:[ \t].*)]]>
  197. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t]([Ww]arning:[ \t].*)]]>
  198.      </RegEx>
  199.      <RegEx name="Compiler warning"
  200.             type="warning"
  201. @@ -110,7 +110,7 @@
  202.             msg="3"
  203.             file="1"
  204.             line="2">
  205. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t]([Ww]arning:[ \t].*)]]>
  206. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t]([Ww]arning:[ \t].*)]]>
  207.      </RegEx>
  208.      <RegEx name="Undefined reference (2)"
  209.             type="error"
  210. @@ -117,7 +117,7 @@
  211.             msg="3"
  212.             file="1"
  213.             line="2">
  214. -        <![CDATA[[][{}() \t#%$~[:alnum:]&_:+/\.-]+\.o:([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t](undefined reference.*)]]>
  215. +        <![CDATA[[][{}() \t#%$!~[:alnum:]&_:+/\.-]+\.o:([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t](undefined reference.*)]]>
  216.      </RegEx>
  217.      <RegEx name="Compiler error (2)"
  218.             type="error"
  219. @@ -124,7 +124,7 @@
  220.             msg="3"
  221.             file="1"
  222.             line="2">
  223. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t](.*)]]>
  224. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t](.*)]]>
  225.      </RegEx>
  226.      <RegEx name="Compiler error"
  227.             type="error"
  228. @@ -131,13 +131,13 @@
  229.             msg="3"
  230.             file="1"
  231.             line="2">
  232. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t](.*)]]>
  233. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):([0-9]+):[ \t](.*)]]>
  234.      </RegEx>
  235.      <RegEx name="Linker warning"
  236.             type="warning"
  237.             msg="2"
  238.             file="1">
  239. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):\(\.text\+[0-9a-fA-FxX]+\):[ \t]([Ww]arning:[ \t].*)]]>
  240. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):\(\.text\+[0-9a-fA-FxX]+\):[ \t]([Ww]arning:[ \t].*)]]>
  241.      </RegEx>
  242.      <RegEx name="Linker error"
  243.             type="error"
  244. @@ -144,19 +144,19 @@
  245.             msg="3"
  246.             file="1"
  247.             line="2">
  248. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t](.*)]]>
  249. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):([0-9]+):[0-9]+:[ \t](.*)]]>
  250.      </RegEx>
  251.      <RegEx name="Linker error (2)"
  252.             type="error"
  253.             msg="2"
  254.             file="1">
  255. -        <![CDATA[[][{}() \t#%$~[:alnum:]&_:+/\.-]+\(.text\+[0-9A-Za-z]+\):([ \tA-Za-z0-9_:+/\.-]+):[ \t](.*)]]>
  256. +        <![CDATA[[][{}() \t#%$!~[:alnum:]&_:+/\.-]+\(.text\+[0-9A-Za-z]+\):([ \tA-Za-z0-9_:+/\.-]+):[ \t](.*)]]>
  257.      </RegEx>
  258.      <RegEx name="Linker error (3)"
  259.             type="error"
  260.             msg="2"
  261.             file="1">
  262. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):\(\.text\+[0-9a-fA-FxX]+\):(.*)]]>
  263. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):\(\.text\+[0-9a-fA-FxX]+\):(.*)]]>
  264.      </RegEx>
  265.      <RegEx name="Linker error (lib not found)"
  266.             type="error"
  267. @@ -191,7 +191,7 @@
  268.             type="error"
  269.             msg="2"
  270.             file="1">
  271. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):[ \t](undefined reference.*)]]>
  272. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):[ \t](undefined reference.*)]]>
  273.      </RegEx>
  274.      <RegEx name="General error"
  275.             type="error"
  276. @@ -212,6 +212,6 @@
  277.             type="warning"
  278.             msg="2"
  279.             file="1">
  280. -        <![CDATA[([][{}() \t#%$~[:alnum:]&_:+/\.-]+):[ \t]+(duplicate section.*has different size)]]>
  281. +        <![CDATA[([][{}() \t#%$!~[:alnum:]&_:+/\.-]+):[ \t]+(duplicate section.*has different size)]]>
  282.      </RegEx>
  283.  </CodeBlocks_compiler_options>
  284.  
(could only attach 2 attachments... so inline....)

PS: does anyone know how to case insensitively replace stuff? wxString.Replace doesn't seem to be able to... wxRegEx is able to, but I cannot use backslashes (\) in my "replace with" string... but in this case I need paths xD Bad to replace those backslashes with double backslash or slash prior to replace...
Those MSVC macros are not case sensitive.. so it's bad to have the projects importer to handle them that way only because wxWidgets sucks...
I wish they had adopted this 12 years old patch: http://trac.wxwidgets.org/ticket/5422
« Last Edit: February 26, 2014, 05:31:20 pm by White-Tiger »
Windoze 8.1 x86_64 16GiB RAM, wxWidgets-2.8x (latest,trunk), MinGW-builds (latest, posix-threads)
Code::Blocks (x86 , latest , selection length patch , build option fixes/additions , toggle comments)

Offline Melchior

  • Multiple posting newcomer
  • *
  • Posts: 47
  • Sage of Life, Reason, and Time
Re: PATCH: MSVC import and compiler flags
« Reply #1 on: October 12, 2017, 10:48:27 am »
@White-Tiger
would this patch still work today??

Because I follow many groups and they all of course use MS Visual Studios..
two of them use VS 2015 and the rest idk...


but installing VS is a mess.. because it auto steals ALL of my programming FILE TYPE associations
I had to redo them all.. meh...

plus the Project Importer  could maybe be updated to work with importing up to and including VS 2017
O-o  please.. O_o X_x hmm...
(PC Specs)
CPU: AMD FX-9590 4.7GHz 8-core  RAM: 16GB
Motherboard: Asus SABERTOOTH 990FX R2.0
GPU: nVidia GTX 750Ti SC 2GB  --  GFX Drivers: Nvidia v388.00
OS: Windows 7 Ultimate 64-bit SP1 (x64)

Offline White-Tiger

  • Multiple posting newcomer
  • *
  • Posts: 80
Re: PATCH: MSVC import and compiler flags
« Reply #2 on: October 12, 2017, 03:11:59 pm »
well... more or less it should... it's possible that I had to do some modifications as Code::Blocks changed code.
Though it's not entirely superior yet. IIRC I couldn't compile the full Miranda NG source base just by importing, still had to change one or two things.

Though, I'm currently not working on Miranda NG and thus my interest is quite low.. especially since there wasn't much feedback about it at all... I would like to complete Code::Blocks MSVC / VS support including an easy project import/export feature so that projects can provide GCC and MSVC / VS support, but that's quite some work. (in this regard, T-Clock also uses cross-IDE project files and sometimes I forget to keep them in sync... + I have to do so manually and on multiple files)

I suspect you won't be able to compile it yourself? I could upload you a nightly so you can try it out and compare the changes^^ Though it would also include lots of other changes like improved Doxygen parser and some reverted Code::Blocks commits.. (mainly the toggle comment handling + compiler output auto column size)
« Last Edit: October 12, 2017, 03:13:55 pm by White-Tiger »
Windoze 8.1 x86_64 16GiB RAM, wxWidgets-2.8x (latest,trunk), MinGW-builds (latest, posix-threads)
Code::Blocks (x86 , latest , selection length patch , build option fixes/additions , toggle comments)

Offline Melchior

  • Multiple posting newcomer
  • *
  • Posts: 47
  • Sage of Life, Reason, and Time
Re: PATCH: MSVC import and compiler flags
« Reply #3 on: October 12, 2017, 03:58:12 pm »
I have... MinGW (v4.8.1) Downgraded from v5.3.0 because it was causing the only other program I compile to crash  when it use to run fine..

I also have another folder of MinGW with the latest and greatest (v6.3.0).. yeah I did tha tupdate yesterday so I haven't used or tested at all..

idk.... I have a local repo of C::B and I have compiled before...

if you want.. I just haven't worked up the nerve to do the compel myself yet...
because I did a few simple mods to the project files.. to

replaced - <Variable name="WX_SUFFIX" value="u" />
with        - <Variable name="WX_SUFFIX" value="ud" />
for debugging version of Wx...
(PC Specs)
CPU: AMD FX-9590 4.7GHz 8-core  RAM: 16GB
Motherboard: Asus SABERTOOTH 990FX R2.0
GPU: nVidia GTX 750Ti SC 2GB  --  GFX Drivers: Nvidia v388.00
OS: Windows 7 Ultimate 64-bit SP1 (x64)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10279
Re: PATCH: MSVC import and compiler flags
« Reply #4 on: October 12, 2017, 08:27:43 pm »
@White-Tiger: These two patches are in my immediate todo list; If you update them to be compatible with current sources it will be a lot easier for me to apply them.
<debugger plugin maintainer>
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Melchior

  • Multiple posting newcomer
  • *
  • Posts: 47
  • Sage of Life, Reason, and Time
Re: PATCH: MSVC import and compiler flags
« Reply #5 on: October 12, 2017, 08:42:18 pm »
aside from what his two patches do...
adding in VS 2015 & 2017 would be great too... if even possible.. O_o ;)

if I could only do an ADMIN install (ie dump loose files) only works with msi installer files =/
I could u VS without installing it and messing up my system..



plus I started a new support ticket for this..
https://sourceforge.net/p/codeblocks/tickets/566/
« Last Edit: October 12, 2017, 08:47:13 pm by Melchior »
(PC Specs)
CPU: AMD FX-9590 4.7GHz 8-core  RAM: 16GB
Motherboard: Asus SABERTOOTH 990FX R2.0
GPU: nVidia GTX 750Ti SC 2GB  --  GFX Drivers: Nvidia v388.00
OS: Windows 7 Ultimate 64-bit SP1 (x64)

Offline White-Tiger

  • Multiple posting newcomer
  • *
  • Posts: 80
Re: PATCH: MSVC import and compiler flags
« Reply #6 on: October 13, 2017, 02:21:58 pm »
@White-Tiger: These two patches are in my immediate todo list; [...]
well.. in that case I'd like to recheck them and maybe split them up a bit... maybe even extend them by also trying to test newer MSVC versions. So it's in a proper state to work with.

[...]
I also have another folder of MinGW with the latest and greatest (v6.3.0).. [...]
I take this with a grain of salt... because I'm using GCC 7.2.0 xD
Windoze 8.1 x86_64 16GiB RAM, wxWidgets-2.8x (latest,trunk), MinGW-builds (latest, posix-threads)
Code::Blocks (x86 , latest , selection length patch , build option fixes/additions , toggle comments)

Offline Melchior

  • Multiple posting newcomer
  • *
  • Posts: 47
  • Sage of Life, Reason, and Time
Re: PATCH: MSVC import and compiler flags
« Reply #7 on: October 13, 2017, 04:41:11 pm »
[...]
I also have another folder of MinGW with the latest and greatest (v6.3.0).. [...]
I take this with a grain of salt... because I'm using GCC 7.2.0 xD

When I said latest and greatest... that as new as MinGW gas gotten so far...
He has not done a gcc v7 branch yet... :P ;)

plusat least of a few programs I might compile was failing on a newer version of MinGW.. for no apparent reason..
when it worked before..
(PC Specs)
CPU: AMD FX-9590 4.7GHz 8-core  RAM: 16GB
Motherboard: Asus SABERTOOTH 990FX R2.0
GPU: nVidia GTX 750Ti SC 2GB  --  GFX Drivers: Nvidia v388.00
OS: Windows 7 Ultimate 64-bit SP1 (x64)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10279
Re: PATCH: MSVC import and compiler flags
« Reply #8 on: October 13, 2017, 08:40:28 pm »
well.. in that case I'd like to recheck them and maybe split them up a bit... maybe even extend them by also trying to test newer MSVC versions. So it's in a proper state to work with.
This work would be appreciated...
<debugger plugin maintainer>
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline White-Tiger

  • Multiple posting newcomer
  • *
  • Posts: 80
Re: PATCH: MSVC import and compiler flags
« Reply #9 on: October 13, 2017, 08:56:59 pm »
[...]
When I said latest and greatest... that as new as MinGW gas gotten so far...
He has not done a gcc v7 branch yet... :P ;)
[...]
Well... there are other compilations of GCC though... and I'm currently using those from MSYS2 as they're sometimes more up-to-date than those from MinGW-builds... Anyway, they're at least way easier to update :P

And sorry about the wait.. feel free to try it out and let me know if there's something missing... (the project in question is hopefully open source so I can try it myself if anything breaks. There's still stuff missing here and there)
Code::Blocks: https://www.dropbox.com/s/39blw666zh39fpl/CodeBlocks-11195.7z?dl=0
GCC 7.2.0 libs: https://www.dropbox.com/s/d354oorrncqcxqn/GCC-7.x-libs-32bit.7z?dl=0

Edit: it's possible that my local repository got messed up and almost nothing of my patch is actually there... have to look at it tomorrow. Dunno what my Git did xD (or I... Maybe I've messed up a previous conflict)
« Last Edit: October 13, 2017, 09:21:03 pm by White-Tiger »
Windoze 8.1 x86_64 16GiB RAM, wxWidgets-2.8x (latest,trunk), MinGW-builds (latest, posix-threads)
Code::Blocks (x86 , latest , selection length patch , build option fixes/additions , toggle comments)

Offline Melchior

  • Multiple posting newcomer
  • *
  • Posts: 47
  • Sage of Life, Reason, and Time
Re: PATCH: MSVC import and compiler flags
« Reply #10 on: October 13, 2017, 09:05:12 pm »
if you mean the one I linked
RPCS3 (PS3 Emulator)(Alpha State)
or
PCSX2 (PS2 Emulator)(stable)
yeah they are both on GitHub so yeah Open Source..
(PC Specs)
CPU: AMD FX-9590 4.7GHz 8-core  RAM: 16GB
Motherboard: Asus SABERTOOTH 990FX R2.0
GPU: nVidia GTX 750Ti SC 2GB  --  GFX Drivers: Nvidia v388.00
OS: Windows 7 Ultimate 64-bit SP1 (x64)

Offline White-Tiger

  • Multiple posting newcomer
  • *
  • Posts: 80
Re: PATCH: MSVC import and compiler flags
« Reply #11 on: October 13, 2017, 09:21:46 pm »
yeah... I've just looked into the issue you've posted^^
My build might be broken though... see my edit above...
Windoze 8.1 x86_64 16GiB RAM, wxWidgets-2.8x (latest,trunk), MinGW-builds (latest, posix-threads)
Code::Blocks (x86 , latest , selection length patch , build option fixes/additions , toggle comments)

Offline Melchior

  • Multiple posting newcomer
  • *
  • Posts: 47
  • Sage of Life, Reason, and Time
Re: PATCH: MSVC import and compiler flags
« Reply #12 on: October 13, 2017, 09:23:06 pm »
yeah... I've just looked into the issue you've posted^^
My build might be broken though... see my edit above...

ooh lol ;) :P ok I will try if it fails I will edit back...


FAILED.. XD
Quote
Importing F:\Dev-src\2Emulators\pcsx2-master\PCSX2_suite.sln:
Importing F:\Dev-src\2Emulators\pcsx2-master\pcsx2\windows\VCprojects\pcsx2.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\plugins\spu2-x\src\Windows\Spu2-X.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\plugins\GSdx\GSdx.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\3rdparty\soundtouch\SoundTouch.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\3rdparty\zlib\zlib.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\plugins\LilyPad\LilyPad.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\plugins\xpad\xpad.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\plugins\USBnull\Windows\USBnull.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\plugins\FWnull\Windows\FWnull.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\plugins\dev9null\Windows\DEV9null.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\common\build\x86emitter\x86emitter.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\common\build\Utilities\utilities.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\tools\bin2cpp\bin2c.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\3rdparty\libjpeg\libjpeg.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\plugins\cdvdGigaherz\src\Windows\cdvdGigaherz.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\3rdparty\portaudio\build\msvc\portaudio.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\plugins\USBqemu\Win32\USBqemu.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\plugins\dev9ghzdrk\Win32\DEV9ghzdrk.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\3rdparty\opencl\opencl.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\3rdparty\wxwidgets3.0\build\msw\wx30_config.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\3rdparty\wxwidgets3.0\build\msw\wx30_base.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\3rdparty\wxwidgets3.0\build\msw\wx30_adv.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\3rdparty\wxwidgets3.0\build\msw\wx30_core.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\3rdparty\libpng\projects\vstudio\libpng\libpng.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\3rdparty\pthreads4w\build\pthreads4w.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\unfree\baseclasses\baseclasses.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\3rdparty\freetype\builds\windows\freetype.vcxproj:
Importing F:\Dev-src\2Emulators\pcsx2-master\3rdparty\xz\liblzma.vcxproj:

Another issue is this test build didn't seem to load my settings... from the default locations in or otherwise.. not sure
C:\Users\UserProfile\AppData\Roaming\codeblocks
nvm I moved the default settings file from AppData a long time ago into the exe folder... so  I just needed to copy it...
still fails.. XD
« Last Edit: October 13, 2017, 09:39:26 pm by Melchior »
(PC Specs)
CPU: AMD FX-9590 4.7GHz 8-core  RAM: 16GB
Motherboard: Asus SABERTOOTH 990FX R2.0
GPU: nVidia GTX 750Ti SC 2GB  --  GFX Drivers: Nvidia v388.00
OS: Windows 7 Ultimate 64-bit SP1 (x64)