View previous topic :: View next topic |
Author |
Message |
clayasaurus
Joined: 21 May 2004 Posts: 857
|
Posted: Sat Sep 17, 2005 7:32 pm Post subject: new to leds |
|
|
I've managed to compile leds on linux with the latest version of DMD on Ubuntu.
The problem is, when I go to create a new project, I this happens...
Error: ArrayBoundsError PropertiesUI(465)
The code looks like this...
Code: |
TreeIter iter = iterMap[visible];
|
I don't understand how that's an array bounds error?
Also, does leds really have intellisense? The syntax highlighter and bracket matcher work well when i open a D file, but I made a test structure with 2 properties, and when i did 'test.' it didn't bring up any properties of the test structure. Maybe I need to create a project for it to work?
Leds looks like it has a lot of potential, I've been itching for a decent X-platform D IDE with all the build, intellisense, highlighting, and bracket matching jazz.
Is there some secret for getting intellisense to work? Have you put off working on the project until D 1.0?
Goodluck with leds. If you want the updated source (dool, dui, leds) I have it
I might try to work with leds to give it 'build' tool support and fix the bug crashes because I want to have a nice IDE.
My work schedule is rather limited though.
~ Clay |
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Sat Sep 17, 2005 8:16 pm Post subject: Re: new to leds |
|
|
clayasaurus wrote: | I've managed to compile leds on linux with the latest version of DMD on Ubuntu.
The problem is, when I go to create a new project, I this happens...
Error: ArrayBoundsError PropertiesUI(465)
The code looks like this...
Code: |
TreeIter iter = iterMap[visible];
|
|
You got a really old version.
The latest source is here (dsource) on the svn repository.
clayasaurus wrote: |
I don't understand how that's an array bounds error?
|
It wasn't until walter changed the AA. Think I went through all the source code and replace that... now the code looks like
Code: |
TreeIter iter = null;
if ( visible in iterMap )
{
iter = iterMap[visible];
}
|
clayasaurus wrote: |
Also, does leds really have intellisense?
|
well, yes... but it's broken it used to be more complete then it is on the latest version.
and yes you need to setup the project properties "Build" panel
clayasaurus wrote: |
Leds looks like it has a lot of potential
......
Goodluck with leds.
|
thanks.
clayasaurus wrote: |
I might try to work with leds to give it 'build' tool support and fix the bug crashes because I want to have a nice IDE.
|
that's why I started it
Any help is welcomed. Right now leds on linux crahes on the project tree view (???)
leds on windows has more bugs but seems it doesn't crash.
don't forget to get the latest source from dsource.
for DUI use the dynDUI tree, not the main trunk:
http://svn.dsource.org/projects/dui/trunk/dyndui/
Ant |
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
|
Back to top |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
Posted: Sun Sep 18, 2005 5:38 am Post subject: |
|
|
I just got the new DUI code from the trunk, it seems like it still uses !== and === (Revision 95), so I ran my script to change that.
I also added 'make install' option.
Right now I'm stuck on this code segment from dantfw...
src/utilities/D/docd.d(51): no 'this' for nested class UserOption
Code: |
userOptions[new String('p')] =
new UserOption(
'p',
true,
"Project name",
"Project name",
"Project name"
);
|
I'm also having problems compiling leds... I get
Code: |
/usr/local/include/dyndui/lib/gobject.d(60): identifier 'GSignalEmissionHook' is not defined
|
|
|
Back to top |
|
|
Carlos
Joined: 19 Mar 2004 Posts: 396 Location: Canyon, TX
|
Posted: Sun Sep 18, 2005 11:41 am Post subject: |
|
|
clayasaurus wrote: | src/utilities/D/docd.d(51): no 'this' for nested class UserOption |
Find where UserOption is defined. It should be a nested class. Add 'static' to its definition. |
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Sun Sep 18, 2005 11:41 am Post subject: |
|
|
clayasaurus wrote: | I just got the new DUI code from the trunk, it seems like it still uses !== and === (Revision 95), so I ran my script to c |
no, no, no... use the dyndui found on the trunk.
that will define all necessary symbols.
get rid of your DUI and grab a new one from:
http://svn.dsource.org/projects/dui/trunk/dyndui/
(I'll be moving that to the main trunck, just need to browse svn documentation to know how it's done)
I just upload the leds source with a fix for it's new segfault,
it is more stable now (but I'm still using an older version)
Ant |
|
Back to top |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
Posted: Sun Sep 18, 2005 2:49 pm Post subject: |
|
|
Thanks Carlos and Ant. I've managed to build dantfw (commented out the setUserOptions() function inside the this() at line 55 of CommandLine.d). I've had to add convert/GtkToDUI.d to the dantfw Makefile to get leds to compile.
Now when I run leds I get the lovely
'Error: Library load failed: libscintilla.so'
I've made the libscintilla.so file after compiling scintilla with -fPIC option and ran ldconfig, but it doesn't load. :-/ |
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Sun Sep 18, 2005 9:54 pm Post subject: |
|
|
clayasaurus wrote: | Thanks Carlos and Ant. I've managed to build dantfw (commented out the setUserOptions() function inside the this() at line 55 of CommandLine.d). I've had to add convert/GtkToDUI.d to the dantfw Makefile to get leds to compile.
Now when I run leds I get the lovely
'Error: Library load failed: libscintilla.so'
I've made the libscintilla.so file after compiling scintilla with -fPIC option and ran ldconfig, but it doesn't load. :-/ |
I don't thing Scintilla make will install the lib.
where did you copied it to?
can you see it when you exec:
ldconfig -v | grep scintilla
?
Ant |
|
Back to top |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
Posted: Mon Sep 19, 2005 10:07 am Post subject: |
|
|
I ran it and got this...
ldconfig -v | grep scintilla
libscintilla.so -> libscintilla.so.1
Maybe I didn't create the .so the right way?
I made it by using..
gcc -shared -Wl,-soname,libscintilla.so -o libscintilla.so.1 *.o -lc
inside the gtk/ directory after i compiled the .o's with -fPIC |
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Mon Sep 19, 2005 11:40 am Post subject: |
|
|
clayasaurus wrote: | I ran it and got this...
ldconfig -v | grep scintilla
libscintilla.so -> libscintilla.so.1
Maybe I didn't create the .so the right way?
I made it by using..
gcc -shared -Wl,-soname,libscintilla.so -o libscintilla.so.1 *.o -lc
inside the gtk/ directory after i compiled the .o's with -fPIC |
so, it is found on the search path.
but don't they supply a "compile/build lib" make or script or something?
I never complied it myself.
(I don't know the use of compile/linker options that might affect the lib not being loaded...)
can you try to compile it with the supplied tools?
(I don't know if it will make a difference or not)
Ant |
|
Back to top |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
Posted: Mon Sep 19, 2005 2:24 pm Post subject: |
|
|
There is a make script, but it compiles to a scintilla.a and doesn't have a shared lib option as far as I can tell. |
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Mon Sep 19, 2005 7:06 pm Post subject: |
|
|
clayasaurus wrote: | There is a make script, but it compiles to a scintilla.a and doesn't have a shared lib option as far as I can tell. |
???!!!
for me it creates
libscintilla.so.1.6.3
on the GTK directory
(make clean explicitly removed it)
(I'm on 1.63)
Ant |
|
Back to top |
|
|
JJR
Joined: 22 Feb 2004 Posts: 1104
|
Posted: Mon Sep 19, 2005 8:58 pm Post subject: |
|
|
Ant and Clay...
The default scintilla build does NOT support shared libraries on linux. Windows specific dlls are supported but not in the format that leds needs. I modified both linux and windows scintilla makefiles to accomodate leds needs earlier this year. It works by dynamically loading the symbols from a specially built scintilla shared library on linux and windows (much like derelict). If you haven't built scintilla in this customized format, it won't work.
Remember that this limitation was a huge source of frustration for us several months ago. Ant? I was the one who originally sent you the modifications necessary to build scintilla on linux with shared library support. It was just a little bit tricky . In fact I think I just sent you the shared library for windows and linux; and you got took it from there. Maybe that's why you don't remember.
If it's any help, I'll upload my scintilla makefile to the leds svn project tonight. Take a peek at the changes I made to get it working. You can place it in your ./scintilla/gtk directory and give it a try.
I'll add it to the ./leds/resources directory. I'll name it scintilla.mak. Rename it to "makefile" if you want to use it. It was used for version 1.63.
Note however, that you have to be familiar how to install shared libraries on your system once they are created. On windows it's easy. On linux you have to install the shared library in the appropriate directory, tell the dynamic linker where to look for it (usually by modifying /etc/ld.so.conf if you installed the *.so in a non-system path), and update the shared library cache using ldconfig. If you don't do these steps, programs won't know where to look for the *.so. I really need to include a small tutorial with the projects so that people can get started faster.
Hope this helps,
JJR
Last edited by JJR on Mon Sep 19, 2005 9:12 pm; edited 1 time in total |
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Mon Sep 19, 2005 9:04 pm Post subject: |
|
|
JJR wrote: | Ant and Clay...
The default scintilla build does NOT support shared libraries on linux. Windows specific dlls are supported but not in the format that leds needs. I modified both linux and windows scintilla makefiles to accomodate leds needs earlier this year.
JJR |
thanks again.
I didn't remember that!
Ant |
|
Back to top |
|
|
JJR
Joined: 22 Feb 2004 Posts: 1104
|
Posted: Mon Sep 19, 2005 9:15 pm Post subject: |
|
|
No problem.
I no longer have 24 hour internet access. So I won't be able to reply/respond to posts very often (more like every few days now).
The good part of this, though, is that I get can get a lot more done now, including programming projects.
It's amazing how much time that internet takes out of a day.
-JJR |
|
Back to top |
|
|
|