Results 1 to 6 of 6

Thread: how to compile the qwt5.2.1 at solaris platform?

  1. #1
    Join Date
    Mar 2009
    Location
    Nanjing,China
    Posts
    40
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default how to compile the qwt5.2.1 at solaris platform?

    I want to compile the qwt5.2.1 in solaris,my Qt version is Qt4.5.3
    The compile steps is:
    qmake
    make

    but after compile the src.pro,it generate the libqwt.so.5.2.1
    and then compile the designer_plugin.
    it have a fatal error!
    ld:Fatal error:Library -lqwt: can't find
    if I copy the libqwt.so.5.2.1 to libqwt.so.
    it will linked ok!
    but run it error!
    who knowns how to set and compile?
    thanks all

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to compile the qwt5.2.1 at solaris platform?

    I want to compile the qwt5.2.1 in solaris ...
    Guess you are not using gcc and if it is not a problem on your side it should be more a compiler issue, than one of the operating system.

    but after compile the src.pro,it generate the libqwt.so.5.2.1
    and then compile the designer_plugin.
    When everything has worked like expected you should also find symbolic links to libqwt.so.6.0 and libqwt.so !

    Creating these symbolic links is the job of the Makefile and the appropriate commands should have been generated by qmake. When running "qmake -spec solaris-cc" ( Qt 4.7 ) on my linux box I can see those commands in the Makefile. When you really don't have the symbolic links check your Makefile what it is doing instead.

    if I copy the libqwt.so.5.2.1 to libqwt.so.
    it will linked ok!
    but run it error!
    Of course there are a couple of steps missing, before you can use the plugin from the designer/creator - but "running on error" is not enough information to say something useful.

    Uwe

  3. #3
    Join Date
    Mar 2009
    Location
    Nanjing,China
    Posts
    40
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to compile the qwt5.2.1 at solaris platform?

    I read the Makefile,
    and the SYMLINK = ln -sf

    and in my .cshrc:
    setenv QMAKESPC solaris-cc-64

    thanks


    Added after 1 24 minutes:


    I modified the Makefile in the src folder:
    Qt Code:
    1. QMAKE_TARGET = qwt
    2. DESTDIR = ../lib/
    3. TARGET = libqwt.so.5.2.1
    4. TARGETA = ../lib/libqwt.a
    5. [U]TARGET0 = libqwt.so
    6. TARGET1 = libqwt.so.5
    7. TARGET2 = libqwt.so.5.2[/U]
    To copy to clipboard, switch view to plain text mode 

    and the another segment
    Qt Code:
    1. all: Makefile ../lib/$(TARGET)
    2.  
    3. ../lib/$(TARGET): $(OBJECTS) $(SUBLIBS) $(OBJCOMP)
    4. @$(CHK_DIR_EXISTS) ../lib/ || $(MKDIR) ../lib/
    5. -$(DEL_FILE) -o $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2)
    6. $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(OBJCOMP)
    7. [U] -$(SYMLINK) $(TARGET) $(TARGET0)
    8. -$(SYMLINK) $(TARGET) $(TARGET1)
    9. -$(SYMLINK) $(TARGET) $(TARGET2)
    10. -$(DEL_FILE) ../lib/$(TARGET)
    11. -$(DEL_FILE) ../lib/$(TARGET0)
    12. -$(DEL_FILE) ../lib/$(TARGET1)
    13. -$(DEL_FILE) ../lib/$(TARGET2)[/U]
    14.  
    15. -$(MOVE) $(TARGET) [U]$(TARGET0) $(TARGET1) $(TARGET2)[/U] ../lib/
    To copy to clipboard, switch view to plain text mode 

    then it will done.

    so I want to know,
    how to generate the right makefile if I qmake src.pro?
    Last edited by cspp; 8th November 2010 at 10:08.

  4. #4
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to compile the qwt5.2.1 at solaris platform?

    I've tried qmake -spec solaris-cc-64 on my box and the lines you have marked with [U] ( were these the lines you added manually ? ) are in my generated Makefile.

    The rules for building a library target with qmake are implemented in qmake code itsself and in the platform specific files in the mkspecs directory of your Qt installation. So the missing link should be a problem of your Qt version or installation. Maybe someone manually changed the files in your mkspec sub-directory.

    Uwe

  5. #5
    Join Date
    Mar 2009
    Location
    Nanjing,China
    Posts
    40
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to compile the qwt5.2.1 at solaris platform?

    thanks,
    I added the market [U] manually

    The Qt version is Qt4.5.3,and the mkspces is solaris-cc-64.
    I added some defines in the qmake.conf,
    so whick changes in the file will generate the error Makefile?

  6. #6
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to compile the qwt5.2.1 at solaris platform?

    I added some defines in the qmake.conf
    Remove all lines you have added and try if they are really responsible. If yes re-insert them one by one until the generated Makefile is broken again.

    Uwe

Similar Threads

  1. Replies: 15
    Last Post: 24th October 2010, 15:29
  2. how to statically compile a program with qt libs?linux platform
    By berlinud in forum Installation and Deployment
    Replies: 8
    Last Post: 27th August 2010, 16:38
  3. Replies: 3
    Last Post: 13th October 2009, 15:31
  4. Compile erros from Qt 4.4.0 on Solaris 8
    By firegun9 in forum Installation and Deployment
    Replies: 0
    Last Post: 20th July 2008, 03:05
  5. Cross compile QT/X11 for platform xscale-elf
    By nmkarvekar in forum Installation and Deployment
    Replies: 0
    Last Post: 19th May 2006, 07:20

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.