HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 
 

 Tip for successful build on Linux

View previous topic View next topic Go down 
AuthorMessage
acksys
Guest



PostSubject: Tip for successful build on Linux   Sun Dec 12, 2010 12:06 pm

Hello, I successfully built for GL/Linux yesterday. I also encountered the error reported in the post "Bug Report and CMake":

Hmm links don't seem to be working. The URL for the post in question is h**p://spark.forum0.net/evolution-en-f1/bug-report-and-cmake-t87.htm

I also had to make this change in /include/RenderingAPIs/OpenGL/SPK_GLExtHandler.h:

Code:

   inline void* GLExtHandler::glGetProcAddress(const char* name)
   {
#if defined(WIN32) || defined(_WIN32)
      return (void*)wglGetProcAddress(name);         // Windows
#elif defined(__APPLE__) || defined(macintosh)
      return (void*)SPK_NSGLGetProcAddress(name);      // MAC
#elif defined(linux) || defined(__linux)
      return (void*)glXGetProcAddressARB((unsigned char *) name);      // Linux
      //return (void*)glXGetProcAddressARB(name);
#else
      return (void*)NULL;
#endif
   }

I was able to build the system and successfully run the Fire Demo yesterday. I am new to OOP and particularly to particle engines so SPARK is an incredible resource for me. Thank you Smile
Back to top Go down
Juff
Developer


Messages : 539
Date d'inscription : 2009-07-14
Age : 34

PostSubject: Re: Tip for successful build on Linux   Sun Dec 12, 2010 6:49 pm

Thank you.

I dont compile on linux myself, so I count on user's feedbacks to improve the portability on the lib on this environment. I will make this little fix you reported on the next version of the spark.

Thanks again
Back to top Go down
View user profile http://spark.developpez.com
mieko.
Guest



PostSubject: Re: Tip for successful build on Linux   Sun Jan 09, 2011 11:04 pm

Depending on the GL headers, I think the most portable way to get this to work consistently is:

When including:

Code:

#if defined(linux) || defined(__linux)
#define GLX_GLXEXT_PROTOTYPES
#include <GL/glx.h>
#endif

Then, in the call:

Code:

return (void*)glXGetProcAddressARB((GLubyte*) name);

For example, my recent Ubuntu install doesn't expose the older ARB version without this macro.
Back to top Go down
Juff
Developer


Messages : 539
Date d'inscription : 2009-07-14
Age : 34

PostSubject: Re: Tip for successful build on Linux   Tue Jan 11, 2011 3:50 pm

Thanks,

I have updated the svn to improve linux compatibility
Back to top Go down
View user profile http://spark.developpez.com
Sponsored content




PostSubject: Re: Tip for successful build on Linux   Today at 10:09 am

Back to top Go down
 
Tip for successful build on Linux
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Linux Based Stable Solution for VoIP Business!!
» Linux based VoIP Switch with Integrated Billing only $2/port
» How to install Selenium RC on Linux fedora
» How to use ANT build to create HTML reports in Eclispe
» Issue in running generated build using Selenium Webdriver?

Permissions in this forum:You cannot reply to topics in this forum
 :: English Forum :: Evolution (en)-
Jump to: