ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  qt demo realtimezoomscroll compilation error
Posted by Cliff on Aug-20-2015 15:41
Attachments:
Hi,

When I compile with the makefile for the realtimezoom qt demo program, I get the error (I am on ubuntu 14.04) as in the attachment. Could you help?:
make_error
make_error

31.86 Kb

  Re: qt demo realtimezoomscroll compilation error
Posted by Peter Kwan on Aug-21-2015 03:12
Hi Cliff,

The make error in your case are linker errors. It means the linker cannot find certain
functions. This is usually because some library is missing, or the library does not match with
the header file (such as using Qt4 header file with Qt5 library, etc). For example, it does not
include the ChartDirector library, and possibly some Qt library too.

Also, in your Makefile, it seems to use -m64 to configure for 64-bit code. For 64-bit system,
the compiler by default outputs 64-bit code and -m64 should not be needed. Are you trying
to compile 64-bit code on a 32-bit OS?

For "realtimezoom", are you referring to the "realtimezoomscroll" sample code that comes
with ChartDirector 6? I think the QT edition of realtimezoomscroll demo does not come with
a "Makefile". Instead, it comes with a Qt project file "realtimezoomscroll.pro". Please try to
use the Qt project file to make the program (use the qmake system). The Qt system should
automatically generate a make file based on the Qt project file, and it should contain the
correct library and compilation flags. The exact libraries in the make file depends on your Qt
version and configuration, so it is best to let qmake generate the make file.

Regards
Peter Kwan

  Re: qt demo realtimezoomscroll compilation error
Posted by Cliff on Aug-21-2015 09:22
Hi Peter,

Yes, I am trying to find out what libraries are missing. I used qt4 to generate .pro file and then makefile. It's 64bit system. I appreciate if you could help me finding what libraries are missing.

  Re: qt demo realtimezoomscroll compilation error
Posted by Peter Kwan on Aug-22-2015 00:41
Hi Cliff,

You mentioned you are using "qt4 to generate .pro file". I am not sure if you mean you
generate your own ".pro" file, or if you are using the one included in the sample code. I
suggest you use the one that comes with the sample code (the "realtimezoomscroll.pro").

In brief, you can extract the ChartDirector for C++ into a directory in your machine. Then
go to the "ChartDirector/qtdemo/realtimezoomscroll" subdirectory, the qmake the project
file:

qmake realtimezoomscroll.pro

With the above command, the qmake should create a Makefile and then use the Makefile to
compile and link the code. The sample code project file is configured so that qmake should
include the ChartDirector library "libchartdir.so". qmake should also includes the necessary
Qt library, which depends on your Qt version and how the Qt is built or configured.

You mentioned you are using "qt4". The Ubuntu 14.04 may also contain Qt 5, depending on
how you install the Ubuntu. If you have both Qt4 and Qt5 installed in your system, please
make sure your system is configured to use them consistently, that is, the Qt4 project file
must be used with the Qt4 header file and Qt4 library.

Regards
Peter kwan