ogledit Where is it and can it be built?
ogledit Where is it and can it be built?
I used to used wxwidget version 2.4 and have an application using ogledit.
I tried to port it but could not with many compiler errors that I don't understand.
Was wondering if anyone is able to build it with the newest version.
I am using ubuntu 18 at the moment.
If not, was wondering if I can get 2.4 or 2.8 to work perhaps with an older compiler.
I tried to port it but could not with many compiler errors that I don't understand.
Was wondering if anyone is able to build it with the newest version.
I am using ubuntu 18 at the moment.
If not, was wondering if I can get 2.4 or 2.8 to work perhaps with an older compiler.
Re: ogledit Where is it and can it be built?
Hi,
The 'contrib/' section was removed in wx3, so the latest version that contained contrib/samples/ogl/ogledit is wx2.8.12.
I successfully built that in a bionic virtualbox guest: in the dir of the extracted tarball do:
However I can't get the contrib section to link:
"cannot find -lwx_gtk2d_deprecated-2.8"
(IIRC one reason for removing contrib/ was that nobody was bothering to maintain it.)
So, before I spend more time trying, could I ask why you feel you need ogledit? I've no idea what it is supposed to do, but perhaps there are more recent alternatives (which might even be better...).
Regards,
David
The 'contrib/' section was removed in wx3, so the latest version that contained contrib/samples/ogl/ogledit is wx2.8.12.
I presume you mean 18.04 (bionic). That doesn't supply wx2.8, but it's not hard to build it from a tarball (which you can get from https://www.wxwidgets.org/downloads/).I am using ubuntu 18 at the moment.
I successfully built that in a bionic virtualbox guest: in the dir of the extracted tarball do:
Code: Select all
export CFLAGS=-std=c99 CXXFLAGS=-std=c++98
(cd udb && ../configure --prefix=$(pwd) --enable-debug && make -j`nproc`)
"cannot find -lwx_gtk2d_deprecated-2.8"
(IIRC one reason for removing contrib/ was that nobody was bothering to maintain it.)
So, before I spend more time trying, could I ask why you feel you need ogledit? I've no idea what it is supposed to do, but perhaps there are more recent alternatives (which might even be better...).
Regards,
David
Re: ogledit Where is it and can it be built?
Thanks David
I am also getting "cannot find -lwx_gtk2d_deprecated-2.8" too.
make does not do anything in the deprecated directory
I have tried to port my program to 3.1.4. The program uses ogledit as part of the visualization aspect. I ran into a compiler error that was unrelated and nothing on google about people having the same problem so for now, my only way is to get it working on the old version. And then maybe I can see if I can upgrade.
I am also getting "cannot find -lwx_gtk2d_deprecated-2.8" too.
make does not do anything in the deprecated directory
I have tried to port my program to 3.1.4. The program uses ogledit as part of the visualization aspect. I ran into a compiler error that was unrelated and nothing on google about people having the same problem so for now, my only way is to get it working on the old version. And then maybe I can see if I can upgrade.
Re: ogledit Where is it and can it be built?
ogledit is one of a kind.
There is nothing better at integrating a graph editing system.
To be clear graph as in nodes and edges like a visio drawing.
It was seamless.
I have not tried
https://github.com/vadz/grapheditor
But from what I can see it creates a graphvis drawing.
With ogledit, you can modify the graph and the data structure simultaneously. Using a drawing program does not allow that.
There is nothing better at integrating a graph editing system.
To be clear graph as in nodes and edges like a visio drawing.
It was seamless.
I have not tried
https://github.com/vadz/grapheditor
But from what I can see it creates a graphvis drawing.
With ogledit, you can modify the graph and the data structure simultaneously. Using a drawing program does not allow that.
Re: ogledit Where is it and can it be built?
Hi,
Maybe you can ask Vadim to add it?
Or maybe it is already in planning?
Thank you.
Maybe you can ask Vadim to add it?
Or maybe it is already in planning?
Thank you.
Re: ogledit Where is it and can it be built?
Anyone who can make it work is my friend.
I don't know who Vadim is.
I don't know who Vadim is.
Re: ogledit Where is it and can it be built?
I threw all the ogl and ogledit files into an empty VS project and checked the errors. Although there are many, they're mostly the same type of error. It may take a few hours, but i think porting this to wx 3.x should be possible. If you want to do it, we can help, but i don't think anyone else is doing this for you.
Use the source, Luke!
Re: ogledit Where is it and can it be built?
I was able to build it with 3.1.6 on MSW, just as doublemax did, i.e., dropping it onto a single project and building it there.
It required just few tweaks, would be even easier if wxWidgets were built with WXWIN_COMPATIBILITY_2_8 to avoid all those GDI enum warnings.
It may require more tweaks for 64-bit, as there are some non-portable pointer to long casts.
It required just few tweaks, would be even easier if wxWidgets were built with WXWIN_COMPATIBILITY_2_8 to avoid all those GDI enum warnings.
It may require more tweaks for 64-bit, as there are some non-portable pointer to long casts.
Re: ogledit Where is it and can it be built?
Thanks, guys.
Then the code is fine as is.
It must have to do with the building routine in ubuntu.
autogen.sh does nothing it seems, but configure does a lot.
I wonder if it is not dealing with the contrib directory.
I see a lot of talk about cmake but I am using make.
Then the code is fine as is.
It must have to do with the building routine in ubuntu.
autogen.sh does nothing it seems, but configure does a lot.
I wonder if it is not dealing with the contrib directory.
I see a lot of talk about cmake but I am using make.
Re: ogledit Where is it and can it be built?
Hi,
S what if you just drop its files directly into project you do the porting and compile?
Thank you.
S what if you just drop its files directly into project you do the porting and compile?
Thank you.
Re: ogledit Where is it and can it be built?
It is not, at least with wxWidgets 3.1.6. I had to make a couple of changes both to the ogl files and the sample to be able to build it, including commenting out some #includes. But nothing difficult. But that is just building it and was preferring speed, so I may have missed something. I noticed that the sample does not save the file, it always has 0 size.
Making it actually work properly may not be easy or possible, the code seems to be really old.
Re: ogledit Where is it and can it be built?
Ok then for now I will have to in fact stick with the old version of wx.
Re: ogledit Where is it and can it be built?
[/quote]
I had to make a couple of changes both to the ogl files and the sample to be able to build it, including commenting out some #includes. But nothing difficult.
[/quote]
I was wondering how could one get a hold of your changes. At least it's something to work with.
I had to make a couple of changes both to the ogl files and the sample to be able to build it, including commenting out some #includes. But nothing difficult.
[/quote]
I was wondering how could one get a hold of your changes. At least it's something to work with.
Re: ogledit Where is it and can it be built?
DavidHart wrote: ↑Sun Jun 06, 2021 10:30 am Hi,
The 'contrib/' section was removed in wx3, so the latest version that contained contrib/samples/ogl/ogledit is wx2.8.12.I presume you mean 18.04 (bionic). That doesn't supply wx2.8, but it's not hard to build it from a tarball (which you can get from https://www.wxwidgets.org/downloads/).I am using ubuntu 18 at the moment.
I successfully built that in a bionic virtualbox guest: in the dir of the extracted tarball do:However I can't get the contrib section to link:Code: Select all
export CFLAGS=-std=c99 CXXFLAGS=-std=c++98 (cd udb && ../configure --prefix=$(pwd) --enable-debug && make -j`nproc`)
"cannot find -lwx_gtk2d_deprecated-2.8"
(IIRC one reason for removing contrib/ was that nobody was bothering to maintain it.)
So, before I spend more time trying, could I ask why you feel you need ogledit? I've no idea what it is supposed to do, but perhaps there are more recent alternatives (which might even be better...).
Regards,
David
The Linux/ubuntu build process fell apart at some point.
wx_gtk2d_deprecated-2.8 is required by all of the contrib projects yet I don't see anywhere where it is in fact built.
grep ed the who project and found where it is required for linking but nowhere to build it.
Re: ogledit Where is it and can it be built?
It would be very valuable to get a hold of your work. It's possible that the save function never worked. It is not important to me. But to know which include files to eliminate is a big deal.PB wrote: ↑Sun Jun 06, 2021 7:02 pmIt is not, at least with wxWidgets 3.1.6. I had to make a couple of changes both to the ogl files and the sample to be able to build it, including commenting out some #includes. But nothing difficult.
ogl-sample.png
But that is just building it and was preferring speed, so I may have missed something. I noticed that the sample does not save the file, it always has 0 size.
Making it actually work properly may not be easy or possible, the code seems to be really old.