-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot build Thrift4OZW #6
Comments
Looks like there's a missing file "gen-cpp/RemoteManager_server.cpp" which is an automatically generated file (from Apache Thrift) so it should have been already made from a previous build step in the Makefile. I'll look into it... |
Yep, the previous build step (create_server.rb) has failed, that's the Ruby script producing that file. Can you please post the result of the following command: make clean; make gen-cpp/RemoteManager_server.cpp 2>&1 | head -50 |
Here it is.... and thanks for looking into this. make clean; make gen-cpp/RemoteManager_server.cpp 2>&1 | head -50 |
That's your error: you need to install gccxml: sudo apt-get install gccxml |
also I seem to have forgotten two "clang" directives in the Makefile, remove them and uncomment the "gcc" ones if the C++ file does not compile. Clang's a new C/C++ compiler which I seem to like more and more every day (faster, more meaningful errors etc etc) |
Still not getting a successful build... RuntimeError: Error executing gccxml command line: /var/lib/gems/1.9.1/gems/gccxml_gem-0.9.3-x86-linux/bin/gccxml -Igen_cpp -I/usr/local/include/thrift -I/home/user1/source/open-zwave/cpp/tinyxml -I/home/user1/source/open-zwave/cpp/src -I/home/user1/source/open-zwave/cpp/src/value_classes -I/home/user1/source/open-zwave/cpp/src/command_classes -I/home/user1/source/open-zwave/cpp/src/platform -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H /tmp/header_wrapper20130318-23121-1b0meqv -fxml=/tmp/rbgccxml20130318-23121-3uw2m6> |
Whoops, forgot to do the uncomment in the Make file |
Well, that still didn't do the trick... RuntimeError: Error executing gccxml command line: /var/lib/gems/1.9.1/gems/gccxml_gem-0.9.3-x86-linux/bin/gccxml -Igen_cpp -I/usr/local/include/thrift -I/home/user1/source/open-zwave/cpp/tinyxml -I/home/user1/source/open-zwave/cpp/src -I/home/user1/source/open-zwave/cpp/src/value_classes -I/home/user1/source/open-zwave/cpp/src/command_classes -I/home/user1/source/open-zwave/cpp/src/platform -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H /tmp/header_wrapper20130318-23176-1o2oq99 -fxml=/tmp/rbgccxml20130318-23176-159wnhp> |
this means that the previous step (the one's that's generating the missing file) is failing... we need to find out why: make clean; make gen-cpp/RemoteManager_server.cpp |
Sorry, just missed it, the error is still in running gccxml, you seem to be lacking the main gccxml executable. What OS/distro are you using? I'm on Ubuntu 12.10 now, this is my version of gccxml installed with APT: ekarak@ekarak-laptop: |
here is the first error message.... happens right at the beginning thrift --gen cocoa --gen cpp --gen csharp --gen erl --gen go --gen java --gen js --gen perl --gen php --gen py --gen rb ozw.thrift The next error... which continues for a bit /usr/include/c++/4.6/bits/stl_algobase.h: In function '_OI std::__copy_move_a(_II, _II, _OI)': |
It seems as I might not have all the prereqs for the build. Do you have a listing of all package requirements for building? It seems that I did not have the ones you mentioned before. |
Ubuntu 12.04.2 LTS Linux xxxxxx 3.2.0-38-generic #61-Ubuntu SMP Tue Feb 19 12:20:02 UTC 2013 i686 athlon i386 GNU/Linux It seems I was wrong on the 64bit description above, it is only 32bit. |
/user1/source/Thrift4OZW$ gccxml --version |
Yep there's an INSTALL.txt file that contains these dependencies. I seem to recall having the same problem with gccxml in the past, I think it was due to not having support for my gcc version. But on Ubuntu 12.04 this shouldn't be a problem... I'll try on a VM with 12.04 and get back to you |
I missed those 2 gccxml items in the list. Sorry for that confusion. I did check the rest of the prereqs and it's all there. |
I'm having the same erros as crush157 on Ubuntu 12.10. Any help would be much appreciated. make clean; make gen-cpp/RemoteManager_server.cpp 2>&1 | head -50 |
gccxml_cc1plus: error: gccxml_builtins.h: No such file or directory 2013/3/22 mattinbits notifications@github.com
Elias Karakoulakis |
OK resolved this based on the similar error reported here: jasonroelofs/rbplusplus#14 l had followed the instructions in INSTALL but looks like I had both "sudo gem install gccxml_gem" and "sudo gem install gccxml_gem --platform ruby" in my environment. I ran "sudo gem uninstall gccxml_gem" and "sudo gem install gccxml_gem --platform ruby" and am able to make successfully. |
With mattinbits comment, I reinstalled the gccxml_gem as stated and with another adjustment for libraries, I get it to compile. Seems I was struggling with the install dependencies as Elias was updating that documentation as I was downloading and building. All good now. Thanks |
another note, stompserver_ng will require you to install eventmachine and uuid gems. |
Just FYI I didn't have much luck getting stompserver_ng working, so I've been using coilMQ to test the receipt of events. |
any STOMP server will do, its just the footprint & startup time that 2013/3/22 mattinbits notifications@github.com
Elias Karakoulakis |
Also, ozwd expects the open-zwave-read-only directory under Thrift4OZW and the ruby scripts expect it at the same level as your documentation suggests. Well, now I'm finding a few other gems missing to run ozwthrift.rb. I'm not a ruby dev so, having a list of required gems that are not part of a base install. Working through the errors. The stompserver_ng starts up and listens fine against the ozwd. ozwthrift.rb requires gems onstomp and thrift. |
Updated documentation, many thanks for feedback. |
I ave tried multiple times and for me not being a ruby expert doesn't help.
Building on Ubuntu 12.04 64bit following the instructions. Latest error today from latest download of files.
RuntimeError: Error executing gccxml command line: /var/lib/gems/1.9.1/gems/gccxml_gem-0.9.3-x86-linux/bin/gccxml -Igen_cpp -I/usr/local/include/thrift -I/home/user1/source/open-zwave/cpp/tinyxml -I/home/user1/source/open-zwave/cpp/src -I/home/user1/source/open-zwave/cpp/src/value_classes -I/home/user1/source/open-zwave/cpp/src/command_classes -I/home/user1/source/open-zwave/cpp/src/platform -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H /tmp/header_wrapper20130318-21337-110m256 -fxml=/tmp/rbgccxml20130318-21337-1kd283l>
cp gen-cpp/RemoteManager_server.cpp gen-cpp/RemoteManager_server.cpp.orig
cp: cannot stat `gen-cpp/RemoteManager_server.cpp': No such file or directory
make: *** [gen-cpp/RemoteManager_server.cpp] Error 1
any advice would be appreciated.
The text was updated successfully, but these errors were encountered: