RE: VSE10 and GTKmm 2.22



I see, it is not as easy as the tutorial explains (https://live.gnome.org/gtkmm/MSWindows/UsingMSVC)

Is there any other tutorial that you are aware of, I would like to knwo in more detail how to make gtkmm work with VSE10. Better yet if you can provide me with a little bit of data that would show me how it is done, that would be very nice.

Â

Thanks

Â

----- Original Message -----

From: Dos Santos, Oliveira

Sent: 02/13/13 04:09 AM

To: 'Doesnt Stop', Gavin Lambert

Subject: RE: VSE10 and GTKmm 2.22

Â

Hi,

Â

Â

Â

Â

Â

Iâm not sure if itâs the case in your application, but to build successfully a Gtk or Gtkmm application under MSVC and then run it perfectly, you need to bypass the main function of your application and redirect it to the WinAPI. In plus, you need to add Imm32.lib and msvcrt.lib as additional dependencies.

Â

Â

Â

Â

Â

Regards

Â

Â

Â

Â

Â

Marco Dos Santos Oliveira

Â

Â

EBU/European Broadcasting Union

Â

Â

Technology and Innovation Department

Â

Â

Â

Â

Â

From: gtkmm-list [mailto:gtkmm-list-bounces gnome org] On Behalf Of Doesnt Stop
Sent: mercredi 13 fÃvrier 2013 03:31
To: Gavin Lambert; Doesnt Stop
Cc: Gtkmm List
Subject: RE: VSE10 and GTKmm 2.22

Â

Â

Â

Â

Â

Yes, indeed, and the new incarnation of that template function already looks exactly like yours.

Â

Â

Howerver, that does not explain why adding the gtkmm property sheet would cause std::streamstring to crash.

Â

Â

I am now testing the library using GNU and Code::Blocks, but still, as soon as I add the gtkmm library, I get other errors.

Â

Â

---
from [drive:]\dev\C++\MyApp\main.cpp:81:
d:/gtkmm/include/pango-1.0/pango/pango-utils.h:34:45: error: 'stream' was not declared in this scope
d:/gtkmm/include/pango-1.0/pango/pango-utils.h:35:23: error: expected primary-_expression_ before '*' token
d:/gtkmm/include/pango-1.0/pango/pango-utils.h:35:24: error: 'str' was not declared in this scope
d:/gtkmm/include/pango-1.0/pango/pango-utils.h:35:27: error: _expression_ list treated as compound _expression_ in initializer [-fpermissive]

Â

Â

---

Â

Â

The settings->Compiler->Other Options are:

Â

Â

gtkmm-2.4 --cflagas
~~~~~~~~~~~~~~~~~~~

Â

Â

-mms-bitfields -Id:/gtkmm/include/gtkmm-2.4 -Id:/gtkmm/lib/gtkmm-2.4/include -Id:/gtkmm/include/atkmm-1.6 -Id:/gtkmm/include/giomm-2.4 -Id:/gtkmm/lib/giomm-2.4/include -Id:/gtkmm/include/pangomm-1.4 -Id:/gtkmm/lib/pangomm-1.4/include -Id:/gtkmm/include/gtk-2.0 -Id:/gtkmm/include/gdkmm-2.4 -Id:/gtkmm/lib/gdkmm-2.4/include -Id:/gtkmm/include/atk-1.0 -Id:/gtkmm/include/glibmm-2.4 -Id:/gtkmm/lib/glibmm-2.4/include -Id:/gtkmm/include/glib-2.0 -Id:/gtkmm/lib/glib-2.0/include -Id:/gtkmm/include/sigc++-2.0 -Id:/gtkmm/lib/sigc++-2.0/include -Id:/gtkmm/include/cairomm-1.0 -Id:/gtkmm/lib/cairomm-1.0/include -Id:/gtkmm/include/pango-1.0 -Id:/gtkmm/include/cairo -Id:/gtkmm/include -Id:/gtkmm/include/freetype2 -Id:/gtkmm/include/libpng14 -Id:/gtkmm/lib/gtk-2.0/include -Id:/gtkmm/include/gdk-pixbuf-2.0

Â

Â

 

Â

Â

and for the linker are:

Â

Â

gtkmm-2.4 --libs
~~~~~~~~~~~~~~~~

Â

Â

-Ld:/gtkmm/lib -Lc:/devel/dist/win32/libpng-1.4.3-1/lib -lgtkmm-2.4 -latkmm-1.6 -lgdkmm-2.4 -lgiomm-2.4 -lpangomm-1.4 -lgtk-win32-2.0 -lglibmm-2.4 -lcairomm-1.0 -lsigc-2.0 -lgdk-win32-2.0 -latk-1.0 -lgio-2.0 -lpangowin32-1.0 -lgdi32 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lpng14 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl 

Â

Â

I feel like I am against the wall here, the errors are from the gtkmm libary and there is very little I can do about it.

Â

Â

 

Â

Â

Any suggestions?

Â

Â

 

Â

Â

 

Â

Â

 

Â

Â

----- Original Message -----

Â

Â

From: Gavin Lambert

Â

Â

Sent: 02/12/13 04:53 PM

Â

Â

To: 'Doesnt Stop'

Â

Â

Subject: RE: VSE10 and GTKmm 2.22

Â

Â

 

Â

Â

There are indeed several problems with the code, not the least of which is that you are returning a reference to a stack-created temporary object, which is extremely likely to explode in your face at some point.

Â

Â

 

Â

Â

 

Â

Â

Â

Â

Â

 

Â

Â

 

Â

Â

This would be a more correct version of the function:

Â

Â

 

Â

Â

 

Â

Â

Â

Â

Â

 

Â

Â

 

Â

Â

template<typename T>

Â

Â

 

Â

Â

 

Â

Â

std::string toString(const T& data)

Â

Â

 

Â

Â

 

Â

Â

{

Â

Â

 

Â

Â

 

Â

Â

    std::ostringstream num;

Â

Â

 

Â

Â

 

Â

Â

    num << data;

Â

Â

 

Â

Â

 

Â

Â

   return num.str();

Â

Â

 

Â

Â

 

Â

Â

}

Â

Â

 

Â

Â

 

Â

Â

Â

Â

Â

 

Â

Â

 

Â

Â

From: gtkmm-list [mailto:gtkmm-list-bounces gnome org] On Behalf Of Doesnt Stop
Sent: Wednesday, 13 February 2013 10:27
To: Gtkmm List
Subject: VSE10 and GTKmm 2.22

Â

Â

 

Â

Â

 

Â

Â

Â

Â

Â

 

Â

Â

 

Â

Â

There is no problem with the code.
#include <iostream>

Â

Â

 

Â

Â

 

Â

Â

1. template< typename T>
2. std::string& toString(const T& data){
3.   std::stringstream num(std::stringstream::out);
4.   num << data;
5.   return run.c_str();
6. }

Â

Â

 

Â

Â

 

Â

Â

However, an error is triggered by line 3. This error started happening as soon as I

Â

Â

 

Â

Â

 

Â

Â

added the GTKmm property sheet. If I remove the property sheet from the project, then

Â

Â

 

Â

Â

 

Â

Â

the applicatin compiles without any problem.
So, the problem is the gtkmm and not VC++ or the IDE in my Win7.
Is there anyone here having the same problem?

Â

Â

 

Â

Â

 

Â

Â

 

Â

Â

Â


Â

**************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error, please notify the system manager. This footnote also confirms that this email message has been swept by the mailgateway
**************************************************

Â



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]