NI Home > Community > NI Discussion Forums

LabVIEW

Showing results for 
Search instead for 
Do you mean 
Reply
Member
Gschwert
Posts: 4
0 Kudos
Accepted Solution

Error while building shared library for OSX

Hi,

 

I am trying to build a shared library (.framework) using LabVIEW 2011 für Mac.

My OSX Version is 10.7.3.

 

When I run the build process, it allways aborts showing the error message:

 

Error 1 occurred at DLL - Compile C Source File.vi Possible reason(s): You must have the Apple Developer tools installed to build a shared library. Install the Apple Developer tools and try to rebuild the shared library.

 

I have no idea which developer tool is missing or if there is another problem with my environment.

 

Thanks,

Gschwert

Active Participant
ADagli
Posts: 253
0 Kudos

Re: Error while building shared library for OSX

Hi Gschwert,

 

thanks for your forum post.

 

The Apple Developer tools which are mentioned in the error might be those:

 

http://en.wikipedia.org/wiki/Apple_Developer_Tools

 

link to Apple: https://developer.apple.com/technologies/tools/

 

good luck in your project :smileyhappy:

 

Abduelkerim

Abduelkerim

Applications Engineer
NI Germany
Member
Gschwert
Posts: 4
0 Kudos

Re: Error while building shared library for OSX

Hello Abduelkerim,

 

that was my first thougt. But I have X-Code 4.3 and a chunk of related development tools.

 

Also when I run LabVIEW with Konsole, I don´t get a hint what LabVIEW is expecting.

 

I tried the whole procedure with another system using snow leopard and X-Code 4.2 but it

leads me to the same result..

 

What is LabVIEW looking for? The LLVM Compiler?  

 

Thank you!

 

 

Active Participant
ADagli
Posts: 253
0 Kudos

Re: Error while building shared library for OSX

Hello Gschwert,

 

how do you come to the assumption that exactly this compiler is missing?

you can try to download it and look if it helps you.

 

You can find a dowload here: http://llvm.org/releases/

Abduelkerim

Applications Engineer
NI Germany
Member
Gschwert
Posts: 4
0 Kudos

Re: Error while building shared library for OSX

Hi Abduelkerim,

 

just because XCode uses the LLVM compiler and this seems to be the commonality with LabVIEW (http://zone.ni.com/devzone/cda/tut/p/id/11936#toc4).

Since my XCode works well, it don't think it's the root of the problem.

 

As long as I don't know which developer tool (or part of it) LabVIEW is looking for exactly (and where ?), I can spend plenty of time with aimless software installations.

 

Regards,

Gschwert

 

 

Active Participant
ADagli
Posts: 253
0 Kudos

Re: Error while building shared library for OSX

Hi Gschwert,

 

i will forward your question to the LabVIEW Developers in Austin. Let's see what they say.

I would ask you to have a little patience. As soon as I have a answer from them I will let you know :smileyhappy:

 

Abduelkerim

Abduelkerim

Applications Engineer
NI Germany
Active Participant
ADagli
Posts: 253
0 Kudos

Re: Error while building shared library for OSX

[ Edited ]

Hi Gschwert,

 

in the meantime i got an answer from our developers in Austin.

The Apple Developer tools that it is referring to should be X-Code.

They are working with X-Code Version 3.0 and have no problem. They will try to work with your versions (4.2 and 4.3) too and will have a look if there is something special to look for.

 

Have you tried using X-Code 3.0? Do you get then the same problems?

 

Have a nice day,

 

Abduelkerim

Applications Engineer
NI Germany
Member
Gschwert
Posts: 4
0 Kudos

Re: Error while building shared library for OSX

Hi Abduelkerim,

 

made my day!

 

XCode 3.X is the key.

 

I tried it with 3.2.5 and it works. :smileyhappy:  By now, I haven´t tried the Framework with XCode but it don´t seem to be a non-starter since I am able to use it with LabVIEW.

 

Many thanks..!

 

Perhaps you can keep me up to date regarding the XCode 4 compatibility.

 

Cheers

Gschwert

 

 

 

 

Active Participant
ADagli
Posts: 253
0 Kudos

Re: Error while building shared library for OSX

Hi Gschwert,

 

youre welcome.

I will keep you up to date, our developers are starting testing version 4.x of X-Code.

 

Have a nice day 

Abduelkerim

Applications Engineer
NI Germany
Active Participant
ADagli
Posts: 253
0 Kudos

Re: Error while building shared library for OSX

Hi Gschwert,

 

our developers told me that for X-Code Version 4 you need an additional download. Then, it should also work with Version 4. Here is what they said:

 

It turned out that Shared Libraries compile fine with XCode 4, it's just that the command line tools that we need for compilation are now an optional download. 

From https://developer.apple.com/xcode/ 
"Xcode includes a new "Downloads" preference pane to install optional components such as command line tools, and previous iOS Simulators." 

 

So, this is not well documented we will handle that and let make a correction as soon as possible.

 

Have a nice day,

 

Abduelkerim

Applications Engineer
NI Germany