DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 18th May 2011
Fingal Fingal is offline
Real Name: Jonathan
New User
 
Join Date: May 2011
Location: Enschede, Nederland
Posts: 5
Default Kicad on NetBSD

Hi,
I am looking to using Kicad on NetBSD_5.1-AMD64.
I have tried both through Linux emulation and source compilation

Linux emulation:
Downloaded the latest binaries from the kicad ftp server
extract the binaries to: /emul/linux/user/local
then for the rest followed the "install guide":
You do must have libc.so.6 (does not work with libc.so.5)
You must be "root".
goto /usr/local
Untar kicad.tgz : tar zxvf kicad.tgz (ou unzip kicad.zip)
(It is possible to unzip kicad.zip: unzip kicad.zip,
and goto /usr/local/kicad/bin and run chmod 755 *)
The main program is /usr/local/kicad/bin/kicad
When I try to launch the program I get:
Quote:
# /emul/linux/usr/local/kicad/bin/kicad
sh: /emul/linux/usr/local/kicad/bin/kicad: not found
I suppose it is due to the fact that the binaries *must* be extracted to /usr/local, and the /emul/linux gets in the way.


Compilation of the latest sources:
I installed all the dependencies listed (either from pkgsrc or from source)
Run cmake -> ok
Run make or gmake and I get the following error(s):

Quote:
In file included from /home/jonathan/pgms/kicad_sources/build/config.h:35,
from /home/jonathan/pgms/kicad_sources/include/fctsys.h:70,
from /home/jonathan/pgms/kicad_sources/common/dialogs/dialog_get_component.cpp:5:

/usr/include/iso646.h:11:9: error: "and" cannot be used as a macro name as it is an operator in C++
/usr/include/iso646.h:12:9: error: "and_eq" cannot be used as a macro name as it is an operator in C++

...
Could anyone give me a hand one way or the other?

Thanks
Reply With Quote
  #2   (View Single Post)  
Old 19th May 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

There doesn't appear to be in pkgsrc, so nobody has ported it to NetBSD.

Both FreeBSD and OpenBSD have a port of this, see cad/kicad and cad/kicad.
Reply With Quote
  #3   (View Single Post)  
Old 19th May 2011
Fingal Fingal is offline
Real Name: Jonathan
New User
 
Join Date: May 2011
Location: Enschede, Nederland
Posts: 5
Default

Thanks,
I had missed the update to the 2010 version.

I am currently trying to compile a kicad pkg I created from the FreeBSD ports with port2pkg.
And am trying to solve the errors as they occur.
I will report back with my results.

Does anyone have any recommendations/guidelines/links to go about converting BSD ports for use with NetBSD?

Thanks
Reply With Quote
  #4   (View Single Post)  
Old 19th May 2011
Fingal Fingal is offline
Real Name: Jonathan
New User
 
Join Date: May 2011
Location: Enschede, Nederland
Posts: 5
Default

Current error:

Quote:
===> Cleaning for boost-libs-1.46.1
ERROR: [depends.mk] A package matching ``boost_thread.4'' should
ERROR: be installed, but one cannot be found. Perhaps there is a
ERROR: stale work directory for ../../devel/boost-libs?
*** Error code 1
I suppose this was to do with the line in the Makefile:
Quote:
DEPENDS= boost_thread.4:../../devel/boost-libs
As looking in /usr/pkgsrc/devel/boost-libs/PLIST, I can find:
Quote:
lib/libboost_thread.a
lib/libboost_thread.so
lib/libboost_thread.so.${BOOST_VERSION}
So I thought to change the entry to:
Quote:
DEPENDS= libboost_thread.4:../../devel/boost-libs
Then
Quote:
DEPENDS= lib/libboost_thread.4:../../devel/boost-libs
But I still get the same error message (with libboost or lib/libboost instead of boost...

Any ideas?

I'll get back to it this week-end.
Reply With Quote
  #5   (View Single Post)  
Old 19th May 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Unfortunately I suspect you'll recieve little support here, there aren't that many NetBSD users.

As I said, both FreeBSD and OpenBSD support this.. if it is really important to you, there is other CAD software.
Reply With Quote
  #6   (View Single Post)  
Old 20th May 2011
Pjoter's Avatar
Pjoter Pjoter is offline
Shell Scout
 
Join Date: Sep 2008
Posts: 92
Default

There is at least one past user of NetBSD

Please install boostlibs from pkg_add not pkgsrc (I am thinking that you use current pkgsrc snapshot and therefore you get errors).

ftp://ftp.netbsd.org/pub/NetBSD/pack...ibs-1.46.1.tgz

You can add above ftp://ftp.netbsd.org/pub/NetBSD/packages/5.1/amd64/All as PKG_PATH variable (or use any other mirror).

Then you can compile Kicad from sources- if I was you I would attempt to create a port and put in in pkgsrc WIP repository.

This is all- if you don't have a time just install OpenBSD or FreeBSD (FreeBSD would suite you much better).

Good luck!

Pjoter.
Reply With Quote
  #7   (View Single Post)  
Old 20th May 2011
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by Pjoter View Post
There is at least one past user of NetBSD
I am sorry to hear that. The forum member SoXXX is an active NetBSD users. He is usually at least lurking on this list. Fortunately looks like he might have took an early Summer vocation.


Quote:
Originally Posted by Pjoter View Post
(FreeBSD would suite you much better).
Where did this nonsense come from? Are you working now as a Clairvoyant for the Polish secret service?
Reply With Quote
  #8   (View Single Post)  
Old 20th May 2011
Fingal Fingal is offline
Real Name: Jonathan
New User
 
Join Date: May 2011
Location: Enschede, Nederland
Posts: 5
Default

Thanks Pjoter
I'll have a go with using pkg_add.
I was using pkgsrc-2011Q1.tgz...

My goal is to create a port (I've got to learn with something).
Thought I think it will not be painless^^
I have plenty of time, as my current project is being done on windows using Eagle CAD.
But I want to migrate fully to NetBSD over the summer.

Has anyone any good reading on the subject of port creation from linux source?
(I'll have a read of the pkgsrc manual over the next few days/weeks)

Thanks for your help in any case!

Fingal.
Reply With Quote
  #9   (View Single Post)  
Old 21st May 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

If you can't stay on topic, start a new thread. In case you don't know what the original topic was, the OP was asking about building Kicad on NetBSD.
Reply With Quote
Old 21st May 2011
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by ocicat View Post
If you can't stay on topic, start a new thread.
Ocicat,

Could you please fork the thread from the point when we started discussing Java on NetBSD? We are probably going to exchange a few more messages about Java on OpenBSD before he has the working copy of Java plug-in for the browser.

Thanks,
Oko
Reply With Quote
Old 21st May 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by Oko View Post
We are probably going to exchange a few more messages about Java on OpenBSD...
Discussing OpenBSD here in the NetBSD section is inappropriate. If you wish to discuss OpenBSD, do so in the OpenBSD section.
Reply With Quote
Old 22nd May 2011
Fingal Fingal is offline
Real Name: Jonathan
New User
 
Join Date: May 2011
Location: Enschede, Nederland
Posts: 5
Default

Hi.
Back to the original subject: Kicad

The gods have smiled upon my endeavors, and I am pleased to say that I have successfully compiled Kicad on NetBSD. \o/
(In any case, it runs. I'll see if it hold up to closer scrutiny over the next few days.)

To do so, I restarted from scratch and followed the pkgsrc manual (ch.10).
I also gathered inspiration from the FreeBSD port and one of the patches provided.
(by the way, the patch was to solve the initial problem I had with the boost library, where I reached a compilation error to do with the C++ macros and, or, xor, ...)

I still have a question though.
Kicad comes in 3 parts:
- the source
- the documentation
- the component libs
Each of these as a separate file to download.
With the first two on the main ftp server and the last through bazar.

Would it be better to:
- create one package for each? (perhaps with a buildlink3.mk for the latter two to include them in the first)
- have everything in one package?
- have one for the source and docs (done by FreeBSD), and maybe one for the libs?

I suppose this is more a philosophical question, but I would be interested to know what your views are.

Thanks again for your help

Jonathan
Reply With Quote
Old 22nd May 2011
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

This is not the question that can be answered on this forum. You have to post your question at pkgsrc@netbsd. Only NetBSD developers can tall you what would be current practice and acceptable solution.
Reply With Quote
Old 24th May 2011
s0xxx's Avatar
s0xxx s0xxx is offline
Package Pilot
 
Join Date: May 2008
Posts: 192
Default

Quote:
Originally Posted by Fingal View Post
I am currently trying to compile a kicad pkg I created from the FreeBSD ports with port2pkg.
And am trying to solve the errors as they occur.
I will report back with my results.

Does anyone have any recommendations/guidelines/links to go about converting BSD ports for use with NetBSD?
Probably the document is not that new, and is not so comprehensive, but anyway might be helpful in future:

http://www.netbsd.org/docs/kernel/po...eebsd-net.html
__________________
The best way to learn UNIX is to play with it, and the harder you play, the more you learn.
If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD
Reply With Quote
Old 7th December 2011
faysal76 faysal76 is offline
Real Name: faisal shahzad
New User
 
Join Date: Mar 2010
Posts: 4
Default

Hi Jonathan,
please post your compilation details,i was too trying so in 2010 but later i gave up due to my
office problems.Now i am back to NetBSD 5.1
Thanks in advance.
Reply With Quote
Old 7th December 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by faysal76 View Post
please post your compilation details...
fingal has not logged in since May 2011, so don't set your expectations too high.

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
howto compile kicad on netbsd faysal76 General software and network 4 4th March 2010 12:35 PM


All times are GMT. The time now is 05:21 PM.


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