fhackenberger / ktikz

KtikZ provides a nice user interface for making pictures using TikZ.
Other
348 stars 34 forks source link

Installing on Mac #55

Open jondoesntgit opened 2 years ago

jondoesntgit commented 2 years ago

I got the error

Project ERROR: Could not resolve SDK path for 'macosx11.6'

I used xcodebuild -sdk -version to figure out what SDK was installed (macosx11.3 in my case), and added QMAKE_MAC_SDK = macosx11.3 to qtikz.pro.

jondoesntgit commented 2 years ago

Furthermore, installing poppler-qt5 with brew, and then copying all the header files in /usr/local/include/poppler/qt5 into the folder you run "make" in seemed to help

jondoesntgit commented 2 years ago

Then in your Makefile, make sure that you get this into your LIBS variable somehow:

LIBS = $(SUBLIBS) -L/usr/local/lib -lpoppler-qt5 -lstdc++ [... the rest of the libs]

jondoesntgit commented 2 years ago

After this... you're on your own. I was able to compile the function, by the dynamic libraries weren't finding the correct resources...

jfmcarreira commented 2 years ago

Was you able to install this on Mac? Or at least build it from source?

jondoesntgit commented 2 years ago

I was not able to install fully on a Mac. I was able to build it from the source, but the build was not correct. Whenever I would attempt to open the application, it would crash because the dynamic libraries were not finding the correct resources.

jfmcarreira commented 2 years ago

How did you install the dependencies

jondoesntgit commented 2 years ago

I installed poppler-qt5 with brew. Which other dependencies were you wondering abaout?

jfmcarreira commented 2 years ago

I think that is just the one. Was qmake able to find it?

jondoesntgit commented 2 years ago

Furthermore, installing poppler-qt5 with brew, and then copying all the header files in /usr/local/include/poppler/qt5 into the folder you run "make" in seemed to help

I didn't have the IQ points to figure out how to add this to make's path, so I just copied the header files into the local directory that I ran make in.