Coder Social home page Coder Social logo

eth-siplab / svg2keynote-gui Goto Github PK

View Code? Open in Web Editor NEW
73.0 73.0 5.0 6.77 MB

SVG2Keynote is a macOS tool to convert Scalable Vector Graphics to Apple Keynote documents. SVG2Keynote preserves shape information (path styles, fills), such that shapes can be edited in Keynote.

License: MIT License

Swift 82.17% C 1.40% C++ 4.68% Objective-C 2.62% Objective-C++ 9.13%
editing illustrator keynote vector

svg2keynote-gui's People

Contributors

christianholz avatar jonath4ndev avatar lampostjohny19 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

svg2keynote-gui's Issues

Error pasting SVGs

Hi,
thank you very much for your tools.
Unfortunately, recently I ran into a small problem. Maybe you can help me out?
After compiling the GUI as-is I could not paste SVGs into Keynote (PDF works, though).
Apple's Clipboardviewer's TSPNativeMetadata showed a Version 11.1, but my Keynote is 11.2.
So I compiled proto-dump and ran get-protos.sh and dump-mappings.sh, then I edited generateMetadataMessageList like so:

std::vector<MessageWrapper *> generateMetadataMessageList() {
    // generate TSP.PasteboardMetadata
    auto* pasteboardMetadata = new TSP::PasteboardMetadata();
    pasteboardMetadata->add_version(11);
    pasteboardMetadata->add_version(2);
    //pasteboardMetadata->add_version(2);
    pasteboardMetadata->set_allocated_app_name(new std::string("com.apple.Keynote 11.2"));
    pasteboardMetadata->add_read_version(11);
    pasteboardMetadata->add_read_version(2);
    //pasteboardMetadata->add_read_version(0);

    return std::vector<MessageWrapper *> {createMessageWrapper(pasteboardMetadata, 11007, 52)};
}

After recompiling the library and the GUI, I still could not paste SVGs into Keynote.
I'd be happy if you could give me a hint that points me in the right direction to fix my mistakes...

Thanks and cheers!

Build input file cannot be found on arm64

On macOS 14.2, the compile fails with:
error: Build input file cannot be found: '/Users/andreangelantoni/Applications/SVG2Keynote-gui/KeynoteSVGUI/SwiftUIMenuBar.entitlements'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it? (in target 'KeynoteSVGUI' from project 'KeynoteSVGUI')

This thread has others seeing the same issue toward the end:

#2

I don't use XCode so I can't provide any clues.

I couldn't get either of the other options for running the software to work (options 2 or 3) on my M1.

Build was failed duo to a newer version of macOS 12.0

Build was failed duo to a higer version of macOS

Showing Recent Issues
Ld /Users/winkee/Library/Developer/Xcode/DerivedData/KeynoteSVGUI-hcuuipfefrqsddemdrdokfbrizsg/Build/Products/Debug/KeynoteSVGUI.app/Contents/MacOS/KeynoteSVGUI normal (in target 'KeynoteSVGUI' from project 'KeynoteSVGUI')
    cd /Users/winkee/Downloads/SVG2Keynote-gui
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target x86_64-apple-macos10.15 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -L/Users/winkee/Library/Developer/Xcode/DerivedData/KeynoteSVGUI-hcuuipfefrqsddemdrdokfbrizsg/Build/Products/Debug -L/Users/winkee/Downloads/SVG2Keynote-gui -L/usr/local/lib -F/Users/winkee/Library/Developer/Xcode/DerivedData/KeynoteSVGUI-hcuuipfefrqsddemdrdokfbrizsg/Build/Products/Debug/PackageFrameworks -F/Users/winkee/Library/Developer/Xcode/DerivedData/KeynoteSVGUI-hcuuipfefrqsddemdrdokfbrizsg/Build/Products/Debug -filelist /Users/winkee/Library/Developer/Xcode/DerivedData/KeynoteSVGUI-hcuuipfefrqsddemdrdokfbrizsg/Build/Intermediates.noindex/KeynoteSVGUI.build/Debug/KeynoteSVGUI.build/Objects-normal/x86_64/KeynoteSVGUI.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/../Frameworks -Xlinker -object_path_lto -Xlinker /Users/winkee/Library/Developer/Xcode/DerivedData/KeynoteSVGUI-hcuuipfefrqsddemdrdokfbrizsg/Build/Intermediates.noindex/KeynoteSVGUI.build/Debug/KeynoteSVGUI.build/Objects-normal/x86_64/KeynoteSVGUI_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -stdlib\=libc++ -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/winkee/Library/Developer/Xcode/DerivedData/KeynoteSVGUI-hcuuipfefrqsddemdrdokfbrizsg/Build/Intermediates.noindex/KeynoteSVGUI.build/Debug/KeynoteSVGUI.build/Objects-normal/x86_64/KeynoteSVGUI.swiftmodule -lprotobuf -lsnappy -lkeynote_lib -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/winkee/Library/Developer/Xcode/DerivedData/KeynoteSVGUI-hcuuipfefrqsddemdrdokfbrizsg/Build/Intermediates.noindex/KeynoteSVGUI.build/Debug/KeynoteSVGUI.build/Objects-normal/x86_64/KeynoteSVGUI_dependency_info.dat -o /Users/winkee/Library/Developer/Xcode/DerivedData/KeynoteSVGUI-hcuuipfefrqsddemdrdokfbrizsg/Build/Products/Debug/KeynoteSVGUI.app/Contents/MacOS/KeynoteSVGUI -Xlinker -add_ast_path -Xlinker /Users/winkee/Library/Developer/Xcode/DerivedData/KeynoteSVGUI-hcuuipfefrqsddemdrdokfbrizsg/Build/Intermediates.noindex/SVGWebView.build/Debug/SVGWebView.build/Objects-normal/x86_64/SVGWebView.swiftmodule

ld: warning: dylib (/usr/local/lib/libprotobuf.dylib) was built for newer macOS version (12.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(keynote.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(proto_helper.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(key_to_svg.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(svg_to_key.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(common_message_creation.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(snappy_helper.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(nanosvg_helper.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(shape_creation_repository.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(svg_wrapper.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(ProtoMapping.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(SlideObjectFactory.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(KNArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSDArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSPArchiveMessages.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSPMessages.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSSArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSWPArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(nanosvg_impl.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(ShapeObject.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(SlideObject.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(KNCommandArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSAArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSDCommandArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSKArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSTArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSTCommandArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSTStylePropertyArchiving.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSCEArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSCHArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSCHArchives.Common.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSCHCommandArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSCHPreUFFArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSWPCommandArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(KNCommandArchives.sos.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSACommandArchives.sos.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSKArchives.sos.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libsnappy.a(snappy.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSWPArchives.sos.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(BaseObject.cpp.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSCH3DArchives.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSCHArchives.GEN.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSAArchives.sos.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSDArchives.sos.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSSArchives.sos.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libkeynote_lib.a(TSTArchives.sos.pb.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
ld: warning: object file (/Users/winkee/Downloads/SVG2Keynote-gui/libsnappy.a(snappy-sinksource.cc.o)) was built for newer macOS version (11.0) than being linked (10.15)
Undefined symbols for architecture x86_64:
  "google::protobuf::internal::ExtensionSet::MergeFrom(google::protobuf::internal::ExtensionSet const&)", referenced from:
      TSD::FillArchive::FillArchive(TSD::FillArchive const&) in libkeynote_lib.a(TSDArchives.pb.cc.o)
      TSD::FillArchive::MergeFrom(TSD::FillArchive const&) in libkeynote_lib.a(TSDArchives.pb.cc.o)
      TSD::GroupArchive::GroupArchive(TSD::GroupArchive const&) in libkeynote_lib.a(TSDArchives.pb.cc.o)
      TSD::GroupArchive::MergeFrom(TSD::GroupArchive const&) in libkeynote_lib.a(TSDArchives.pb.cc.o)
      TSD::ImageArchive::ImageArchive(TSD::ImageArchive const&) in libkeynote_lib.a(TSDArchives.pb.cc.o)
      TSD::ImageArchive::MergeFrom(TSD::ImageArchive const&) in libkeynote_lib.a(TSDArchives.pb.cc.o)
      TSP::DataAttributes::DataAttributes(TSP::DataAttributes const&) in libkeynote_lib.a(TSPMessages.pb.cc.o)
      ...
  "google::protobuf::internal::ExtensionSet::_InternalSerializeImpl(int, int, unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const", referenced from:
      TSD::FillArchive::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const in libkeynote_lib.a(TSDArchives.pb.cc.o)
      TSD::GroupArchive::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const in libkeynote_lib.a(TSDArchives.pb.cc.o)
      TSD::ImageArchive::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const in libkeynote_lib.a(TSDArchives.pb.cc.o)
      TSP::DataAttributes::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const in libkeynote_lib.a(TSPMessages.pb.cc.o)
      TSS::ThemeArchive::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const in libkeynote_lib.a(TSSArchives.pb.cc.o)
      TSS::CommandPropertyEntryArchive::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const in libkeynote_lib.a(TSSArchives.pb.cc.o)
      TSK::FormatStructArchive::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const in libkeynote_lib.a(TSKArchives.pb.cc.o)
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Error on build

I get this in Xcode:

Build input file cannot be found: '/Users/richard/Library/Mobile Documents/comappleCloudDocs/Downloads/SVG2Keynote-gui-main/KeynoteSVGUI/SwiftUIMenuBar.entitlements'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?

Need help with build

I have no experience with macOS development and XCode, but I figured that Homebrew installed the protobuf library in /opt/homebrew/Cellar/protobuf/3.19.4/lib so I added this path to Search Paths โ†’ Library Search Path.

20220213_143656_Xcode

That worked (Xcode found the library), but the Build process did not work. I get a lot of these error messages:

20220213_143934_Xcode

I'm using Apple Silicon.

20220213_144009_System Information

I'm not sure if I can get it to work. It would easier if the binary would be made available (again) in the repository. It's not there anymore.

cannot compile with xcode

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.