Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th May 2009
shep shep is offline
Rc.conf Instructor
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,171
Default Howto Compile in OpenBSD 4.5

I've installed 4.5 to an old Via C3 machine and want to compile the LXDE destop for the system. I have compiled software in Slackware but recently have been using *.SlackBuild build scripts. I looked in the OBSD FAQ and compile steps were mainly centered on the kernel and core apps.

My questions are
1) Do I need to add any additional packages/configurations to compile in OBSD?

2) Any ./configure conventions I need to be aware of in OBSD? I am assuming all builds go in /usr/local/.

3) I would like to try using OBSD build scripts. Is there a generic build script and where might it be found?

Thanks in advance

Last edited by shep; 7th May 2009 at 11:17 PM.
Reply With Quote
  #2   (View Single Post)  
Old 7th May 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
Join Date: May 2008
Location: USA
Posts: 6,354

Welcome to OpenBSD, Shep.

Answer to #1: At minimum, you'll want the system compiler, that's the comp45.tgz file set. If you did not install it when you installed OpenBSD, see FAQ 4.10 for your options. Some applications may require different compilers or assemblers, perhaps a different version of gcc than the "system compiler." If so, these are available as 3rd party packages.

Answer for #2 and #3: There are many considerations for "porting" applications to OpenBSD, and most, if not all, are covered in the several porting guides and checklists associated with FAQ 15. Read it ... all of it ... and read the porting guide and checklist, and review several ports to get a feel for the effort involved.
Reply With Quote
  #3   (View Single Post)  
Old 7th May 2009
shep shep is offline
Rc.conf Instructor
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,171

Thanks Jggimi.

I looked over the available packages for 4.5 and saw that several packages that are normally included in the LXDE desktop were available (openbox, pcmanfm, gpicview and lxrandr). I will install those packages with pkg_add before attempting to compile the remaining components.

The sourceforge LXDE site indicates that most of the apps will stand alone so it should not be as daunting as building a gnome or kde desktop. I'll look at some the Makefiles in ports.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: mounting an USB device as normal non-root user in OpenBSD J65nko Guides 6 20th May 2017 12:03 PM
Can't compile gcc-4.3.3_20090101 troberts FreeBSD Ports and Packages 7 12th January 2009 10:30 PM
gio-fam-backend will not compile map7 FreeBSD Ports and Packages 0 2nd July 2008 01:59 AM
How come gnome2 won't compile? Damien787 FreeBSD Ports and Packages 10 16th June 2008 05:20 PM
Why wont this compile? Johnny2Bad FreeBSD General 10 19th May 2008 11:30 PM

All times are GMT. The time now is 03:03 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick