Author Topic: Panel shows only partially in wxz file editor  (Read 1658 times)

Offline spflanze

  • Multiple posting newcomer
  • *
  • Posts: 119
Re: Panel shows only partially in wxz file editor
« Reply #15 on: January 25, 2019, 01:25:09 pm »
I attempted to compile and package Code::Blocks by following the instructions at:
http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Linux

Those instructions failed at the point of the make command under the heading "Building wxWidgets" where I got many repetitions of errors similar to these:

Code: [Select]
In file included from ../src/gtk/dcclient.cpp:46:0:
../src/gtk/bdiag.xbm:6:50: error: narrowing conversion of ‘128’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
    0x08, 0x08, 0x04, 0x04, 0x02, 0x02, 0x01, 0x01};
                                                  ^
../src/gtk/bdiag.xbm:6:50: error: narrowing conversion of ‘128’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]

What can be done about those "narrowing conversion" errors?

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2434
Re: Panel shows only partially in wxz file editor
« Reply #16 on: January 25, 2019, 02:36:52 pm »
you do not have to build wxWidgets by yourself... Simply install the wxWidgets-dev library from your package manager
Code: [Select]
sudo apt install libwxgtk3.0-dev

i just try to create a package by myself. The steps i had to do was
Code: [Select]
sudo apt install devscript debhelper cdbs
then go to the root folder of the codeblock source (where the "debian" folder is) and run
Code: [Select]
debuild
in the console.
It is currently building. This will probably take some time on my machine and i will report back as soon as it finished...

[edit:] i do not know in how far this builds the contrib plugins, or adds the debugging symbols. I have to find this out...
« Last Edit: January 25, 2019, 02:39:34 pm by BlueHazzard »

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2434
Re: Panel shows only partially in wxz file editor
« Reply #17 on: January 25, 2019, 05:56:14 pm »
it stops with this error:
Code: [Select]
dh_install -pcodeblocks-headers
dh_install: Compatibility levels before 9 are deprecated (level 7 in use)
dh_install: Cannot find (any matches for) "usr/include/codeblocks/tinyxml" (tried in ., debian/tmp)

dh_install: codeblocks-headers missing files: usr/include/codeblocks/tinyxml
dh_install: missing files, aborting
/usr/share/cdbs/1/rules/debhelper.mk:235: recipe for target 'binary-install/codeblocks-headers' failed
make: *** [binary-install/codeblocks-headers] Error 25
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
debuild: fatal error at line 1152:
dpkg-buildpackage -rfakeroot -us -uc -ui failed

someone an idea?