Author Topic: [SOLVED] building latest svn on fedora 23 fails on importps.cpp  (Read 1150 times)

corebots

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
  • Scribus User
[SOLVED] building latest svn on fedora 23 fails on importps.cpp
« on: January 18, 2016, 07:34:42 pm »
Hello, I'd like to test some of the bugs with the 'needs testing' flag but scribus fails to build. all deps are installed, and i've build before (~month ago). could you please help me on what might be the cause? thank you.

[ 81%] Built target importpct
[ 81%] Building CXX object scribus/plugins/import/ps/CMakeFiles/importps.dir/importps.cpp.o
/home/debili/src/scribus_svn/Scribus/scribus/plugins/import/ps/importps.cpp: In memberfunctie ‘void EPSPlug::parseOutput(QString, bool)’:
/home/debili/src/scribus_svn/Scribus/scribus/plugins/import/ps/importps.cpp:563:14: fout: ‘class ScribusDoc’ has no member named ‘AdjustItemSize’
       m_Doc->AdjustItemSize(ite);
              ^
/home/debili/src/scribus_svn/Scribus/scribus/plugins/import/ps/importps.cpp:609:14: fout: ‘class ScribusDoc’ has no member named ‘AdjustItemSize’
       m_Doc->AdjustItemSize(ite);
              ^
/home/debili/src/scribus_svn/Scribus/scribus/plugins/import/ps/importps.cpp:644:14: fout: ‘class ScribusDoc’ has no member named ‘AdjustItemSize’
       m_Doc->AdjustItemSize(ite, true);
              ^
scribus/plugins/import/ps/CMakeFiles/importps.dir/build.make:69: recept voor doel 'scribus/plugins/import/ps/CMakeFiles/importps.dir/importps.cpp.o' is mislukt
make[2]: *** [scribus/plugins/import/ps/CMakeFiles/importps.dir/importps.cpp.o] Fout 1
CMakeFiles/Makefile2:1793: recept voor doel 'scribus/plugins/import/ps/CMakeFiles/importps.dir/all' is mislukt
make[1]: *** [scribus/plugins/import/ps/CMakeFiles/importps.dir/all] Fout 2
Makefile:149: recept voor doel 'all' is mislukt
make: *** [all] Fout 2
« Last Edit: January 22, 2016, 01:35:16 am by Kunda »

Kunda

  • Administrator
  • Full Member
  • *****
  • Posts: 218
  • Karma: 2
  • Scribus User
Re: building latest svn on fedora 23 fails on importps.cpp
« Reply #1 on: January 18, 2016, 08:58:32 pm »
please post this to bugs.scribus.net

Thanks!

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1088
  • Country: 00
  • Karma: 17
    • the graphics lab
Re: building latest svn on fedora 23 fails on importps.cpp
« Reply #2 on: January 19, 2016, 10:11:27 am »
hey

strange error.

is is a clan build? (first build on a fresh repository?)

have you compiled scribus before?

ciao
a.l.e

corebots

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
  • Scribus User
Re: building latest svn on fedora 23 fails on importps.cpp
« Reply #3 on: January 19, 2016, 10:36:09 am »
please post this to bugs.scribus.net

Thanks!

ok, will do so.

corebots

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
  • Scribus User
Re: building latest svn on fedora 23 fails on importps.cpp
« Reply #4 on: January 19, 2016, 10:45:10 am »
hey

strange error.

is is a clan build? (first build on a fresh repository?)

have you compiled scribus before?

ciao
a.l.e

well I've used scribus 1.5.1 from svn , built roughly a month ago. so I thought for testing i get the latest from svn and followed the instructions on http://wiki.scribus.net/canvas/Building_SVN_versions_with_CMake#Fedora_19_and_later

I had to ' sudo rm -R /usr/local/scribus_svn/ ' right at the beginning because the old directory was  still there, then I've created a new one and after the Build files have been written to: /home/debili/src/scribus_svn/Scribus/build i run
' make ' which finished with the above described error. i must admit i'm not very experienced with building but as I look back there aren't many steps where i could have made a mistake..

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1088
  • Country: 00
  • Karma: 17
    • the graphics lab
Re: building latest svn on fedora 23 fails on importps.cpp
« Reply #5 on: January 19, 2016, 11:48:18 am »
if you followed

http://wiki.scribus.net/canvas/Building_SVN_versions_with_CMake#Build_from_Source

to the letter, you should remove at the

~/src/scribus_svn

redo the checkout and do a full compile...


(and i recomend you to set the PATH to ~/bin/scribus_svn instead of /usr/local/scribus_svn : if possible, you should avoid sudo when installing software compiled by yourself)

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1088
  • Country: 00
  • Karma: 17
    • the graphics lab
Re: building latest svn on fedora 23 fails on importps.cpp
« Reply #6 on: January 19, 2016, 12:41:51 pm »
oooops... it probably should be ->adjustItemSize() ... lowercase...

probably related to the big refactoring by asma or ali...

corebots

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
  • Scribus User
Re: building latest svn on fedora 23 fails on importps.cpp
« Reply #7 on: January 19, 2016, 11:45:25 pm »
oooops... it probably should be ->adjustItemSize() ... lowercase...

probably related to the big refactoring by asma or ali...

not sure if i understand what you mean. I've deleted the folders and have repeated the procedure but the result remains the same; error at 81%. but i see the bug i've opened is marked resolved ? thanks

Kunda

  • Administrator
  • Full Member
  • *****
  • Posts: 218
  • Karma: 2
  • Scribus User
Re: building latest svn on fedora 23 fails on importps.cpp
« Reply #8 on: January 19, 2016, 11:48:13 pm »
Please build Trunk again and then report results in the ticket. Thanks

a.l.e

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1088
  • Country: 00
  • Karma: 17
    • the graphics lab
Re: building latest svn on fedora 23 fails on importps.cpp
« Reply #9 on: January 20, 2016, 10:01:46 am »
hey corebots,

i wanted to tell you that it's very likely that there is an error in the scribus code!

... and now i know that my suspicion was correct...


the error you're having is:

‘class ScribusDoc’ has no member named ‘AdjustItemSize’

and indeed the function call should be "m_Doc->adjustItemSize(ite)", with lowercase "a"
(https://github.com/scribusproject/scribus/blob/master/scribus/scribusdoc.h#L1153)

as you can see in the ticket

http://bugs.scribus.net/view.php?id=13668

that the bug has been fixed yesterday evening by craig with the following changes:

http://lists.scribus.net/pipermail/scribus-commit/2016-January/008136.html


you should now be able to update your code and correctly compile scribus!

good luck
a.l.e

corebots

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
  • Scribus User
Re: building latest svn on fedora 23 fails on importps.cpp
« Reply #10 on: January 22, 2016, 12:37:31 am »
works great now, thank you and sorry for the late response