Small usefull app for painting, mtPaint

Is there a lot missing in artpaint compared to it?

I doubt it but it gives me somthing to work on for now. :slight_smile:

OK. Iā€™ve got the configure script recognizing Haiku and almost have it ready to send upstream. Instead of commenting out the directory check completely, I replaced the #ifdef WIN32s in those two places with #if defined(WIN32) || defined(_HAIKU_) and made sure the configure script generated the _HAIKU_ macro in the build configuration when Haiku was detected. That way the directory check isnā€™t completely gone, just not Linux-specific.

One thing that I havenā€™t got working is that the XPM icons donā€™t load. Is my path set wrong? Iā€™ve been loading them into /home/config/non-packaged/data/mtpaint/graphics/ and I tried without the graphics directory. LibXPM_devel is loaded from HaikuPorts as are most of the others requested by the build instructions. (Only JPEG 2000 is still inaccessible.)

What am I missing? Iā€™m also on Haiku x86_64 Beta4 with all the updates. The source is in the https://github.com/SamuraiCrow/mtPaint repo fork in master.

Youā€™re welcome to fix issues in ArtPaint! :wink:

I just did a build using your source files. I had no issues with the build. What I did find interesting though in your source files, the icons1 folder has the images all dated Aug 17 10:39pm.

The build I did yesterday, the same folder has different dates.

4 Likes

Checked out the source and aside from the 2 files there shouldnā€™t be any changes needed to build and install this.
Steps:

  • patch the 2 files mentioned earlier
  • ./configure --prefix=/boot/home/config/non-packaged gtk3
  • make
  • make install

You can launch mtpaint from anywhere in the Terminal, no need to switch to the containing directory.

PS @SamuraiCrow in the patch it should be 2 underscores before and after HAIKU (__ HAIKU __) (without the spaces).
Aside from that I donā€™t see a real need for the other changes you made in your fork?

Things like ā€œ-I/packages/libjpeg_turbo-2.1.4-2/.self/develop/headersā€ will break on 32bit because you need to support secondary architecture for some of those libraries. :slight_smile:

1 Like

Thanks for the macro name. Thatā€™ll save 3 lines in the configure script. Iā€™m trying to make this work without command-line intervention so configure will just find what it needs.

Thatā€™s just how configure works? You just pass the options provided in the script (runConfigure already automates that with haikuporter), so there shouldnā€™t be a need to hardcode paths?

thats mean that the windows port use Gtk library and not native win32 too? it looks that yes and is gtk1, better than gimp :smiley:

The Windows version uses GTK+2.

Out of curiosity what does that ā€œgk3ā€ at the end do? iā€™ve never seen that before? or is it specific to mtPaint

gtk3 refers to the version of Gimp ToolKit used for the user interface. Otherwise the configure mini-script will assume incorrectly that it is an unsupported version 1.x.

Just as @SamuraiCrow mentioned, if you run ./configure --help (or open configure with any editor), it will show you the available option to use. :slight_smile:

1 Like

hello, little OT, I see the ā€œBalsaā€ application, it is not in the repositories, right?

1 Like

Balsa is not in the repositories. I made a quick hpkg of Balsa and the required gmime libary on Beta4 using hpkg creator. Unfortunately, for some reason it will not allow me to list the dependencies. Previously on Beta3 and nightly builds I could add dependencies.

2 Likes

we can have? please :face_holding_back_tears: thank you so much!

1 Like

OF :slight_smile: I created recipes for gmime and balsa (albit without icon (no svg is supplied in the source)).
gmime builds and packages fine without patching, for balsa I used patches from Debian and Gentoo, not using webkit2gtk (canā€™t make configure seem to pick it up, there is still meson that I havenā€™t checked out).

I you donā€™t mind I can push those to haikuports (havenā€™t been able to connect to my gmail account, but I also havenā€™t used any email app on Haiku so far).

Not sure if you had any other patching aside for build errors done on your side?

2 Likes

That would be great! Push them to Haikuports, and Iā€™ll take a look at what youā€™ve done.

Gmail, I havenā€™t really looked at using Balsa.

Iā€™m going back to a 6 day a week grind at work to help cover for a guy whoā€™s having surgery. I 'll be doing that till mid Sept. So, any input that I have could be rather slow in coming.

Also, feel free to add an icon in your recipe. The one I use t is an online free icon that I converted. Iā€™ve never been able to add an icon to an apps recipe.

1 Like

I forgot to mention. Youā€™ll need to edit the configure file in order to use webkit2gtk-4.1

Also for ldap, going through dependencies atm. Thanks on the pointer!