mschell wrote:I'm in the process of building this on Mint 13.A question about the Code::Blocks IDE. While the README.linux mentions the stable release of 10.05, is it recommended to use the current 12.x RC release to be able to change the visual layout or buttons? Not that I'm planning to go down that road, but I did want to see if I could use the more recent releases of the IDE.
I dont know about linux but i downloaded the latest 12.11 CB for Windows. It has worked fine.
All of thread is a bit opaque to me. However, it appears that xLights/Nutcracker can be built on a Linux system.
Could someone please post (or otherwise share) some instructions on where to get the source code from, what dependencies it has, and how to build? I'm happy to expand this into some cookbook instructions for others to be able to also build it on Linux. I'm running Ubuntu 12.04.
Since there was a mention of github, I assume the source is got via git? I have worked on another open source project which uses git, so I assume all I need is a URL to the git master repository? But the SourceForge code page has a Subversion link?
Frank
gO TO https://github.com/smeighan/xLights
read the README.linux. it will explain how to do the build
thanks
Thanks Sean.
Documenting this for others who may strike the problem I ran into...
Everything went well right up to actually trying to make xLights...
frank@lounge2:~/xLights$ make
make[1]: Entering directory `/home/frank/xLights/xLights'
g++ -DwxUSE_UNICODE -std=gnu++11 -O2 -Wall -I/usr/local/lib/wx/include/gtk2-unicode-2.9 -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Winvalid-pch -DWX_PRECOMP -DNDEBUG -Wno-reorder -Wno-sign-compare -Wno-unused-variable -Wno-switch -Wno-unused-but-set-variable -Wno-parentheses -Wno-maybe-uninitialized -Wno-return-type -Wno-uninitialized -Wno-unused-value -c ShowDatesDialog.cpp -o .objs/ShowDatesDialog.o
cc1plus: error: unrecognized command line option ‘-std=gnu++11’
cc1plus: warning: unrecognized command line option "-Wno-maybe-uninitialized" [enabled by default]
make[1]: [.objs/ShowDatesDialog.o] Error 1
make[1]: Leaving directory `/home/frank/xLights/xLights'
make: [xLights] Error 2
frank@lounge2:~/xLights$
A bit of Googling found that this means that g++ v4.7 is required... fortunately this page told me how to install that (I actually used that process to install v4.8).
Once I'd done this, the make worked fine. :happy: and xLights runs :yeah:
frankv wrote:
cc1plus: error: unrecognized command line option ‘-std=gnu++11’
cc1plus: warning: unrecognized command line option "-Wno-maybe-uninitialized" [enabled by default]
Thanks for the feedback.
I just pushed a commit to remove the -Wno-maybe-uninitialized option and also switch to using "-std=gnu++0x" instead of "--std=gnu++11" to allow older gcc versions to compile the code. I test compile on 4.7.2, so when a recent compile failed, gcc recommended I compile with "--std=gnu++11".
These two changes should allow other users like yourself to compile without having to upgrade gcc. 🙂

