cppfw / svgren

:camera: SVG rendering library in C++
MIT License
206 stars 41 forks source link

Add build instructions #48

Closed RazrFalcon closed 3 years ago

RazrFalcon commented 6 years ago

Hi! I can't figure out how to build it from sources under Linux. AFAIU, you are using your own build system, which is not very useful.

igagis commented 6 years ago

@RazrFalcon Which linux distribution are you using?

RazrFalcon commented 6 years ago

Gentoo.

igagis commented 6 years ago

I have added some hints in wiki, please check https://github.com/igagis/svgren/blob/master/wiki/MainPage.md page. It is quite short, so if you have more questions or unclarities, please ask.

igagis commented 6 years ago

Also, since you are using non-debian based distro, you will have to install the dependencies somehow manually, or put them in some directory and provide header/library search paths to make:

make CXXFLAGS="-IyourDependencyDir" LDFLAGS="-LyourLibsDir"

should work.

RazrFalcon commented 6 years ago

Yes. The problem is that most of this dependencies are your own projects. So I can't install them. I have to build them by myself.

What I want is a step-by-step build guide. Like a bash script, which will download and build all your dependencies.

igagis commented 6 years ago

Yes, many dependencies are my own projects, all of them are here on github. So, yes, building those by yourself is needed in your case. The same approach works for all of those projects, just check prerequisites in debian/control.in and then build those. I have just though that instead of putting them to some directory and providing paths to that you can just use sudo make install, it will copy all the stuff to /usr/local/ and if needed you can uninstall those later using sudo make uninstall.

The build system I use is called prorab (my project) and it is just a single prorab.mk file which is included in all of the makefiles. You can install it in the same way, using sudo make install. Also I use some CI scripts (myci project) and some additional templates for doxygen and pkg-config (prorab-extra project).

Sorry, I don't have plans to write and support a bash script which will download all the dependedncies and build those. Alternatively, I can offer you to volunteer and create a Gentoo packages for all those libs, so that those can be installed in Gentoo in a native way.

RazrFalcon commented 6 years ago

I see. Thanks.

I'm not interested in a gentoo pkg, because I only wanted to try it out.

When I'll have time I'll try to build it from scratch and if everything would be ok will post a script/instruction.

igagis commented 3 years ago

It's been 3 years now, no much interest in this issue has shown up, so, closing.