Clang compatibility with XCode 4.4.1 - objective-c

I am using XCode 4.4.1 and want to do static analysis via CLang manually.
I downloaded Clang checker build 267.
Using xcodebuild I am able to build my project, but when using scan-build xcodebuild, I get error.
Details: Unable to get message category info for tool '/Users/vinay/checker-267/libexec/ccc-analyzer'.
Reason: Can't execute "clang": No such file or directory at line /Users/vinay/checker-267/libexec/ccc-analyzer 428
Can I use Clang with XCode version 4.4 Or is there any other static analysis tool that I can use?
Thanks.

Clang's static analyzer is available from within Xcode: Use Product→Analyze, or hit shift-cmd-b to use it on your project.

Related

Build configuration error using Android NDK

There is a build configuration error (Gradle sync failed) starting a new simple Android project using IntelliJ IDEA and the installed Android SDK (API 28) to include C++ support.
If I can remember, it worked when first installed, but now any attempt to compile and build the project using the IntelliJ GUI fail. LLDB, CMake and NDK are all installed correctly in the correct folders and the local.properties file references the location of the SDK and NDK.
All attempts to refresh linked C++ projects or clear caches (invalidate caches/restart) make no difference.
CMake_server_log.txt suggests:
CMAKE SERVER: CMake Error: CMake was unable to find a build program
corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You
probably need to select a different build tool.
Build output (edited to remove path):
Cause: executing external native build for cmake CMakeLists.txt
There appears to be a lack of configuration to complete the build or missing PATH or ENVIRONMENT variable. Should I manually try to change this or add some extra code to the build.gradle or CMakeLists.txt? There is the ninja application in the cmake bin directory.
Even importing other NDK sample projects fail (after downloading any required dependencies e.g. Gradle version).
Reinstalling LLDB, CMake and the NDK via SDK Tools do not solve the issue either.
I get the impression that I need to completely uninstall IntelliJ IDEA on Windows and remove any remaining folders/files associated with it, before reinstalling it. That would be a shame as IntelliJ IDEA works for other type of Android projects not requiring native C++ support.

wxStyledTextCtrl sample program fails at runtime

The wxStyledTextCtrl sample program fails at runtime
../msw/window.cpp(3750): assert "wclass" failed in MSWCreate():
failed to register window class?
wxWidgets 3.0.1 on windows
building with code::blocks
Found the problem. I was linking with the debug version of the STC library. Linking with the release version works OK.

use CMake to generate a multiple-configuration Eclipse CDT project: failed

I have c++ projects developed in windows with VS2013, now I am trying to use eclipse in Linux.
I create a hello-word application and use CMake-GUI(2.8.11) to generate eclipse-cdt(4.4) project. The generated eclipse project can not have both the Debug and Release configurations : import the generated project into eclipse-cdt, and select the menu “Build Configurations->Set Active” : aha, it is grey! which means no way to switch between Debug and Release.
Why CMake can not generate a multiple-configuration eclipse project? Or I am doing something wrong.
I get some info from http://www.voom.net/use-cmake-with-eclipse/comment-page-1#comment-171974
Thanks.

In Flash Builder 4.7, how do I use -define=CONFIG::release,true with Export Release Build?

I can't seem to find a way to compile my AS3 code/project differently for the release build vs. the debug build using the IDE. Is there a way to set different command-line options for the SWF compiler when using the "Export Release Build" feature?
Right click on your project > Properties > ActionScript Compiler.
https://www.dropbox.com/s/il2f0kq7i0uvfnl/Screenshot%202014-08-19%2016.32.09.png
You can also find more here: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7f14.html

pjsip using cmake

Has someone compiled pjsip using cmake?
The project does not have a way of using CMake to build the library itself (yet). But you can link to pjproject libs from your CMake project.
Here's a snippet from one of mine that uses pjproject as a dependency:
find_package(PKGCONFIG REQUIRED)
pkg_check_modules(PJSIP libpjproject>=1.14 REQUIRED)
include_directories(${PJSIP_INCLUDE_DIRS})
...
target_link_libraries(your_target ${PJSIP_LIBRARIES})
This requires pkg-config as well, and that pjproject.pc should be in it's default search path, or in directory in $PKG_CONFIG_PATH.
This should work on Linux and OS X.
I just made cmake-based compilation of PJSIP v2.3.
I use this compilation only on Windows platform for now, not tested on linux.
On Linux I recommend use PKG_CONFIG tool to discover PJSIP for your app.
Having peeked at their repository, the project is auto-tools/configure based. You would need to port the build system yourself. Depending on complexity, it is not that hard to accomplish. I have converted many projects to cmake. Maybe the pjsip comunity would welcome an upgrade to their build system, as I see they support multiple platforms like iphone, and windows through visual studio.
If you are using Clion IDE then it can automatically generate cmake file for pjproject. Just import it and it will open a wizard. You’ll need to specify the location of the sources, then select project files and include directories. Clion has the ability to make the cmake file from existing projects. for more help please see this link Clion Documentation