Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 5 years ago.
Improve this question
I have been using sloccount a lot with Objective-C projects on OSX, never have a problem until recently that I upgraded to OSX 10.9 Mavericks. When I’m trying to run this simple script:
#!/bin/sh
sloccount --duplicates --wide --details WeatherApp > Build/sloccount.sc
I’m getting this:
/Applications/sloccount/compute_sloc_lang: line 52: c_count: command not found
Warning! No 'Total' line in Models/ansic_outfile.dat.
The output file has this:
Creating filelist for Application
Creating filelist for Controllers
Creating filelist for Helpers
Creating filelist for Managers
Creating filelist for Models
Creating filelist for Support
Creating filelist for Views
Categorizing files.
Computing results.
44 objc Application /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Application/AppDelegate.m
11 objc Application /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Application/AppDelegate.h
24 objc Controllers /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Controllers/CitiesViewController.m
10 objc Controllers /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Controllers/CitiesViewController.h
74 objc Helpers /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Helpers/TranslatorHelper.m
47 objc Helpers /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Helpers/ValidatorHelper.m
18 objc Helpers /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Helpers/ErrorNotificationHelper.h
21 objc Helpers /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Helpers/TranslatorHelper.h
14 objc Helpers /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Helpers/ValidatorHelper.h
85 objc Managers /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Managers/WeatherAPIManager.m
20 objc Managers /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Managers/WeatherAPIManager.h
15 objc Support /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Support/main.m
13 objc Support /Users/ruenzuo/Documents/GitHub/north-american-ironman/WeatherApp/Support/Includes.h
And Sloccount Plugin for Jenkins is unable to parse it.
Any thoughts on that?
I finally end using CLOC (http://cloc.sourceforge.net/) instead of SLOCCount (http://www.dwheeler.com/sloccount/).
I couldn't find a Jenkins plugin for CLOC so I'm using xsltproc to translate CLOC output to SLOCCount output format.
I'm using the following script (https://github.com/Ruenzuo/north-american-ironman/blob/master/Scripts/Sloccount.sh), feel free to use it. You will also need this file (https://github.com/Ruenzuo/north-american-ironman/blob/master/Utils/Sloccount-format.xls).
Hope this helps someone.
One step that may be missing is after you downloaded archive
You need to run make install this builds missing exe(s)or binaries and deploys sloccount utility and man pages to /usr/local/bin
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
I get this error during compilation
Multiple commands produce ....
After googling, I think this might happen because I have several info.plist files.
According to this answere I can find the several info.plist files here
Solution -> Open target -> Build phases > Copy Bundle Resources
However, the person who wrote this answere uses an older version of xCode.
I use xCode 12 and I am not sure where I can find Copy Bundle Resources
This is how my screen looks like
As EmilioPelaez indicated at the comment, you need to check out the section written Copy Bundle Resources in Build Phases. Here is the SS.
This question already has an answer here:
Building clang taking forever
(1 answer)
Closed 4 years ago.
There was a problem when I've tried to build clang with ninja.I've executed all commands one after another from the link:
http://clang.llvm.org/docs/LibASTMatchersTutorial.html
but after running ninja where the tutorial says "Okay.Now we’ll build Clang!" it takes 2 hours to build half of the objects and after that OS stuck and I couldn't even move the cursor.I did the job on both my laptop and PC but the result was the same.What is attract my attention is that, the size of the folder is so huge (18.3GB).
Is there any way to solve the problem?
I have already answered the same question on StackOverflow here. I will suggest a deeper search in future before asking the same question.
Including information here in case link is lost. What is happening is that building clang in debug mode (that's by default) a lot of debug information is also being generated for each compilation unit the file sizes are becoming big.
The solution is to turn off all the debug info that's been attached by default. You probably are not going to debug clang, so won't need it. So instead of just doing this
cmake -G Ninja ../llvm -DLLVM_BUILD_TESTS=ON
What you should do is
cmake -G Ninja ../llvm -DLLVM_BUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Release
All the other steps remain the same.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Can we compile and run a C/C++ program completely in the memory without need of disk access?
Normally one writes a C/C++ program in editor, saves to disk(in file) and then compiles it. Compiling creates executable file on disk, which one runs to see if it works correctly. What I want to do is to write a program, save to file, invoke gcc/g++ in such a way that it creates machine code but directly loads that on memory to run. So once I am satisfied with program output, I can again invoke gcc/g++(as done usually) to create executable file on disk.
You can use gcc -pipe to avoid some temporary files. And you can pipe the source code into GCC by gcc -xc -. You can even have GCC write its output to stdout:
echo 'int main() {}' | gcc -xc - -S -o -
Once you've done all that, you are left with a couple issues: where to get GCC from (usually it's on disk!), and where to get the #include and library files you need (ditto). You could install GCC (it comes with a standard library) onto a RAM disk (look at /dev/shm), but is that really what you're trying to accomplish?
You aren't going to speed up compilation this way. The GCC docs say as much regarding -pipe. If you want faster compilation, improve your source code, implement a parallel build system (make -j), and/or use a faster linker, like Gold instead of classic BFD.
Yes, you can. An easy way is to use tmpfs.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
Wondering if I can get some direction here; I've got 18 Warnings (which I think are all deprecated functions for SDK(s) for in-ap-advertising. I'm working through them separately. The only error I have is as follows, causing me to be unable to run on both iOS Simulators and on physical devices.
clang: error: no such file or directory: '_ObjC'
The masses of text immediately above this give file paths for what looks like all the compile source paths.
I can confirm that the Build Settings - Linking-Other Linker Flags contains "-all_load" and "_ObjC".
I've had a look about and have found similar questions and tried to transpose the answers into something that will relate to my Error, but am going a bit mad right now because it's probably something really simple :|
Please let me know if you require any further information or screenshots etc., etc.
Regards,
I'm Mad
That should be -ObjC, a hyphen, not _ObjC, an underscore.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to fix PHP errors related to timezone (function.strtotime and function.date)
I installed PhpDocumentor-1.4.0a2.tgz which is the latest version on CentOS 5.7 64, my current lamp installation is with php 5.3.3
I am using
pear install phpDocumentor-alpha
after installing it the following is shown:
Warning: strtotime(): It is not safe to rely on the system's timezone settings.
You are required to use the date.timezone setting or the
date_default_timezone_set() function. In case you used any of those methods and you are still getting
this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST'
instead in PEAR/Validate.php on line 454 and 486
I know this error has to do with the version of php, and 5.3 is not compatible with PEAR.
I did not mind because the instalation process gave me an ok.
The I tried to generate the documentation, it is not being completed for some reason.
$ phpdoc -c /usr/share/pear/data/PhpDocumentor/user/bigstep.ini
PHP Warning: strftime(): It is not safe to rely on the system's timezone settings.
You are required to use the date.timezone setting or the date_default_timezone_set() function.
In case you used any of those methods and you are still getting this warning,
you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST'
instead in /usr/share/pear/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/Smarty_Compiler.class.php on line 370
It is a php warning that should not be stoping the documentation generation. But, the process gets in the middle,
and at the end does not generate the files.
it seems that I have to check on those libraries myself. Does anyone have seen this error before, what should I try next to resolve this issue
Set the timezone in your php.ini