User forums > Help
installation failed!
shiki:
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
stahta01:
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.
shiki:
--- Quote from: stahta01 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.
--- End quote ---
From the compiled tips, I think somewhere needes that .so.
Thanks a lot, I will try your method!
stahta01:
--- Quote from: shiki on February 29, 2012, 01:19:51 pm ---From the compiled tips, I think somewhere needes that .so.
Thanks a lot, I will try your method!
--- End quote ---
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.
Jenna:
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.
Navigation
[0] Message Index
[#] Next page
Go to full version