Home » Community » Newbie corner » How to build FREBSD *.so in Windows?
How to build FREBSD *.so in Windows? [message #45969] |
Mon, 01 February 2016 14:10  |
figufigu
Messages: 3 Registered: February 2016
|
Junior Member |
|
|
Hi, All!
I have an *.so sources and succefully built it on Win32(windows 8.1)
So, how I can build a FreeBSD version of library(*.so)?
Should I use a some flags and where?
Should I move sources to the FreeBSD and build there?
|
|
|
Re: How to build FREBSD *.so in Windows? [message #45972 is a reply to message #45969] |
Tue, 02 February 2016 14:53   |
Mindtraveller
Messages: 917 Registered: August 2007 Location: Russia, Moscow rgn.
|
Experienced Contributor |

|
|
Actually I see no point in creating .so version outside the environment where you will use it. Mostly because compiled .so is very dependant on:
1) actual libraries and paths in your environment
2) actual CPU you have (if you want optimized code, of course).
If you manage to build your .so library in Windows, it will likely fail to find some dependencies in actual FreeBSD environment.
That is why the best practice I can think of is to 'export' sources + Makefile into your production environment and compile it inside your environment.
In U++ IDE please click Build menu and then select Output mode... option. At the bottom of dialog you will see 'Export project'. Just click 'Used' and U++ IDE will create standalone distribution of your project sources including U++ packages used. The directory where distribution is exported to, may be copied to the target FreeBSD system. Calling 'make' will start build process resulting './out_' direcory containing built files (.so or binary).
[Updated on: Tue, 02 February 2016 14:54] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 22:13:56 CEST 2025
Total time taken to generate the page: 0.01046 seconds
|