Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » Turtle & Mac
Turtle & Mac [message #56516] Sat, 20 March 2021 20:42 Go to next message
Novo is currently offline  Novo
Messages: 1267
Registered: December 2006
Senior Contributor
./umk ./Turtle,/Users/ssg/dvlp/cpp/code/upp/git/uppsrc examples/WebHelloWorld CLANG -bus
/Users/ssg/dvlp/cpp/code/upp/git/uppsrc/CtrlLib/CtrlUtil.h:57:7: error: redefinition of 'PrinterJob'
class PrinterJob {
      ^
/Users/ssg/dvlp/cpp/code/upp/git/uppsrc/VirtualGui/VirtualGui.h:109:7: note: previous definition is here
class PrinterJob { // Dummy only...
      ^


Regards,
Novo
Re: Turtle & Mac [message #57200 is a reply to message #56516] Wed, 09 June 2021 21:50 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1267
Registered: December 2006
Senior Contributor
Other packages,like TerminalCtrl, depend on it ...

Regards,
Novo
Re: Turtle & Mac [message #57203 is a reply to message #57200] Thu, 10 June 2021 23:45 Go to previous messageGo to next message
Oblivion is currently offline  Oblivion
Messages: 928
Registered: August 2007
Experienced Contributor
Hello Novo,

I can't reproduce the error on Linux or on Windows and unfortunately I don't have a Mac to test it.
However, the problem seems to be the conditional definition of PrinterJob in CtrlUtil, which gets defined in MACOS even if virtualgui is enabled.
VirtualGUi based backends so far use the CtrlLib version of PrinterJob, except for Turtle.

So my suggestion (as I don't have write access to CtrlLib) would be adding a "#define VIRTUALGUI_NOPRINTERJOB 1" to Turtle/main.conf file and checking this condition in CtrlLib/CtrlUtil and other relevant places, using ifdefs.

Maybe Mirek or Klugier can check this...

Best regards,
Oblivion


[Updated on: Thu, 10 June 2021 23:56]

Report message to a moderator

Re: Turtle & Mac [message #57204 is a reply to message #57203] Fri, 11 June 2021 10:13 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13440
Registered: November 2005
Ultimate Member
Will do...
Re: Turtle & Mac [message #57240 is a reply to message #57204] Tue, 15 June 2021 12:39 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13440
Registered: November 2005
Ultimate Member
Hopefully fixed.
Re: Turtle & Mac [message #57241 is a reply to message #57240] Tue, 15 June 2021 16:31 Go to previous message
Novo is currently offline  Novo
Messages: 1267
Registered: December 2006
Senior Contributor
mirek wrote on Tue, 15 June 2021 06:39
Hopefully fixed.

It compiles.
Thanks a lot!


Regards,
Novo
Previous Topic: Const in ScatterDraw
Next Topic: A terminal emulator widget for U++
Goto Forum:
  


Current Time: Mon Oct 18 09:25:55 CEST 2021

Total time taken to generate the page: 0.01109 seconds