Posts

Showing posts from May, 2010

java - How to use VisualVM to get the time each function costs -

this question has answer here: total method time in java visualvm 7 answers visualvm nice little complicated tool me. i wrote class many functions (in eclipse). how can information of how many time each function calls , time cost when during execution? see profiling visualvm, part 1 , profiling visualvm, part 2 more information profiling , how set profiling roots , instrumentation filter.

Social Share Plugin Cordova/Phonegap -

i using social share plugin cordova ( https://github.com/bfcam/phonegap-ios-social-plugin ), , have working. wondering if there way have image have taken or library shared instead of predefined image. have functions set take picture , select image library. thanks. i using imagefilter plugin here code index.html page <!doctype html> <html> <head> <title></title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" /> <meta charset="utf-8"> <link rel="stylesheet" href="css/style.css"> <!-- core --> <script src='js/core/cordova-1.6.0.js'></script> <script src='js/core/jquery.js'></script> <!-- plugins --> <script src='js/plugins/imagefilter.js'></script> <script src='js/core/social.js'></script>

javascript - entry.description; not working with jGFeed -

Image
i using jgfeed parse rss feed, code below: $.jgfeed('http://feeds.bbci.co.uk/news/rss.xml', function(feeds){ // check errors if(!feeds){ // there error return false; } // whatever want feeds here $('#newstimeline').empty(); for(var i=0; i<feeds.entries.length; i++){ var entry = feeds.entries[i]; var title = entry.title; var description = entry.description; var linkurl = entry.link_url; var date = getdate(entry.pubdate); var time = gettime(entry.pubdate); $('#newstimeline').append('<li><time class="cbp_tmtime" datetime="'+date+' '+time+'"><span>'+date+'</span> <span>'+time+'</span></time><div class="cbp_tmicon cbp_tmicon-phone"

c# - How To Convert Sql Query to Linq Which contans Subquery -

my query follows `select * daps_user_activity userid in (select userid daps_portaluser emr_id = 24855) ` what equivalent query in linq please me... try this, it's better use join in instance, instead of sub-query: var results = (from in daps_user_activity join u in daps_portaluser on a.userid equals u.userid u.emr_id == 24855 select a).tolist()

java - Make Main Method restart/refresh -

my code far: import java.util.*; import java.util.scanner.*; public class project{ // main method public static void main(string [] args){ // creates main method system.out.println("name method (stability, efficiency ..)"); // asks user select method scanner scan = new scanner(system.in); // creates scanner string splash = scan.nextline(); // transitions user next line after choosing method if(splash.equals("efficiency")) // if users chooses efficiency goes efficiency method { efficiency(); // calls efficiency method } if(splash.equals("stability")) // if user chooses stability goes stability method { stable(); // calls stability method } else // happens if input wasnt recognized { system.out.println("i don't recognize this"); // happens if irrelevant method chosen } } } how make instead of: else // happens if input wasnt recognized { system.out.println(

struts2 - Struts 2 w/ Hibernate 4 property tag issue in result jsp -

i trying forward string (resultado) comes hibernate list (result) hql , listing goes well, , fetch result (that answer 1 siple row , selected column name/variable) list<string> result = (list<string>)query.list(); hibernatesession.gettransaction().commit(); hibernatesession.close(); (string resultado: result) system.out.println(resultado); all goes , can sysout "resultado" on console... on forwarded jsp (resultado.jsp) string not there. after text "o resultado é" there nothing... resultado.jsp <body> <h4>o resultado é <s:property value="resultado" /></h4> </body> struts.xml <package name="default" extends="struts-default" namespace="/"> <action name="query" class="mypackage.dao.myaction"> <result name="success" >resultado.jsp</result> </action> i have tried understand in struts2 can see

java - jHiccup: histogram data seems inconsistent -

i'm running application azul's jhiccup. application started via jsvc -javaagent option. jhiccup settings default (except output filename). the application runs ~107 minutes. however, if add values resulting hgrm file, total length of hiccups seems large. i calculate sum of hiccup values this: sum( (totalcountincludingthisvalue[n] - totalcountincludingthisvalue[n-1]) * value[n] ) the result 12.75 mln., or ~213 minutes (presuming values in milliseconds). twice duration of application run. total count * mean (from bottom of histogram values) give 12 mln., formula correct. for comparison, added "application time" , "stopped time" gc log. results close expect: ~105 min. app time , ~2 min. stopped time. i've accidentally overwritten original files, these example files different run: https://dl.dropboxusercontent.com/u/644287/jhiccup/hiccup.dat https://dl.dropboxusercontent.com/u/644287/jhiccup/hiccup.dat.hgrm the run took ~79 minutes

c# - Disabled textbox value is getting lost on click of a button -

i'm using following dropdown & mapping value textbox. <asp:dropdownlist id="ddlcntry" runat="server" height="24px" width="160px" onchange="country();"> <asp:listitem>select country</asp:listitem> <asp:listitem>india</asp:listitem> <asp:listitem>usa</asp:listitem> <asp:listitem>uk</asp:listitem> </asp:dropdownlist> <asp:textbox id="txtcntryrisk" runat="server" ontextchanged="txtcntryrisk_textchanged" width="153px" enabletheming="true" enabled="false"></asp:textbox> i have calculation button, when click on button mapped textbox value gets lost. want textbox disabled value cannot changed. tried using readonly=true property in vain. session, viewstate not working. but when enable textbox, it's working fine, no loss of value.

c - Stuck on a thread issue -

so have void* tf(void* p); which dont totally understand. think is, function pointer void pointer parameter. using make thread this: pthread_create( &thread_id[i], null, tf, null ); what need expliation of tf , how pass parameter it. i have function defined as void* tf(void* p) { //i use p here dont know how. } this function outside main , needs few other parameters set inside main. have tried making tf(int i) segment fault. know doing wrong , need figuring out. thanks in mater. jason pthread_create( &thread_id[i], null, tf, null ); // ^^^^^ // have put here pointer (address) data and can data p pointer thread function example typedef struct test { int a,b; } test; int main() { struct test t = {0}; pthread_create( &thread_id[i], null, tf, &t ); pthread_join(thread_id[i], null); // waiting thread finish printf("%d %d\n",t.a, t.b); } void* t

codeblocks - c++ extracting decimal solution error -

simple c++ question, can see creates table , inputs variable , variable t answer, problem don't know how fix if () . can see has error(typo). don't know how identify if variable t has example: 1 or 1.5 , if number have 1.(something here , it's bigger number. 1 ) call 1 condition else call other. int a,b = 18; double t; (a = 0; <= b; a++) { t = 8 + (double)(18 - a) / 2; if (t >= *.1) cout << setw(9) << << setw(20) << fixed << setprecision(1) << t << endl; else cout << setw(9) << << setw(20) << t << endl; } tried : #include <iostream> #include <iomanip> #include <cmath> #include <math.h> using namespace std; int main () { int a,b = 18; double t; (a = 0; <= b; a++) { t = 8 + (double)(18 - a) / 2; if (modf(t, null) >= 0.1) cout << setw(9) << << setw(20) << fixed <&

How to move a kineticjs circle? -

1) why obj.setx(newx) not move kineticjs circles? i using obj.transitionto function calls. 2) why transitionto moves circle without layer.drawscene ? setradius not working. thanks 1 have call layer.draw see result. 2 when using transitionto draw function calling automatically.

visual c++ - how do I get this code to take 65 and convert it into binary with c++/cli -

this question has answer here: decimal binary 11 answers private: system::void button1_click(system::object^ sender, system::eventargs^ e) { int base10; long base2 = 0; base10 = convert::toint32(txtbase10->text); base2 = base10 / 128 * 10000000; base10 %= 128; base2 = base10 / 64 * 1000000; base10 %= 64; base2 = base10 / 32 * 100000; base10 %= 32; base2 = base10 / 16 * 10000; base10 %= 16; base2 = base10 / 8 * 1000; base10 %= 8; base2 = base10 / 4 * 100; base10 %= 4; base2 = base10 / 2 * 10; base10 %= 2; base2 = base10 / 1 * 1; base10 %= 1; } you not understand binary form of numbers. if need convert integer it's string represenation may following: string base2 = convert.toint32(str,2).tostring(); string base8 = convert.toint32(str,8).tostring(); string base10 = co

amazon ec2 - Can you use a custom DNS server within EC2? -

i need set custom dns server within ec2. have 1 instance acts dns server, , n other instances use dns server connect 1 another. posible? basically, need modify dhcp settings n instances connect dns server. can't find documentation on modifying dhcp settings instance. note: did find documents, seem apply amazon vpc. there way without using vpc? short answer - no. need vpc. once have vpc created - can whatever it. long answer - traditional aws hosting gets address directly amazon. means you've got no control whatsoever of ip addresses. new accounts come vpc default, means can install machine act dns server. (and i've done in past using windows active directory)

ios - Can't Change Accessory Type From didSelectRowAtIndexPath? -

before post question itself, need state jailbreak app. why i'm writing in "bizarre" folders in filesystem. let's continue. here cellforrowatindexpath method: -(uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath { static nsstring *myidentifier = @"plugincell"; uitableviewcell *cell = [tableview dequeuereusablecellwithidentifier:myidentifier]; if (cell == nil) { cell = [[uitableviewcell alloc] initwithstyle:uitableviewcellstyledefault reuseidentifier:myidentifier]; } if(indexpath.row == 0) { cell.textlabel.text = @"default"; }else { //get plugin's display name. nsbundle *currentplugin = [[nsbundle alloc] initwithpath:[nsstring stringwithformat:@"/library/cydeswitch/plugins/%@", [plugins objectatindex:indexpath.row - 1], nil]]; cell.textlabel.text = [[currentplugin localizedinfodictionary] objectforkey:@

Facebook Enhanced Auth Dialog - how to display? -

Image
i'm looking way show facebook enhanced dialog box can explain users why giving app permissions. my url permissions looks this: https://www.facebook.com/dialog/oauth?client_id=xxx&redirect_uri=xxx&scope=email,user_location and permissions box looks this: however want dialog this: how change this? i've set values of fields have in this post still first dialog box. any appreciated. unless i'm mistaken, enhanced auth dialog no more or rather... has been streamlined referenced post https://developers.facebook.com/blog/post/2012/12/12/providing-people-greater-clarity-and-control/ as seen above app "run friends" no longer shows enhanced dialog.

MySql.Data.MySqlClient.MySqlException - vb.net -

can't figure out went wrong code. wanted retrieve sha256 key mysql database. keys table: id(int 4) | key (varchar64) 1 | 5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8 myadapter.fill(mydataatable) line keep throwing me error mysql.data.mysqlclient.mysqlexception unhandled errorcode=-2147467259 message=you have error in sql syntax; check manual corresponds mysql server version right syntax use near 'keys id= 1' @ line 1 here full error log: http://pastebin.com/eg4gfywa here code, learnt youtube... dim connectdatabase new mysqlconnection("server=localhost;user id=root;password=testing123;database=flag15") if textbox1.text = "" messagebox.show("please input user id", "error", messageboxbuttons.ok, messageboxicon.error) else dim myadapter new mysqldataadapter("select * keys id= " & textbox1.text, connectdatabase) dim mydataatabl

click is not triggering the jquery function -

the first function places particular list hidden div depending on item clicked. function works correctly when clicking 'a' link. after clicking link, remove class list , add new class correct list item. loads hidden list orange_box div. the second function supposed similar, not triggering on click of secondlist class. when remove 'a', thought culprit, nothing happens either. issue html content being placed in div , therefore can't targeted? <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <ul id="firstlist" class="no-list-styles inline"> <li class="select1"><a href="#intro">intro</a></li> | <li><a href="#1_list">access mental health</a></li> | <li><a href="#2_list">diet & exercise</a> | </li><li><a href="#3_list">tobacco use</a>&

SAP Simple Transformation with unknown XML -

i have xml of unknown structure , want apply st (simple transformation) on "somehow" content out of xml abap structures. for have following test report: report ztbu_st_with_copy. data: lf_xml type string. concatenate '<tab><obj>' '<id>a1</id>' '<first>erste</first>' '<second>zweite</second>' '</obj><obj>' '<id>b2</id>' '<item>' '<here>tady</here>' '<there>tam</there>' '</item>' '</obj>' '</tab>' lf_xml. types: begin of ys_obj, id type string, rest type string, end of ys_obj, yt_obj type standard table of ys_obj. data: lt_obj type yt_obj. call transformation ztbu_s

mysql - WordPress WP-Dbmanager 0/1 Query(s) Executed Successfully -

wordpress 3.5.1 wp-dbmanager 2.63 database type mysql database version v5.1.68-cll trying create new table on database wordpress site using wp-dbmanager plugin. i click on run sql query link in admin panel , paste in query is create table mg_msl_lookup ( device_id int(11) not null auto_increment, sku varchar(30) not null, manufacturer varchar(30) not null, phone varchar(50) not null, esn bigint(18) not null, msl int(6) not null ); i click run , error message create table mg_msl_lookup 0/1 query(s) executed successfully so did google search "wp-dbmanager 0/1 query(s) executed successfully" , found forum post on plugin developer's site. suggested put statement on 1 line, did: create table mg_msl_lookup (device_id int(11) not null auto_increment, sku varchar(30) not null, manufacturer varchar(30) not null, phone varchar(50) not null, esn bigint(18) not null, msl int

java - Making a program run for 5 minutes -

so wanted try out bit timer , timertask classes. i able line of code execute after 30 seconds elapsed. i've been trying line of code execute 5 minuets. this tried public static void main(string[] args) { ( int = 0; <= 10; ++ ) { timer timer = new timer(); timer.schedule( new timertask() { public void run() { system.out.println("30 seconds later"); } }, 30000 ); } } i used number 10 in loop see if timer.schedule wait 30 seconds during next iteration of loop. any idea how should go this? tried using schedule method parameter passed in period, made re-execute , never stopped. the issue you're running scheduled timer runs on different thread - is, next iteration of for loop starts running after scheduling, not 30 seconds later. looks code starts ten timers @ once, means should print (roughly) 30 seconds later, @ once. you on right track

codeigniter - AJAX Form Validation to see if course already exist always return true -

i want validate course name field if course name inputted exist using ajax, ajax function return alert('already exist') if inputted data not yet in database. please help. here code. thanks. view: <script type="text/javascript"> var typingtimer; var donetypinginterval = 3000; $('#course_name').keyup(function(){ typingtimer = settimeout(check_course_name_exist, donetypinginterval); }); $('#course_name').keydown(function(){ cleartimeout(typingtimer); }); function check_course_name_exist() { var course_name=$("#course_name").val(); var postdata= { 'course_name':course_name }; $.ajax({ type: "post", url: "<?php echo base_url();?>/courses/check_course_name_existence", data: postdata, success: function(msg) { if(msg == 0) { alert('already exist!'); return false; } else

excel - VBA script to compare 2 sheets and delete duplicated cells “Big Search Range” -

i want script compare "sheet 1 cells" "sheet 2 cells" , delete duplicates sheet 2. using script option explicit sub cleandupes() dim targetarray, searcharray dim targetrange range dim x long 'update these 4 lines if target , search ranges change dim targetsheetname string: targetsheetname = "sheet2" dim targetsheetcolumn string: targetsheetcolumn = "a" dim searchsheetname string: searchsheetname = "sheet1" dim searchsheetcolumn string: searchsheetcolumn = "a" 'load target array sheets(targetsheetname) set targetrange = .range(.range(targetsheetcolumn & "1"), _ .range(targetsheetcolumn & rows.count).end(xlup)) targetarray = targetrange end 'load search array sheets(searchsheetname) searcharray = .range(.range(searchsheetcolumn & "1"), _ .range(searchsheetcolumn & rows.count).end(xlup)) end dim dict object set dict = createobject("

Raspberry PI, raw reading a register value in C -

can please show me example on how read values raspberry pi registers? need check byte in aux_mu_lsr_reg (0x7e21 5054) don't know how without usage of additional libraries. tried to: (here modify oryginal post) ** * ** * ** * ** * ** * ** * ** * **** *start of code #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <sys/mman.h> #include <unistd.h> #include <errno.h> #define bcm2708 0x20000000 #define uart_base (bcm2708+0x215000) #define page_size (4*1024) #define block_size (4*1024) int mem_fd; void *uart_map; volatile unsigned *uart; int main() { printf("start\n"); if((mem_fd=open("/dev/mem",o_rdwr|o_sync))<0) { printf("can't open /dev/mem \n"); exit(-1); } else printf("stream_file open ok \n"); if((uart_map=malloc(block_size))==0) printf("malloc fail\n"); else printf("gpio_mallocation ok %d

php - How to highlight lines with background colour and have padding on each line? -

Image
i using php output , exerpt inside p tag. i wrapping inside string of p tag span. <p class="lead"><span><?php the_advanced_excerpt(); ?></span></p> the outputted html... <p class="lead"><span>motorcycle helmet full face or open face. motocross or enduro style helmet better choice. these designed off-road use , have particular…</span></p> the span has css on it... .carousel-caption .lead span { background: #f60; padding: 5px; } please see out come here... see green arrows - looks desired. see red arrows - padding missing. as can see orange high lighted lines flush @ end of each line. apart beginning , end of string. so question how can add left/right padding each of lines? so appears each line has been highlighted background colour. plastic tape embossed letters on. is posible somehow? add "display: block" or "display:inline-block" span's cl

rpgle - Access the page of a .pdf I load (using pdfbox) (and i'm using RPG) -

i trying modify .pdf load using pdfbox. using rpg , have found java code access page loaded .pdf pdpage page = (pdpage)pddoc.getdocumentcatalog().getallpages().get(0) the other code have seen is list pages = doc.getdocumentcatalog().getallpages(); pdpage page = (pdpage)pages.get( ); the problem having translating code rpg. the code have right load .pdf template create document catalog , create list , save (the xlenvvar i'm getting classpath). /free xlsenvvar(); // load existing pdf mypath = jstring_new('/tmp/pdftemplate.pdf'); file = file_new(mypath); mydocument = pddocument_load(file); mycatalog = pddocumentcatalog_new(mydocument); mylist = getallpages(mycatalog); // done file, save myfile = jstring_new('/tmp/pdfbox-demo.pdf'); pddocument_save(mydocument:myfile); // close document object in memory free allocated space pddocument_close(mydocument); // done *inlr = *on; /end-fr

scala - Types in a package object -

perhaps i'm missing obvious, but: package.scala package heptic package object proj { case class jesus(axes: int) def foo: jesus = jesus(44) } gives compilation error: found : heptic.proj.jesus required: heptic.proj.package.jesus def foo: jesus = jesus(44) ^ which doesn't seem make enormous amount of sense (especially when type inference crashes compiler (latest, 2.10.1)) sbt clean such errors. there class jesus compiled , not deleted. guess have moved jesus package package object , both of them.

github - Adding a folder content in Git -

so bit weird. i'm working on git repository, , fine. until added folder named "tests" repository using git add . . noticed no files added git used do. so pushed github check if files added or not, because "test" figuring out in "git status" log (but none of "tests" files). i got weird green icon, , first time stumble across it. can see icon in github repository . the commit log shows following +subproject commit 70b4cc379d0e1e749085ec1b3aaa0dd1cd0fc9b7 so icon mean , did happen? edit : didn't add submodule, , if there one, there should have been ".gitmodules" file created track them. guess git got confused though shouldn't. the cure simple git rm tests --cached git add tests git commit -m "fixed!" as radium pointed out, you've added new git submodule . the last line in output of git show confirms added new subproject: $ git show a068b76 commit a068b7629f29f8774db67a7384dbeee

linux - How can I set the permission of a .key file to be only accessed by nginx -

i have ssl certificate key in directory /etc/nginx/key , how can set permissions allow nginx process access key file? make nginx user own it, , set permissions owner so: chown /etc/nginx/key nginxuser chmod 400 /etc/nginx/key i chose 400 because no 1 should need write key. note root still able read , write this. also, replace nginxuser user runs nginx, don't know off top of head.

.htaccess - why isn't index.php working? -

i have single index.php page should link rest of websites. <?php if(!isset($_get['page']))$page = 'home.php'; else{ $page = $_get['page'] . ".php"; } include("_includes/header.php"); include("_includes/navigation.php"); include("_pages/$page"); include("_includes/footer.php"); ?> this index.php looks like. it's supposed page click on (when clikc on navigation) , direct page header, navigation, , footer reused every page. <div id="navi"> <ul> <li><a href="home">home</a></li> <li><a href="skills.php">skills</a></li> <li><a href="_pages/my_projects.php">projects</a></li> <li><a href="_pages/experience">experience</i></a></li> <li><

php - Authenticating with LDAP OSX 10.8? -

i trying implement login users on web application developing, using open directory , authenticating user through ldap. receiving error of: warning: ldap_bind() [function.ldap-bind]: unable bind server: can't contact ldap server in /ldap/login.php on line 18 access denied! my requirement authenticate user through ldap view restricted page. in same way user authenticated using database. i ran simple test, open connection code below failed authenticate <?php set_time_limit(30); error_reporting(e_all); ini_set('error_reporting', e_all); ini_set('display_errors',1); $ldaphost = "ldaps://11.4.9.3"; $ldapport = 636; $ds = ldap_connect($ldaphost, $ldapport) or die("could not connect $ldaphost"); if ($ds) { $username = "my ldap login"; $upasswd = "my ldap password"; $ldapbind = ldap_bind($ds, $username, $upasswd); if ($ldapbind) {print "congratulations! $username authenticated.";} else {pr

how to check uniqueness of a username in MySQL database via JSON? -

i have next page, on user can create new account. question how can make sure user inserts username doesn't exist in mysql database. page available on http://webs.hogent.be/kevinbaeyens/gebruiker.html code of page is: <!doctype html> <html class=""> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>nieuwe gebruiker | sociale buurt</title> <link href="boilerplate.css" rel="stylesheet" type="text/css"> <link href="onzebuurt.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="jquery-1.7.1.min.js"></script> <script type="text/javascript" language="javascript"> window.onload = function() { document.getelementbyid("username").focus(); }; function formuliervalideren

indesign - How to detect shift down when clicking on ScriptUI button? -

on scriptui panel, have button. how can detect whether user holding shift key when click on button? you can add eventlistener button. var win = new window ("dialog"); win.abutton = win.add ("button", undefined, "button"); win.abutton.addeventlistener ("click", function (k) { if (k.shiftkey) { alert("foo"); }else{ alert("bah"); } }); win.show ();

c# - Buttons from Base Class are Changing positions -

Image
i've base form class designed @ bottom put docked-bottom panel , inside panel put 2 buttons. set anchor's property of these buttons " top, right " i've set form's autoscalemode none on application inherited base form , don't know happening. buttons go middle of panel. if set again left , maybe rebuild baseform goes middle again. i've seen happen when controls in base form have protected modifier. means inherited form can set controls' properties (like location ) itself. why way, don't know. when winforms turned old lady, stopped fighting idiosyncrasies, tried work around them (as old ladies). in case use flowlayoutpanel in stead of regular panel , set flowdirection = flowdirection.righttoleft .

objective c - How can I access the property in an object that has an unknown class? -

my initial code was [[[show episodes] lastobject] setdescription:nodecontent]; this gets last object episodes array , tries set episode's description property using nodecontent. not work because think compiler not know class of episode object. i tried providing cast ((episoderepresentation *)[[show episodes] lastobject]).description = nodecontent; this doesn't work either. have tried unsuccessfully episoderepresentation *rep = [[show episodes] lastobject]; rep.description = nodecontent; all these ways leave description null (nodecontent not null, nsstring). your array empty. try [[show episodes] count] number of objects in array. btw: naming of classes , methods seems odd. classes begin captal letters , methods lower case letters.

symfony - Symfony2 Set _locale in home page base on browser's configuration -

my local works everywhere on website cant tell application set proper local on root of application. for exemple : if website http://mycompany.com want that, when enter address application guess local , set @ end of url http://mycompany.com/en if local exist on application. here en or fr , if not default en for when go home page english version browser set in french routing.yml : _welcome: pattern: /{_locale} defaults: { _controller: mybundle:default:landing, _locale: en } requirements: _locale: en|fr see question asked few days ago , take @ first method in language listener. need. , take care of right settings in config.yml

osx - Problems Compiling PySide on MacOSX -

i'm trying compile pyside on mac (to use software has own python interpreter, that's why can't use binaries installers), , have issues don't know how solve... i using mac 10.8, , dependencies (cmake, xcode...) up-to-date. i don't know what's wrong, , out of ideas. here last part of compiler tells me: linking cxx executable testcontainer [ 39%] built target testcontainer [ 39%] generating testctorinformation.moc scanning dependencies of target testctorinformation [ 39%] building cxx object apiextractor/tests/cmakefiles/testctorinformation.dir/testctorinformation.cpp.o 1 warning generated. linking cxx executable testcodeinjection undefined symbols architecture x86_64: "qcoreapplication::qcoreapplication(int&, char**, int)", referenced from: testcodeinjections::testreadfileutf8() in testcodeinjection.cpp.o ld: symbol(s) not found architecture x86_64 clang: error: linker command failed exit code 1 (use -v see invocation) make[2]: **