Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » KiCAD
  • » [Kicad-developers] Compiling probems [RSS Feed]

#1 Dec. 28, 2010 03:42:49

M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Kicad-developers] Compiling probems


since dsnlexer introduced, the same problem appears:In file included from /home/martin/kicad/include/richio.h:41,from /home/martin/kicad/include/dsnlexer.h:34,
from /home/martin/kicad/common/dsnlexer.cpp:33:/home/martin/kicad/include/kicad_exceptions.h:54: error:‘IO_ERROR::IO_ERROR(const char*)’ cannot be overloaded/home/martin/kicad/include/kicad_exceptions.h:44: error: with‘IO_ERROR::IO_ERROR(const wxChar*)’make: *** Error 1
make: *** Error 2
make: *** Error 2


greetings
Martin Kratoska

_______________________________________________
Mailing list:https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.net
Unsubscribe :https://launchpad.net/~kicad-developersMore help :https://help.launchpad.net/ListHelp

Offline

#2 Dec. 28, 2010 04:18:23

Dick H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Kicad-developers] Compiling probems


On 12/27/2010 09:42 PM, Martin wrote:
> since dsnlexer introduced, the same problem appears:
>
> In file included from /home/martin/kicad/include/richio.h:41,
>
> from /home/martin/kicad/include/dsnlexer.h:34,
> from /home/martin/kicad/common/dsnlexer.cpp:33:
> /home/martin/kicad/include/kicad_exceptions.h:54: error:
> ‘IO_ERROR::IO_ERROR(const char*)’ cannot be overloaded
> /home/martin/kicad/include/kicad_exceptions.h:44: error: with
> ‘IO_ERROR::IO_ERROR(const wxChar*)’
> make: *** Error 1
> make: *** Error 2
> make: *** Error 2
>
>
> greetings
> Martin Kratoska

I'll fix it in a few minutes.

Dick


_______________________________________________
Mailing list:https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.net
Unsubscribe :https://launchpad.net/~kicad-developersMore help :https://help.launchpad.net/ListHelp

Offline

#3 Dec. 28, 2010 05:39:09

Dick H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Kicad-developers] Compiling probems


On 12/27/2010 09:42 PM, Martin wrote:
> since dsnlexer introduced, the same problem appears:
>
> In file included from /home/martin/kicad/include/richio.h:41,
>
> from /home/martin/kicad/include/dsnlexer.h:34,
> from /home/martin/kicad/common/dsnlexer.cpp:33:
> /home/martin/kicad/include/kicad_exceptions.h:54: error:
> ‘IO_ERROR::IO_ERROR(const char*)’ cannot be overloaded
> /home/martin/kicad/include/kicad_exceptions.h:44: error: with
> ‘IO_ERROR::IO_ERROR(const wxChar*)’
> make: *** Error 1
> make: *** Error 2
> make: *** Error 2

branch testing is now ready for testing.

Sorry about that. I do not regularly test the 8 bit character (utf8) build.

So I appreciate the report, and the testing.

Dick


_______________________________________________
Mailing list:https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.net
Unsubscribe :https://launchpad.net/~kicad-developersMore help :https://help.launchpad.net/ListHelp

Offline

#4 Dec. 28, 2010 08:25:34

M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Kicad-developers] Compiling probems


dsnlexer is OK now.
There are some other problems...

(build 2690 on PCLinuxOS 2010)/home/martin/kicad/common/richio.cpp: In member function ‘virtualunsigned int FILE_LINE_READER::ReadLine()’:/home/martin/kicad/common/richio.cpp:116: error: call of overloaded‘IO_ERROR(const wxChar*)’ is ambiguous/home/martin/kicad/include/kicad_exceptions.h:50: note: candidates are:IO_ERROR::IO_ERROR(const std::string&)/home/martin/kicad/include/kicad_exceptions.h:45: note:IO_ERROR::IO_ERROR(const wxString&)/home/martin/kicad/common/richio.cpp: In member function ‘virtualunsigned int STRING_LINE_READER::ReadLine()’:/home/martin/kicad/common/richio.cpp:167: error: call of overloaded‘IO_ERROR(const wxChar*)’ is ambiguous/home/martin/kicad/include/kicad_exceptions.h:50: note: candidates are:IO_ERROR::IO_ERROR(const std::string&)/home/martin/kicad/include/kicad_exceptions.h:45: note:IO_ERROR::IO_ERROR(const wxString&)/home/martin/kicad/common/richio.cpp: In member function ‘virtual constchar* OUTPUTFORMATTER::Quoted(std::string*)’:/home/martin/kicad/common/richio.cpp:306: error: call of overloaded‘IO_ERROR(const wxChar*)’ is ambiguous/home/martin/kicad/include/kicad_exceptions.h:50: note: candidates are:IO_ERROR::IO_ERROR(const std::string&)/home/martin/kicad/include/kicad_exceptions.h:45: note:IO_ERROR::IO_ERROR(const wxString&)/home/martin/kicad/common/richio.cpp: In member function ‘virtual voidSTREAM_OUTPUTFORMATTER::write(const char*, int)’:/home/martin/kicad/common/richio.cpp:364: error: call of overloaded‘IO_ERROR(const wxChar*)’ is ambiguous/home/martin/kicad/include/kicad_exceptions.h:50: note: candidates are:IO_ERROR::IO_ERROR(const std::string&)/home/martin/kicad/include/kicad_exceptions.h:45: note:IO_ERROR::IO_ERROR(const wxString&)make: *** Error 1
make: *** Error 2
make: *** Error 2

greetings

Martin Kratoska

_______________________________________________
Mailing list:https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.net
Unsubscribe :https://launchpad.net/~kicad-developersMore help :https://help.launchpad.net/ListHelp

Offline

#5 Dec. 28, 2010 10:27:33

Fabio V.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Kicad-developers] Compiling probems


Just compiled build 2690.. everything completed with success here on
Archlinux current.

On 12/28/2010 09:25 AM, Martin wrote:
> dsnlexer is OK now.
> There are some other problems...
>
> (build 2690 on PCLinuxOS 2010)
>
> /home/martin/kicad/common/richio.cpp: In member function ‘virtual
> unsigned int FILE_LINE_READER::ReadLine()’:
> /home/martin/kicad/common/richio.cpp:116: error: call of overloaded
> ‘IO_ERROR(const wxChar*)’ is ambiguous
> /home/martin/kicad/include/kicad_exceptions.h:50: note: candidates
> are: IO_ERROR::IO_ERROR(const std::string&)
> /home/martin/kicad/include/kicad_exceptions.h:45: note:
> IO_ERROR::IO_ERROR(const wxString&)
> /home/martin/kicad/common/richio.cpp: In member function ‘virtual
> unsigned int STRING_LINE_READER::ReadLine()’:
> /home/martin/kicad/common/richio.cpp:167: error: call of overloaded
> ‘IO_ERROR(const wxChar*)’ is ambiguous
> /home/martin/kicad/include/kicad_exceptions.h:50: note: candidates
> are: IO_ERROR::IO_ERROR(const std::string&)
> /home/martin/kicad/include/kicad_exceptions.h:45: note:
> IO_ERROR::IO_ERROR(const wxString&)
> /home/martin/kicad/common/richio.cpp: In member function ‘virtual
> const char* OUTPUTFORMATTER::Quoted(std::string*)’:
> /home/martin/kicad/common/richio.cpp:306: error: call of overloaded
> ‘IO_ERROR(const wxChar*)’ is ambiguous
> /home/martin/kicad/include/kicad_exceptions.h:50: note: candidates
> are: IO_ERROR::IO_ERROR(const std::string&)
> /home/martin/kicad/include/kicad_exceptions.h:45: note:
> IO_ERROR::IO_ERROR(const wxString&)
> /home/martin/kicad/common/richio.cpp: In member function ‘virtual void
> STREAM_OUTPUTFORMATTER::write(const char*, int)’:
> /home/martin/kicad/common/richio.cpp:364: error: call of overloaded
> ‘IO_ERROR(const wxChar*)’ is ambiguous
> /home/martin/kicad/include/kicad_exceptions.h:50: note: candidates
> are: IO_ERROR::IO_ERROR(const std::string&)
> /home/martin/kicad/include/kicad_exceptions.h:45: note:
> IO_ERROR::IO_ERROR(const wxString&)
> make: *** Error 1
> make: *** Error 2
> make: *** Error 2
>
> greetings
>
> Martin Kratoska
>
> _______________________________________________
> Mailing list:https://launchpad.net/~kicad-developers> Post to : kicad-develop***@*ists.launchpad.net
> Unsubscribe :https://launchpad.net/~kicad-developers> More help :https://help.launchpad.net/ListHelp_______________________________________________
Mailing list:https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.net
Unsubscribe :https://launchpad.net/~kicad-developersMore help :https://help.launchpad.net/ListHelp

Offline

#6 Dec. 28, 2010 13:57:44

Dick H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Kicad-developers] Compiling probems


On 12/28/2010 02:25 AM, Martin wrote:
> dsnlexer is OK now.
> There are some other problems...
>
> (build 2690 on PCLinuxOS 2010)
>
> /home/martin/kicad/common/richio.cpp: In member function ‘virtual
> unsigned int FILE_LINE_READER::ReadLine()’:
> /home/martin/kicad/common/richio.cpp:116: error: call of overloaded
> ‘IO_ERROR(const wxChar*)’ is ambiguous
> /home/martin/kicad/include/kicad_exceptions.h:50: note: candidates are:
> IO_ERROR::IO_ERROR(const std::string&)
> /home/martin/kicad/include/kicad_exceptions.h:45: note:
> IO_ERROR::IO_ERROR(const wxString&)
> /home/martin/kicad/common/richio.cpp: In member function ‘virtual
> unsigned int STRING_LINE_READER::ReadLine()’:
> /home/martin/kicad/common/richio.cpp:167: error: call of overloaded
> ‘IO_ERROR(const wxChar*)’ is ambiguous
> /home/martin/kicad/include/kicad_exceptions.h:50: note: candidates are:
> IO_ERROR::IO_ERROR(const std::string&)
> /home/martin/kicad/include/kicad_exceptions.h:45: note:
> IO_ERROR::IO_ERROR(const wxString&)
> /home/martin/kicad/common/richio.cpp: In member function ‘virtual const
> char* OUTPUTFORMATTER::Quoted(std::string*)’:
> /home/martin/kicad/common/richio.cpp:306: error: call of overloaded
> ‘IO_ERROR(const wxChar*)’ is ambiguous
> /home/martin/kicad/include/kicad_exceptions.h:50: note: candidates are:
> IO_ERROR::IO_ERROR(const std::string&)
> /home/martin/kicad/include/kicad_exceptions.h:45: note:
> IO_ERROR::IO_ERROR(const wxString&)
> /home/martin/kicad/common/richio.cpp: In member function ‘virtual void
> STREAM_OUTPUTFORMATTER::write(const char*, int)’:
> /home/martin/kicad/common/richio.cpp:364: error: call of overloaded
> ‘IO_ERROR(const wxChar*)’ is ambiguous
> /home/martin/kicad/include/kicad_exceptions.h:50: note: candidates are:
> IO_ERROR::IO_ERROR(const std::string&)
> /home/martin/kicad/include/kicad_exceptions.h:45: note:
> IO_ERROR::IO_ERROR(const wxString&)
> make: *** Error 1
> make: *** Error 2
> make: *** Error 2
>
> greetings
>
> Martin Kratoska

Martin,

Either your compiler is at a different version than mine, or you have a
different wxWidgets version or character type (i.e. string type).

1) Please let me know what

$ wx-config --libs

says. For example if I run a version of wx-config against a wxWidgets
compiled with --disable-unicode, I get:

$ /opt/wx2.8-utf8/bin/wx-config --libs

-L/opt/wx2.8-utf8//lib -pthread -lwx_gtk2_xrc-2.9 -lwx_gtk2_html-2.9
-lwx_gtk2_qa-2.9 -lwx_gtk2_adv-2.9 -lwx_gtk2_core-2.9 -lwx_base_xml-2.9
-lwx_base_net-2.9 -lwx_base-2.9



2) Try the attached patch.

If it works, you can run with this patch for a few days.

The testing branch is going to be very dynamic for the next little bit (~2
weeks or so) (but that is a good thing).


Dick--- /svn/kicad/testing.checkout/include/kicad_exceptions.h 2010-12-27 23:36:14.000000000 -0600
+++ include/kicad_exceptions.h 2010-12-28 07:26:49.000000000 -0600
@@ -42,6 +42,15 @@
{
wxString errorText;

+ /**
+ * Constructor ( const wxChar* )
+ * handles the case where _() is passed as aMsg.
+ */
+ IO_ERROR( const wxChar* aMsg ) :
+ errorText( aMsg )
+ {
+ }
+
IO_ERROR( const wxString& aMsg ) :
errorText( aMsg )
{_______________________________________________
Mailing list:https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.net
Unsubscribe :https://launchpad.net/~kicad-developersMore help :https://help.launchpad.net/ListHelp

Offline

#7 Dec. 28, 2010 14:04:21

Dick H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Kicad-developers] Compiling probems


> 1) Please let me know what
>
> $ wx-config --libs

Martin,

wx-config --list

seems better output.


_______________________________________________
Mailing list:https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.net
Unsubscribe :https://launchpad.net/~kicad-developersMore help :https://help.launchpad.net/ListHelp

Offline

#8 Dec. 29, 2010 03:15:02

M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Kicad-developers] Compiling probems


The 2696 works fine!

Just for your info:


wx-config --list

output:

$ wx-config --list

Default config is gtk2-ansi-release-2.8

Default config will be used for output

Alternate matches:
gtk2-unicode-release-2.8

Also available in /usr:
multiarch-i386-linux

-----------
wx-config --libs

output:-pthread -lwx_gtk2_richtext-2.8 -lwx_gtk2_aui-2.8 -lwx_gtk2_xrc-2.8-lwx_gtk2_qa-2.8 -lwx_gtk2_html-2.8 -lwx_gtk2_adv-2.8 -lwx_gtk2_core-2.8-lwx_base_xml-2.8 -lwx_base_net-2.8 -lwx_base-2.8Great work, many thanks! Best season's greetings!

Martin

_______________________________________________
Mailing list:https://launchpad.net/~kicad-developersPost to : kicad-developers@lists.launchpad.net
Unsubscribe :https://launchpad.net/~kicad-developersMore help :https://help.launchpad.net/ListHelp

Offline

  • Root
  • » KiCAD
  • » [Kicad-developers] Compiling probems [RSS Feed]

Board footer

Moderator control

Enjoy the 21st of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support