Scribusoid

Author Topic: Compiling scribus with qt creator  (Read 2970 times)

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2057
  • Karma: 27
    • the graphics lab
Re: Compiling scribus with qt creator
« Reply #15 on: October 24, 2018, 05:17:22 pm »
found: you have to set WANT_DEBUG=1 in the "Debug" build configuration...

more information in here:

https://github.com/aoloe/scribus-manual-development/blob/master/content/qt-creator/qt-creator.md#debugging

Gibbz

  • Jr. Member
  • **
  • Posts: 56
  • Karma: 0
  • Scribus User
Re: Compiling scribus with qt creator
« Reply #16 on: October 29, 2018, 10:38:05 am »
How are you adding the setting in QT?
Is it a boolean or a string?
If I add an entry using the add button it doesnt appear in the CMAKE section.

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2057
  • Karma: 27
    • the graphics lab
Re: Compiling scribus with qt creator
« Reply #17 on: October 29, 2018, 10:45:15 am »
i did not manage to get it to appear in the CMAKE sesion. i have no idea if prefixing with CMAKE_ will work...

but, yes, just adding as you did worked for me.
but i had to delete the current build directory and let qt creator create a new one.

i would be interested in knowing if it works for you and if it does, then we can improve the wording of the explanation : - )

Gibbz

  • Jr. Member
  • **
  • Posts: 56
  • Karma: 0
  • Scribus User
Re: Compiling scribus with qt creator
« Reply #18 on: October 30, 2018, 05:08:56 am »
Hrmm, I cant get the setting to stick in there in qt.

Under debug build I click > Add > String > Edit the <UNSET> fields WANT_DEBUG and 1
Click file > save all

Close qt creator, reopen and my setting is no applied. If i try and build without restarting, I get the not a debug build error.

Can you check if this setting is being written to a file somewhere? If i can change that file, I may be able to work around the issue.

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2057
  • Karma: 27
    • the graphics lab
Re: Compiling scribus with qt creator
« Reply #19 on: October 30, 2018, 07:50:04 am »
eh eh... if i understand you correct,y that's one of the weak points of that dialog: i also needed many tries and help on irc to understand it:



you have to click on the "apply" button below the list...

Gibbz

  • Jr. Member
  • **
  • Posts: 56
  • Karma: 0
  • Scribus User
Re: Compiling scribus with qt creator
« Reply #20 on: October 30, 2018, 09:32:13 am »
awesome! Thats the button! Who would have thought the apply button was there! :)

Thanks for the help! Its all working now!

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2057
  • Karma: 27
    • the graphics lab
Re: Compiling scribus with qt creator
« Reply #21 on: October 30, 2018, 11:21:41 am »
... eh eh... i've added in the documentation that one should click on the apply button...

Gibbz

  • Jr. Member
  • **
  • Posts: 56
  • Karma: 0
  • Scribus User
Re: Compiling scribus with qt creator
« Reply #22 on: January 21, 2019, 03:35:40 am »
Trying to get this running under the updated QT Creator....

Ive had to add the following to the scribus.pro file:
CONFIG += qt
QT += widgets

And i'm getting the error:
:-1: error: No rule to make target 'scribus/ui/test_xyz.ui', needed by 'ui_test_xyz.h'.  Stop.

Any idea how to fix this error?

Gibbz

  • Jr. Member
  • **
  • Posts: 56
  • Karma: 0
  • Scribus User
Re: Compiling scribus with qt creator
« Reply #23 on: January 21, 2019, 03:48:03 am »
Removed from the scribus.pro file got me past the error, the files no longer exist:

           scribus/ui/test_xyz.h \

         scribus/ui/test_xyz.ui \
         scribus/ui/test_xyzbase.ui \

           scribus/ui/test_xyz.cpp \

         scribus/ui/xyz.ui \
         scribus/ui/xyz2.ui \
         scribus/ui/xyz3.ui \
         scribus/ui/xyz4.ui \
         scribus/ui/xyz5.ui \
         scribus/ui/xyz_dw.ui \
         scribus/ui/xyz_vert.ui \

Gibbz

  • Jr. Member
  • **
  • Posts: 56
  • Karma: 0
  • Scribus User
Re: Compiling scribus with qt creator
« Reply #24 on: January 21, 2019, 04:01:00 am »
Argh, still broken, stuck with some colorwheel thing... Not sure whats going on then....

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2057
  • Karma: 27
    • the graphics lab
Re: Compiling scribus with qt creator
« Reply #25 on: January 21, 2019, 09:31:08 am »
the qmake file has been used many years ago to bootstrap the qt creator project... i think...

nowadays, you should use the cmake workflow.
(no idea why the qmake file is in the repository, really...)

instructions for compiling scribus with qt creator are here (for linux and probably for mac os):

https://github.com/aoloe/scribus-manual-development/blob/master/content/qt-creator/qt-creator.md


as soon as i have the windows instructions ready, i will publish the three "development" document in a better form...

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2057
  • Karma: 27
    • the graphics lab
Re: Compiling scribus with qt creator
« Reply #26 on: January 22, 2019, 09:32:54 am »
@gibbz, did you get it to work?

Gibbz

  • Jr. Member
  • **
  • Posts: 56
  • Karma: 0
  • Scribus User
Re: Compiling scribus with qt creator
« Reply #27 on: January 23, 2019, 07:01:25 am »
Looks like its building now!

1. I guess it helps to have cmake installed :)
2. Then in qtcreator I clicked open file or project > Cmake.txt

It might be a good idea to remove the qt creator files sometime. Its a little confusing :)

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2057
  • Karma: 27
    • the graphics lab
Re: Compiling scribus with qt creator
« Reply #28 on: January 23, 2019, 04:04:27 pm »
I've filled a ticket.

The reply is that the scribus.pro file is needed for updating the translation files.

We will see if something can be done...

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2057
  • Karma: 27
    • the graphics lab
Re: Compiling scribus with qt creator
« Reply #29 on: January 23, 2019, 07:50:22 pm »
out of curiosity: gibbz, what's your goal after you got scribus to compile?