Hi List,
I'm using the IUP library in C and I'm having a little problem with the
build toolchain. I have a Makefile which compiles LED files into C source
with the ledc tool, and then compiles the applications for different
platforms (Windows and Linux) using GCC\MingW. Everything worked OK until I
decided to add an icon to the application's main dialog. For the Windows
target there are no problems since I can just include the icon file in a
.rc file which is then compiled using the windres tool.

However, I had to find another way to bundle the icon with the ELF file on
Linux and allow it to be loaded at runtime. I found that the IupView tool
allows to convert from various image file formats (including .ico) to C
source code, which can then be compiled together with the application. I
set up the appropriate code and added a call to IupView in my Makefile to
compile the icon to C source before compiling everything with GCC, and when
I typed make on my local Ubuntu Desktop 14.04 machine everything worked
flawlessy and I got the working binary file with the icon.
The problem came when I pushed my code to GitHub: the Travis-CI build was
broken due to IupView not being able to run. The error I got is:

> GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)'
> failed
>
(you can see the Travis log here:
https://travis-ci.org/gianluca-nitti/iup-cp-boilerplate/builds/105170362).

I later tried on an Ubuntu Server virtual machine, and I got the same error
message; for a while I thought there was some library required by IupView
which isn't installed on Ubuntu Server, but then I tried to switch to a TTY
on the Ubuntu Desktop machine where everything works OK from the GNOME
terminal emulator, and I got the same error.

Basically, I found that the IupView command with the appropriate arguments
to convert an image works from a desktop-based terminal emulator, but not
from a text-only shell, which is the only option on most server-like
environments. This is a bit annoying since doesn't allow the image
conversion to work in a continuous integration build system. Is there a way
to solve this?

Thank you very much for any help, and sorry if my English isn't very good
but it's not my primary language.

Regards,
Gianluca
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to