ADI64 | 20 Jul 11:01

Agar seems to compile without OpenGL [win / msys]

Hey all,

I compiled the agar library under windows with msys ( --enable-threads
--with-freetype --with-gl ).
Configure checked for OpenGL32, found it and said it's working and compiled the
library.
In my project, I use parts of the glview.c example in a c++ project.
The code part is:

--------------------------------
AG_Window *gui;
AG_GLView *glv;
AG_HBox *hb;

....

gui = AG_WindowNew(AG_WINDOW_PLAIN);
hb = AG_HBoxNew(gui, AG_HBOX_EXPAND);
AG_LabelNewString(gui, 0, "Heyho, let's go");
// Create the AG_GLView widget.
glv = AG_GLViewNew(hb, AG_GLVIEW_EXPAND);
--------------------------------

Everything compiles and links fine, but the AG_GLViewNew function seems to make
problems.
The Error output is:

--------------------------------
||=== SDLtest, Debug ===|
obj\Debug\engine.o||In function `_ZN7TEngine14T3D_OpenWindowEiib':|
(Continue reading)

Julien Nadeau | 20 Jul 11:28
Favicon

Re: Agar seems to compile without OpenGL [win / msys]


I doubt these linker errors are specific to OpenGL. You're also getting
an undefined reference to AG_WidgetParentWindow() which is a standard GUI
routine. It looks like your header files may be out of sync with the
installed libraries.

On Sun, Jul 20, 2008 at 09:01:55AM +0000, ADI64 wrote:
> Hey all,
> 
> I compiled the agar library under windows with msys ( --enable-threads
> --with-freetype --with-gl ).
> Configure checked for OpenGL32, found it and said it's working and compiled the
> library.
> In my project, I use parts of the glview.c example in a c++ project.
> The code part is:
> 
> --------------------------------
> AG_Window *gui;
> AG_GLView *glv;
> AG_HBox *hb;
> 
> .....
> 
> gui = AG_WindowNew(AG_WINDOW_PLAIN);
> hb = AG_HBoxNew(gui, AG_HBOX_EXPAND);
> AG_LabelNewString(gui, 0, "Heyho, let's go");
> // Create the AG_GLView widget.
> glv = AG_GLViewNew(hb, AG_GLVIEW_EXPAND);
> --------------------------------
> 
(Continue reading)

ADI64 | 20 Jul 14:25

Re: Agar seems to compile without OpenGL [win / msys]

Julien Nadeau <vedge@...> writes:

> 
> 
> I doubt these linker errors are specific to OpenGL. You're also getting
> an undefined reference to AG_WidgetParentWindow() which is a standard GUI
> routine. It looks like your header files may be out of sync with the
> installed libraries.
> 

Thanks for your fast reply!

How can I fix my headers if they are wrong?
I built agar like that:

../configure --enable-threads --with-freetype --with-gl
make depend
make
make install

and then I copied the include, lib and bin files from the msys\local\[include |
lib | bin] directory in my own directories used by GCC / CodeBlocks.

Is there anything I missed during the build process?
Or how can I check whether my includes are out of sync with the library?

Thanks for your help,
ADI64
Julien Nadeau | 20 Jul 15:32
Favicon

Re: Agar seems to compile without OpenGL [win / msys]

On Sun, Jul 20, 2008 at 12:25:38PM +0000, ADI64 wrote:
> Julien Nadeau <vedge@...> writes:
> 
> > 
> > 
> > I doubt these linker errors are specific to OpenGL. You're also getting
> > an undefined reference to AG_WidgetParentWindow() which is a standard GUI
> > routine. It looks like your header files may be out of sync with the
> > installed libraries.
> > 
> 
> Thanks for your fast reply!
> 
> How can I fix my headers if they are wrong?
> I built agar like that:
> 
> .../configure --enable-threads --with-freetype --with-gl
> make depend
> make
> make install
> 
> and then I copied the include, lib and bin files from the msys\local\[include |
> lib | bin] directory in my own directories used by GCC / CodeBlocks.
> 
> Is there anything I missed during the build process?
> Or how can I check whether my includes are out of sync with the library?

Couldn't you mount the directories used by GCC / CodeBlocks directly by
adding them to /etc/fstab? This way you don't have to bother copying files
over and keeping them in sync.
(Continue reading)

ADI64 | 21 Jul 13:53

Re: Agar seems to compile without OpenGL [win / msys]

Julien Nadeau <vedge@...> writes:

> 
> On Sun, Jul 20, 2008 at 12:25:38PM +0000, ADI64 wrote:
> > 
> > Thanks for your fast reply!
> > 
> > How can I fix my headers if they are wrong?
> > I built agar like that:
> > 
> > .../configure --enable-threads --with-freetype --with-gl
> > make depend
> > make
> > make install
> > 
> > and then I copied the include, lib and bin files from the
> > msys\local\[include | lib | bin] directory in my own directories
> > used by GCC / CodeBlocks.
> > 
> > Is there anything I missed during the build process?
> > Or how can I check whether my includes are out of sync with the library?
> 
> Couldn't you mount the directories used by GCC / CodeBlocks directly by
> adding them to /etc/fstab? This way you don't have to bother copying files
> over and keeping them in sync.
> 

Well as in the first post said I use windows and not linux.
My friend, who is developing this project with me, uses linux and it compiles,
links and works without problems at him.
(Continue reading)

Julien Nadeau | 21 Jul 14:42
Favicon

Re: Agar seems to compile without OpenGL [win / msys]

On Mon, Jul 21, 2008 at 11:53:19AM +0000, ADI64 wrote:
> > On Sun, Jul 20, 2008 at 12:25:38PM +0000, ADI64 wrote:
> > > 
> > > Thanks for your fast reply!
> > > 
> > > How can I fix my headers if they are wrong?
> > > I built agar like that:
> > > 
> > > .../configure --enable-threads --with-freetype --with-gl
> > > make depend
> > > make
> > > make install
> > > 
> > > and then I copied the include, lib and bin files from the
> > > msys\local\[include | lib | bin] directory in my own directories
> > > used by GCC / CodeBlocks.
> > > 
> > > Is there anything I missed during the build process?
> > > Or how can I check whether my includes are out of sync with the library?
> > 
> > Couldn't you mount the directories used by GCC / CodeBlocks directly by
> > adding them to /etc/fstab? This way you don't have to bother copying files
> > over and keeping them in sync.
> > 
> 
> Well as in the first post said I use windows and not linux.

I meant the "/etc/fstab" inside msys. It allows you to add entries such that
arbitrary directories are mapped to specific locations in your msys tree,
saving you the trouble of copying files from your msys installation to your
(Continue reading)

ADI64 | 21 Jul 19:52

Re: Agar seems to compile without OpenGL [win / msys]

Julien Nadeau <vedge@...> writes:

> I meant the "/etc/fstab" inside msys. It allows you to add entries such that
> arbitrary directories are mapped to specific locations in your msys tree,
> saving you the trouble of copying files from your msys installation to your
> CodeBlocks directories.
> 
> [...]
> 
> I suggest you remove your currently installed Agar libs/include, recompile,
> and reinstall them.
> 

Yeah that combination did the trick!
Thanks very much for your help and your patience! :D

Gmane