POV-Ray : Newsgroups : povray.tools.general : building povmodeler? Server Time
26 Apr 2024 04:17:46 EDT (-0400)
  building povmodeler? (Message 21 to 30 of 32)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 2 Messages >>>
From: Dick Balaska
Subject: Re: building povmodeler?
Date: 7 Dec 2019 01:32:27
Message: <5deb477b$1@news.povray.org>
Am 12/4/19 6:12 AM, also sprach Ton:
> Hi Dick, if you edit pmpovrayrenderwidget.cpp, and change the +D and +P into -D
> and -P (line 122), povray doesn't show the render window, and it doesn't pause.
> That whole messagebox for changing the arguments could be removed as well, not
> very useful.
> I assume you know that you have to recompile povmodeler. Changing the text file
> by itself is not enough.....
> To copy one object into a text file, you can just select that particular object,
> press Ctrl-C, and then in the text file Ctrl-V, and that object appears,
> magically, in your text.
> 
> Cheers
> Ton.

Hoy! Mr Ton.

Those are both very useful tips.  Thank you!

Agreed about getting rid of the useless MessageBox.


-- 
dik
Rendered 42,220,569,600 of 49,882,521,600 pixels (84%)


Post a reply to this message

From: Bald Eagle
Subject: Re: building povmodeler?
Date: 7 Dec 2019 08:50:01
Message: <web.5debacdbcdd38c94eec112d0@news.povray.org>
Thanks - I only needed 2 of the -dev packages, but probably need one or two more
things to get this to work smoothly.
Here's what happened.

I'm thinking it's just an edit in the make file to append '-std=c++11' to the
compiler command?

qtpovmodeler $ make -j4

g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS
-DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB
-DQT_XML_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -I. -isystem /usr/include/freetype2
-isystem /usr/include/x86_64-linux-gnu/qt5 -isystem
/usr/include/x86_64-linux-gnu/qt5/QtOpenGL -isystem
/usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem
/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -isystem
/usr/include/x86_64-linux-gnu/qt5/QtGui -isystem
/usr/include/x86_64-linux-gnu/qt5/QtXml -isystem
/usr/include/x86_64-linux-gnu/qt5/QtDBus -isystem
/usr/include/x86_64-linux-gnu/qt5/QtCore -I.
-I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o main.o src/main.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS
-DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB
-DQT_XML_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -I. -isystem /usr/include/freetype2
-isystem /usr/include/x86_64-linux-gnu/qt5 -isystem
/usr/include/x86_64-linux-gnu/qt5/QtOpenGL -isystem
/usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem
/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -isystem
/usr/include/x86_64-linux-gnu/qt5/QtGui -isystem
/usr/include/x86_64-linux-gnu/qt5/QtXml -isystem
/usr/include/x86_64-linux-gnu/qt5/QtDBus -isystem
/usr/include/x86_64-linux-gnu/qt5/QtCore -I.
-I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o pm2dcontrolpoint.o
src/pm2dcontrolpoint.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS
-DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB
-DQT_XML_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -I. -isystem /usr/include/freetype2
-isystem /usr/include/x86_64-linux-gnu/qt5 -isystem
/usr/include/x86_64-linux-gnu/qt5/QtOpenGL -isystem
/usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem
/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -isystem
/usr/include/x86_64-linux-gnu/qt5/QtGui -isystem
/usr/include/x86_64-linux-gnu/qt5/QtXml -isystem
/usr/include/x86_64-linux-gnu/qt5/QtDBus -isystem
/usr/include/x86_64-linux-gnu/qt5/QtCore -I.
-I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o pm3dcontrolpoint.o
src/pm3dcontrolpoint.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS
-DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB
-DQT_XML_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -I. -isystem /usr/include/freetype2
-isystem /usr/include/x86_64-linux-gnu/qt5 -isystem
/usr/include/x86_64-linux-gnu/qt5/QtOpenGL -isystem
/usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem
/usr/include/x86_64-linux-gnu/qt5/QtX11Extras -isystem
/usr/include/x86_64-linux-gnu/qt5/QtGui -isystem
/usr/include/x86_64-linux-gnu/qt5/QtXml -isystem
/usr/include/x86_64-linux-gnu/qt5/QtDBus -isystem
/usr/include/x86_64-linux-gnu/qt5/QtCore -I.
-I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o pmactions.o
src/pmactions.cpp

C++11 [-Wc++0x-compat]
    m_pBasePoint = nullptr;
    ^
src/pm2dcontrolpoint.cpp: In constructor



    m_pBasePoint = nullptr;
                   ^
In file included from src/pmshell.h:23:0,
                 from src/main.cpp:23:

[-Wc++0x-compat]
     PMDockTabGroup( QWidget *parent = nullptr )
     ^
src/pmactions.cpp:33:4: warning: defaulted and deleted functions only available
with -std=c++11 or -std=gnu++11
  = default;
    ^
make: *** [Makefile:4912: pm2dcontrolpoint.o] Error 1
make: *** Waiting for unfinished jobs....

     PMDockTabGroup( QWidget *parent = nullptr )
                                       ^
In file included from src/pmshell.h:23:0,
                 from src/main.cpp:23:

                       const QPixmap &pixmap, QWidget* parent = nullptr, const Q
                                                                ^

     PMDockMainWindow( QWidget* parent = nullptr, Qt::WindowFlags f = nullptr/*
                                         ^

    PMDockMainWindow( QWidget* parent = nullptr, Qt::WindowFlags f = nullptr/* |
                                                                     ^

 DockWidget* createDockWidget( const QPixmap &pixmap, QWidget* parent = nullptr,
                                                                        ^
In file included from src/pmglview.h:39:0,
                 from src/pmshell.h:26,
                 from src/main.cpp:23:

     PMViewBase( QWidget* parent, Qt::WindowFlags f = nullptr )
                                                      ^
In file included from src/pmobjectaction.h:27:0,
                 from src/pmglview.h:44,
                 from src/pmshell.h:26,
                 from src/main.cpp:23:

    PMMetaObject( const QString& className, PMMetaObject* superClass = nullptr,
                                                                       ^

                  PMObjectFactoryMethod factoryMethod = nullptr );
                                                        ^


    bool isAbstract() const { return m_factory == nullptr; }
                                                  ^



         if( it == m_propertiesDict.end() ) return nullptr;
                                                   ^
In file included from src/pmshell.h:26:0,
                 from src/main.cpp:23:
src/pmglview.h: At global scope:

              QWidget* parent = nullptr, Qt::WindowFlags f = nullptr );
                                ^

              QWidget* parent = nullptr, Qt::WindowFlags f = nullptr );
                                                             ^




parameter 4, which is not yet defined
       return new PMGLView( part, PMGLView::PMViewPosX, parent );
                                                               ^
In file included from src/main.cpp:23:0:
src/pmshell.h: At global scope:

    PMDockWidget* createView( const QString& t, PMViewOptions* c = nullptr,
                                                                   ^
In file included from src/pmrendermanager.h:26:0,
                 from src/main.cpp:24:

                    const PMObjectList* objectsBetween = nullptr ) const;
                                                         ^

                    const PMObjectList* objectsBetween = nullptr ) const;
                                                         ^


 wItem* getTreeItem() {  if ( pmt_item ) return pmt_item; else return nullptr; }
                                                                      ^



    virtual PMObject* firstChild() const { return nullptr; }
                                                  ^



    virtual PMObject* lastChild() const { return nullptr; }
                                                 ^



    virtual PMObject* childAt( uint ) const { return nullptr; }
                                                     ^



    virtual PMViewStructure* viewStructure() { return nullptr; }
                                                      ^



    virtual PMDeclare* linkedObject() const { return nullptr; }
                                                     ^


    bool mementoCreated() const { return m_pMemento != nullptr; }
                                                       ^
In file included from src/main.cpp:24:0:
src/pmrendermanager.h: At global scope:

     PMRenderManager( QWidget *parent = nullptr );
                                        ^


    PMShell* shell = nullptr;


Post a reply to this message

From: jr
Subject: Re: building povmodeler?
Date: 7 Dec 2019 11:40:00
Message: <web.5debd4fccdd38c9feeb22ff0@news.povray.org>
hi,

Dick Balaska <dic### [at] buckosoftcom> wrote:
> Am 11/28/19 10:26 AM, also sprach Bald Eagle:
> > Dick Balaska <dic### [at] buckosoftcom> wrote:
> >> It built first shot in qtcreator!  And it runs fine, go figure.
> > Can you provide instructions so I can replicate?
>
> Hey Baldy, try this:
> ...

instructions work.  even for people with hair.  :-)  minor problem, it complains
(on startup): Rule file 'povmodeler/ "baseinsertrules.xml" ' not found.  the
file does exist though.

then five "Asking for share context for widget..." warnings/errors, followed by
a number of "QMainWindow::saveState(): 'objectName' not set for QToolBar", each
with a different pointer/address (one per button?).


regards, jr.


Post a reply to this message

From: Dick Balaska
Subject: Re: building povmodeler?
Date: 7 Dec 2019 15:48:57
Message: <5dec1039$1@news.povray.org>
Am 12/7/19 8:44 AM, also sprach Bald Eagle:
> 
> I'm thinking it's just an edit in the make file to append '-std=c++11' to the
> compiler command?

make clean
git pull
qmake
make -j4


-- 
dik
Rendered 43,099,776,000 of 49,882,521,600 pixels (86%)


Post a reply to this message

From: Bald Eagle
Subject: Re: building povmodeler?
Date: 7 Dec 2019 16:55:06
Message: <web.5dec1f5bcdd38c94eec112d0@news.povray.org>
Dick Balaska <dic### [at] buckosoftcom> wrote:

OK, that seemed to work "better."

Got a bunch of the usual stuff, some




and then


src/pmpart.cpp:380:42: error: no matching function for call to

    m_pImportAction = new
QAction("Import");//m_pShell->get_fileMenu()->addAction( "Import" );
                                          ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmenu.h:40:0,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QMenu:1,
                 from src/pmshell.h:29,
                 from src/pmpart.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:174:5: note: candidate:
QAction::QAction(QActionPrivate&, QObject*)
     QAction(QActionPrivate &dd, QObject *parent);
     ^
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:174:5: note:   candidate
expects 2 arguments, 1 provided
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:89:5: note: candidate:
QAction::QAction(const QIcon&, const QString&, QObject*)
     QAction(const QIcon &icon, const QString &text, QObject* parent);
     ^
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:89:5: note:   candidate
expects 3 arguments, 1 provided
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:88:5: note: candidate:
QAction::QAction(const QString&, QObject*)
     QAction(const QString &text, QObject* parent);
     ^
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:88:5: note:   candidate
expects 2 arguments, 1 provided
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:87:14: note: candidate:
QAction::QAction(QObject*)
     explicit QAction(QObject* parent);
              ^
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:87:14: note:   no known

src/pmpart.cpp:384:42: error: no matching function for call to

    m_pExportAction = new QAction("Export");
                                          ^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmenu.h:40:0,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QMenu:1,
                 from src/pmshell.h:29,
                 from src/pmpart.cpp:23:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:174:5: note: candidate:
QAction::QAction(QActionPrivate&, QObject*)
     QAction(QActionPrivate &dd, QObject *parent);
     ^
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:174:5: note:   candidate
expects 2 arguments, 1 provided
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:89:5: note: candidate:
QAction::QAction(const QIcon&, const QString&, QObject*)
     QAction(const QIcon &icon, const QString &text, QObject* parent);
     ^
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:89:5: note:   candidate
expects 3 arguments, 1 provided
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:88:5: note: candidate:
QAction::QAction(const QString&, QObject*)
     QAction(const QString &text, QObject* parent);
     ^
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:88:5: note:   candidate
expects 2 arguments, 1 provided
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:87:14: note: candidate:
QAction::QAction(QObject*)
     explicit QAction(QObject* parent);
              ^
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:87:14: note:   no known

make: *** [Makefile:9649: pmpart.o] Error 1
make: *** Waiting for unfinished jobs....


Post a reply to this message

From: Dick Balaska
Subject: Re: building povmodeler?
Date: 7 Dec 2019 20:38:36
Message: <5dec541c$1@news.povray.org>
Am 12/7/19 4:53 PM, also sprach Bald Eagle:
> Dick Balaska <dic### [at] buckosoftcom> wrote:
> 
> OK, that seemed to work "better."
> 

Well, forget that.
I just built this one and it has the failed OpenGL init nonsense.
I'll have to unwind where I killed it.


-- 
dik
Rendered 43,456,435,200 of 49,882,521,600 pixels (87%)


Post a reply to this message

From: Dick Balaska
Subject: Re: building povmodeler?
Date: 8 Dec 2019 03:46:31
Message: <5decb867$1@news.povray.org>
Am 12/7/19 8:38 PM, also sprach Dick Balaska:
> 
> Well, forget that.
> I just built this one and it has the failed OpenGL init nonsense.
> I'll have to unwind where I killed it.


I can't get it to work with the debian/ubuntu/mint default Qt version of 
5.9.5. (I'm still working on it) It works fine with Qt 5.13.1.

I'm curious if this works. Try this.
I assume you installed povmodeler-1.1.4-linuxmint-19.2.deb so that all 
of the support files are in the right place.

This is a built binary  that works on my machine. It's all static linked 
so it *should* run for you.


wget http://www.buckosoft.com/tmp/qtpovmodeler.bz2
bunzip2 qtpovmodeler.bz2
chmod +x qtpovmodeler
./qtpovmodeler


-- 
dik
Rendered 44,001,792,000 of 49,882,521,600 pixels (88%)


Post a reply to this message

From: Bald Eagle
Subject: Re: building povmodeler?
Date: 8 Dec 2019 09:00:01
Message: <web.5ded00cfcdd38c94eec112d0@news.povray.org>
Dick Balaska <dic### [at] buckosoftcom> wrote:

> I assume you installed povmodeler-1.1.4-linuxmint-19.2.deb so that all
> of the support files are in the right place.

or not  ;)

> wget http://www.buckosoft.com/tmp/qtpovmodeler.bz2
> bunzip2 qtpovmodeler.bz2
> chmod +x qtpovmodeler
> ./qtpovmodeler

qtpovmodeler $ ./qtpovmodeler

../qtpovmodeler: /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5: version `Qt_5' not
found (required by ./qtpovmodeler)
../qtpovmodeler: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: version `Qt_5' not
found (required by ./qtpovmodeler)
../qtpovmodeler: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.13' not
found (required by ./qtpovmodeler)
../qtpovmodeler: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5' not
found (required by ./qtpovmodeler)
../qtpovmodeler: /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5: version `Qt_5' not
found (required by ./qtpovmodeler)
../qtpovmodeler: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: version `Qt_5' not
found (required by ./qtpovmodeler)


Post a reply to this message

From: Ton
Subject: Re: building povmodeler?
Date: 8 Dec 2019 18:50:02
Message: <web.5ded8b59cdd38c9f3a913d00@news.povray.org>
>
> Hoy! Mr Ton.
>
> Those are both very useful tips.  Thank you!
>
> Agreed about getting rid of the useless MessageBox.
>
>
> --
> dik
> Rendered 42,220,569,600 of 49,882,521,600 pixels (84%)

Hello Dick, you can skip that mr. I'm just Ton!

If you replace this code in pmpovrayrenderwidget.cpp

   //eticre add +D +P for preview  png default format +FP
   m_args =  m_args + QString( "+I" ) + m_pTempFile->fileName() + " +O-" + "
+FP"
               + "\n" + " -D" + " -P";

   QFileInfo file_info( documentURL.toString() );

   if( !documentURL.isEmpty() && documentURL.isLocalFile() )
   {
      m_pProcess->setWorkingDirectory( file_info.path().remove( 0, 6 ) );
   }

   m_progress = 0;
   m_bPixmapUpToDate = false;


    //get user input modify args
//    QInputDialog qi;
//    qi.setInputMode( QInputDialog::TextInput );
//    qi.setOptions( QInputDialog::UsePlainTextEditForTextInput );
//    m_args = qi.getMultiLineText( this, "povray", "
 ______________________cmdline____________________
    ",
//                                   m_args, nullptr, Qt::Widget,
Qt::ImhMultiLine );

that messagebox is gone. Also those arguments for creating a movie are gone.

Cheers
Ton.


Post a reply to this message

From: Dick Balaska
Subject: Re: building povmodeler?
Date: 10 Dec 2019 04:17:00
Message: <5def628c$1@news.povray.org>
Am 12/10/19 1:18 AM, also sprach jr:
 >
 > btw, re 'qtpovmodeler', what's with the baseinsertrules.xml file not 
found?
 > (same for the docmap xml).

Did you do make install?  I got these installed from the povmodeler.deb 
file.
$ ls /usr/share/povmodeler/
baseinsertrules.xml  examples  library  povraydocmap.xml  questionmark.png

I would guess you have the same in /usr/local?

But. I did not set up make install in the qmake file yet.  You would 
have had to have done that from the povmodeler's cmake.


 >  also, and that may be my window manager to blame
 > (WindowMaker 0.95.7), main menu accelerator key bindings do not work 
for me.

They don't work for me either.

-- 
dik
Rendered 49,882,521,600 of 49,882,521,600 pixels (100%)


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 2 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.