Author Topic: build environment setup problems  (Read 1899 times)

Offline Steve Gase

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
    • WinterLightShow in Georgetown, TX
build environment setup problems
« on: February 09, 2016, 01:48:36 AM »
After pulling down the latest github xlights-master.zip. I am following the instructions in the README.windows file.
The instructions seem current, they refer to the latest and greatest versions of the tools and bundles.

I am installing on a Win8.1 64-bit machine.

codeblocks-16.01-setup.exe  [installed to default C:\Program Files (x86)\CodeBlocks]
mingw-w64-install.exe  [installed to default C:\Program Files (x86)\mingw-w64]
wxMSW-3.0.2-Setup.exe    [installed this to C:\dev\wxWidgets-3.0.2]

I built the wxWidgets without trouble.

The problem is with the code-blocks configuration...  in step c.3 it talks about a Search sub-tab under Compiler... I don't see this... the box list is empty and no sub-tabs exist.
Similarly, the Linker sub-tab is not there in step c.4.
I tried to setup the toolchain executable in c.6 and nothing that I entered seemed to match so that the auto-detect would see the compiler.

I then downloaded a different code blocks package...  codeblocks-16.01mingw-setup.exe and the toolchain step NOW works with auto-detect and the documented path.  (so -- step 'a' should be updated).

Still, I can't complete steps c.3 and c.4 since the sub-tabs are not present.

I suspect that the problem has to do with the selected compiler (pull-down menu) in Settings/Compiler.  It is set to "GNU GCC Compiler".  I cannot find a MinGW option in that pull-down list.

Any ideas?

If someone has done this with the current tool versions, maybe you can walk me through the procedure with Zoom or another desktop-sharing tool.  I can then update the README.windows file to describe the current procedure.

Thanks!
Steve
http://WinterLightShow.com  |  110K channels, 50K lights  |  Nutcracker, Falcon, DLA, HolidayCoro

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: build environment setup problems
« Reply #1 on: February 09, 2016, 07:34:39 AM »
No I specifically did not have you download the codeblocks-16.01mingw-setup.exe file because it will point you to the wrong version of the compiler.  That's why I gave all the steps for how to alter the settings for the correct version.  You can't use auto-detect unless your using the compiler that they install with CodeBlocks but that was something like version 4.9 and we are using 5.3.

For the search tab you couldn't find show a screenshot where your looking.

Offline Steve Gase

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
    • WinterLightShow in Georgetown, TX
Re: build environment setup problems
« Reply #2 on: February 10, 2016, 01:20:59 AM »
I am now able to build.  thanks.

the wording while accurate, still confused me... when I stopped trying to take things literally I saw what you intended.

thanks for the instructions!
http://WinterLightShow.com  |  110K channels, 50K lights  |  Nutcracker, Falcon, DLA, HolidayCoro

Offline Steve Gase

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
    • WinterLightShow in Georgetown, TX
Re: build environment setup problems
« Reply #3 on: February 10, 2016, 01:28:45 AM »
one issue... I built the debug version and then tried to run it.  got an error because of a missing file: wxmsw30ud_gcc_custom.dll

I searched under the wxWidgets directory the dll and found it.  then copied it to ..\xLights-master\bin\windows


next: search out a tutorial for using github. :)
http://WinterLightShow.com  |  110K channels, 50K lights  |  Nutcracker, Falcon, DLA, HolidayCoro

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: build environment setup problems
« Reply #4 on: February 10, 2016, 07:57:54 AM »
Yeah I didn't add the step about copying the DLL's because I didn't know if I was the only one with that problem.  I had to do that when I started and for this new compiler I had to also copy over a couple DLL's from the mingw area.  If you look at a latest xLights installation you will see the DLL's that we install with the program.  So I was never sure if the other guys were getting those DLL's from the installation but for me the program doesn't work when I build it myself unless I copy those DLL's over to the bin directory where I'm building.