|
|
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Fatal error invalid memory access
Fatal error invalid memory access [message #41886] |
Mon, 03 February 2014 18:00  |
slashupp
Messages: 231 Registered: July 2009
|
Experienced Member |
|
|
..while I'm in the complaints department:
Don't know if it's a bug or not, but if I create a .cpp-file in
a package with the same name as the package, then after a small
number of edit's and compile's, theide crashes and then refuses to
load the package when I select it at start-up giving the above error-message.
I get it to reload the package only if I rename the package &
.upp-file OR the .cpp-file to something else.
Could be something that needs attention.
|
|
|
|
|
|
Re: Fatal error invalid memory access [message #41913 is a reply to message #41901] |
Wed, 05 February 2014 14:58   |
 |
Klugier
Messages: 1099 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello slashupp,
You can use my script to compile Ultimate++ in X11 mode.
1. Copy all files included by me in this message to upp directory.
2. Execute following commands:
chmod +x compile.sh
./compile.sh
3. Enjoy X11 IDE!
P.S.
Use at your own risk! (First, please check what script do).
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Wed, 05 February 2014 15:00] Report message to a moderator
|
|
|
|
|
|
Re: Fatal error invalid memory access [message #41950 is a reply to message #41948] |
Sat, 08 February 2014 12:48   |
 |
Klugier
Messages: 1099 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello slashupp,
Quote: |
((P.S. Use at your own risk! (First, please check what script do). )) - noted: I am NOT a fan of bash (actually dislike[-hate-] the convoluted, cryptic, obscure syntax with a passion)
|
So, what do you recomend insted of bash?
Quote: |
Is this the installed upp-directory or the extracted sources one?
|
You should put it in "extracted sources" directory. Exactly the same place where you are typing "make" command.
Sincerely,
klugier
U++ - one framework to rule them all.
[Updated on: Sat, 08 February 2014 13:01] Report message to a moderator
|
|
|
|
Re: Fatal error invalid memory access [message #41958 is a reply to message #41956] |
Sat, 08 February 2014 19:45   |
 |
Klugier
Messages: 1099 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello slashupp,
Quote: |
copied the new theide to my ~/bin (it is in my PATH)
and ran it ...
|
It seems that you compile "x11 ide" successfully.
Quote: |
I manually copied bazaar, ..., uppsrc, to ~/upp
ran theide again:
|
Does IDE detect all necessary ultimate++ packages like CtrlLib, CtrlCore etc?
Quote: |
found GCC.bm and imported it
|
Did you copy GCC.bm.in also?
Quote: |
Tried to compile Addressbook example: failed because it could
not find a load of headers from "/usr/include/gtk-2.0/..."
|
It is only the path for gtk headers. Remember that even if you have X11 IDE the executable is still compiling in full GTK mode. If you want to fully remove GTK from your project try following compilation flags:
X11 - Deletes GTK backend, but GTK theme can still be used. (GTK libraries are linked to yours executable file).
NOGTK - Fully remove gtk, no GTK theme. (GTK libraries are NOT linked to yours executable file).
Sincerely,
Klugier
U++ - one framework to rule them all.
|
|
|
Re: Fatal error invalid memory access [message #41959 is a reply to message #41956] |
Sat, 08 February 2014 20:58   |
|
slashupp wrote on Sat, 08 February 2014 18:38 | copied the new theide to my ~/bin (it is in my PATH)
and ran it ...
1. doesn't do setup
|
TheIDE only does setup when it detects ~/.upp doesn't exist. You can run it explicitly from theide itself, it is accessible from Setup -> Source management...
Best regards,
Honza
|
|
|
Re: Fatal error invalid memory access [message #41965 is a reply to message #41886] |
Sun, 09 February 2014 06:35   |
slashupp
Messages: 231 Registered: July 2009
|
Experienced Member |
|
|
I've copied mkfile and compile.sh into extracted source dir.
I ran ./compile in extracted source dir - it compiled
I deleted existing ~/.upp and ~/upp dirs.
I copied theide into path-dir.
I ran theide and I got what looks like X11 windows, it did not do setup; build methods are empty.
I copied bazaar, ..., uppsrc to ~/upp
I created build method GCC, and selected builder GCC.
I create a new package (helloworld-style) and specify 'GUI SSE2 NOGTK'.
Tried to do 'GCC Debug'-build and got:
----- CtrlLib ( GUI SSE2 NOGTK GCC DEBUG LINUX POSIX ) (1 / 9)
ChGtk.cpp
In file included from /home/slash/upp/uppsrc/CtrlLib/ChGtk.cpp:2:0:
/home/slash/upp/uppsrc/CtrlLib/ChGtk.h:9:21: fatal error: gtk/gtk.h: No such file or directory
#include <gtk/gtk.h>
^
compilation terminated.
CtrlLib: 1 file(s) built in (0:00.70), 701 msecs / file, duration = 713 msecs, parallelization 0%
There were errors. (0:00.71)
Can I ever become rid of gtk?
[Updated on: Sun, 09 February 2014 09:00] Report message to a moderator
|
|
|
Re: Fatal error invalid memory access [message #41967 is a reply to message #41965] |
Sun, 09 February 2014 09:42   |
|
slashupp wrote on Sun, 09 February 2014 06:35 | I create a new package (helloworld-style) and specify 'GUI SSE2 NOGTK'.
Tried to do 'GCC Debug'-build and got:
----- CtrlLib ( GUI SSE2 NOGTK GCC DEBUG LINUX POSIX ) (1 / 9)
ChGtk.cpp
In file included from /home/slash/upp/uppsrc/CtrlLib/ChGtk.cpp:2:0:
/home/slash/upp/uppsrc/CtrlLib/ChGtk.h:9:21: fatal error: gtk/gtk.h: No such file or directory
#include <gtk/gtk.h>
^
compilation terminated.
CtrlLib: 1 file(s) built in (0:00.70), 701 msecs / file, duration = 713 msecs, parallelization 0%
There were errors. (0:00.71)
Can I ever become rid of gtk?
| What version of U++ sources do you have? This seems a lot like problem that was solved in revision 6698...
Best regards,
Honza
|
|
|
Re: Fatal error invalid memory access [message #41968 is a reply to message #41967] |
Sun, 09 February 2014 09:54  |
|
slashupp | ah! now I'm starting to get the picture ...
The reason I need get rid of GTK is that I have build (B)LFS with minimal extras, only X11 with openbox for window management
| Ok, that brings more sense into what you're trying to do 
Quote: | Can I add these flags to 'make -C uppsrc' in the domake script?
| Unfortunately, some things are pretty hard-coded in the makefile I would recommend you to rather use the universal makefile. Just download the file, put it in the directory with unpacked sources and run this:make -f mkfile PKG=ide NESTS=uppsrc LDFLAGS="-Wl,--gc-sections -Wl,-O,2" TIME= COLOR=0 USEMAINCFG=0 FLAGS="GUI NOGTK GCC" TARGET=$(pwd)/theide JOBS=5
This should build theide without GTK. You can also use this for any other U++ package, just by tweaking the parameters a bit. Detailed documentation is inside the makefile.
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Thu May 01 01:58:29 CEST 2025
Total time taken to generate the page: 0.03337 seconds
|
|
|