IPAD must-haves. And fun-to-haves.

Brighten your iPad with a colorful cover, stream to your TV, download pictures from your digital camera, and more. There’s already so much you can do with iPad and iPad mini

Apple Wireless Keyboard

The incredibly thin Apple Wireless Keyboard uses Bluetooth technology, which makes it compatible with iPad

Apple unveils iPad mini: ‘Thin as a pencil, light as paper’

iPad inspires creativity and hands-on learning with features you won’t find in any other educational tool

Lightning connector and FaceTime HD camera

Apple announces 4th generation iPad packing an A6X CPU

Pages

Showing posts with label Compiling. Show all posts
Showing posts with label Compiling. Show all posts

Sunday, August 11, 2013

Re: Problems compiling C in XCODE using VISA / NI

Friday, August 9, 2013

Problems compiling C in XCODE using VISA / NI

Hi,

 

I'm developing a program in C to communicate with my Tektronix oscilloscope. I inherited this project from a friend (who is currently incommunicado), so I can't talk to him about it.

 

Basically, my problem is that my program will not build due to a linker problem. I am using functions from the NI-VISA 5.4 package for OS X 10.8. However, the linker cannot seem to find the correct functions for my system:

 

Undefined symbols for architecture x86_64:

  "_viClose", referenced from:

      _setupVI in oscilloscope.o

      _getData in oscilloscope.o

      _closeInstr in oscilloscope.o

  "_viOpen", referenced from:

      _setupVI in oscilloscope.o

  "_viOpenDefaultRM", referenced from:

      _setupVI in oscilloscope.o

  "_viRead", referenced from:

      _setupVI in oscilloscope.o

      _getData in oscilloscope.o

  "_viStatusDesc", referenced from:

      _setupVI in oscilloscope.o

      _getData in oscilloscope.o

  "_viWrite", referenced from:

      _setupVI in oscilloscope.o

      _getData in oscilloscope.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

 

These are all pretty basic VISA functions. I struggled in just including the correct header file, as

#include

didn't work. When I went to the verbose form, it worked:

#include "/Library/Frameworks/VISA.framework/Versions/A/Headers/visa.h"

 

However, then the problem started happening that I'm having now -- the object linker can't find the code for the VISA functions. I've tried changing build architctures from x86_64 to just x86, without avail. I'm currently building in i386 x86. I've also tried (under Build Phases -> Link Binary with Libraries) to link the VISA.framework to the project, but this simply gives the linker error "cannot find VISA".

 

I feel like I am missing something very obvious. I'm still operating under the notion that either NI-VISA did not install to the correct location, or that my build settings are incorrect.

 

Does anyone have any insight to lend? I've been searching through different forums for help for almost 2 days now, with no avail.




View the original article here

Re: Problems compiling C in XCODE using VISA / NI

Are you using Xcode or doing it from the command line?

 

You need to tell the compiler the library and where it is.  In Xcode you would do this in the Build Phases window of the project under the Link Binary with Libraries area.

 

Just saw you say you tried this. Ar you sure you are setting the right path.

 

Where did you get the librsry from? Did you compile it on the Mac or was it compiled?


View the original article here

Re: Problems compiling C in XCODE using VISA / NI

Are you using Xcode or doing it from the command line?

 

You need to tell the compiler the library and where it is.  In Xcode you would do this in the Build Phases window of the project under the Link Binary with Libraries area.

 

Just saw you say you tried this. Ar you sure you are setting the right path.

 

Where did you get the librsry from? Did you compile it on the Mac or was it compiled?


View the original article here

Tuesday, February 26, 2013

Weird error, never seen before when compiling


When compiling my app I was making,after not running it for a few days, it gave me an error that doesnt say where it is or how to fix it. Here is a screenshot:



Anyone know hoe to fix this? I was going to try upload my app to my iPod today, but it gave this error.


View the original article here

xcode 4.6 compiling takes up 100s of MBs, losing hard drive space

Hello fellow developers. I am having a hard time figuring out where my hard drive space is going. After running (compiling) the app to test, my hard drive space drops 150-300mb of space. I close the simulator and the space does not regain. I restart xcode and even restart the mac and the space is never recovered. I have lost over several GBs of hhd space now and unable to recover or even locate where the files are being created. I have used several disk management softwares to see what files take up how much space and so forth. I have cleared cache, cleared archives and such from xcode. I have tried removing and reinstalling. Any help would be appreciated. thanks community.


View the original article here

Saturday, February 23, 2013

Re: xcode 4.6 compiling takes up 100s of MBs, losing hard drive space

What evidence are you observing that shows your free drive space is dropping? Is it possible the space is consumed by hourly Time Machine local snapshots as described here?

 

http://support.apple.com/kb/HT4878

 

If so, the space will be surrendered when needed so don't worry about it.


View the original article here

Tuesday, January 22, 2013

Compiling of an app wrote in xCode

Hello! How can I compile an app wrote in xCode ( Objective-C ) to an .app file? I use the latest xCode.


View the original article here

Compiling of an app wrote in xCode

Hello! How can I compile an app wrote in xCode ( Objective-C ) to an .app file? I use the latest xCode.


View the original article here