Skip to main content
Participant
July 31, 2019
Question

Cario.lib build - VS2019

  • July 31, 2019
  • 2 replies
  • 1332 views

I'm trying to get a usable build of the Cairo graphics library - the lib I found online seems to make After Effects angry and throws an error about not being able to find the main entry point. So to fix this I attempted to build it myself, but the build instructions and links from cairographics.com seem to be ancient and ultimately unhelpful to me, so I searched around and decided to try and build using the Visual Studio solution I found on a different thread here:

GitHub - DomAmato/Cairo-VS: Solution for compiling Cairo on Windows 32/64 bit

Unfortunately I am getting a slew of errors when I try to build it ("CL.exe exited...", and a bunch of type conversion warnings) ....since I'm pretty new to c++ and the whole idea of compiling and linking in general, it's got me pretty frustrated after a few hours of research. Using VS 2019 (as opposed to an earlier version) shouldn't affect this, right? I just wiped my computer and incidentally 'upgraded' from VS 2017. The biggest thing I notice is a lot of annoying green underlines in all my code that was fine back in 2017...

I just need the basic drawing function so I can play around with things to see if it's useful - not sure if it's as simple as sharing a build someone has sitting around..?

Thanks a bunch!

This topic has been closed for replies.

2 replies

Known Participant
December 20, 2019

Hi Mark, did you have any luck?  Like you i've followed the plug-in everything tutorial and getting nowhere.

 

I can compile the libs but they eventually don't work, I get many "unresolved external symbol" errors. Grrrrrr!   I've wasted 2 days trying to get a stable set of libs.

 

If you had any luck and willing to share them, I'd be really grateful 🙂 In the tutorial their libs are cairo.lib 11,319kb and pixman.lib 5,519kb,, mine are less than that even with all the features enabled.

 

Have a wonderful Christmas!

Inspiring
January 4, 2020

Wow. I think we are all trying out the same tut. I have spent a week on this now. Cannot figure out how to get a cairo.lib build either..

August 1, 2019

Maybe the info in this thread helps:

Cairo: avoid using dll on windows?

If you don't want to compile the whole thing, here is a DLL build (non-static!) in pure C that should work with any compiler version (but you need to have the DLL somewhere in the path then):

Here's a Standalone Cairo DLL for Windows