Author Topic: The 03 January 2008 build (4771) is out.  (Read 40781 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6674
    • My Best Post
Re: The 03 January 2008 build (4771) is out.
« Reply #15 on: January 05, 2008, 06:44:30 am »
Patch needed for FreeBSD; I am trying out PC-BSD.

More info at http://forums.codeblocks.org/index.php/topic,5279.msg57006.html#msg57006

Tim S

Code: [Select]
Index: src/include/scripting/sqplus/sqplus.h
===================================================================
--- src/include/scripting/sqplus/sqplus.h       (revision 4759)
+++ src/include/scripting/sqplus/sqplus.h       (working copy)
@@ -15,7 +15,11 @@
 #ifdef __APPLE__
   #include <malloc/malloc.h>
 #else
-  #include <malloc.h>
+  #ifdef __FreeBSD__
+    #include <stdlib.h>
+  #else
+    #include <malloc.h>
+  #endif
 #endif
 #include <memory.h>
 #if defined(_MSC_VER) || defined(__BORLANDC__)
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Online killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5193
Re: The 03 January 2008 build (4771) is out.
« Reply #16 on: January 05, 2008, 10:18:46 am »
done

Offline Darck

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: The 03 January 2008 build (4771) is out.
« Reply #17 on: January 05, 2008, 08:42:29 pm »
I asked this question on Ubuntu forum, but nobody anwsered yet. Maybe you can help me:
I've installed from source, but Synaptic think i've still old version.

I've just installed pango-1.19.2 from source by `./configure; make; make install'
Everything went correct. I need this package to install the newest libwxgtk, which need new pango.

Now i want install libwxgtk from repository , but it says there is conflict, because i have pango-1.18.2 (which is no true anymore) and it ned at least 1.18.3.

How to update information which synaptic has about current version of my pango. (I couldn't upgrade libpango through synaptic, because there wasn't any upgrade available. I had to download source made for debian from pango.com)

(i need libwxgtk to install deb package of Code::Blocks compiler)

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: The 03 January 2008 build (4771) is out.
« Reply #18 on: January 05, 2008, 09:14:16 pm »
You can try the libpango from debian-experimental (1.19.2-1).
The download directory is http://ftp.debian.org/debian/pool/main/p/pango1.0/
You need at least "libpango1.0-0" and "libpango1.0-common", but perhaps you need some more packages from experimental.
If you have the source-code for libpango with debian-subdir you can build the .deb-packages with "dpkg-buildpackage" .

Offline olaoni

  • Single posting newcomer
  • *
  • Posts: 4
Re: The 03 January 2008 build (4771) is out.
« Reply #19 on: January 06, 2008, 01:42:21 am »
Yeah, now the double clicking works for all file types again, thx !!! :)
But there is still a little problem with this:
as usual C::B is not loaded and you open a file by double click (.workspace, .cbp, .cpp and .h tested)
now the file/project is loaded and everything works fine with C::B
but the folder containing the file is still blocked (no reactions, no updating, just white screen) and after closing C::B this "file not found" error message still appears !!!
this is for any folder and also for the desktop when I open a file there by double click...




Acki,
I have just download and tested out the latest nightly build. Double clicking on a *.cbp file loads the project correctly without any problem.
I am running C::B on a windows Xp with SP2.

You might find it handy to check Settings | Environment | Check & Set File association (Windows Only)
And ensure that the files which you are double clicking are associated correctly to C::B.

Good luck

Regards
Ola Oni


Offline Albenejean

  • Multiple posting newcomer
  • *
  • Posts: 65
Re: The 03 January 2008 build (4771) is out.
« Reply #20 on: January 06, 2008, 07:17:47 am »
Hello everyone.

Here is my first patch.

Code: [Select]
Index: todolist.cpp
===================================================================
--- todolist.cpp (revision 4782)
+++ todolist.cpp (working copy)
@@ -243,9 +243,22 @@
 
 void ToDoList::OnViewList(wxCommandEvent& event)
 {
-    CodeBlocksDockEvent evt(event.IsChecked() ? cbEVT_SHOW_DOCK_WINDOW : cbEVT_HIDE_DOCK_WINDOW);
-    evt.pWindow = m_pListLog->GetWindow();
-    Manager::Get()->ProcessEvent(evt);
+    if(m_StandAlone)
+    {
+        CodeBlocksDockEvent evt(event.IsChecked() ? cbEVT_SHOW_DOCK_WINDOW : cbEVT_HIDE_DOCK_WINDOW);
+        evt.pWindow = m_pListLog->GetWindow();
+        Manager::Get()->ProcessEvent(evt);
+    }
+    else
+    {
+        if(event.IsChecked())
+        {
+                CodeBlocksLogEvent evtShow(cbEVT_SHOW_LOG_MANAGER);
+                Manager::Get()->ProcessEvent(evtShow);
+                CodeBlocksLogEvent event(cbEVT_SWITCH_TO_LOG_WINDOW, m_pListLog);
+                Manager::Get()->ProcessEvent(event);
+        }
+    }
 }
 
 void ToDoList::OnAddItem(wxCommandEvent& event)

When the ToDo window was within the Log Notebook, cliking on the menu View->Todo wasn't switching to the window.
In fact the GetWindow was returning the Log Notebook window.  I correct it.

Online killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5193
Re: The 03 January 2008 build (4771) is out.
« Reply #21 on: January 06, 2008, 10:36:25 am »
applied, thanks

Offline libfab

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: The 03 January 2008 build (4771) is out.
« Reply #22 on: January 06, 2008, 01:25:56 pm »
Yeah, now the double clicking works for all file types again, thx !!! :)
But there is still a little problem with this:
as usual C::B is not loaded and you open a file by double click (.workspace, .cbp, .cpp and .h tested)
now the file/project is loaded and everything works fine with C::B
but the folder containing the file is still blocked (no reactions, no updating, just white screen) and after closing C::B this "file not found" error message still appears !!!
this is for any folder and also for the desktop when I open a file there by double click...




Acki,
I have just download and tested out the latest nightly build. Double clicking on a *.cbp file loads the project correctly without any problem.
I am running C::B on a windows Xp with SP2.

You might find it handy to check Settings | Environment | Check & Set File association (Windows Only)
And ensure that the files which you are double clicking are associated correctly to C::B.

Good luck

Regards
Ola Oni



Hi,
I confirm Acki's report on the closing crash (OS is XP Family SP2), even with Ola Oni's precautionary step of checking the .cbp box in the Settings | Environment | Check & Set File association (Windows Only) dialog.
The crash only occurs if and only if:

1. CB was opened by double click on .cbp project
2. CB was closed with the top right-hand side " X cross" or the Quit instruction;
3. when mods have been applied to at least one project file ;
4. ==  AND == if the Save file instruction was used to apply these mods.
Strangely enough, if mods were saved through the dialog box
File is modified...Do you want to save the changes?
then no crash occurs at all even if 1. to 3. were done.

Fab

Offline Darck

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: The 03 January 2008 build (4771) is out.
« Reply #23 on: January 06, 2008, 03:30:21 pm »
this is hopeless. when i want install one thing it needs another newer. And this another has dependency on another package with newer version. It's endless circle. I would have to install Ubuntu hardy to have possibility running Code::Blocks.

Is there any code::blocks which can run with libwxgtk2.8-02.8.4.0-0ubuntu3 instead of (>= 2.8.7)

I can't install libwxgtk2.8-0_2.8.7.1-0_i386.deb - it has too many dependencies!

-------------------
I installed this:
http://prdownload.berlios.de/codeblocks/CB_20070907_rev4439_Ubuntu6.10+7.04_wx2.8.4.tar.gz
If you know newer version which can run with wx2.8.4 let me know.
if you know
« Last Edit: January 06, 2008, 07:12:01 pm by Darck »

Offline Albenejean

  • Multiple posting newcomer
  • *
  • Posts: 65
Re: The 03 January 2008 build (4771) is out.
« Reply #24 on: January 06, 2008, 03:39:46 pm »
Quote
Strangely enough, if mods were saved through the dialog box
File is modified...Do you want to save the changes?
then no crash occurs at all even if 1. to 3. were done.

No, I have opened the CB project, put a space somewhere, and closed it. I have saved the filed through the dialog box and the crash still occurs!

Offline wobien

  • Multiple posting newcomer
  • *
  • Posts: 69
Re: The 03 January 2008 build (4771) is out.
« Reply #25 on: January 06, 2008, 05:09:27 pm »
Code: [Select]
Index: src/plugins/classwizard/classwizarddlg.cpp
===================================================================
--- src/plugins/classwizard/classwizarddlg.cpp (revision 4783)
+++ src/plugins/classwizard/classwizarddlg.cpp (working copy)
@@ -227,6 +227,7 @@
         buffer << eolstr;
     }
 
+    if (!AncestorFilename.IsSameAs(_T("<>")))
     if (!AncestorFilename.IsEmpty())
     {
         buffer << _T("#include ") << AncestorFilename << eolstr;
My first little patch. It prevents the classwizard to insert:
Code: [Select]
#include <>in your header file if you don't use inheritance.

Offline Acki

  • Multiple posting newcomer
  • *
  • Posts: 100
Re: The 03 January 2008 build (4771) is out.
« Reply #26 on: January 06, 2008, 05:54:51 pm »
You might find it handy to check Settings | Environment | Check & Set File association (Windows Only)
And ensure that the files which you are double clicking are associated correctly to C::B.
thanks for this hint, but I'm not that stupid...  :lol:
I'm working with computers for more than 20 years and so I know how file association works... ;)

no, I think the bug has to do with the "Symbols browser" or something that depends on it, because everything works fine if the "Symbols browser" is disabled... ;)

Offline olaoni

  • Single posting newcomer
  • *
  • Posts: 4
Re: The 03 January 2008 build (4771) is out.
« Reply #27 on: January 06, 2008, 06:34:16 pm »
You might find it handy to check Settings | Environment | Check & Set File association (Windows Only)
And ensure that the files which you are double clicking are associated correctly to C::B.
thanks for this hint, but I'm not that stupid...  :lol:
I'm working with computers for more than 20 years and so I know how file association works... ;)

no, I think the bug has to do with the "Symbols browser" or something that depends on it, because everything works fine if the "Symbols browser" is disabled... ;)

Please accept my appology. I did not imply any stupidity  :(. In my past experience I had sometimes resulted into finding very complicated solutions, and over looking simple ones.

Moreover I did have a problem of C::B crashing when I double click on the *cbp file. After playing around with various setting I found the file association was not set, thats why I offered the suggestion.

Regards
Ola

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: The 03 January 2008 build (4771) is out.
« Reply #28 on: January 06, 2008, 06:58:35 pm »
this is hopeless. when i want install one thing it needs another newer. And this another has dependency on another package with newer version. It's endless circle. I would have to install Ubuntu hardy to have possibility running Code::Blocks.

Is there any code::blocks which can run with libwxgtk2.8-02.8.4.0-0ubuntu3 instead of (>= 2.8.7)

I can't install libwxgtk2.8-0_2.8.7.1-0_i386.deb - it has too many dependencies!
Which version of Ubuntu do you use ?
There are wxWidgets2.8.7 packages for dapper, feisty and gutsy and 2.8.6 packages for edgy on the wxWidgets-server (look here how to install them).
If none of the versions work you can try to build it from source.
The Ubuntu-sources are on the same server.
If you have build-dependency problems when you use "dpkg-buildpackage", install all the missing packages in the newest version you get for your Ubuntu-version.
And if you have done this (don't try it without) you can run "dpkg-buildpackage -d" to override the dependencies on special versions. This might work. You can also try to fix the "debian/control"-file to work with your Ubuntu-suite.
Normally a wxWidgets-version for an older Ubuntu-suite should work with yours.
I use wxWidgets for debian-edge on edge, lenny, sid and experimental without problems.

Online killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5193
Re: The 03 January 2008 build (4771) is out.
« Reply #29 on: January 06, 2008, 07:01:31 pm »
Code: [Select]
Index: src/plugins/classwizard/classwizarddlg.cpp
===================================================================
--- src/plugins/classwizard/classwizarddlg.cpp (revision 4783)
+++ src/plugins/classwizard/classwizarddlg.cpp (working copy)
@@ -227,6 +227,7 @@
         buffer << eolstr;
     }
 
+    if (!AncestorFilename.IsSameAs(_T("<>")))
     if (!AncestorFilename.IsEmpty())
     {
         buffer << _T("#include ") << AncestorFilename << eolstr;
My first little patch. It prevents the classwizard to insert:
Code: [Select]
#include <>in your header file if you don't use inheritance.

applied thanks