Author Topic: Building ContribPlugins under Linux  (Read 4260 times)

mariocup

  • Guest
Building ContribPlugins under Linux
« on: April 03, 2007, 05:37:13 pm »
Hi,

normally I generated Code::Blocks under Linux using: ./configure --enable-contrib; make; make install.

No I want to generate Code::Blocks and the plugins in the same way as under windows.
My configuration:
I set the global variables
CB:
base: /data/download/codeblocks/src
WX:
base: /usr
include: /usr/include/wx-2.6
lib: /usr/lib

I build CodeBlocks-unix.cbp proberly, but if I build workspace ContribPlugins-unix.cbp  I get following error for the last plugin.
Code
-------------- Build: default in C::B Share Config (Unix) ---------------
 g++ -Ulinux -Uunix `wx-config --cflags` -fexceptions -Winvalid-pch -fPIC -DPIC -I../../include -I../../include/tinyxml -c /data/download/codeblocks/src/tools/cb_share_config/wx_pch.h -o wx_pch.h.gch
 g++ -Ulinux -Uunix `wx-config --cflags` -fexceptions -Winvalid-pch -fPIC -DPIC -I../../include -I../../include/tinyxml -c /data/download/codeblocks/src/base/tinyxml/tinywxuni.cpp -o ../../.objs/2.6/base/tinyxml/tinywxuni.o
 /data/download/codeblocks/src/base/tinyxml/tinywxuni.cpp:1:25: warning: ../../include/sdk_precomp.h.gch: not used because `cbDEBUG' not defined
 g++ -Ulinux -Uunix `wx-config --cflags` -fexceptions -Winvalid-pch -fPIC -DPIC -I../../include -I../../include/tinyxml -c /data/download/codeblocks/src/tools/cb_share_config/app.cpp -o ../../.objs/2.6/app.o
 g++ -Ulinux -Uunix `wx-config --cflags` -fexceptions -Winvalid-pch -fPIC -DPIC -I../../include -I../../include/tinyxml -c /data/download/codeblocks/src/tools/cb_share_config/mainframe.cpp -o ../../.objs/2.6/mainframe.o
 g++ -L../../base/tinyxml -o ../../devel/cb_share_config ../../.objs/2.6/base/tinyxml/tinywxuni.o ../../.objs/2.6/app.o ../../.objs/2.6/mainframe.o `wx-config --libs` -ltxml -lcodeblocks
 /usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld: cannot find -lcodeblocks
 collect2: ld returned 1 exit status
 Process terminated with status 1 (0 minutes, 21 seconds)
 0 errors, 1 warnings

I did not find any Info in the forums. Any suggestions?

Thx,

Mario

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Building ContribPlugins under Linux
« Reply #1 on: April 03, 2007, 05:56:37 pm »
Use configure & make if you're building in Linux. Most probably Project file of that plugin has not been updated to conform with latest changes.
Be a part of the solution, not a part of the problem.

mariocup

  • Guest
Re: Building ContribPlugins under Linux
« Reply #2 on: April 03, 2007, 06:04:36 pm »
Hi Biplab,

thx for quick answer. I will use the general build: configure and make.

Bye,

Mario