Modbaker Development
Moderator: Developers
hmm, trouble with modbaker under Linux.
Assuming that it is supposed to compile correctly, I think I have some OpenGL problems.
Whole bunch of these: ogl_debug.cpp:623: warning: deprecated conversion from string constant to ‘char*’
And a few undefined variables in scope.
Is this a source problem or a library problem?
Assuming that it is supposed to compile correctly, I think I have some OpenGL problems.
Whole bunch of these: ogl_debug.cpp:623: warning: deprecated conversion from string constant to ‘char*’
And a few undefined variables in scope.
Is this a source problem or a library problem?
Moogirl wrote: [19:47:14] period jokes = not cool
[19:47:23] no wait it's the anus
[19:47:25] wtf
[19:47:46] a cloud cannot have that much blood
-
- Tome Mimic (Module Baker)
- Posts: 176
- Joined: Sat Jan 03, 2009 5:17 pm
- Location: Germany
You can ignore all warnings when compiling (e.g. deprecated conversion from string constant to ‘char*’ ).
The deprecated conversions come from the OpenGL helper functions I copied over from Egoboo to ModBaker (those functions use C strings instead of C++ ones, which give that warning).
Are there undefined variables or are it unused ones?
Unused whouldn't be a problem. But those are just another warning. You have to look for real errors.
Is your compile creating a "modbaker" file? If it does, your compile should be fine!
The deprecated conversions come from the OpenGL helper functions I copied over from Egoboo to ModBaker (those functions use C strings instead of C++ ones, which give that warning).
Are there undefined variables or are it unused ones?
Unused whouldn't be a problem. But those are just another warning. You have to look for real errors.
Is your compile creating a "modbaker" file? If it does, your compile should be fine!
/me is back!
ModBaker development thread | [url=http://modbaker_blog.tobiasgall.de]ModBaker dev blog[/url]
ModBaker development thread | [url=http://modbaker_blog.tobiasgall.de]ModBaker dev blog[/url]
no, I'm getting an error 1.
Haven't worked with compiling enough.
in Several Functions, variables aren't defined, (that's the error message).
These are in ogl_debug.cpp and ogl_extensions.cpp.
Haven't worked with compiling enough.
in Several Functions, variables aren't defined, (that's the error message).
These are in ogl_debug.cpp and ogl_extensions.cpp.
Moogirl wrote: [19:47:14] period jokes = not cool
[19:47:23] no wait it's the anus
[19:47:25] wtf
[19:47:46] a cloud cannot have that much blood
-
- Tome Mimic (Module Baker)
- Posts: 176
- Joined: Sat Jan 03, 2009 5:17 pm
- Location: Germany
Strange, I didn't change anything at those files.
Could you please post two or three example error messages (with the name of the missing variable)?
Could you please post two or three example error messages (with the name of the missing variable)?
/me is back!
ModBaker development thread | [url=http://modbaker_blog.tobiasgall.de]ModBaker dev blog[/url]
ModBaker development thread | [url=http://modbaker_blog.tobiasgall.de]ModBaker dev blog[/url]
Code: Select all
ogl_extensions.cpp: In function ‘void GetOGLScreen_Info(glCaps_t*)’:
ogl_extensions.cpp:16: error: ‘memset’ was not declared in this scope
ogl_extensions.cpp:75: error: ‘strstr’ was not declared in this scope
ogl_debug.cpp: In function ‘void gl_grab_state(ogl_state_t*)’:
ogl_debug.cpp:315: error: ‘memset’ was not declared in this scope
ogl_debug.cpp:316: error: ‘memcpy’ was not declared in this scope
ogl_debug.cpp: In function ‘void gl_comp_state(ogl_state_comp_t*, ogl_state_t*, ogl_state_t*)’:
ogl_debug.cpp:371: error: ‘memcmp’ was not declared in this scope
Moogirl wrote: [19:47:14] period jokes = not cool
[19:47:23] no wait it's the anus
[19:47:25] wtf
[19:47:46] a cloud cannot have that much blood
-
- Tome Mimic (Module Baker)
- Posts: 176
- Joined: Sat Jan 03, 2009 5:17 pm
- Location: Germany
Please try adding "#include <string>" at the beginning of those files.
/me is back!
ModBaker development thread | [url=http://modbaker_blog.tobiasgall.de]ModBaker dev blog[/url]
ModBaker development thread | [url=http://modbaker_blog.tobiasgall.de]ModBaker dev blog[/url]
-
- Tome Mimic (Module Baker)
- Posts: 176
- Joined: Sat Jan 03, 2009 5:17 pm
- Location: Germany
Argh, wrong include xD
Please try "#include <cstring>" (memset etc. are C functions, not C++)
Please try "#include <cstring>" (memset etc. are C functions, not C++)
/me is back!
ModBaker development thread | [url=http://modbaker_blog.tobiasgall.de]ModBaker dev blog[/url]
ModBaker development thread | [url=http://modbaker_blog.tobiasgall.de]ModBaker dev blog[/url]
That fixed that, but now my GL development libraries are kind of weird.
Several of these: /usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libGL.so: undefined reference to `_nv000025gl'
Several of these: /usr/lib/gcc/i586-redhat-linux/4.4.1/../../../libGL.so: undefined reference to `_nv000025gl'
Moogirl wrote: [19:47:14] period jokes = not cool
[19:47:23] no wait it's the anus
[19:47:25] wtf
[19:47:46] a cloud cannot have that much blood
-
- Tome Mimic (Module Baker)
- Posts: 176
- Joined: Sat Jan 03, 2009 5:17 pm
- Location: Germany
Hm, I've never seen that error message before.
But on another forum, one solved a very similar problem when specifying the complete path to the .so file in the Makefile:
But on another forum, one solved a very similar problem when specifying the complete path to the .so file in the Makefile:
W000t I guess I fixed it, it is probably lib32/lib64 issue, libGLcore can't find libGL because libGLcore is symlink.
I solved it with adding exact location of libGL.so (nvidia's) to libraries ...
thx for help
/me is back!
ModBaker development thread | [url=http://modbaker_blog.tobiasgall.de]ModBaker dev blog[/url]
ModBaker development thread | [url=http://modbaker_blog.tobiasgall.de]ModBaker dev blog[/url]
-
- Tome Mimic (Module Baker)
- Posts: 176
- Joined: Sat Jan 03, 2009 5:17 pm
- Location: Germany
Yeah, the LDFRAGS variable is corrent.
Add it by adding the following to that line:
Make sure you add just the path to the .so file (without "libGL.so" in it).
Add it by adding the following to that line:
Code: Select all
-I /path/to/sofile/lib/
/me is back!
ModBaker development thread | [url=http://modbaker_blog.tobiasgall.de]ModBaker dev blog[/url]
ModBaker development thread | [url=http://modbaker_blog.tobiasgall.de]ModBaker dev blog[/url]
-
- Tome Mimic (Module Baker)
- Posts: 176
- Joined: Sat Jan 03, 2009 5:17 pm
- Location: Germany
:-/Seanbot wrote:Still having problems.
Have you tried to reinstall the OpenGL development libraries?
/me is back!
ModBaker development thread | [url=http://modbaker_blog.tobiasgall.de]ModBaker dev blog[/url]
ModBaker development thread | [url=http://modbaker_blog.tobiasgall.de]ModBaker dev blog[/url]