SVG2Keynote-gui icon indicating copy to clipboard operation
SVG2Keynote-gui copied to clipboard

cannot compile with xcode

Open A6669 opened this issue 3 years ago • 9 comments

When I run xcode to compile this app, there are two errors I have installed protobuf30

Showing Recent Issues Undefined symbol: google::protobuf::internal::ExtensionSet::MergeFrom(google::protobuf::internal::ExtensionSet const&)

Undefined symbol: google::protobuf::internal::ExtensionSet::_InternalSerializeImpl(int, int, unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const

my mac is 11.6.2 and canot update to mac 12 so how to figure it out? thank you.

A6669 avatar Jan 03 '22 14:01 A6669

It appears to be linking issues that are mentioned in the readme, but its not quite correctly constructed for rebuilding (at least in my environment. I had to skip basically everything. I needed to rebuild SVG2Keynote-lib after updating the protobuf generated libraries. using protoc -I=other/protos --cpp_out=gen other/protos/*.proto inside the keynote-protos off the library repo. After this I had a version libkeynote_lib.a which would successfully build this GUI repo.

techdragon avatar Jan 10 '22 15:01 techdragon

I have the same problem (Unable to compile with Xcode)

I get the error: "Build input file cannot be found: 'path goes here.../KeynoteSVGUI/SwiftUIMenuBar.entitlements'

I'm not familiar with Xcode either, and would appreciate a little more detailed instruction on how to successfully compile.

Thanks,

Jason-belgian avatar Jul 12 '22 16:07 Jason-belgian

I have the same issue with it like @Jason-belgian .

Build Failed. error build: Build input file cannot be found: '.../KeynoteSVGUI/SwiftUIMenuBar.entitlements'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?

Can someone please share a solution?

elevatemedia avatar Oct 21 '22 21:10 elevatemedia

Following up on this issue i found a very simple solution.

  1. Download Open Office for Mac. (Its free)
  2. Design your shape in Illustrator and export it as .emf
  3. Create an Open Office empty Slideshow
  4. click "Insert" go on Image > From File
  5. choose your .emf file
  6. right click on the shape and click "break"
  7. save as Microsoft Powerpoint 2007 .ppt
  8. open the .ppt file with keynote DONE

elevatemedia avatar Oct 22 '22 12:10 elevatemedia

Thank you @elevatemedia — I tested your strategy with Microsoft PowerPoint instead of OpenOffice, and it works the same way.

kitschpatrol avatar Nov 12 '22 23:11 kitschpatrol

Thanks, @elevatemedia. I confirm that this also works with LibreOffice. In addition: if you don't have Illustrator, you can install Inkscape (open source) and use a simple CLI command to create an EMF file from any SVG file.

If you don't have Inkscape installed:

brew install --cask inkscape

Then, use this command to convert your SVG:

inkscape --export-type="emf" thing.svg

I just tried this, and it all worked fine on my Apple Silicon Mac. Now I can finally add custom shapes to Apple Keynote. Working with custom shapes gives you much more flexibility, such as better resizing and smoother animations.

roelvangils avatar Nov 13 '22 13:11 roelvangils

Thank you @elevatemedia — I tested your strategy with Microsoft PowerPoint instead of OpenOffice, and it works the same way.

Hi @kitschpatrol,

How do you "break" the shape in Microsoft PowerPoint?

I followed all the @elevatemedia's instructions but when I open the PPT file in Keynote, my shape is displayed as an image and not an editable shape.

What's wrong?

carycrusiau avatar Nov 14 '22 13:11 carycrusiau

Hi @carycrusiau, after dropping the SVG onto a slide in PowerPoint, I context-clicked and chose "Convert to Shape", then saved out the pptx and opened in Keynote.

CleanShot 2022-11-15 at 18 50 09@2x

kitschpatrol avatar Nov 15 '22 23:11 kitschpatrol

Hi @kitschpatrol,

Thank you very much! It works very well with this method!

carycrusiau avatar Nov 17 '22 08:11 carycrusiau