Author Topic: installation failed!  (Read 6277 times)

Offline shiki

  • Single posting newcomer
  • *
  • Posts: 6
installation failed!
« on: February 29, 2012, 10:47:41 am »
I know it is a relatively repeated topic, but I still cann't find what to do from other topics. I tried modify some Makefiles, but it still didn't work , the error remains. I know it is required adding "-lX11" in a line in a Makefile, but I don't know which Makefile. Can someone tell me clearly where to modify and which file is that? I tried to install CB 10.05. My failed message is below:

llibtool: link: g++ -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -pthread -o .libs/codesnippets version.o DirectoryParamsPanel.o InsertIndexManager.o MainPanel.o SearchInPanel.o TextFileSearcher.o TextFileSearcherRegEx.o TextFileSearcherText.o ThreadSearch.o ThreadSearchConfPanel.o ThreadSearchEvent.o ThreadSearchFindData.o ThreadSearchFrame.o ThreadSearchLoggerBase.o ThreadSearchLoggerList.o ThreadSearchLoggerTree.o ThreadSearchThread.o ThreadSearchTrace.o ThreadSearchView.o ThreadSearchViewManagerBase.o ThreadSearchViewManagerLayout.o ThreadSearchViewManagerMessagesNotebook.o dragscroll.o dragscrollcfg.o dragscrollevent.o editproperties.o prefs.o scbeditor.o seditorbase.o seditorcolourset.o seditormanager.o sprintdlg.o codesnippetsapp.o codesnippetsevent.o codesnippetstreectrl.o codesnippetswindow.o csutils.o editsnippetframe.o GenericMessageBox.o settingsdlg.o settingsdlgform.o snippetitemdata.o snippetproperty.o snippetpropertyform.o snippetsconfig.o snippetsimages.o -pthread -Wl,-rpath -Wl,/usr/lib/wx-2.8-wxcontainer -Wl,-rpath -Wl,/usr/lib/wx-2.8-wxcontainer  -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -L/home/nc/Downloads/codeblocks-10.05-release/src/base/tinyxml /home/nc/Downloads/codeblocks-10.05-release/src/base/tinyxml/.libs/libtinyxml.a -L/home/nc/Downloads/codeblocks-10.05-release/src/sdk ../../../../sdk/.libs/libcodeblocks.so -L/usr/lib/wx-2.8-wxcontainer /usr/lib/wx-2.8-wxcontainer/libwx_gtk2u_richtext-2.8.so /usr/lib/wx-2.8-wxcontainer/libwx_gtk2u_aui-2.8.so /usr/lib/wx-2.8-wxcontainer/libwx_gtk2u_xrc-2.8.so /usr/lib/wx-2.8-wxcontainer/libwx_gtk2u_qa-2.8.so /usr/lib/wx-2.8-wxcontainer/libwx_gtk2u_html-2.8.so /usr/lib/wx-2.8-wxcontainer/libwx_gtk2u_adv-2.8.so /usr/lib/wx-2.8-wxcontainer/libwx_gtk2u_core-2.8.so /usr/lib/wx-2.8-wxcontainer/libwx_baseu_xml-2.8.so /usr/lib/wx-2.8-wxcontainer/libwx_baseu_net-2.8.so /usr/lib/wx-2.8-wxcontainer/libwx_baseu-2.8.so -lpthread -ldl -pthread -Wl,-rpath -Wl,/usr/lib/wx-2.8-wxcontainer
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: codesnippetstreectrl.o: undefined reference to symbol 'XWarpPointer'
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 'XWarpPointer' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[5]: *** [codesnippets] Error 1
make[5]: Leaving directory `/home/nc/Downloads/codeblocks-10.05-release/src/plugins/contrib/codesnippets/resources'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/nc/Downloads/codeblocks-10.05-release/src/plugins/contrib/codesnippets'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/nc/Downloads/codeblocks-10.05-release/src/plugins/contrib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/nc/Downloads/codeblocks-10.05-release/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nc/Downloads/codeblocks-10.05-release/src'
make: *** [all-recursive] Error 1
« Last Edit: February 29, 2012, 10:49:54 am by shiki »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: installation failed!
« Reply #1 on: February 29, 2012, 01:06:49 pm »
Code::Blocks will NOT compile using the X11 port of wxWidgets. Use wxGTK or wxMSW.

Note: If you are a X11 expert; you might be able to fix that.
Note: If you wish to fix that you might look at codeblocks_console branch in SVN.

I suggest verifying that wxGTK dev files are installed using wx-config.
http://wiki.wxwidgets.org/Wx-Config

Tim S.
« Last Edit: February 29, 2012, 01:08:39 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline shiki

  • Single posting newcomer
  • *
  • Posts: 6
Re: installation failed!
« Reply #2 on: February 29, 2012, 01:19:51 pm »
Code::Blocks will NOT compile using the X11 port of wxWidgets. Use wxGTK or wxMSW.

Note: If you are a X11 expert; you might be able to fix that.
Note: If you wish to fix that you might look at codeblocks_console branch in SVN.

I suggest verifying that wxGTK dev files are installed using wx-config.
http://wiki.wxwidgets.org/Wx-Config

Tim S.
From the compiled tips, I think somewhere needes that .so.
Thanks a lot, I will try your method!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7790
    • My Best Post
Re: installation failed!
« Reply #3 on: February 29, 2012, 05:31:55 pm »
From the compiled tips, I think somewhere needes that .so.
Thanks a lot, I will try your method!

You may be correct; I am NOT a Linux user; but, the first things to check for Linux users are.
If the wxGTK Dev package installed (Note the sub-version of wxWidgets 2.8 may matter.)
When building using the Code::Blocks project the wx-config must be working right.
Using the automake system, I have no idea if wx-config is required.

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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: installation failed!
« Reply #4 on: February 29, 2012, 05:52:02 pm »
You might also need the gtk+2.0 development packages, depending on the chosen contrib-plugins.

By the way, I suggest using the sources from our subversion repo.
There have been little fixes to the automake-system since the 10.05 release.

Offline shiki

  • Single posting newcomer
  • *
  • Posts: 6
Re: installation failed!
« Reply #5 on: March 05, 2012, 07:29:05 am »
I have changed Desktop from KDE to Gnome,but still cann't install it, even throungh I have installed the required libs, by the way I used the OpenSUSE12.1, so I finnally transferred to Ubuntu10.10, and it does work well.
Thanks all the same!!