I'm using bullseye code coverage to test the coverage in my mac machine, and built my application using it. When i opened the coverage browser, it has only few cpp files. Many are missing, which are actually the main files.
What is the reason for this? Am I doing anything wrong?
As far i know, I have configured it properly according to their included help files. While building I can see the bullseye compiler name, and moreover I'm getting a few files listed, so I think it is configured correctly.
Im answering my own question, i found the problem, it was an option in xcode project settings which is "Generate Source As" which was set to objective c++ and hence it was not covered in bullseye as it will cover only pure c++
Related
I am trying to download DL4J source without error.
https://github.com/deeplearning4j/deeplearning4j
I cloned https://github.com/deeplearning4j/deeplearning4j.git
and imported using existing Maven project in Eclipse.
Tons of dependencies are downloaded but it's bombarded with errors.
Anyone who knows which branch version is free of compile error?
The site says 0.9.1 is most stable version, but it still generates errors.
So there's a few things here:
No major open source project in today's day and age operates without a build system. This can be maven,gradle,sbt,..
You ignored all of our docs about building from source and the like. You don't need to do that. Use the build system like it's intended.
My suggestion here:
Learn what the rest of the java world did and use maven:
Our quick start is here: http://deeplearning4j.org/quickstart
Follow our examples for the latest versions:
https://github.com/deeplearning4j/dl4j-examples
Chances are you do not need to build from source (this involves 5 other projects you probably do not want to do that) - but if you absolutely must be prepared to use c++ among other things.
The guide for that can be found here:
https://deeplearning4j.org/devguide
I'm attempting to explore MariaDB's source code and thought that the easiest way would be to use a C++ IDE. I used the Bash script debian/autobake-deb.sh bundled in MariaDB to compile the project, then opened it with CLion. Unfortunately it looks like a lot of code is not recognized (even though CMake is bundled with CLion) which prevents me from using autocomplete, function references and such in a lot of places.
For instance when I open libmysqld.c :
There are errors almost every line.
I'm a beginner in C/C++ so I'm not sure what I would have to configure or install to make CLion recognize the symbols better.
edit : Updated screenshot with status bar
I am trying to use GoogleTest and bullseye for testing C application code. I am in a Red Hat Linux environment using an i686-type processor. I got the gtest and bullseye libraries. The process for writing stubs and test code is also understandable. The step where I'm facing issues is making changes in the makefile to get the binary and coverage file.
I went through the official documentation available for gtest and bullseye, but I'm not able to quite grasp the process.
If anybody has experienced the same situation and finally got the walk-through, please share with me. It'll be very helpful.
For googleTest, just add library and include path, add -I${GTEST_DIR}/include -L${GTEST_DIR}/lib/.libs/libgtest.a when doing gcc compiling.
Or if you are using automake to generate of Makefile, add two lines to Makefile.am which can be used by automake also works.
autotest_LDADD=#LIBS# ${GTEST_DIR}/lib/.libs/libgtest.a
autotest_CXXFLAGS=#CXXFLAGS# -I${GTEST_DIR}/include
The project name is autotest, and ${GTEST_DIR} should be a environment variable before you compile.
Never used bullseye, but it should be close to this.
I changed my IDE from Eclipse to IDEA. I'm tring to configure it to work as effective as possible. I have following problem. I want IDEA to show me all files with compilation errors automatically after one file has been changed and causes the problem. I installed IntelliJ Eclipse Mode plugin and selected Eclipse compiler, but i have still following problem: In module-interfaces I have one interface - assume InterfaceA. Its implementation is contained in module-implementation1 Implementation1 and in module-implementation2 Implementation2 both depends on module-interfaces. Now when I change one interfaceA's method signature and save it, make is automatically triggered (eclipseMode plugin) but there is no compilation errors since in current module only interface resides. When I select all modules and select make selected modules compilation stops on the first module having errors i.e. module-implementation1 so I see only problem with Implementation1. Once I fix this implementation and start manually make process then IDE shows compilation error in Implementation2.
Is it possible to configure Intelij so that it compile all dependent modules and shows all files having compilation problems at all, as eclipse does?
Thanks in advance, it is really confusing to me.
See this answer. Basically, looks like it will be supported in IntelliJ 12
I am using Eclipse for C++ development on windows. I have also written a code generator that take an xml file and produces several C++ files. The project I am working on is currently setup to use the internal builder. What I would like to do is to run the code generator as part of the build process.
My problem is that I haven't been able to find a way to make Eclipse identify that the files are present (or have been updated) without 'Refeshing' the project. So although I can run the code generator as a pre-build step, the files generated aren't guaranteed to be included in the build.
Does anybody know whether there is a way to make Eclipse do a refresh after the pre-build step or something to that effect, using the internal builder?
Thanks
You can add a Builder to your project.
I'm not sure if this is possible using the internal builder of Eclipse. Refreshing has always been a problem there. But using external build tool, like Maven or Ant, works! I personally would switch to Visual Studio - there you never have such kind of problems
Although I have not tried this with CDT projects enabling the the Preferences->General->Workspace -> Refresh automatically helps me with Web & Java projects where code generation is involved.