[Ktechlab-devel] build on Mac OSX

Zoltan Padrah zoltan.padrah at gmail.com
Sun Mar 11 20:48:46 UTC 2018


2018-02-16 22:24 GMT+02:00 WADE MAXFIELD <wade.maxfield at 4gwireline.com>:
>
>  I downloaded the latest ktechlab (040) on osx sierra.   I’m running
> macports.  I use XQuartz.
>
>   compile fails not able to find x11Screen, x11SetScreen.  I have googled
> several combinations, no help there.
>
>   Any suggestions?
>
> -----------
> .
> .
> .
> [ 94%] Building CXX object src/CMakeFiles/ktechlab.dir/variablelabel.cpp.o
> [ 94%] Building CXX object src/CMakeFiles/ktechlab.dir/canvas.cpp.o
> /Users/***/Desktop/ktechlab-0.40.0/src/canvas.cpp:513:10: error: no member
>       named 'x11SetScreen' in 'QPixmap'
>                 offscr.x11SetScreen(p->device()->x11Screen());
>                 ~~~~~~ ^
> /Users/***/Desktop/ktechlab-0.40.0/src/canvas.cpp:513:36: error: no member
>       named 'x11Screen' in 'QPaintDevice'
>                 offscr.x11SetScreen(p->device()->x11Screen());
>                                     ~~~~~~~~~~~  ^
> /Users/***/Desktop/ktechlab-0.40.0/src/canvas.cpp:821:17: error: no member
>       named 'x11SetScreen' in 'QPixmap'
>                 if (p) offscr.x11SetScreen(p->device()->x11Screen());
>                        ~~~~~~ ^
> /Users/***/Desktop/ktechlab-0.40.0/src/canvas.cpp:821:43: error: no member
>       named 'x11Screen' in 'QPaintDevice'
>                 if (p) offscr.x11SetScreen(p->device()->x11Screen());
>                                            ~~~~~~~~~~~  ^
> 4 errors generated.
> make[2]: *** [src/CMakeFiles/ktechlab.dir/canvas.cpp.o] Error 1
> make[1]: *** [src/CMakeFiles/ktechlab.dir/all] Error 2
> make: *** [all] Error 2
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Ktechlab-devel mailing list
> Ktechlab-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ktechlab-devel
>

Hi,

I have never tried to compile KTechLab for OS X, so chances are that
KTechLab itself needs some fixes before it works.

For trying to compile for OS X, I should use a virtual machine, a
cross compiler, or something else?
Currently I do not have a mac.

https://bugs.kde.org/show_bug.cgi?id=391730

At the first sight KTechLab uses some undocumented platform-specific
(x11 specific) APIs there, which probably should be reworked.

Have fun,

 Zoltan


More information about the Ktechlab-devel mailing list