|
|
Home » Developing U++ » Releasing U++ » Error compiling nightly-4611
Error compiling nightly-4611 [message #35495] |
Thu, 23 February 2012 11:25  |
slashupp
Messages: 231 Registered: July 2009
|
Experienced Member |
|
|
OS: debian wheezy/sid
kernel: 3.2.0-1-amd64
gcc 4.6.2
gdb: 7.3
Get following when running 'make' on unmodified source extracted from upp-x11-src-4611.tar.gz :
(...)
_out/ide/Debuggers/GCCMK-Gcc-Gui-Linux-Posix-Shared/Debugger s.a(Gdb_MI2.o): In function `Gdb_MI2::SendPrettyPrinters()':
Gdb_MI2.cpp:(.text._ZN7Gdb_MI218SendPrettyPrintersEv+0xae): undefined reference to `PrettyPrinters'
collect2: ld returned 1 exit status
make[1]: *** [ide.out] Error 1
(...)
Do I have missing prerequisites?
[edit]
Tried: python -v PrettyPrinters.py
which failed with: ImportError: No module named gdb.printing
I don't know python at all. Can someone help please?
[Updated on: Thu, 23 February 2012 12:54] Report message to a moderator
|
|
|
Re: Error compiling nightly-4611 [message #35497 is a reply to message #35495] |
Thu, 23 February 2012 20:36   |
|
Hi slashupp,
Welcome to the forum 
Unfortunately, this is a problem on our side The makefile in the package is automatically generated and right now, it doesn't support brc (binary resources) files. However, recent changes in TheIDE use .brc file to include the PrettyPrinters in the executable.
There is not many people using the source package, so nobody reported this yet and we all somehow overlooked the problem I've already created a script that provides this functionality, we'll probably just have to figure out how to put it all together for the easiest use in the source package.
If you are interested in having U++ on your debian quickly, I can create the packages for you - deb and/or dsc. (As it happens, I'm working on that lately anyways )
Best regards,
Honza
|
|
|
Re: Error compiling nightly-4611 [message #35500 is a reply to message #35497] |
Thu, 23 February 2012 20:58   |
slashupp
Messages: 231 Registered: July 2009
|
Experienced Member |
|
|
Thanks Honza
I've already commented the 'offending' code in
uppsrc/ide/Debuggers/Gdb_MI2.cpp
(commented #include "PrettyPrinters.brc"
and the code in 'Gdb_MI2::SendPrettyPrinters()'.)
Everything then compiled & I'm using 4611 already.
Main reason I wanted the latest version is due to
strange & illusive heap leaks which I'm having
difficulty in pinning down.
Regards
PS: There's also a problem with the debian package
libgdk-pixbuf2.0-0 for which I filed a bug-report (661036):
the names for the lib uses underscores instead of
dashes and gcc therefor cannot find the lib
Also: to compile 4611 I had to add
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include
to the Makefile since I'm using a multilib-setup.
[Updated on: Thu, 23 February 2012 21:10] Report message to a moderator
|
|
|
|
Re: Error compiling nightly-4611 [message #35502 is a reply to message #35500] |
Thu, 23 February 2012 21:36   |
|
slashupp wrote on Thu, 23 February 2012 20:58 | I've already commented the 'offending' code in
uppsrc/ide/Debuggers/Gdb_MI2.cpp
(commented #include "PrettyPrinters.brc"
and the code in 'Gdb_MI2::SendPrettyPrinters()'.)
Everything then compiled & I'm using 4611 already.
|
Ok, everything will work with this change as long as you don't switch to the new (experimental) gdb interface in Setup > Environment > IDE.
slashupp wrote on Thu, 23 February 2012 20:58 | PS: There's also a problem with the debian package
libgdk-pixbuf2.0-0 for which I filed a bug-report (661036):
the names for the lib uses underscores instead of
dashes and gcc therefor cannot find the lib
Also: to compile 4611 I had to add
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include
to the Makefile since I'm using a multilib-setup.
| Thanks, for notice. I'll look at it.
Honza
|
|
|
|
|
|
Re: Error compiling nightly-4611 [message #35523 is a reply to message #35521] |
Fri, 24 February 2012 18:27   |
slashupp
Messages: 231 Registered: July 2009
|
Experienced Member |
|
|
Problem after installing sid-deb's:
theide_4611-0~sid0_amd64.deb
upp_4611-0~sid0_all.deb
created std ctrllib-app with mainwindow & build: get error:
----- CtrlLib ( GUI SSE2 GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (1 / 2)
----- test4611 ( GUI SSE2 MAIN GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (2 / 2)
main.cpp
In file included from /home/slashupp/MyApps/test4611/main.cpp:1:0:
/home/slashupp/MyApps/test4611/test4611.h:4:29: fatal error: CtrlLib/CtrlLib.h: No such file or directory
compilation terminated.
test4611: 1 file(s) built in (0:00.02), 24 msecs / file, duration = 28 msecs, parallelization 0%
There were errors. (0:00.03)
___
The only way I could find to (temporarily?) fix the above error
is to add the needed upp-packages one-by-one from uppsrc to the main package (test4611).
The package-view-window now contains:
test4611
Core
CtrlCore
CtrlLib
Draw
...
uppsrc/Core
uppsrc/CtrlCore
uppsrc/CtrlLib
uppsrc/Draw
...
<prj-aux>
...
<meta>
How should I fix this?
PS: No files are displayed when I click on Core, CrlCore, etc
but _are_ displayed when I click the uppsrc/*-entries.
The <prj-aux> ... <meta> entries also comes up empty
[Updated on: Sat, 25 February 2012 12:55] Report message to a moderator
|
|
|
Re: Error compiling nightly-4611 [message #35525 is a reply to message #35523] |
Sat, 25 February 2012 14:05   |
|
slashupp wrote on Fri, 24 February 2012 18:27 | ----- CtrlLib ( GUI SSE2 GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (1 / 2)
----- test4611 ( GUI SSE2 MAIN GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX ) (2 / 2)
main.cpp
In file included from /home/slashupp/MyApps/test4611/main.cpp:1:0:
/home/slashupp/MyApps/test4611/test4611.h:4:29: fatal error: CtrlLib/CtrlLib.h: No such file or directory
compilation terminated.
test4611: 1 file(s) built in (0:00.02), 24 msecs / file, duration = 28 msecs, parallelization 0%
There were errors. (0:00.03)
|
This seems like a problem in your assembly configuration. Go to Select main package dialog, and check the settings of your MyApps assembly, especially the path to the uppsrc directory. Check if the path is correct and if the files are present at the given path.
Sorry I didn't tested the packages, so there might be some glitches... I actually don't even have a debian system - they were all built in chroots using pbuilder on Arch Linux 
Honza
|
|
|
|
Re: Error compiling nightly-4611 [message #35529 is a reply to message #35527] |
Sat, 25 February 2012 20:24   |
|
slashupp wrote on Sat, 25 February 2012 16:54 | That is spot-on!
The uppsrc under $HOME/upp contained another uppsrc-subdir.
I moved the sources up and everything worked.
| Glad to hear it helped 
slashupp wrote on Sat, 25 February 2012 16:54 | This means an error in the script that copies the sources to the $HOME directory.
| It's done by theide itself. I'll look at it and hopefully fix it...
Honza
|
|
|
|
Goto Forum:
Current Time: Tue May 13 23:33:03 CEST 2025
Total time taken to generate the page: 0.01362 seconds
|
|
|