3. go to \4.02\source\PowerEditor\gcc where the makefile is located;
4. run make.
It does not seem to work. I have attached the output; can someone tell me what I'm missing?
Best
Idris
OUTPUT:
PowerEditor\gcc>mingw32-make.exe
g++ -Wall -Os -DNDEBUG -c ../src/winmain.cpp -o winmain.o -I../../scintilla/incl
ude -I../src/ScitillaComponent -I../src/WinControls -I../src/WinControls/TabBar
-I../src/WinControls/ToolBar -I../src/WinControls/StatusBar -I../src/WinControls
/ImageListSet -I../src/WinControls/OpenSaveFileDialog -I../src/WinControls/Split
terContainer -I../src/WinControls/StaticDialog -I../src/WinControls/AboutDlg -I.
./src/MISC/SysMsg -I../src/MISC/Process -I../src/MISC -I../src/WinControls/Stati
cDialog/RunDlg -I../src -I../src/TinyXml -I../src/WinControls/ColourPicker -I../
src/MISC/RegExt -I../src/MISC/PluginsManager -I../src/WinControls/TrayIcon -I../
src/WinControls/shortcut -I../src/WinControls/ContextMenu -I../src/WinControls/G
rid -I../src/WinControls/Preference -I../src/WinControls/WindowsDlg
In file included from ../src/TinyXml/tinyxml.h:60,
from ../src/Parameters.h:22,
from ../src/ScitillaComponent/Buffer.h:25,
from ../src/ScitillaComponent/ScintillaEditView.h:26,
from ../src/Notepad_plus.h:22,
from ../src/winmain.cpp:18:
../src/TinyXml/tinystr.h:33: warning: ignoring #pragma warning
In file included from ../src/Parameters.h:29,
from ../src/ScitillaComponent/Buffer.h:25,
from ../src/ScitillaComponent/ScintillaEditView.h:26,
from ../src/Notepad_plus.h:22,
from ../src/winmain.cpp:18:
../src/WinControls/shortcut/shortcut.h: In function `int keyTranslate(int)':
../src/WinControls/shortcut/shortcut.h:55: `VK_OEM_2' undeclared (first use
this function)
../src/WinControls/shortcut/shortcut.h:55: (Each undeclared identifier is
reported only once for each function it appears in.)
../src/WinControls/shortcut/shortcut.h:56: `VK_OEM_3' undeclared (first use
this function)
../src/WinControls/shortcut/shortcut.h:57: `VK_OEM_4' undeclared (first use
this function)
../src/WinControls/shortcut/shortcut.h:58: `VK_OEM_5' undeclared (first use
this function)
../src/WinControls/shortcut/shortcut.h:59: `VK_OEM_6' undeclared (first use
this function)
In file included from ../src/ScitillaComponent/Buffer.h:25,
from ../src/ScitillaComponent/ScintillaEditView.h:26,
from ../src/Notepad_plus.h:22,
from ../src/winmain.cpp:18:
../src/Parameters.h: In constructor `NppGUI::NppGUI()':
../src/Parameters.h:522: warning: member initializers for `BackupFeature
NppGUI::_backup'
../src/Parameters.h:512: warning: and `bool NppGUI::_doTaskList'
../src/Parameters.h:477: warning: will be re-ordered to match declaration
order
In file included from ../src/WinControls/TabBar/ControlsTab.h:23,
from ../src/ScitillaComponent/UserDefineDialog.h:27,
from ../src/ScitillaComponent/ScintillaEditView.h:29,
from ../src/Notepad_plus.h:22,
from ../src/winmain.cpp:18:
../src/WinControls/TabBar/TabBar.h: In member function `int
TabBarPlus::getTabIndexAt(int, int)':
../src/WinControls/TabBar/TabBar.h:263: `TCHITTESTINFO' undeclared (first use
this function)
../src/WinControls/TabBar/TabBar.h:263: parse error before `;' token
../src/WinControls/TabBar/TabBar.h:264: `hitInfo' undeclared (first use this
function)
In file included from ../src/Notepad_plus.h:35,
from ../src/winmain.cpp:18:
../src/lastRecentFileList.h: In member function `void
LastRecentFileList::initMenu(HMENU__*, int, int)':
../src/lastRecentFileList.h:21: warning: comparison between signed and unsigned
integer expressions
In file included from ../src/Notepad_plus.h:41,
from ../src/winmain.cpp:18:
../src/MISC/PluginsManager/PluginsManager.h: In constructor
`PluginInfo::PluginInfo()':
../src/MISC/PluginsManager/PluginsManager.h:52: warning: member initializers
for `FuncItem*(*PluginInfo::_pFuncGetFuncsArray)(int*)'
../src/MISC/PluginsManager/PluginsManager.h:50: warning: and `const
char*(*PluginInfo::_pFuncGetName)()'
../src/MISC/PluginsManager/PluginsManager.h:35: warning: will be re-ordered
to match declaration order
In file included from ../src/Notepad_plus.h:43,
from ../src/winmain.cpp:18:
../src/WinControls/Preference/preferenceDlg.h:171:26: warning: no newline at end
of file
In file included from ../src/WinControls/WindowsDlg/SizeableDlg.h:5,
from ../src/WinControls/WindowsDlg/WindowsDlg.h:21,
from ../src/Notepad_plus.h:44,
from ../src/winmain.cpp:18:
../src/WinControls/WindowsDlg/WinMgr.h:20:9: warning: #pragma once is obsolete
../src/WinControls/WindowsDlg/WinMgr.h:301:7: warning: no newline at end of file
In file included from ../src/winmain.cpp:18:
../src/Notepad_plus.h:46:28: DockingManager.h: No such file or directory
In file included from ../src/winmain.cpp:18:
../src/Notepad_plus.h: At global scope:
../src/Notepad_plus.h:366: 'DockingManager' is used as a type, but is not
defined as a type.
../src/Notepad_plus.h:789: `tTbData' was not declared in this scope
../src/Notepad_plus.h:789: `dockData' was not declared in this scope
../src/Notepad_plus.h:789: parse error before `&' token
../src/Notepad_plus.h: In member function `void
Notepad_plus::killAllChildren()':
../src/Notepad_plus.h:113: `_dockingManager' undeclared (first use this
function)
../src/Notepad_plus.h: In member function `void
Notepad_plus::saveDockingParams()':
../src/Notepad_plus.h:200: `CONT_LEFT' undeclared (first use this function)
../src/Notepad_plus.h:201: `CONT_RIGHT' undeclared (first use this function)
../src/Notepad_plus.h:202: `CONT_TOP' undeclared (first use this function)
../src/Notepad_plus.h:203: `CONT_BOTTOM' undeclared (first use this function)
../src/Notepad_plus.h:213: `DockingCont' undeclared (first use this function)
../src/Notepad_plus.h:213: parse error before `;' token
../src/Notepad_plus.h:215: `vCont' undeclared (first use this function)
../src/Notepad_plus.h:218: `tTbData' undeclared (first use this function)
../src/Notepad_plus.h:218: parse error before `;' token
../src/Notepad_plus.h:220: `vDataVis' undeclared (first use this function)
../src/Notepad_plus.h:230: parse error before `;' token
../src/Notepad_plus.h:232: `vDataAll' undeclared (first use this function)
../src/Notepad_plus.h:242: `DOCKCONT_MAX' undeclared (first use this function)
../src/Notepad_plus.h: At top level:
../src/Parameters.h:184: warning: `int decStrVal(const char*)' defined but not
used
../src/Parameters.h:188: warning: `int hexStrVal(const char*)' defined but not
used
../src/Parameters.h:193: warning: `int getKwClassFromName(const char*)' defined
but not used
../src/ScitillaComponent/Buffer.h:57: warning: `bool isInList(const char*,
const char*)' defined but not used
../src/ScitillaComponent/UserDefineDialog.h:34: warning: `int min(int, int)'
defined but not used
../src/ScitillaComponent/UserDefineDialog.h:38: warning: `int max(int, int)'
defined but not used
../src/Notepad_plus.h:65: warning: `TiXmlNode* searchDlgNode(TiXmlNode*, const
char*)' declared `static' but never defined
../src/Notepad_plus.h:66: warning: `winVer getWindowsVersion()' declared
`static' but never defined
mingw32-make.exe: *** [winmain.o] Error 1
=============================
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hmm, I am just using the default makefile that comes with npp.4.0.2.src.zip, and dated
2006-06-18. If this makefile is out of date, can the developers upload a new one?
Best
Idris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't think NPP is currently able to be compiled with mingw. I saw elsewhere on this site that Don Ho is considering including a cmake text file (or similar) that might make this work. --Joel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I want to compile notepad++. Here is what I did:
1. Get MinGW3.0:
http://prdownloads.sf.net/mingw/MinGW-3.0.0-1.exe?download
2. Install MinGW3.0
3. go to \4.02\source\PowerEditor\gcc where the makefile is located;
4. run make.
It does not seem to work. I have attached the output; can someone tell me what I'm missing?
Best
Idris
OUTPUT:
PowerEditor\gcc>mingw32-make.exe
g++ -Wall -Os -DNDEBUG -c ../src/winmain.cpp -o winmain.o -I../../scintilla/incl
ude -I../src/ScitillaComponent -I../src/WinControls -I../src/WinControls/TabBar
-I../src/WinControls/ToolBar -I../src/WinControls/StatusBar -I../src/WinControls
/ImageListSet -I../src/WinControls/OpenSaveFileDialog -I../src/WinControls/Split
terContainer -I../src/WinControls/StaticDialog -I../src/WinControls/AboutDlg -I.
./src/MISC/SysMsg -I../src/MISC/Process -I../src/MISC -I../src/WinControls/Stati
cDialog/RunDlg -I../src -I../src/TinyXml -I../src/WinControls/ColourPicker -I../
src/MISC/RegExt -I../src/MISC/PluginsManager -I../src/WinControls/TrayIcon -I../
src/WinControls/shortcut -I../src/WinControls/ContextMenu -I../src/WinControls/G
rid -I../src/WinControls/Preference -I../src/WinControls/WindowsDlg
In file included from ../src/TinyXml/tinyxml.h:60,
from ../src/Parameters.h:22,
from ../src/ScitillaComponent/Buffer.h:25,
from ../src/ScitillaComponent/ScintillaEditView.h:26,
from ../src/Notepad_plus.h:22,
from ../src/winmain.cpp:18:
../src/TinyXml/tinystr.h:33: warning: ignoring #pragma warning
In file included from ../src/Parameters.h:29,
from ../src/ScitillaComponent/Buffer.h:25,
from ../src/ScitillaComponent/ScintillaEditView.h:26,
from ../src/Notepad_plus.h:22,
from ../src/winmain.cpp:18:
../src/WinControls/shortcut/shortcut.h: In function `int keyTranslate(int)':
../src/WinControls/shortcut/shortcut.h:55: `VK_OEM_2' undeclared (first use
this function)
../src/WinControls/shortcut/shortcut.h:55: (Each undeclared identifier is
reported only once for each function it appears in.)
../src/WinControls/shortcut/shortcut.h:56: `VK_OEM_3' undeclared (first use
this function)
../src/WinControls/shortcut/shortcut.h:57: `VK_OEM_4' undeclared (first use
this function)
../src/WinControls/shortcut/shortcut.h:58: `VK_OEM_5' undeclared (first use
this function)
../src/WinControls/shortcut/shortcut.h:59: `VK_OEM_6' undeclared (first use
this function)
In file included from ../src/ScitillaComponent/Buffer.h:25,
from ../src/ScitillaComponent/ScintillaEditView.h:26,
from ../src/Notepad_plus.h:22,
from ../src/winmain.cpp:18:
../src/Parameters.h: In constructor `NppGUI::NppGUI()':
../src/Parameters.h:522: warning: member initializers for `BackupFeature
NppGUI::_backup'
../src/Parameters.h:512: warning: and `bool NppGUI::_doTaskList'
../src/Parameters.h:477: warning: will be re-ordered to match declaration
order
In file included from ../src/WinControls/TabBar/ControlsTab.h:23,
from ../src/ScitillaComponent/UserDefineDialog.h:27,
from ../src/ScitillaComponent/ScintillaEditView.h:29,
from ../src/Notepad_plus.h:22,
from ../src/winmain.cpp:18:
../src/WinControls/TabBar/TabBar.h: In member function `int
TabBarPlus::getTabIndexAt(int, int)':
../src/WinControls/TabBar/TabBar.h:263: `TCHITTESTINFO' undeclared (first use
this function)
../src/WinControls/TabBar/TabBar.h:263: parse error before `;' token
../src/WinControls/TabBar/TabBar.h:264: `hitInfo' undeclared (first use this
function)
In file included from ../src/Notepad_plus.h:35,
from ../src/winmain.cpp:18:
../src/lastRecentFileList.h: In member function `void
LastRecentFileList::initMenu(HMENU__*, int, int)':
../src/lastRecentFileList.h:21: warning: comparison between signed and unsigned
integer expressions
In file included from ../src/Notepad_plus.h:41,
from ../src/winmain.cpp:18:
../src/MISC/PluginsManager/PluginsManager.h: In constructor
`PluginInfo::PluginInfo()':
../src/MISC/PluginsManager/PluginsManager.h:52: warning: member initializers
for `FuncItem*(*PluginInfo::_pFuncGetFuncsArray)(int*)'
../src/MISC/PluginsManager/PluginsManager.h:50: warning: and `const
char*(*PluginInfo::_pFuncGetName)()'
../src/MISC/PluginsManager/PluginsManager.h:35: warning: will be re-ordered
to match declaration order
In file included from ../src/Notepad_plus.h:43,
from ../src/winmain.cpp:18:
../src/WinControls/Preference/preferenceDlg.h:171:26: warning: no newline at end
of file
In file included from ../src/WinControls/WindowsDlg/SizeableDlg.h:5,
from ../src/WinControls/WindowsDlg/WindowsDlg.h:21,
from ../src/Notepad_plus.h:44,
from ../src/winmain.cpp:18:
../src/WinControls/WindowsDlg/WinMgr.h:20:9: warning: #pragma once is obsolete
../src/WinControls/WindowsDlg/WinMgr.h:301:7: warning: no newline at end of file
In file included from ../src/winmain.cpp:18:
../src/Notepad_plus.h:46:28: DockingManager.h: No such file or directory
In file included from ../src/winmain.cpp:18:
../src/Notepad_plus.h: At global scope:
../src/Notepad_plus.h:366: 'DockingManager' is used as a type, but is not
defined as a type.
../src/Notepad_plus.h:789: `tTbData' was not declared in this scope
../src/Notepad_plus.h:789: `dockData' was not declared in this scope
../src/Notepad_plus.h:789: parse error before `&' token
../src/Notepad_plus.h: In member function `void
Notepad_plus::killAllChildren()':
../src/Notepad_plus.h:113: `_dockingManager' undeclared (first use this
function)
../src/Notepad_plus.h: In member function `void
Notepad_plus::saveDockingParams()':
../src/Notepad_plus.h:200: `CONT_LEFT' undeclared (first use this function)
../src/Notepad_plus.h:201: `CONT_RIGHT' undeclared (first use this function)
../src/Notepad_plus.h:202: `CONT_TOP' undeclared (first use this function)
../src/Notepad_plus.h:203: `CONT_BOTTOM' undeclared (first use this function)
../src/Notepad_plus.h:213: `DockingCont' undeclared (first use this function)
../src/Notepad_plus.h:213: parse error before `;' token
../src/Notepad_plus.h:215: `vCont' undeclared (first use this function)
../src/Notepad_plus.h:218: `tTbData' undeclared (first use this function)
../src/Notepad_plus.h:218: parse error before `;' token
../src/Notepad_plus.h:220: `vDataVis' undeclared (first use this function)
../src/Notepad_plus.h:230: parse error before `;' token
../src/Notepad_plus.h:232: `vDataAll' undeclared (first use this function)
../src/Notepad_plus.h:242: `DOCKCONT_MAX' undeclared (first use this function)
../src/Notepad_plus.h: At top level:
../src/Parameters.h:184: warning: `int decStrVal(const char*)' defined but not
used
../src/Parameters.h:188: warning: `int hexStrVal(const char*)' defined but not
used
../src/Parameters.h:193: warning: `int getKwClassFromName(const char*)' defined
but not used
../src/ScitillaComponent/Buffer.h:57: warning: `bool isInList(const char*,
const char*)' defined but not used
../src/ScitillaComponent/UserDefineDialog.h:34: warning: `int min(int, int)'
defined but not used
../src/ScitillaComponent/UserDefineDialog.h:38: warning: `int max(int, int)'
defined but not used
../src/Notepad_plus.h:65: warning: `TiXmlNode* searchDlgNode(TiXmlNode*, const
char*)' declared `static' but never defined
../src/Notepad_plus.h:66: warning: `winVer getWindowsVersion()' declared
`static' but never defined
mingw32-make.exe: *** [winmain.o] Error 1
=============================
it seems the error is in your code
Hi,
could you explain? I am only compiling the default sources here, no changes at all. I just double checked; all original sources.
Best
Idris
You're not including all the sourcefiles (dockable dialogs etc arent included it seems) Check your project/makefile, it probably is incomplete.
Hmm, I am just using the default makefile that comes with npp.4.0.2.src.zip, and dated
2006-06-18. If this makefile is out of date, can the developers upload a new one?
Best
Idris
I don't think NPP is currently able to be compiled with mingw. I saw elsewhere on this site that Don Ho is considering including a cmake text file (or similar) that might make this work. --Joel