CMake Build On Linux

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

CMake Build On Linux

Postby MeltingPlastic » Thu Dec 27, 2018 2:33 pm

I am trying to get the latest sdk to compile on linux using cmake.


I keep getting a build error related to using __declspec (dllimport) which I guess makes sense due to GCC not officially supporting it.

How can this be fixed? I've attached a picture:
https://drive.google.com/open?id=1F4co8Xqb4pn-y88BJS_2_Zo8BWt6hJKM

I just did a fresh clone ran cmake with defaults.
MeltingPlastic
 
Posts: 237
Joined: Fri Feb 07, 2014 11:30 pm

Re: CMake Build On Linux

Postby Julio Jerez » Thu Dec 27, 2018 2:42 pm

How was it working before, I had in the pass made linux build, but I do not remember if I made static or dynamic libraries, but I am pretty sure that there should be some command line option or something that allows for those declaration which seem very commo.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: CMake Build On Linux

Postby MeltingPlastic » Thu Dec 27, 2018 3:15 pm

Ok I started a Pull request: https://github.com/MADEAPPS/newton-dynamics/pull/137

These changes make demosandbox build for me with NEWTON_BUILD_SHARED_LIBS both on and off.

I am going off of suggestions from this post: https://stackoverflow.com/questions/2164827/explicitly-exporting-shared-library-functions-in-linux

However now there are runtime crashes right now that I think is just due to your animation work.
MeltingPlastic
 
Posts: 237
Joined: Fri Feb 07, 2014 11:30 pm

Re: CMake Build On Linux

Postby Julio Jerez » Thu Dec 27, 2018 3:22 pm

I applied the merge, thanks

on this
However now there are runtime crashes right now that I think is just due to your animation work.
where does I crash?
can you sync and try again?
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: CMake Build On Linux

Postby MeltingPlastic » Thu Dec 27, 2018 7:16 pm

MeltingPlastic
 
Posts: 237
Joined: Fri Feb 07, 2014 11:30 pm

Re: CMake Build On Linux

Postby Julio Jerez » Thu Dec 27, 2018 8:31 pm

ha, the first one, I think is a windows only thing, or at least I do no knwo what to set that pointe to in Linux, the docs does not say anything, I set to this.
Code: Select all
#ifdef _MSC_VER
   io.ImeWindowHandle = glfwGetWin32Window(m_mainFrame);
#else
   dTrace (("no sure what to set this to for non windows systems\n"))
//   dAssert (0);
#endif


the second one I think is a case sensitive file name, I made to be all lower case, please sync and try again.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 2 guests

cron