Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Draw without CtrlLib [SOLVED] - see ConsoleDraw example
Draw without CtrlLib [SOLVED] - see ConsoleDraw example [message #23812] |
Tue, 24 November 2009 03:17 ![Go to next message Go to next message](theme/default/images/down.png) |
nixnixnix
Messages: 415 Registered: February 2007 Location: Kelowna, British Columbia
|
Senior Member |
|
|
Hi,
As a side-project I need to create a command-line app for Linux which creates images and saves them to file.
I created a UPP console app and added the image plugins and the Draw package but it will not build as it says several of the Image functions are "ambiguous". I can build a full UPP GUI app on the same machine just fine (Ubuntu 8.04 64-bit) so I'm guessing that Image relies on some other code in other packages and that UPP has not been tested in this configuration or (and this is far more likely) I'm doing something wrong.
BTW I tried adding the CtrlLib and CtrlCore packages but this throws up many more errors.
Nick
EDIT: I just found the ImagePainter example. If that is what I am meant to use instead for this kind of app then please feel very welcome delete this thread
[Updated on: Mon, 24 January 2011 12:58] by Moderator Report message to a moderator
|
|
|
|
Re: Draw without CtrlLib [message #23815 is a reply to message #23814] |
Tue, 24 November 2009 08:00 ![Go to previous message Go to previous message](theme/default/images/up.png) ![Go to next message Go to next message](theme/default/images/down.png) |
|
nixnixnix wrote on Tue, 24 November 2009 05:08 | Ok I just made a new Core Console project and copied and pasted the code from the ConsoleDraw example into the provided header and then deleted the main function in the cpp file.
It doesn't link. There are tons of errors saying that there are missing functions (which is what I'm seeing with my own project). Has anyone else managed to build that code under Linux please?
Nick
|
Hi Nick,
Silly question: Did you add the Painter, RichText, PDFDraw and plugin/png into your newly created package?
Can you build the ConsoleDraw as it is, without copying into your project? I've just tried (under Linux) and it works fine.
Regards
Honza
|
|
|
|
|
Goto Forum:
Current Time: Mon Apr 29 03:36:27 CEST 2024
Total time taken to generate the page: 0.02161 seconds
|