LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error while building shared library for OSX

Solved!
Go to solution

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

0 Kudos
Message 1 of 10
(3,165 Views)

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 🙂

 

Abduelkerim

Abduelkerim

Sales
NI Germany
0 Kudos
Message 2 of 10
(3,148 Views)

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!

 

 

0 Kudos
Message 3 of 10
(3,140 Views)

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

Sales
NI Germany
0 Kudos
Message 4 of 10
(3,136 Views)

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

 

 

0 Kudos
Message 5 of 10
(3,124 Views)

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 🙂

 

Abduelkerim

Abduelkerim

Sales
NI Germany
0 Kudos
Message 6 of 10
(3,112 Views)
Solution
Accepted by MaryH

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

Sales
NI Germany
0 Kudos
Message 7 of 10
(3,098 Views)

Hi Abduelkerim,

 

made my day!

 

XCode 3.X is the key.

 

I tried it with 3.2.5 and it works. Smiley Happy  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

 

 

 

 

0 Kudos
Message 8 of 10
(3,089 Views)

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

Sales
NI Germany
0 Kudos
Message 9 of 10
(3,076 Views)

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

Sales
NI Germany
0 Kudos
Message 10 of 10
(3,057 Views)