Author Topic: Ubuntu cbprofile  (Read 7194 times)

EverDream

  • Guest
Ubuntu cbprofile
« on: October 25, 2006, 08:12:41 am »
Hi i installed code blocks yesterday.

However at startup there is always : "The file CBProfiler.zip could not be found.
Please check your installation." , the same error like thread on mac os but i'm on ubuntu.

Could you help me?  :)

Thanks

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Ubuntu cbprofile
« Reply #1 on: October 25, 2006, 08:31:06 am »
Can you help me here? Why didn't you just search for it before asking? Is the search hard to find? Is it hard to work with?
I 'm just trying to understand why people never search these days...
Be patient!
This bug will be fixed soon...

_teo_

  • Guest
Re: Ubuntu cbprofile
« Reply #2 on: October 25, 2006, 10:36:30 am »
Can you help me here? Why didn't you just search for it before asking? Is the search hard to find? Is it hard to work with?
I 'm just trying to understand why people never search these days...
Uhmm, why are you so angry? Is there any solution to this? I searched the forums and found nothing. However there are many posts reporting this particular problem.

Offline ddd

  • Single posting newcomer
  • *
  • Posts: 3
Re: Ubuntu cbprofile
« Reply #3 on: October 25, 2006, 10:49:41 am »
The solution:

1) rename share/codeblocks/profiler.zip -> CBProfiler.zip
2) rename share/codeblocks/plugins/libprofiler.so -> libCBProfiler.so
3) rename share/codeblocks/plugins/libprofiler.la -> libCBProfiler.la

Or apply this patch and rebuild (you might have to run bootstrap again):
EDIT: Do a 'make uninstall' first

Code
Index: src/plugins/contrib/profiler/Makefile.am
===================================================================
--- src/plugins/contrib/profiler/Makefile.am    (revision 3139)
+++ src/plugins/contrib/profiler/Makefile.am    (arbetskopia)
@@ -6,13 +6,13 @@

 libdir = $(pkgdatadir)/plugins

-lib_LTLIBRARIES = libprofiler.la
+lib_LTLIBRARIES = libCBProfiler.la

-libprofiler_la_LDFLAGS = -module -version-info 0:1:0 -shared -no-undefined -avoid-version
+libCBProfiler_la_LDFLAGS = -module -version-info 0:1:0 -shared -no-undefined -avoid-version

-libprofiler_la_LIBADD = ../../../sdk/libcodeblocks.la
+libCBProfiler_la_LIBADD = ../../../sdk/libcodeblocks.la

-libprofiler_la_SOURCES = cbprofilerconfig.cpp \
+libCBProfiler_la_SOURCES = cbprofilerconfig.cpp \
                        cbprofiler.cpp \
                        cbprofilerexec.cpp

Index: src/plugins/contrib/profiler/resources/Makefile.am
===================================================================
--- src/plugins/contrib/profiler/resources/Makefile.am  (revision 3139)
+++ src/plugins/contrib/profiler/resources/Makefile.am  (arbetskopia)
@@ -1,7 +1,7 @@
 EXTRA_DIST = configuration.xrc main_dialog.xrc manifest.xml

-pkgdata_DATA = profiler.zip
+pkgdata_DATA = CBProfiler.zip
 CLEANFILES = $(pkgdata_DATA)

-profiler.zip:
-       PWD=`pwd` cd $(srcdir) && zip $(PWD)/profiler.zip manifest.xml *.xrc > /dev/null
+CBProfiler.zip:
+       PWD=`pwd` cd $(srcdir) && zip $(PWD)/CBProfiler.zip manifest.xml *.xrc > /dev/null
Index: src/plugins/contrib/profiler/cbprofiler.unix.cbp
===================================================================
--- src/plugins/contrib/profiler/cbprofiler.unix.cbp    (revision 3139)
+++ src/plugins/contrib/profiler/cbprofiler.unix.cbp    (arbetskopia)
@@ -9,7 +9,7 @@
                <Option virtualFolders="" />
                <Build>
                        <Target title="default">
-                               <Option output="../../../devel/share/codeblocks/plugins/libcbprofiler.so" />
+                               <Option output="../../../devel/share/codeblocks/plugins/libCBProfiler.so" />
                                <Option type="3" />
                                <Option compiler="gcc" />
                        </Target>
@@ -71,4 +71,4 @@
                </Unit>
                <Extensions />
        </Project>
-</CodeBlocks_project_file>
\ Inget radslut vid filslut
+</CodeBlocks_project_file>
Index: src/tools/cb_share_config/Makefile.am
===================================================================
--- src/tools/cb_share_config/Makefile.am       (revision 3139)
+++ src/tools/cb_share_config/Makefile.am       (arbetskopia)
@@ -1,6 +1,6 @@
 bin_PROGRAMS = cb_share_config

-INCLUDES = $(WX_CXXFLAGS)
+INCLUDES = $(WX_CXXFLAGS) -I$(top_srcdir)/src/sdk

 cb_share_config_LDFLAGS =


« Last Edit: October 25, 2006, 10:52:11 am by ddd »

_teo_

  • Guest
Re: Ubuntu cbprofile
« Reply #4 on: October 25, 2006, 11:30:33 am »
The solution:

1) rename share/codeblocks/profiler.zip -> CBProfiler.zip
2) rename share/codeblocks/plugins/libprofiler.so -> libCBProfiler.so
3) rename share/codeblocks/plugins/libprofiler.la -> libCBProfiler.la

Or apply this patch and rebuild (you might have to run bootstrap again):
Good, I'll update to head revision later today.

EDIT: Do a 'make uninstall' first
Do I always need to make uninstall? Isn't it sufficient to just make install when I compile the newer version? I thought the newer one will simply override previous one. Sorry for my ignorance. :oops:

Offline ddd

  • Single posting newcomer
  • *
  • Posts: 3
Re: Ubuntu cbprofile
« Reply #5 on: October 25, 2006, 11:38:04 am »

Do I always need to make uninstall? Isn't it sufficient to just make install when I compile the newer version? I thought the newer one will simply override previous one. Sorry for my ignorance. :oops:

Make install only overwrites and install new files. In this case you want to remove profiler.* that was wrong.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Ubuntu cbprofile
« Reply #6 on: October 25, 2006, 11:52:45 am »
Can you help me here? Why didn't you just search for it before asking? Is the search hard to find? Is it hard to work with?
I 'm just trying to understand why people never search these days...
Uhmm, why are you so angry? Is there any solution to this? I searched the forums and found nothing. However there are many posts reporting this particular problem.

I am not angry. I 'm just trying to understand what's wrong with our search feature and no one seems to be using it.
This particular "problem" has popped up a lot lately and, as a matter of fact, the solution has been posted too many times. So please don't tell me that you searched and found nothing...
Be patient!
This bug will be fixed soon...

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5494
Re: Ubuntu cbprofile
« Reply #7 on: October 25, 2006, 01:07:31 pm »
The solution:

1) rename share/codeblocks/profiler.zip -> CBProfiler.zip
2) rename share/codeblocks/plugins/libprofiler.so -> libCBProfiler.so
3) rename share/codeblocks/plugins/libprofiler.la -> libCBProfiler.la

Or apply this patch and rebuild (you might have to run bootstrap again):
EDIT: Do a 'make uninstall' first

Code
Index: src/plugins/contrib/profiler/Makefile.am
===================================================================
--- src/plugins/contrib/profiler/Makefile.am    (revision 3139)
+++ src/plugins/contrib/profiler/Makefile.am    (arbetskopia)
@@ -6,13 +6,13 @@

 libdir = $(pkgdatadir)/plugins

-lib_LTLIBRARIES = libprofiler.la
+lib_LTLIBRARIES = libCBProfiler.la

-libprofiler_la_LDFLAGS = -module -version-info 0:1:0 -shared -no-undefined -avoid-version
+libCBProfiler_la_LDFLAGS = -module -version-info 0:1:0 -shared -no-undefined -avoid-version

-libprofiler_la_LIBADD = ../../../sdk/libcodeblocks.la
+libCBProfiler_la_LIBADD = ../../../sdk/libcodeblocks.la

-libprofiler_la_SOURCES = cbprofilerconfig.cpp \
+libCBProfiler_la_SOURCES = cbprofilerconfig.cpp \
                        cbprofiler.cpp \
                        cbprofilerexec.cpp

Index: src/plugins/contrib/profiler/resources/Makefile.am
===================================================================
--- src/plugins/contrib/profiler/resources/Makefile.am  (revision 3139)
+++ src/plugins/contrib/profiler/resources/Makefile.am  (arbetskopia)
@@ -1,7 +1,7 @@
 EXTRA_DIST = configuration.xrc main_dialog.xrc manifest.xml

-pkgdata_DATA = profiler.zip
+pkgdata_DATA = CBProfiler.zip
 CLEANFILES = $(pkgdata_DATA)

-profiler.zip:
-       PWD=`pwd` cd $(srcdir) && zip $(PWD)/profiler.zip manifest.xml *.xrc > /dev/null
+CBProfiler.zip:
+       PWD=`pwd` cd $(srcdir) && zip $(PWD)/CBProfiler.zip manifest.xml *.xrc > /dev/null
Index: src/plugins/contrib/profiler/cbprofiler.unix.cbp
===================================================================
--- src/plugins/contrib/profiler/cbprofiler.unix.cbp    (revision 3139)
+++ src/plugins/contrib/profiler/cbprofiler.unix.cbp    (arbetskopia)
@@ -9,7 +9,7 @@
                <Option virtualFolders="" />
                <Build>
                        <Target title="default">
-                               <Option output="../../../devel/share/codeblocks/plugins/libcbprofiler.so" />
+                               <Option output="../../../devel/share/codeblocks/plugins/libCBProfiler.so" />
                                <Option type="3" />
                                <Option compiler="gcc" />
                        </Target>
@@ -71,4 +71,4 @@
                </Unit>
                <Extensions />
        </Project>
-</CodeBlocks_project_file>
\ Inget radslut vid filslut
+</CodeBlocks_project_file>
Index: src/tools/cb_share_config/Makefile.am
===================================================================
--- src/tools/cb_share_config/Makefile.am       (revision 3139)
+++ src/tools/cb_share_config/Makefile.am       (arbetskopia)
@@ -1,6 +1,6 @@
 bin_PROGRAMS = cb_share_config

-INCLUDES = $(WX_CXXFLAGS)
+INCLUDES = $(WX_CXXFLAGS) -I$(top_srcdir)/src/sdk

 cb_share_config_LDFLAGS =



I know what's going on : will fix this afternoon -> like you said, to be safe start the build process from ./bootstrap again and so on !!!

_teo_

  • Guest
Re: Ubuntu cbprofile
« Reply #8 on: October 25, 2006, 04:21:54 pm »
Can you help me here? Why didn't you just search for it before asking? Is the search hard to find? Is it hard to work with?
I 'm just trying to understand why people never search these days...
Uhmm, why are you so angry? Is there any solution to this? I searched the forums and found nothing. However there are many posts reporting this particular problem.

I am not angry. I 'm just trying to understand what's wrong with our search feature and no one seems to be using it.
This particular "problem" has popped up a lot lately and, as a matter of fact, the solution has been posted too many times. So please don't tell me that you searched and found nothing...
Well, I wouldn't argue. My point is that little more friendliness wouldn't hurt. And if you allow me this final comment: you will only benefit from a strong community, thus the newcomers shouldn't be scared.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Ubuntu cbprofile
« Reply #9 on: October 25, 2006, 04:23:48 pm »
you will only benefit from a strong community, thus the newcomers shouldn't be scared.
Yes, but if we work 24/7 on aswering the same question over and over again because people do not search (and this happens far to often) - there will be *no* development at all. You'll have to keep that in mind, too.
With regards 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

_teo_

  • Guest
Re: Ubuntu cbprofile
« Reply #10 on: October 25, 2006, 04:46:49 pm »
you will only benefit from a strong community, thus the newcomers shouldn't be scared.
Yes, but if we work 24/7 on aswering the same question over and over again because people do not search (and this happens far to often) - there will be *no* development at all. You'll have to keep that in mind, too.
With regards Morten.
I completely agree with you. However one can simply take a deep breath and be polite.

Look, I appreciate your work. And I'm sure many others feel the same. So, maybe other people in this community can answer such questions and thus letting you concentrate in development. Unfortunately, as you know, I am newcomer too. I'm familiar neither with software nor with people here. So, I cannot do that, but I'm sure others can do it.

To those who read: people, please give a hand to development team.


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Ubuntu cbprofile
« Reply #11 on: October 25, 2006, 05:12:39 pm »
To those who read: people, please give a hand to development team.

I do my best to help newbies in order to help the development team. Since, I do NOT know enough to do development. But, some newbies do NOT know how to use GCC or minGW GCC as much as I do. And, I consider myself just barely knowledgeable about GCC/MinGW. This site should NOT have to help newbies use GCC/minGW except in how to use it with code::blocks. The newbies should be directed to a page in C::B wiki that has a list of links to learn about GCC/GDB/minGW GCC. I would prefer a list of external support forums for each compiler C::B supports also. Too much development team time is wasted on NON C::B issues.

The worse newbies do not seem to have ever used a compiler, note I have only tried to help one this bad and I don't plan to help him ever again. I give kudos to the members who have the ability to help a person who seems to be unable to understand answers and blames the person who gives what to me is clear answers to be to one with the communication problem. But, I just try to think of blue sky to cool myself down.

Tim S   
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Ubuntu cbprofile
« Reply #12 on: October 25, 2006, 05:27:30 pm »
I completely agree with you. However one can simply take a deep breath and be polite.
Don't worry - we are answering over and over again, usually. But there are cases where this is just annoying and you ask yourself exactly this question: "Why don't thy search.". I believe that this is really what mandrav meant (that includes the hint to the answer). So in fact, this wasn't meant unpolite but one can take it as that, agreed. Sorry that you were the one that got hit, honestly - be patient with us, too. ;-)
With regards, 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