DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 4th June 2017
vashni vashni is offline
New User
 
Join Date: May 2017
Posts: 2
Default Codelite build errors

Hi guys,

I’ve been using Codelite for a time now (on my linux hdd) and trying to get it working on a fresh OpenBSD install (6.1). I've already sorted a few build errors out but this one I can’t get past.

The make step is failing due to an unrecognized command line option “-std=c++11” error.
A g++ --version shows 4.2, and eg++/egcc is showing 4.9.4. Tried setting both CC and CXX variables but I keep getting the same errors, so obviously I’m doing something wrong somewhere else.

Any ideas?
Reply With Quote
  #2   (View Single Post)  
Old 4th June 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 5,887
Default

Hello, and welcome.

The failure comes from your application's make system selecting gcc 4.2 as the compiler, rather than gcc 4.9; installed with pkg_add as "egcc" to not interfere with the built-in, older gcc that remains part of the OS toolchain (for now) on most archs.

I don't know anything about Codelite or its build tools so I don't have a specific circumvention to recommend.
Reply With Quote
  #3   (View Single Post)  
Old 4th June 2017
LeFrettchen's Avatar
LeFrettchen LeFrettchen is offline
Marveled user
 
Join Date: Aug 2012
Location: Bronvaux, France
Posts: 246
Default

Welcome
__________________
The secret of wisdom is not wisdom itself, it's the road that leads us there.
Reply With Quote
  #4   (View Single Post)  
Old 6th June 2017
vashni vashni is offline
New User
 
Join Date: May 2017
Posts: 2
Default

I'll have to keep looking.
Thanks anyway.
Reply With Quote
  #5   (View Single Post)  
Old 30th June 2017
ibara's Avatar
ibara ibara is offline
vBSDcon 2017 troublemaker
 
Join Date: Jan 2014
Posts: 467
Default

It looks like they're using CMake? Try this:
Code:
$ doas pkg_add cmake ninja
$ git clone https://github.com/eranif/codelite.git
$ cd codelite
$ mkdir -p build
$ cd build
$ cmake -G Ninja -DCMAKE_C_COMPILER=egcc -DCMAKE_CXX_COMPILER=eg++ ..
$ ninja -v
EDIT: Oh, we don't even have wxWidgets-3.0, just wxWidgets-2.8.12. Upstream seems to say that matters.

Last edited by ibara; 30th June 2017 at 09:45 AM. Reason: Add comment about wxWidgets.
Reply With Quote
Reply

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
X session errors darif OpenBSD General 6 2nd August 2016 10:54 AM
pkg_check errors rockworldmi OpenBSD Installation and Upgrading 5 21st October 2015 03:58 PM
dnscrypt-proxy build errors? gkbsd OpenBSD Packages and Ports 7 3rd May 2014 01:12 PM
apache log errors ijk FreeBSD Ports and Packages 4 13th July 2008 03:56 PM
lang/pcc build errors JMJ_coder NetBSD Package System (pkgsrc) 1 17th June 2008 02:00 AM


All times are GMT. The time now is 06:40 PM.


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