MyPaint version pre-alpha preview

@kaiko Thanks for the log :slight_smile: I’ve made a decent amount of changes since then, could you try to get the latest changes and compile it without changing anything now.

It probably still won’t work, but I’m hoping to see a clearer image through your logs.

btw. when you build the project, make sure to right-click and select “run qmake” on pencil2d project, before pressing build.

1 Like

Here it is @CandyFace

02:34:30: Running steps for project pencil2d…

02:34:30: Configuration unchanged, skipping qmake step.

02:34:30: Starting: “C:\Qt\Tools\mingw530_32\bin\mingw32-make.exe” -j8

cd 3rdlib\qtmypaint\ && ( if not exist Makefile C:\Qt\5.9.7\mingw53_32\bin\qmake.exe -o Makefile E:\NOVOS\PENCIL\CandyFace-pencil-implement_mypaint\pencil-implement_mypaint\3rdlib\qtmypaint\qtmypaint.pro -spec win32-g++ “CONFIG+=debug” “CONFIG+=qml_debug” ) && C:/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile

mingw32-make[1]: Entering directory ‘E:/NOVOS/PENCIL/CandyFace-pencil-implement_mypaint/build-pencil2d-Desktop_Qt_5_9_7_MinGW_32bit-Debug/3rdlib/qtmypaint’

cd json-c\ && ( if not exist Makefile C:\Qt\5.9.7\mingw53_32\bin\qmake.exe -o Makefile E:\NOVOS\PENCIL\CandyFace-pencil-implement_mypaint\pencil-implement_mypaint\3rdlib\qtmypaint\json-c\json-c.pro -spec win32-g++ “CONFIG+=debug” “CONFIG+=qml_debug” ) && C:/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile

mingw32-make[2]: Entering directory ‘E:/NOVOS/PENCIL/CandyFace-pencil-implement_mypaint/build-pencil2d-Desktop_Qt_5_9_7_MinGW_32bit-Debug/3rdlib/qtmypaint/json-c’

C:/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug

mingw32-make[3]: Entering directory ‘E:/NOVOS/PENCIL/CandyFace-pencil-implement_mypaint/build-pencil2d-Desktop_Qt_5_9_7_MinGW_32bit-Debug/3rdlib/qtmypaint/json-c’

mingw32-make[3]: Nothing to be done for ‘first’.

mingw32-make[3]: Leaving directory ‘E:/NOVOS/PENCIL/CandyFace-pencil-implement_mypaint/build-pencil2d-Desktop_Qt_5_9_7_MinGW_32bit-Debug/3rdlib/qtmypaint/json-c’

mingw32-make[2]: Leaving directory ‘E:/NOVOS/PENCIL/CandyFace-pencil-implement_mypaint/build-pencil2d-Desktop_Qt_5_9_7_MinGW_32bit-Debug/3rdlib/qtmypaint/json-c’

cd libmypaint\ && ( if not exist Makefile C:\Qt\5.9.7\mingw53_32\bin\qmake.exe -o Makefile E:\NOVOS\PENCIL\CandyFace-pencil-implement_mypaint\pencil-implement_mypaint\3rdlib\qtmypaint\libmypaint\libmypaint.pro -spec win32-g++ “CONFIG+=debug” “CONFIG+=qml_debug” ) && C:/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile

mingw32-make[2]: Entering directory ‘E:/NOVOS/PENCIL/CandyFace-pencil-implement_mypaint/build-pencil2d-Desktop_Qt_5_9_7_MinGW_32bit-Debug/3rdlib/qtmypaint/libmypaint’

C:/Qt/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug

mingw32-make[3]: Entering directory ‘E:/NOVOS/PENCIL/CandyFace-pencil-implement_mypaint/build-pencil2d-Desktop_Qt_5_9_7_MinGW_32bit-Debug/3rdlib/qtmypaint/libmypaint’

g++ -shared -Wl,-subsystem,windows -mthreads -Wl,–out-implib,debug\libmypaint.a -o debug\mypaint.dll -L…\json-c -ljson-c -LC:\Qt\5.9.7\mingw53_32\lib C:\Qt\5.9.7\mingw53_32\lib\libQt5Guid.a C:\Qt\5.9.7\mingw53_32\lib\libQt5Cored.a

C:/Qt/Tools/mingw530_32/bin/…/lib/gcc/i686-w64-mingw32/5.3.0/…/…/…/…/i686-w64-mingw32/bin/ld.exe: cannot find -ljson-c

collect2.exe: error: ld returned 1 exit status

Makefile.Debug:73: recipe for target ‘debug\mypaint.dll’ failed

mingw32-make[3]: Leaving directory ‘E:/NOVOS/PENCIL/CandyFace-pencil-implement_mypaint/build-pencil2d-Desktop_Qt_5_9_7_MinGW_32bit-Debug/3rdlib/qtmypaint/libmypaint’

Makefile:36: recipe for target ‘debug’ failed

mingw32-make[2]: Leaving directory ‘E:/NOVOS/PENCIL/CandyFace-pencil-implement_mypaint/build-pencil2d-Desktop_Qt_5_9_7_MinGW_32bit-Debug/3rdlib/qtmypaint/libmypaint’

Makefile:85: recipe for target ‘sub-libmypaint-make_first-ordered’ failed

mingw32-make[1]: Leaving directory ‘E:/NOVOS/PENCIL/CandyFace-pencil-implement_mypaint/build-pencil2d-Desktop_Qt_5_9_7_MinGW_32bit-Debug/3rdlib/qtmypaint’

mingw32-make[3]: *** [debug\mypaint.dll] Error 1

mingw32-make[2]: *** [debug] Error 2

mingw32-make[1]: *** [sub-libmypaint-make_first-ordered] Error 2

Makefile:43: recipe for target ‘sub-3rdlib-qtmypaint-make_first-ordered’ failed

mingw32-make: *** [sub-3rdlib-qtmypaint-make_first-ordered] Error 2

02:34:32: The process “C:\Qt\Tools\mingw530_32\bin\mingw32-make.exe” exited with code 2.

Error while building/deploying project pencil2d (kit: Desktop Qt 5.9.7 MinGW 32bit)

When executing step “Make”

02:34:32: Elapsed time: 00:02.


I made what you have suggested above but without succeed.

@kaiko good news, you should be able to compile it now :wink:

Only bitmap layer works, no fill (yet) but selection works, polyline is WIP, you can pan and zoom but rotation is still horribly broken :stuck_out_tongue:

@CandyFace So, if I clone your branch from Github, it should compile? Or is something from feeef’s account needed too?

It should compile and run if you clone my branch

Hi @CandyFace, I have been silently paying attention to your branch and about this dawn I managed to build Pencil2D. I was like WHOOO when it opened but there were no brush engine :sweat_smile:
So I am happy to go and check it now

Thank you!

@CandyFace
I have tested your branch and I am not able to work with it at the moment, there is some strange behaviors it is a WIP as you said. There is a bug that keeps closing pencil2D unexpectedly (hitting ALT after laying a line over the canvas)

Still I can see you have been working with this branch and so thank you for your help :slight_smile:

@kaiko Strange, did the pull the latest changes from yesterday? I had a bug where the color information didn’t get send to Mypaint but that’s fixed now. It is unstable though but I haven’t been able to crash the application just by painting using the drawing tools and staying on bitmap layer. Polyline is broken and will crash the application if used currently. Colorpicker doesn’t work either, nor fill tool.

Btw. the paint library relies heavily on compiler optimisation, so you should compile as “release” to get the best performance. There’s a huge difference in using the debug and release build.

@CandyFace
Here it is what is happening.
Two issues:
1- pencil2d crashes when using the Smudge smooth (?) tool (using shortcut ALT)
2- dragging the smudge tool over a painted area will make the paint disappear temporarily

Thank you. I believe those are the only issues I have noticed.

@kaiko Aha… I’ve forgotten to fix smudge tool so that’s why it crashes. The shortcuts for changing the variation of smudging will not work for now because it’s basically changing of brush. I’ve fixed the second issue and will update my branch later tonight. :slight_smile:

@CandyFace
I build your last update and I have test it (smudge crash was fixed) but I am not sure if you want me to show you other issues that I found.

BTW, the second issue is still there, thought more subtle: dragging the tool slowwllllyyy it works OK, with speed white squares keeps flashing

1 Like

@kaiko You’re welcome to mention all of the issues you’ve experienced :slight_smile:

Interesting that you still experience the second issue… I’ve just pushed some updates regarding painting and the color picker, maybe that’ll fix it. There was also a flickering issue that happened because the canvas would temporarily refresh but not repaint but that should also be fixed now.

if you can still reproduce the flashing, don’t hesitate to record a session of it :wink:

@CandyFace , so here they are :smile:

  1. Issue with the Slide-value of the drawing tools.
    Even the brush-slide shows a value it will not be applied to the strokes till you somehow select it on the slide-bar (or change it to a different one)

  1. When using the Pen tool and selecting the Hand, it will make all lines disappear. It doesn’t happen when using the Brush tool

  1. The New feature doesn’t work since all lines are still present in the new canvas.
    Another issue is that there is no warning about saving changes before selecting New

ESTENDAL

@CandyFace, Hi
I have tested your version of pencil2d once more, and I found out that I am not able to export an image since pencil2D crashes everytime after hitting “save”

Which branch did you try? The most up to date code can be found here https://github.com/CandyFace/pencil/tree/implement_mypaint_nobitmapsurface?files=1

I haven’t worked on it in a while but it should be less broken since it doesn’t use a tiled bitmap anymore.

1 Like

@CandyFace
Glad you send me that link. Strangely as it may sound, I can see there is an update of the code made 6 days ago, and I wasn’t able to see it when I used another link for the same page…

I will try it and will be back. Thank you :+1:

@kaiko I added a small update a few days ago but nothing that changes the code, just stuff related to the build process :slight_smile:

Ohhhh OK…

I will leave it that way than. :smile:

Imprint