Search found 30 matches

by feelthat
Wed Mar 16, 2011 5:56 am
Forum: C++ Development
Topic: wxStandardPaths::Get() fail in plugin dll .so
Replies: 1
Views: 699

Re: wxStandardPaths::Get() fail in plugin dll .so

done

wxStandardPaths* stdp = new wxStandardPaths();
wxString path = stdp ->GetDataDir();

feelthat wrote:wxStandardPathsBase& stdp = wxStandardPaths::Get();
wxString patsh = stdp.GetDataDir();

error when get dir
by feelthat
Wed Mar 16, 2011 5:55 am
Forum: C++ Development
Topic: wxStandardPaths::Get() fail in plugin dll .so
Replies: 1
Views: 699

wxStandardPaths::Get() fail in plugin dll .so

wxStandardPathsBase& stdp = wxStandardPaths::Get();
wxString patsh = stdp.GetDataDir();

error when get dir
by feelthat
Wed Mar 16, 2011 5:47 am
Forum: C++ Development
Topic: wxString::Format Illegal instruction in Linux
Replies: 1
Views: 807

Re: wxString::Format Illegal instruction in Linux

done to m_strFolder = wxString::Format(wxT("%s\\%s"), path.str(),strFolder.c_str()); ///////////////////////////////////////////////////// wxString path = wxT("1234"); wxString strFolder= wxT("sdfg"); strFolder = wxString::Format(wxT("%s\\%s"), path,strFolder)...
by feelthat
Wed Mar 16, 2011 5:47 am
Forum: C++ Development
Topic: wxString::Format Illegal instruction in Linux
Replies: 1
Views: 807

wxString::Format Illegal instruction in Linux

wxString path = wxT("1234");
wxString strFolder= wxT("sdfg");

strFolder = wxString::Format(wxT("%s\\%s"), path,strFolder);

Thread [1] (Suspended: Signal 'SIGILL' received. Description: Illegal instruction.)
by feelthat
Mon Mar 14, 2011 8:06 am
Forum: C++ Development
Topic: Linux Illegal instruction in wxString
Replies: 3
Views: 1137

wxString in .so error

Done. It's a wxString::Format error, I change another way wxString strZip = filepath + wxT("/") + cms.skn; then success ///////////////////////////////////////////////////////////////////////////// // Name: cube.cpp // Purpose: wxGLCanvas demo program // Author: Julian Smart // Modified by...
by feelthat
Mon Mar 14, 2011 7:57 am
Forum: C++ Development
Topic: Linux Illegal instruction in wxString
Replies: 3
Views: 1137

///////////////////////////////////////////////////////////////////////////// // Name: cube.cpp // Purpose: wxGLCanvas demo program // Author: Julian Smart // Modified by: // Created: 04/01/98 // RCS-ID: $Id: cube.cpp 35650 2005-09-23 12:56:45Z MR $ // Copyright: (c) Julian Smart // Licence: wxWindo...
by feelthat
Mon Mar 14, 2011 7:08 am
Forum: Compiler / Linking / IDE Related
Topic: gcc link undefined reference error
Replies: 3
Views: 1498

Re: Question

Done when all use .so then solve but I can use .lib and .dll in windows system my problem is .a .so can not reference in linux are u mean linux? AFAIK, you will not be able to statically link your dll and app with wxWidgets. It's maybe feasible, but with major limitations (two instances of wxWidgets...
by feelthat
Fri Mar 11, 2011 2:17 pm
Forum: C++ Development
Topic: Linux Illegal instruction in wxString
Replies: 3
Views: 1137

Linux Illegal instruction in wxString

This function is in .so file bool DvrManager::Init() { wxString filepath = wxT("123456"); } ////////////// when main() call g_dvrmanager_instance->Init(); //in .so then show (Exited. Signal 'SIGILL' received. Description: Illegal instruction.) but if in main() will be safe and run successful
by feelthat
Thu Mar 10, 2011 4:35 am
Forum: Compiler / Linking / IDE Related
Topic: gcc link undefined reference error
Replies: 3
Views: 1498

Question

but I can use .lib and .dll in windows system my problem is .a .so can not reference in linux are u mean linux? AFAIK, you will not be able to statically link your dll and app with wxWidgets. It's maybe feasible, but with major limitations (two instances of wxWidgets and thus, proper init in dll). F...
by feelthat
Wed Mar 09, 2011 3:21 pm
Forum: Compiler / Linking / IDE Related
Topic: gcc link undefined reference error
Replies: 3
Views: 1498

gcc link undefined reference error

my project include 3 part 1. combo (execute) 2. sdk.a 3. shares.so build sdk.a successful then build shares.so successful ,too. shares.so functions need refer to sdk.a finally ld combo and sdk.a and shares.so combo need refrer to sdk.a and shares.so but have the problem now, it's show undefined refe...
by feelthat
Fri Mar 04, 2011 9:04 am
Forum: C++ Development
Topic: [2.8.7] no display of a wxTooltip in a DLL
Replies: 3
Views: 1134

Tooltip in Dll bug fixed

If in dll the s_lastUsedEventType will restart from 10000 it's a failed restart. So need make a share, then lastUsedEventType will from last number int wxNewEventType() { // MT-FIXME /*static int s_lastUsedEventType = wxEVT_FIRST; return s_lastUsedEventType++;*/ return CEventSerial::Get()->m_lastUse...
by feelthat
Sat Feb 26, 2011 12:08 pm
Forum: Platform Related Issues
Topic: Ubuntu+wxWidgets-2.8.11+sqlite3-3.6.22+wxsqlite3+openGL
Replies: 1
Views: 1281

share it only

share it only
by feelthat
Sat Feb 26, 2011 12:07 pm
Forum: Platform Related Issues
Topic: Ubuntu+wxWidgets-2.8.11+sqlite3-3.6.22+wxsqlite3+openGL
Replies: 1
Views: 1281

Ubuntu+wxWidgets-2.8.11+sqlite3-3.6.22+wxsqlite3+openGL

from http://www.wretch.cc/blog/fatalfeel/769765 //http://converse-2008.blogspot.com/2010/09/how-to-building-opengl-in-ubuntu.html apt-get install build-essential apt-get install libgl1-mesa-dev apt-get install libglu1-mesa-dev apt-get install freeglut3-dev In example.c #include void init(); void dis...
by feelthat
Fri Feb 11, 2011 6:40 am
Forum: C++ Development
Topic: wxsocket in DLL plugin loop bug
Replies: 2
Views: 740

wxsocket in DLL plugin loop bug fixed

fixed in file
by feelthat
Fri Feb 11, 2011 5:29 am
Forum: C++ Development
Topic: wxsocket in DLL plugin loop bug
Replies: 2
Views: 740

wxsocket in DLL plugin loop bug

as attachment socket.cpp