User forums > Help

FileManager plugin

(1/3) > >>

Andrew94:
Hi,
    I successfully installed the precompiled filemanager plugin for windows, but I want to install the plugin on  Linux.  When I try to build it (I am building it in Windows Vista with GCC) I get a long list of errors. the First of which is :

.../FileExplorerSettings.h |4| error: wx/wx.h: No such file or directory|

I have wxwidgets intalled and am able to use it to make other codeblocks projects.  What do I need to do to compile the project?

As a side note, where should I post instructions on installing clang/llvm and setting it up in codeblocks?
God bless you,
Andrew Wells

dmoore:
Hi Andrew,

Correct me if I'm wrong, but it sounds like you are trying to compile a linux binary from windows without using a cross-compiler.

The targets in the filemanager-unix project file were intended to be built on a linux system. The reason you are getting the "can't find <wx header>" messages is because on a linux system, we can use pkg-config to point the compiler to the required headers and libraries. This will silently fail on windows. Even if it did work, you will only get a linux binary if you use a cross compiler.

If you don't want a dedicated linux partition you could try a virtual machine, wubi or, if you are a glutton for punishment, cross-compiling.

Andrew94:
Hi,
    Thanks.  I was trying to compile in Windows, and I am now trying in Linux, but I get different errors.  The first few are:


 ||=== File Manager Plugin, default ===|
.../FileExplorer.cpp|13|error: sdk.h: No such file or directory|
.../FileManager/se_globals.h||In function ‘void LogMessage(const wxString&)’:|
.../FileManager/se_globals.h|21|error: ‘Manager’ has not been declared|
.../FileManager/se_globals.h||In function ‘void LogErrorMessage(const wxString&)’:|
.../FileManager/se_globals.h|24|error: ‘Manager’ has not been declared|

also, looking at the build log (compilation command below)
I see that the third build option (`pkg-config --cflags gamin`) appears to generate  (-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread) is this how it should be?

g++ -Wall -g  -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread     -fmessage-length=0 -fexceptions -Winvalid-pch -Ulinux -Uunix -fPIC -DcbDEBUG -DCB_PRECOMP -D__FAM__  -Wall -g -DCB_AUI    -I../../../include -I../../../include/wxscintilla/include  -c /home/andrew/projects/FileManager/FileExplorer.cpp -o .objs/FileExplorer.o

God bless you,
Andrew Wells

stahta01:

--- Quote from: Andrew94 on August 26, 2010, 05:42:26 pm ---.../FileExplorer.cpp|13|error: sdk.h: No such file or directory|

--- End quote ---

You need the Code::Blocks SDK source code for sdk.h.

Tim S.

Andrew94:
Thanks.  I downloaded the source code and set the $(#cb) variable to point to it; however, I am still unable to compile the plugin  (I tried setting the variable to the "codeblocks-10.05-release" folder and the "include" folder, which folder should I point it to?)  .  I assume I need to put the source somewhere else, but where?

(errors remain exactly the same)

God bless you,
Andrew Wells

Navigation

[0] Message Index

[#] Next page

Go to full version