Author Topic: Linux - Compilation error...  (Read 15167 times)

Offline polygon7

  • Multiple posting newcomer
  • *
  • Posts: 104
    • Home site
Linux - Compilation error...
« on: January 12, 2006, 10:28:20 pm »
Hi,
i have this error when compiling 1731 version on Linux:
Quote
Making all in wxFlatNotebook
make[4]: Entering directory `/home/lukasz/progz/trunk/src/sdk/wxFlatNotebook'
make[4]: *** Brak reguł do zrobienia obiektu `TextDropTarget.h', wymaganego przez `all-am'. Stop.
                     No rules for making 'TextDropTarget.h' object required for 'all-am'. Stop.

make[4]: Leaving directory `/home/lukasz/progz/trunk/src/sdk/wxFlatNotebook'
make[3]: *** [all-recursive] Błąd 1 (Error 1)
make[3]: Leaving directory `/home/lukasz/progz/trunk/src/sdk'
make[2]: *** [all] Błąd 2  (Error 2)
make[2]: Leaving directory `/home/lukasz/progz/trunk/src/sdk'
make[1]: *** [all-recursive] Błąd 1  (Error 1)
make[1]: Leaving directory `/home/lukasz/progz/trunk/src'
make: *** [all-recursive] Błąd 1  (Error 1)
« Last Edit: January 13, 2006, 05:12:00 pm by polygon7 »
best regards,
p7
 Free open source UML modeling tool: ArgoUML

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: v1731(Linux) - Compilation error...
« Reply #1 on: January 12, 2006, 10:48:59 pm »
i have this error when compiling 1731 version on Linux:
Edit the Makefile.am in "[C::B]\sdk\wxFlatNotebook" and change "TextDropTarget.h" to "wxFNBDropTarget.h". This should help.
Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: v1731(Linux) - Compilation error...
« Reply #2 on: January 13, 2006, 11:50:34 am »
In addition:
I've seen that with revision 1736 a fix has been introduced. Unfortunately the changes still have an error. To fix the fix (;-)), in the same file, replace "wxFNBDropTarget.h.h" with "wxFNBDropTarget.h". Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline polygon7

  • Multiple posting newcomer
  • *
  • Posts: 104
    • Home site
Re: Linux - Compilation error...
« Reply #3 on: January 13, 2006, 05:13:07 pm »
Hi,
another compilation error on Linux, C::B v1748:
Quote
bindings/sc_wxstring.cpp: In function `char* StringCharAt(unsigned int,
   scWxString&)':
bindings/sc_wxstring.cpp:232: error: `_C' undeclared (first use this function)
bindings/sc_wxstring.cpp:232: error: (Each undeclared identifier is reported
   only once for each function it appears in.)
bindings/sc_wxstring.cpp: In function `scWxString* StringFactory(unsigned int,
   const char*)':
bindings/sc_wxstring.cpp:259: error: `_U' undeclared (first use this function)
make[4]: *** [sc_wxstring.lo] Błąd 1
make[4]: Leaving directory `/home/lukasz/progz/trunk/src/sdk/as'
make[3]: *** [all-recursive] Błąd 1
make[3]: Leaving directory `/home/lukasz/progz/trunk/src/sdk'
make[2]: *** [all] Błąd 2
make[2]: Leaving directory `/home/lukasz/progz/trunk/src/sdk'
make[1]: *** [all-recursive] Błąd 1
make[1]: Leaving directory `/home/lukasz/progz/trunk/src'
make: *** [all-recursive] Błąd 1
best regards,
p7
 Free open source UML modeling tool: ArgoUML

Offline polygon7

  • Multiple posting newcomer
  • *
  • Posts: 104
    • Home site
Re: Linux - Compilation error...
« Reply #4 on: January 13, 2006, 05:44:20 pm »
In addition:
I've seen that with revision 1736 a fix has been introduced. Unfortunately the changes still have an error. To fix the fix (;-)), in the same file, replace "wxFNBDropTarget.h.h" with "wxFNBDropTarget.h". Morten.
Thanks, i use your first fix and when i try to compile C::B i had some error (i dont remember now). Today i downloaded new SVN version (1748), and i have different error with sc_wxstring (it's in my previous post).
best regards,
p7
 Free open source UML modeling tool: ArgoUML

Offline polygon7

  • Multiple posting newcomer
  • *
  • Posts: 104
    • Home site
Re: Linux - Compilation error...
« Reply #5 on: January 13, 2006, 06:33:39 pm »
Another error in version 1749:
Quote
In file included from editorconfigurationdlg.h:6,
                 from editorconfigurationdlg.cpp:39:
editormanager.h:40: error: syntax error before `<' token
editormanager.h:44: error: syntax error before `public'
editormanager.h: In function `wxFlatNotebook* GetNotebook()':
editormanager.h:47: error: `m_pNotebook' undeclared (first use this function)
editormanager.h:47: error: (Each undeclared identifier is reported only once
   for each function it appears in.)
editormanager.h: In function `AutoCompleteMap& GetAutoCompleteMap()':
editormanager.h:52: error: `m_AutoCompleteMap' undeclared (first use this
   function)
editormanager.h: In function `EditorColorSet* GetColorSet()':
editormanager.h:72: error: invalid use of `this' in non-member function
editormanager.h:72: error: `m_Theme' undeclared (first use this function)
editormanager.h: At global scope:
editormanager.h:126: error: invalid use of undefined type `class EditorManager'
editormanager.h:40: error: forward declaration of `class EditorManager'
editormanager.h:150: error: syntax error before `protected'
editormanager.h:169: error: `AutoCompleteMap m_AutoCompleteMap' used prior to
   declaration
editormanager.h:170: error: syntax error before `private'
editormanager.h:172: error: destructors must be member functions
editormanager.h:176: error: `wxFlatNotebook*m_pNotebook' used prior to
   declaration
editormanager.h:178: error: `EditorColorSet*m_Theme' used prior to declaration
editormanager.h:186: error: `friend' can only be specified inside a class
editormanager.h:189: error: syntax error before `private'
editormanager.h:189: error: virtual outside class declaration
editormanager.h:189: error: non-member function `const wxEventTable*
   GetEventTable()' cannot have `const' method qualifier
editormanager.h:189: error: no matching function for call to `wxEventHashTable
   ::wxEventHashTable()'
/usr/include/wx-2.6/wx/event.h:2298: error: candidates are:
   wxEventHashTable::wxEventHashTable(const wxEventHashTable&)
/usr/include/wx-2.6/wx/event.h:2262: error:
   wxEventHashTable::wxEventHashTable(const wxEventTable&)
editormanager.h:189: error: virtual outside class declaration
editormanager.h:189: error: non-member function `wxEventHashTable&
   GetEventHashTable()' cannot have `const' method qualifier
editormanager.h:190: error: syntax error before `protected'
editormanager.h: In function `bool sanity_check_advanced()':
editormanager.h:190: error: invalid use of `this' in non-member function
editormanager.h:190: error: invalid use of `this' in non-member function
editormanager.h:190: error: `m_sanitycheck_self' undeclared (first use this
   function)
editormanager.h: At global scope:
editormanager.h:190: error: `void*m_sanitycheck_self' used prior to declaration
editormanager.h:192: error: syntax error before `}' token
In file included from editorconfigurationdlg.cpp:41:
manager.h:72: error: syntax error before `*' token
editorconfigurationdlg.cpp: In constructor `
   EditorConfigurationDlg::EditorConfigurationDlg(wxWindow*)':
editorconfigurationdlg.cpp:132: error: `GetEditorManager' undeclared (first use
   this function)
editorconfigurationdlg.cpp:475:10: warning: #warning "wxComboBox::SetString() doesn't work under non-win32 platforms"
editorconfigurationdlg.cpp: In member function `void
   EditorConfigurationDlg::OnOK(wxCommandEvent&)':
editorconfigurationdlg.cpp:697: error: `GetEditorManager' undeclared (first use
   this function)
make[4]: *** [editorconfigurationdlg.lo] Błąd 1
make[4]: Leaving directory `/home/lukasz/progz/trunk/src/sdk'
make[3]: *** [all-recursive] Błąd 1
make[3]: Leaving directory `/home/lukasz/progz/trunk/src/sdk'
make[2]: *** [all] Błąd 2
make[2]: Leaving directory `/home/lukasz/progz/trunk/src/sdk'
make[1]: *** [all-recursive] Błąd 1
make[1]: Leaving directory `/home/lukasz/progz/trunk/src'
make: *** [all-recursive] Błąd 1
best regards,
p7
 Free open source UML modeling tool: ArgoUML

Offline polygon7

  • Multiple posting newcomer
  • *
  • Posts: 104
    • Home site
Re: Linux - Compilation error...
« Reply #6 on: January 13, 2006, 08:39:14 pm »
Version 1750 still has the same error as version 1749.
best regards,
p7
 Free open source UML modeling tool: ArgoUML

Offline polygon7

  • Multiple posting newcomer
  • *
  • Posts: 104
    • Home site
Re: Linux - Compilation error...
« Reply #7 on: January 13, 2006, 10:32:50 pm »
Version 1751. The same error.
Developers do you read this thread? :(
best regards,
p7
 Free open source UML modeling tool: ArgoUML

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Linux - Compilation error...
« Reply #8 on: January 13, 2006, 10:50:10 pm »
Version 1751. The same error.
Developers do you read this thread? :(

What is this? Are you gonna post one message per-commit?
Anyway, the project builds fine for me in windows and in linux (both with PCH on and off). Try a fresh checkout.
Be patient!
This bug will be fixed soon...

Offline polygon7

  • Multiple posting newcomer
  • *
  • Posts: 104
    • Home site
Re: Linux - Compilation error...
« Reply #9 on: January 13, 2006, 11:00:32 pm »
What is this? Are you gonna post one message per-commit?
Please delete it if you dont need it.
Anyway, the project builds fine for me in windows and in linux (both with PCH on and off). Try a fresh checkout.
Do you think i didnt tried fresh chcek out before reporting this bug?
Btw. I use gcc 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8 ), GNU Make 3.80, wxGTK 2.6.2-r1 maybe this helps a little with hunting this bug.
best regards,
p7
 Free open source UML modeling tool: ArgoUML

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Linux - Compilation error...
« Reply #10 on: January 13, 2006, 11:08:44 pm »
Do you think i didnt tried fresh chcek out before reporting this bug?

How would I know what you tried and what you didn't try?  :roll:
You didn't bother to tell us until after 8 posts...

Anyway, try adding #include <manager.h> in all sdk/*manager.h files (except manager.h itself). Tell me if this fixed your problem so I can make the changes in the repository...
Be patient!
This bug will be fixed soon...

Offline polygon7

  • Multiple posting newcomer
  • *
  • Posts: 104
    • Home site
Re: Linux - Compilation error...
« Reply #11 on: January 13, 2006, 11:37:40 pm »
I added
Quote
#include <manager.h>
to configmanager.h, projectmanager.h and toolsmanager.h which fixed problems with managers, i had this problem with cbU2C function:
Quote
globals.cpp: In function `wxChar* cbU2C(const wxString&)':
globals.cpp:471: error: invalid conversion from `const wxChar*' to `wxChar*'
make[4]: *** [globals.lo] Błąd 1
make[4]: Leaving directory `/home/lukasz/progz/trunk/src/sdk'
make[3]: *** [all-recursive] Błąd 1
make[3]: Leaving directory `/home/lukasz/progz/trunk/src/sdk'
make[2]: *** [all] Błąd 2
make[2]: Leaving directory `/home/lukasz/progz/trunk/src/sdk'
make[1]: *** [all-recursive] Błąd 1
make[1]: Leaving directory `/home/lukasz/progz/trunk/src'
make: *** [all-recursive] Błąd 1

i fix it by changing return value in cbU2C (sdk/globals.cpp) from:
Code
return str.mb_str();
to:
Code
return (wxChar*)str.mb_str();
but now, after all changes, i have this error:
Quote
manager.cpp: In static member function `static Manager* Manager::Get(wxFrame*)
   ':
manager.cpp:67: error: `cbThrow' undeclared (first use this function)
manager.cpp:67: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
make[4]: *** [manager.lo] Błąd 1
make[4]: Leaving directory `/home/lukasz/progz/trunk/src/sdk'
make[3]: *** [all-recursive] Błąd 1
make[3]: Leaving directory `/home/lukasz/progz/trunk/src/sdk'
make[2]: *** [all] Błąd 2
make[2]: Leaving directory `/home/lukasz/progz/trunk/src/sdk'
make[1]: *** [all-recursive] Błąd 1
make[1]: Leaving directory `/home/lukasz/progz/trunk/src'
make: *** [all-recursive] Błąd 1
best regards,
p7
 Free open source UML modeling tool: ArgoUML

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Linux - Compilation error...
« Reply #12 on: January 13, 2006, 11:53:39 pm »
OK, we 're getting somewhere now. Add #include "cbexception.h" in sdk/manager.cpp.
Be patient!
This bug will be fixed soon...

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: Linux - Compilation error...
« Reply #13 on: January 14, 2006, 12:00:19 am »
I wonder if updating GCC would help somehow, at least with the compilation problems.

Versions to update gcc and g++ to: 3.4.5 or 4.0.2

Offline polygon7

  • Multiple posting newcomer
  • *
  • Posts: 104
    • Home site
Re: Linux - Compilation error...
« Reply #14 on: January 14, 2006, 12:23:08 am »
OK, we 're getting somewhere now. Add #include "cbexception.h" in sdk/manager.cpp.
Files pluginmanager.h and personalitymanager.h needs #include "manager.h", too.
After adding "cbexception.h" in "manager.cpp". C::B compiled without errors.

Thank You. :D
best regards,
p7
 Free open source UML modeling tool: ArgoUML