Skip to content

Instantly share code, notes, and snippets.

View Kentzo's full-sized avatar
🤖

Ilya Kulakov Kentzo

🤖
View GitHub Profile
-> libsodium (0.4.5)
- ERROR | [xcodebuild] Specs/libsodium/0.4.5/src/libsodium/crypto_stream/aes256estream/hongjun/aes-table.h:10:3: error: Unsupported byte ordering
- ERROR | [xcodebuild] Specs/libsodium/0.4.5/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h:20:3: error: Unsupported byte ordering
- NOTE | [xcodebuild] Specs/libsodium/0.4.5/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:81:36: warning: implicit declaration of function 'SWP32' is invalid in C99 [-Wimplicit-function-declaration]
- NOTE | [xcodebuild] Specs/libsodium/0.4.5/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:108:3: warning: implicit declaration of function 'LEROT' is invalid in C99 [-Wimplicit-function-declaration]
- ERROR | [xcodebuild] Specs/libsodium/0.4.5/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c:108:3: error: use of undeclared identifier 'T0'
- ERROR | [xcodebuild] Specs/libsodium/0.4.5/src/libsodium/crypto_stream/aes256estream/hongju
gst_element_set_state(pipeline, GST_STATE_PLAYING);
gst_bus_timed_pop_filtered(gst_element_get_bus(pipeline), GST_CLOCK_TIME_NONE, GST_MESSAGE_EOS);
g_object_set(G_OBJECT(input_selector), "active-pad", is_sink_pad1, NULL);
gst_bus_timed_pop_filtered(gst_element_get_bus(pipeline), GST_CLOCK_TIME_NONE, GST_MESSAGE_EOS);
def _getCOMModuleForLocation(self, componentFile):
fqn = componentFile.path
mod = self.com_modules.get(fqn)
if mod is not None:
return mod
import ihooks, sys
base_name = os.path.splitext(os.path.basename(fqn))[0]
loader = ihooks.ModuleLoader()
module_name_in_sys = "component:%s" % (base_name,)
function(get_load_name target)
get_target_property(_TARGET_NAME ${target} NAME)
string(TOUPPER ${_TARGET_NAME} _TARGET_NAME_U)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(${_TARGET_NAME_U}_LOAD_NAME "@rpath/${CMAKE_SHARED_LIBRARY_PREFIX}${_TARGET_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}" PARENT_SCOPE)
else (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(${_TARGET_NAME_U}_LOAD_NAME "${CMAKE_SHARED_LIBRARY_PREFIX}${_TARGET_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}" PARENT_SCOPE)
endif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
endfunction(get_load_name)
Configure summary
Build type: macx-clang (x86_64, CPU features: cx16 mmx sse sse2 sse3 ssse3)
qmake vars .......... QMAKE_CC = /usr/bin/cc QMAKE_CXX = /usr/bin/c++ QMAKE_CFLAGS = -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -I/usr/include -mmacosx-version-min=10.8 -mssse3 -gdwarf-4 -fslp-vectorize -fvectorize QMAKE_LFLAGS = -L/usr/lib -mmacosx-version-min=10.8 styles += mac fusion windows DEFINES += QT_NO_MTDEV QMAKE_CFLAGS_FONTCONFIG = -I/usr/local/Cellar/fontconfig/2.11.1/include -I/usr/local/Cellar/freetype/2.5.3_1/include/freetype2 QMAKE_LIBS_FONTCONFIG = -L/usr/local/Cellar/fontconfig/2.11.1/lib -L/usr/local/Cellar/freetype/2.5.3_1/lib -lfontconfig -lfreetype DEFINES += QT_NO_LIBUDEV DEFINES += QT_NO_EVDEV INCLUDEPATH += "/usr/include" LIBS += -L"/usr/lib" sql-drivers = sql-plugins = sqlite qmake switches .........
Build options:
Configuration .......... absolute_library_soname accessibility audio-backend concurrent corewl
# Doesn't work:
class SDL_JoystickGUID(Structure):
_fields_ = [("data", (Uint8 * 16))]
# Does work:
class SDL_JoystickGUIDData(Structure):
_fields_ = [
("e0", Uint8),
("e1", Uint8),
("e2", Uint8),
C:\Users\developer>dig github.com
; <<>> DiG 9.10.2 <<>> github.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17928
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;github.com. IN A
@Kentzo
Kentzo / gist:e038118346f1e1a582ac
Created July 11, 2015 06:57
Workaround for dsymutil shipped with Xcode 5.1.1

This issue happens due to a bug in dsymutil shipped with Xcode 5.1.1 (and matching release of Command Line Tools). Unfortunately this is the last version of Xcode available on 10.8, which may lead to and unresolvable problem. Hopefully, there is a solution!

Download Command Line Tools for Mac OS X Mavericks that were released on Sep 15, 2014. This package will not install on 10.8, but we don't need it. Expand the package by using the pkgutil (pkgutil --expand), then unpack Payload (it's cpio.gz archive) of the CLTools_Executables.pkg package. Look up the dsymutil library and use it to replace one at /usr/bin/ and another one inside Xcode.app

Enjoy :)

*.pbxproj -crlf -diff -merge
void RMPrintError(NSError* error){
NSArray* errors = [[error userInfo] valueForKey:@"NSDetailedErrors"];
if(errors != nil){
for(NSError* nestedError in errors){
NSLog(@"%@", [nestedError userInfo]);
}
}
else{
NSLog(@"%@", error);
}