Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

LibXL in AC27 on MacOS

dushyant
Enthusiast

Hi,

I'm getting linker errors when I use libxl with AC27 API on MacOS:

 

ld: Undefined symbols:
  _xlCreateXMLBookA

 

That's the macro being called by xlCreateXMLBook(). LibXL/libxl.h included.

 

Has anyone tried it with AC27 API?

 

Thanks.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Viktor Kovacs
Graphisoft
Graphisoft

Thanks for reporting this. Probably it's because LibXL.framework has changed to LibXL.dylib in the Frameworks folder. You need to link dylib files to your project, too. The fix is in progress on our side in the cmake template.

View solution in original post

3 REPLIES 3
Solution
Viktor Kovacs
Graphisoft
Graphisoft

Thanks for reporting this. Probably it's because LibXL.framework has changed to LibXL.dylib in the Frameworks folder. You need to link dylib files to your project, too. The fix is in progress on our side in the cmake template.

Hey, thanks for your reply.

 

Yes, I found the libXL.dylib in the Frameworks directory:

dushyant_0-1701426699453.png

 

Why has it changed from framework to dylib? 


I included the .dylib files in my CMake config and it worked.

 

Thanks!

 

Hi,

 

Why did we change this to .dylib? It made it easier for us the C++17 compilation of our source. Also, this is a 3rd-party component, and this way we don't have to build it every time we build Archicad.

 

Best, Akos

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!