Scribusoid

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

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1620
  • Karma: 23
    • 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

  • Newbie
  • *
  • Posts: 25
  • 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: 1620
  • Karma: 23
    • 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

  • Newbie
  • *
  • Posts: 25
  • 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: 1620
  • Karma: 23
    • 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

  • Newbie
  • *
  • Posts: 25
  • 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: 1620
  • Karma: 23
    • 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...