public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: QT
@ 2001-02-13  9:45 Josifovski Ljubomir-BLJ01Z
  2001-02-13 10:13 ` QT Larry Hall (RFK Partners, Inc)
  0 siblings, 1 reply; 8+ messages in thread
From: Josifovski Ljubomir-BLJ01Z @ 2001-02-13  9:45 UTC (permalink / raw)
  To: Cygwin Mailing List (E-mail)
  Cc: 'l.josifovski@dcs.shef.ac.uk', 'j.barker@dcs.shef.ac.uk'

Not directly related to QT, but maybe someone can help me.

I'm trying to link an application I need with a library libqtai that uses
libqt and libGL (found in xfree/contrib/sgi-opengl.tar.bz2). When I try to
link my application with the libraries, ex:

$ g++       -I.  -I /home/ljupco/CTK/include/ctk  -Wall -O2   -D_HAS_QT
-D_HAS_CURSES -o /home/ljupco/CTK/local/bin/CTKScript
/home/ljupco/CTK/lib/CTKScript.o my_blocks.o my_translation_table.o
-L/home/ljupco/CTK/lib -L/usr/local/qt/lib -L/usr/X11R6/lib -lctk
/usr/local/qtai/lib/libqtai.a -lqt -lm -lcurses -lXmu -lXext -lSM -lICE
-lGLU -lglut -lX11 -lGL

I get error like:

/usr/local/qtai/lib/libqtai.a(aiplot3d.o)(.text+0x5a26): undefined reference
to `glPushMatrix@0'

I see that libqtai needs:

$ nm /usr/local/qtai/lib/libqtai.a|grep  glPushMatrix
         U _glPushMatrix@0

(also 

$ nm /usr/local/qtai/aiplot3d.o |grep  glPushMatrix
         U _glPushMatrix@0
)

While libGL provides:

$ nm /usr/X11R6/lib/libGL.a |grep glPushMatrix
00000000 I ___imp_glPushMatrix
00000000 I __imp__glPushMatrix
00000000 T _glPushMatrix

(also 

$ nm /usr/X11R6/static-lib/libGL.a |grep glPushMatrix
00004ab8 T _glPushMatrix

)

Is this the names mangling thingy that c++ ("@parameters-derived-signature")
does versus the way c does it ("_" before the name)? But I see that the
<GL/glut.h> header included from aiplot3d.cpp (and the headers it includes)
have the "#ifdef __cpluplus extern "C" {" stuff. So where does @0 (in "U
_glPushMatrix@0") come from?

The metacompiler (moc) is used while creating the libqtai creating
moc_aiplot3d.cpp. Can this be the problem?

thanks in advance,

-- 
Ljubomir Josifovski
mailto:L.Josifovski@dcs.shef.ac.uk,blj01z@motorola.com
http://www.dcs.shef.ac.uk/~ljupco

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: QT
  2001-02-13  9:45 QT Josifovski Ljubomir-BLJ01Z
@ 2001-02-13 10:13 ` Larry Hall (RFK Partners, Inc)
  0 siblings, 0 replies; 8+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-02-13 10:13 UTC (permalink / raw)
  To: Josifovski Ljubomir-BLJ01Z, Cygwin Mailing List (E-mail)
  Cc: 'l.josifovski@dcs.shef.ac.uk', 'j.barker@dcs.shef.ac.uk'

At 12:45 PM 2/13/2001, Josifovski Ljubomir-BLJ01Z wrote:

>Not directly related to QT, but maybe someone can help me.
>
>I'm trying to link an application I need with a library libqtai that uses
>libqt and libGL (found in xfree/contrib/sgi-opengl.tar.bz2). When I try to
>link my application with the libraries, ex:
>
>$ g++       -I.  -I /home/ljupco/CTK/include/ctk  -Wall -O2   -D_HAS_QT
>-D_HAS_CURSES -o /home/ljupco/CTK/local/bin/CTKScript
>/home/ljupco/CTK/lib/CTKScript.o my_blocks.o my_translation_table.o
>-L/home/ljupco/CTK/lib -L/usr/local/qt/lib -L/usr/X11R6/lib -lctk
>/usr/local/qtai/lib/libqtai.a -lqt -lm -lcurses -lXmu -lXext -lSM -lICE
>-lGLU -lglut -lX11 -lGL
>
>I get error like:
>
>/usr/local/qtai/lib/libqtai.a(aiplot3d.o)(.text+0x5a26): undefined reference
>to `glPushMatrix@0'
>
>I see that libqtai needs:
>
>$ nm /usr/local/qtai/lib/libqtai.a|grep  glPushMatrix
>          U _glPushMatrix@0
>
>(also 
>
>$ nm /usr/local/qtai/aiplot3d.o |grep  glPushMatrix
>          U _glPushMatrix@0
>)
>
>While libGL provides:
>
>$ nm /usr/X11R6/lib/libGL.a |grep glPushMatrix
>00000000 I ___imp_glPushMatrix
>00000000 I __imp__glPushMatrix
>00000000 T _glPushMatrix
>
>(also 
>
>$ nm /usr/X11R6/static-lib/libGL.a |grep glPushMatrix
>00004ab8 T _glPushMatrix
>
>)
>
>Is this the names mangling thingy that c++ ("@parameters-derived-signature")
>does versus the way c does it ("_" before the name)? But I see that the
><GL/glut.h> header included from aiplot3d.cpp (and the headers it includes)
>have the "#ifdef __cpluplus extern "C" {" stuff. So where does @0 (in "U
>_glPushMatrix@0") come from?
>
>The metacompiler (moc) is used while creating the libqtai creating
>moc_aiplot3d.cpp. Can this be the problem?


This is an issue with calling conventions.  See:

http://msdn.microsoft.com/library/devprods/vs6/visualc/vccore/_core___cdecl.htm
http://msdn.microsoft.com/library/devprods/vs6/visualc/vccore/_core___stdcall.htm




Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: QT
@ 2001-02-13 10:17 Buddy Coffey
  0 siblings, 0 replies; 8+ messages in thread
From: Buddy Coffey @ 2001-02-13 10:17 UTC (permalink / raw)
  To: 'Josifovski Ljubomir-BLJ01Z', Cygwin Mailing List (E-mail)

On Tuesday, February 13, 2001 10:45 AM, Josifovski Ljubomir-BLJ01Z [SMTP:BLJ01Z@motorola.com] wrote in part:
> 
> Not directly related to QT, but maybe someone can help me.
> 
> I'm trying to link an application I need with a library libqtai that uses
> libqt and libGL (found in xfree/contrib/sgi-opengl.tar.bz2). When I try to
> link my application with the libraries, ex:

Link with -lglut32 -lglu32 -lopengl32 etc in /usr/lib.  See /usr/doc/opengl/README.txt for details.

Very best,
Buddy Coffey
Advanced Electromagnetics
bcoffey@gemacs.com

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: QT
  2001-02-12  7:02                       ` QT Jonathan Fosburgh
@ 2001-02-12  9:36                         ` Dr. Volker Zell
  0 siblings, 0 replies; 8+ messages in thread
From: Dr. Volker Zell @ 2001-02-12  9:36 UTC (permalink / raw)
  To: Jonathan Fosburgh; +Cc: chris, cygwin

>>>>> "Jonathan" == Jonathan Fosburgh <syjef@mail.mdanderson.org> writes:

    Jonathan> At 12:46 AM 2/12/01 +0100, Dr. Volker Zell wrote:
    >> In /usr/local/qt/src/network
    >> the file qdns.cpp needed the header files from bind to compile.
    >> 
    >> And for the examples (ftpclient, httpd, mail and networkprotocol) I added
    >> -L/usr/local/bind/lib -lbind
    >> in the appropriate Makefile.
    >> 

    Jonathan> I've been waiting to see this for awhile. :) Question, did you install
    Jonathan> bind or just the headers? I am assuming you did install it, so what
    Jonathan> version did you use and how did you get it to build? So far, I am not
    Jonathan> finding anything on the website. Thanks.

 o bind-8.2.2p7 - ftp://ftp.isc.org/isc/bind/src/8.2.2-P7/

with a patch from Stephen C.Biggs ( http://sources.redhat.com/ml/cygwin/2000-12/msg00930.html )

 o ftp://ftp.franken.de/pub/win32/develop/gnuwin32/incoming

    Jonathan> Jonathan Fosburgh

Ciao
  Volker


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: QT
       [not found] <01C094C9.07B4CA40.bcoffey@gemacs.com>
@ 2001-02-12  9:16 ` Dr. Volker Zell
  0 siblings, 0 replies; 8+ messages in thread
From: Dr. Volker Zell @ 2001-02-12  9:16 UTC (permalink / raw)
  To: bcoffey; +Cc: cygwin

>>>>> "Buddy" == Buddy Coffey <bcoffey@gemacs.com> writes:

    Buddy> Volker,
    Buddy> Thanks for posting your Qt installation instructions to the Cygwin list. I 
    Buddy> implemented them as written, but I'm still getting an error I cannot 
    Buddy> resolve.

    Buddy> I ran configure with these options: -static, -gif, -system-jpeg, and 
    Buddy> -no-g++-exceptions, and it executed without error.  When I ran "make," I 
    Buddy> received an error on the first routine it tried to compile.  The error was 
    Buddy> traced to qglobal.h which said that Qt had not been ported to the operating 
    Buddy> system I was trying to compile under.

    Buddy> I see at the top of qglobal.h there are a large number of 
    Buddy> #ifdef/#elif/#endif directives for various operating systems.  I did not 
    Buddy> find one for _OS_CYGWIN_ however.  I tried adding one, but to no avail.

Yes, I forgot to mention that I added

#elif defined(__CYGWIN__)
#define _OS_CYGWIN_

at the end of the long OS-list.

My configure line looks like this:

./configure -gif -system-zlib -system-libpng -system-jpeg -static -platform cygwin-g++

    Buddy> Thanks in advance for any assistance you can give.

Ciao
  Volker


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: QT
  2001-02-11 15:48                     ` QT Dr. Volker Zell
@ 2001-02-12  7:02                       ` Jonathan Fosburgh
  2001-02-12  9:36                         ` QT Dr. Volker Zell
  0 siblings, 1 reply; 8+ messages in thread
From: Jonathan Fosburgh @ 2001-02-12  7:02 UTC (permalink / raw)
  To: Dr. Volker Zell, chris; +Cc: cygwin

At 12:46 AM 2/12/01 +0100, Dr. Volker Zell wrote:


>In /usr/local/qt/src/network
>the file qdns.cpp needed the header files from bind to compile.
>
>And for the examples (ftpclient, httpd, mail and networkprotocol) I added
>  -L/usr/local/bind/lib -lbind
>in the appropriate Makefile.
>

I've been waiting to see this for awhile. :) Question, did you install bind 
or just the headers? I am assuming you did install it, so what version did 
you use and how did you get it to build? So far, I am not finding anything 
on the website. Thanks.


Jonathan Fosburgh
Open Systems
Communications and Computer Services
UT MD Anderson Cancer Center


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: QT
  2001-02-11  8:18                   ` QT chris
@ 2001-02-11 15:48                     ` Dr. Volker Zell
  2001-02-12  7:02                       ` QT Jonathan Fosburgh
  0 siblings, 1 reply; 8+ messages in thread
From: Dr. Volker Zell @ 2001-02-11 15:48 UTC (permalink / raw)
  To: chris; +Cc: cygwin

>>>>> "chris" == chris  <chris@parm.net> writes:

    chris> Hi;
    chris> Just a quick query - has anyone had any luck compiling QT 1.x with
    chris> CygWin? I'm assured it's possible (I'm trying to build 1.45, I think) but
    chris> the moc meta-object parser thing keeps breaking it - bison won't parse the
    chris> .y file at all, and byacc seems to generate broken code.

I just compiled

 o qt-x11-2.2.4 - http://www.trolltech.com/

I copied

 /usr/local/qt/configs/linux-g++-static to /usr/local/qt/configs/cygwin-g++-static

and added platform support in /usr/local/qt/configure

     CYGWIN_NT-4.0:*)
	PLATFORM=cygwin-g++
	;;

In /usr/local/qt/src/kernel/qapplication_x11.cpp I added

#if defined(_OS_CYGWIN_)
#  include <sys/socket.h> // for FIONREAD on Cygwin
#endif

In /usr/local/qt/src/network
the file qdns.cpp needed the header files from bind to compile.

And for the examples (ftpclient, httpd, mail and networkprotocol) I added
 -L/usr/local/bind/lib -lbind 
in the appropriate Makefile.

All examples and tutorials are working

Ciao
  Volker


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* QT
@ 2001-02-11  8:18                   ` chris
  2001-02-11 15:48                     ` QT Dr. Volker Zell
  0 siblings, 1 reply; 8+ messages in thread
From: chris @ 2001-02-11  8:18 UTC (permalink / raw)
  To: cygwin

Hi;

Just a quick query - has anyone had any luck compiling QT 1.x with
CygWin? I'm assured it's possible (I'm trying to build 1.45, I think) but
the moc meta-object parser thing keeps breaking it - bison won't parse the
.y file at all, and byacc seems to generate broken code.

The source itself claims it won't compile with gnu bison, but I know
someone who claims to have got it to compile...

Anybody got any ideas?
Chris
-- 
Chris Whitworth   |   "I'm not ashamed of the Gospel" -- Deliriou5?
chris@parm.net    |              http://www.parm.net/


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-02-13 10:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-13  9:45 QT Josifovski Ljubomir-BLJ01Z
2001-02-13 10:13 ` QT Larry Hall (RFK Partners, Inc)
  -- strict thread matches above, loose matches on Subject: below --
2001-02-13 10:17 QT Buddy Coffey
     [not found] <01C094C9.07B4CA40.bcoffey@gemacs.com>
2001-02-12  9:16 ` QT Dr. Volker Zell
     [not found] <chris@parm.net's>
     [not found] ` <message>
     [not found]   ` <of>
     [not found]     ` <"Sun,>
     [not found]       ` <11>
     [not found]         ` <Feb>
     [not found]           ` <2001>
     [not found]             ` <16:18:12>
     [not found]               ` <+0000>
     [not found]                 ` <(GMT)>
2001-02-11  8:18                   ` QT chris
2001-02-11 15:48                     ` QT Dr. Volker Zell
2001-02-12  7:02                       ` QT Jonathan Fosburgh
2001-02-12  9:36                         ` QT Dr. Volker Zell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).