User forums > Using Code::Blocks

Compile error in editorcolorset.h and make install problem (Bug #6654)

(1/2) > >>

TheTuxKeeper:
I want to build a new Fedora package and have two problems:
1. the current problem (revision 2112), when compiling BaseExporter.cpp:

--- Code: --- g++ -DHAVE_CONFIG_H -I. -I. -I../../../../src/sdk -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -I../../../../src/sdk -I../../../../src/sdk/wxscintilla/include -I../../../../src/plugins/contrib/source_exporter/wxPdfDocument/include -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -O2 -ffast-math -m32 -march=i686 -fasynchronous-unwind-tables -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT BaseExporter.lo -MD -MP -MF .deps/BaseExporter.Tpo -c BaseExporter.cpp  -fPIC -DPIC -o .libs/BaseExporter.o
../../../../src/sdk/editorcolorset.h:39: error: 'wxSCI_KEYWORDSET_MAX' was not declared in this scope
../../../../src/sdk/editorcolorset.h:47: error: 'wxSCI_KEYWORDSET_MAX' was not declared in this scope
make[5]: *** [BaseExporter.lo] Error 1
make[5]: Leaving directory `/usr/src/redhat/BUILD/codeblocks/src/plugins/contrib/source_exporter'
--- End code ---

2. In revision 2089 and 2094 the plugins weren't installed, the icons/images were installed but the plugins directory wasn't even created. I don't know whether the problem still exist because it stopped before.
I forgot to save the build log, so I can't say whether the plugins were compiled (but there were no build errors) :oops:

mandrav:
Fixed.

TheTuxKeeper:

--- Quote from: mandrav on March 02, 2006, 08:12:33 pm ---Fixed.

--- End quote ---
Thanks  :D

But point two is still there and now I have the log  :P (had to cut the leading "/", because Opera wanted to upload sth :? )
--- Code: ---make[5]: Entering directory usr/src/redhat/BUILD/codeblocks/src/plugins/astyle
test -z var/tmp/codeblocks-1.0-0.svn.2112-buildroot/usr/lib || mkdir -p -- var/tmp/codeblocks-1.0-0.svn.2112-buildroot/usr/lib
 bin/sh libtool --mode=install /usr/bin/install -c  'libastyle.la' 'var/tmp/codeblocks-1.0-0.svn.2112-buildroot/usr/lib/libastyle.la'
libtool: install: error: cannot install libastyle.la to a directory not ending in usr/share/codeblocks/plugins
make[5]: [install-libLTLIBRARIES] Error 1 (ignored)

--- End code ---
This error exists for every *.la which is normally installed to /usr/share/codeblocks/plugins, but are installed to /usr/lib/

mandrav:
This error message means that you changed the "--prefix" argument in "configure" and you didn't clean the build.
Run "make clean-bin" once ;)

(Another useful command is "make clean-zipfiles" - it cleans the resource zips so they are recreated next time you run make).

TheTuxKeeper:

--- Quote from: mandrav on March 03, 2006, 09:10:43 pm ---This error message means that you changed the "--prefix" argument in "configure" and you didn't clean the build.

--- End quote ---
I only ran configure once and make till the first error came, then I updated the repository (to solve the first error). The last thing I made was a make && make install. I took a look at the Makefile:
--- Code: ---libdir = $(pkgdatadir)/plugins
(...)
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
        @$(NORMAL_INSTALL)
        test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
        @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
          if test -f $$p; then \
            f=$(am__strip_dir) \
            echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
            $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
          else :; fi; \
        done
--- End code ---
The libdir variable is correct, but changes to /usr/lib :shock:


--- Quote from: mandrav on March 03, 2006, 09:10:43 pm ---Run "make clean-bin" once ;)

(Another useful command is "make clean-zipfiles" - it cleans the resource zips so they are recreated next time you run make).

--- End quote ---
I'll give it a try :D

Navigation

[0] Message Index

[#] Next page

Go to full version