Results 1 to 2 of 2

Thread: OpenCASCADE sample for qt is giving problem

  1. #1
    Join Date
    Feb 2009
    Posts
    189
    Thanks
    2

    Default OpenCASCADE sample for qt is giving problem

    Dear Friends
    If there's anyone using OpenCASCADE for QT please I need your help. I am juts trying to build the OpenCASCADE sample folder for qt.
    Under qt folder there's only one example for qt I am able to compile the project using
    qmake
    make
    its giving this errors

    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    /usr/local/bin/qmake -unix -o Makefile qt.pro
    /bin/lrelease src/Common-icon.ts -qm ./res/Common-icon.qm
    make: /bin/lrelease: Command not found
    make: *** [res/Common-icon.qm] Error 127
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    //my pro file is like below
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    TEMPLATE = app
    CONFIG += qt debug
    CXXFLAGS=-g
    TARGET = IESample
    #CONFIG(debug, debug|release) {
    # DESTDIR = ./Linux/bind
    # OBJECTS_DIR = ./Linux/objd
    # MOC_DIR = ./Linux/srcd
    #} else {
    DESTDIR = ./Linux/bin
    OBJECTS_DIR = ./Linux/obj
    MOC_DIR = ./Linux/src
    #}
    HEADERS = src/*.h
    SOURCES = src/*.cpp
    TRANSLATIONS += ./src/Common-icon.ts \
    ./src/Common-string.ts \
    ./src/Interface-string.ts
    INCLUDEPATH = $(CASROOT) $(CASROOT)/inc $(CASROOT)/src/WOKTclLib $(QTDIR)/include/QtCore \
    $(QTDIR)/include/QtGui $(QTDIR)/include \
    /usr/X11R6/include
    LIBS = -L$(QTDIR)/lib -lQtCore -lQtGui -lpthread \
    -L/share/apps/OpenCASCADE6.3.0/Linux/lib -lTKernel -lPTKernel -lTKMath -lTKService -lTKV3d -lTKV2d \
    -lTKBRep -lTKIGES -lTKSTL -lTKVRML -lTKSTEP -lTKSTEPAttr -lTKSTEP209 \
    -lTKSTEPBase -lTKShapeSchema -lTKGeomBase -lTKGeomAlgo -lTKG3d -lTKG2d \
    -lTKXSBase -lTKPShape -lTKShHealing -lTKHLR -lTKTopAlgo -lTKMesh -lTKPrim \
    -lTKCDF -lTKBool -lTKBO -lTKFillet -lTKOffset \
    -L/usr/X11R6/lib -lX11 -lGL
    DEFINES = LIN LININTEL CSFDB OCC_CONVERT_SIGNALS HAVE_CONFIG_H HAVE_WOK_CONFIG_H
    lrelease.name = LRELASE ${QMAKE_FILE_IN}
    lrelease.commands = $(QTDIR)/bin/lrelease ${QMAKE_FILE_NAME} -qm ./res/${QMAKE_FILE_BASE}.qm
    lrelease.output = ./res/${QMAKE_FILE_BASE}.qm
    lrelease.input = TRANSLATIONS
    lrelease.clean = ./res/${QMAKE_FILE_BASE}.qm
    lrelease.CONFIG += no_link target_predeps
    QMAKE_EXTRA_COMPILERS += lrelease

    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


    If anybody has built this example successfully please help me to build it.Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: OpenCASCADE sample for qt is giving problem

    I don't what OpenCASCADE is, but the error:
    make: /bin/lrelease: Command not found
    is quite simple, it means the lrelease is not found.
    Make sure /bin/lrelease exists.
    If it does, you probably have an issue with environment paths not set up, or problem with relative paths.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.