Home » Community » U++ community news and announcements » GLCtrl in GTK
|
Re: GLCtrl in GTK [message #50731 is a reply to message #50604] |
Tue, 11 December 2018 06:09 |
ptkacz
Messages: 89 Registered: March 2017
|
Member |
|
|
Mirek,
I went and tried each of the demos and got:
reference/OpenGL: Yes
reference/GLDrawDemo: Yes
examples-bazaar/FTGL_Demo: Fail
When I attempt to compile the FTGL_Demo, I'm running into an issue with FreeType. See the attached screen shot.
In the past I've gotten this project to compile and run.
Similarly, in another project, I'm now getting errors like:
In file included from /usr/include/GL/glx.h:30:0,
from /home/ptkacz/upp/uppsrc/GLCtrl/GLCtrl.h:25,
from /home/ptkacz/project/dev/FractGenOne/ConsoleDialog.h:6,
from /home/ptkacz/project/dev/FractGenOne/FractGen.h:8,
from /home/ptkacz/project/dev/FractGenOne/main.cpp:1,
from /home/ptkacz/upp.out/dev/FractGenOne/GCC.Debug.Debug_Full.Gui.Main.Shared/$blitz.cpp:3:
/usr/include/X11/Xlib.h:199:9: error: reference to 'Font' is ambiguous
Font font; /* default text font for text operations */
^~~~
In file included from /usr/include/X11/Xlib.h:44:0,
from /usr/include/GL/glx.h:30,
from /home/ptkacz/upp/uppsrc/GLCtrl/GLCtrl.h:25,
from /home/ptkacz/project/dev/FractGenOne/ConsoleDialog.h:6,
from /home/ptkacz/project/dev/FractGenOne/FractGen.h:8,
from /home/ptkacz/project/dev/FractGenOne/main.cpp:1,
from /home/ptkacz/upp.out/dev/FractGenOne/GCC.Debug.Debug_Full.Gui.Main.Shared/$blitz.cpp:3:
/usr/include/X11/X.h:100:13: note: candidates are: typedef XID Font
typedef XID Font;
Peter
|
|
|
|
|
|
|
|
|
Re: GLCtrl in GTK [message #50777 is a reply to message #50775] |
Sun, 16 December 2018 05:14 |
ptkacz
Messages: 89 Registered: March 2017
|
Member |
|
|
Hi Mirek,
Just an FYI, within the Documentation section of this website, the link, POSIX (Linux, BSD, ...) setup is broken.
As for applying the master's version's U++ source directory on top of the last nightly build's U++ source directory, I received the following errors when making:
...
_out/ide/Builders/GCCMK-Gcc-Gui-Linux-Posix-Shared/Builders.a(GccBuilder.o): In function `GccBuilder::Link(Upp::Vector<Upp::String> const&, Upp::String const&, bool)':
GccBuilder.cpp:(.text._ZN10GccBuilder4LinkERKN3Upp6VectorINS0_6StringEEERKS2_b+0x84): undefined reference to `GccBuilder::CocoaAppBundle()'
collect2: error: ld returned 1 exit status
Makefile:255: recipe for target 'ide.out' failed
make[1]: *** [ide.out] Error 1
...
...
...
_out/ide/Builders/GCCMK-Gcc-Linux-Posix-Shared/Builders.a(GccBuilder.o): In function `GccBuilder::Link(Upp::Vector<Upp::String> const&, Upp::String const&, bool)':
GccBuilder.cpp:(.text._ZN10GccBuilder4LinkERKN3Upp6VectorINS0_6StringEEERKS2_b+0x84): undefined reference to `GccBuilder::CocoaAppBundle()'
collect2: error: ld returned 1 exit status
uMakefile:84: recipe for target 'umk.out' failed
make[1]: *** [umk.out] Error 1
make[1]: Leaving directory '/home/ptkacz/Downloads/upp-x11-src-12610M/uppsrc'
DOMAKE WARNING: Can't find uppsrc/ide.out binary
Makefile:5: recipe for target 'all' failed
make: *** [all] Error 4
[Updated on: Sun, 16 December 2018 05:14] Report message to a moderator
|
|
|
Re: GLCtrl in GTK [message #50778 is a reply to message #50777] |
Sun, 16 December 2018 08:11 |
|
mirek
Messages: 14038 Registered: November 2005
|
Ultimate Member |
|
|
ptkacz wrote on Sun, 16 December 2018 05:14Hi Mirek,
Just an FYI, within the Documentation section of this website, the link, POSIX (Linux, BSD, ...) setup is broken.
As for applying the master's version's U++ source directory on top of the last nightly build's U++ source directory, I received the following errors when making:
[code]...
_out/ide/Builders/GCCMK-Gcc-Gui-Linux-Posix-Shared/Builders. a(GccBuilder.o): In function `GccBuilder::Link(Upp::Vector<Upp::String> const&, Upp::String const&, bool)':
GccBuilder.cpp:(.text._ZN10GccBuilder4LinkERKN3Upp6VectorINS 0_6StringEEERKS2_b+0x84): undefined reference to `GccBuilder::CocoaAppBundle()'
collect2: error: ld returned 1 exit status
Makefile:255: recipe for target 'ide.out' failed
make[1]: *** [ide.out] Error 1
I am sorry for not explaining this fully.. By "you do not need makefile" I really mean "you do not need to use make".
The only situation when you are supposed to use make is to build theide. After that, you can use theide to build things.
If you replace sources, you are done and you can then retry your code (in theide).
Mirek
|
|
|
|
|
|
|
|
|
|
Re: GLCtrl in GTK [message #51514 is a reply to message #51509] |
Sun, 07 April 2019 21:25 |
|
koldo
Messages: 3394 Registered: August 2008
|
Senior Veteran |
|
|
In this case, it could be better to set a MemoryIgnoreLeaksBlock __; in the beginning of OnPaint().
Best regards
Iñaki
|
|
|
Goto Forum:
Current Time: Fri Sep 20 04:39:56 CEST 2024
Total time taken to generate the page: 0.04354 seconds
|