Maximus
BlitzMax Forums/BlitzMax Programming/Maximus
| ||
Installed without problem but the >maximus command return with the following error: Automatically updating old sources... fetching: http://maximus.htbaa.com/module/sources/json -> sources.tmp [ERROR] Failed to fetch sources Reason: Bad response code: 0 I have tried with a fresh install of BlitzMax 1.42 and no additional libraries, I am wondering if it is using the proxy or trying a direct connection? |
| ||
A direct connection, I'd suspect... |
| ||
What happens when you put the url in your browser? Does http://maximus.htbaa.com work for you at all? Did you use the installer or compile it yourself? Last edited 2011 |
| ||
Likely the browser is already set up to go through the proxy (which is where I assume the problem lies). You may need to add an option to support a proxy? |
| ||
Yeah hadn't though about that one yet. Didn't really expect anyone to (still) use that really. Nigel Brown: you are using a proxy right? |
| ||
Me neither :-) |
| ||
libcurl supports proxies directly with CURLOPT_PROXY and CURLOPT_PROXYPORT options... if you happen to be using that ;-) |
| ||
Yeah I'm using libcurl (ssl actually). Googled earlier for proxy settings and found that one as well. Looks like CURLOPT_PROXY also accepts a port so that's nice. I guess a 1.0.1 release will be coming out soon :-P. |
| ||
@Htbaa, yes I am using a proxy at work with a specified port number. The client I am using is a download of the "Maximus v1.0.0 Installer for Windows" from the website. Last edited 2011 |
| ||
OK thanks for your reply. Guess I should add proxy support soon. |
| ||
@Nigel Brown: Could you try Maximus 1.0.1? You can get it from https://github.com/downloads/maximos/maximus/Maximus-1.0.1.exe Instructions on configuring Maximus to use a proxy server can be found in the README, but have included it in this post as well. It's also possible to change the configuration defaults for Maximus by creating a config file. You can do this by creating a maximus.config file. On Windows : C:\Users\<user>\AppData\Roaming\maximus\maximus.config -OR- : C:\Documents and Settings\username\Application Data\maximus\maximus.config On Linux : ~/.maximus/maximus.config On Mac OSX : ~/Library/Application Support/maximus/maximus.config An example configuration file would look like this: language en maxpath C:\BlitzMax modpath C:\BlitzMax\mod sourcesurl http://maximus.htbaa.com/module/sources/json sourcesfile sources proxyserver 1.2.3.4:8080 autoupdate true You should only add a setting for which the default isn't optimal for your situation. For example, the proxyserver setting can be set if you require any outgoing connection to use a proxy server. The proxyserver setting will accept anything in the format of [protocol://][user:password@]machine[:port]. |
| ||
@Htbaa, sorry only just been able to test this as I have been away on summer holiday, the proxy problem is now solved. Is there a way to install all modules within a namespace? like "maximus install wx.*/1.00" |
| ||
Glad to hear the proxy issue has been fixed for you. About installing all modules from a modscope in 1 go. Not at the moment, no. Which was a conscious decision to prevent people from simple installing all modules that are available in a namespace (modscope), just for the heck of it. I don't have plans on adding it yet, but if someone provides a patch that does this I'd be more than happy to apply it. Last edited 2011 |
| ||
How long does it take to do them individually? |
| ||
Are you asking me? I have no clue. I don't recall ever using wxmax. The nice thing though is that you'll only fetch the requested module and its dependencies. So if you only need 20% of the wxmax modules you save some space (not a huge deal) but compile time reduces as well (big plus imo) as you don't need to compile all the wxmax modules. This goes for any modscope really. |
| ||
OK, starting at the end of the wx list with a clean mod folder, I type "maximus install wx.wxzipoutputstream" and get and error: Continue with install? [y/n] y fetching: http://maximus.htbaa.com/module/download/wx/wx/1.00 -> tmp/wx.wx-1.00. zip done [200] fetching: http://maximus.htbaa.com/module/download/wx/wxarchive/1.00 -> tmp/wx.w xarchive-1.00.zip done [200] fetching: http://maximus.htbaa.com/module/download/wx/wxdatetime/1.00 -> tmp/wx. wxdatetime-1.00.zip done [200] fetching: http://maximus.htbaa.com/module/download/wx/wxzipoutputstream/1.00 -> tmp/wx.wxzipoutputstream-1.00.zip done [200] Unpacking tmp/wx.wx-1.00.zip... Unpacking tmp/wx.wxarchive-1.00.zip... Unpacking tmp/wx.wxdatetime-1.00.zip... Unpacking tmp/wx.wxzipoutputstream-1.00.zip... run: bmk makemods wx Compiling:keys.bmx flat assembler version 1.69.14 (1239769 kilobytes memory) 4 passes, 21850 bytes. Compiling:consts.bmx flat assembler version 1.69.14 (1239510 kilobytes memory) 3 passes, 51235 bytes. Compiling:wxglue.cpp Compiling:common.bmx In file included from C:/BlitzMax/mod/wx.mod/wx.mod/wxglue.cpp:23:0: C:/BlitzMax/mod/wx.mod/wx.mod/wxglue.h:26:19: fatal error: wx/wx.h: No such file or directory compilation terminated. Build Error: failed to compile (1) C:/BlitzMax/mod/wx.mod/wx.mod/wxglue.cpp Build Error: failed to compile (1) C:/BlitzMax/mod/wx.mod/wx.mod/wxglue.cpp[ERROR] Failed to build wx |
| ||
Well, it's complaining it can't find the wx header files. My guess is that they're not included in the wx.mod package. You need to install those library files yourself first. You can get them from http://code.google.com/p/wxmax/source/browse/#svn%2Ftrunk%2Fwx.mod%2Flib%253Fstate%253Dclosed |
| ||
Htbaa, I agree the include folder is missing from the wx.mod folder, to ensure that everything builds correctly a version'd include folder should be a dependency. Or am I missing the point? |
| ||
Well the include folder doesn't match the expected format so the Maximus website ignores it. Were it a valid module all would be fine. This is not something I can "fix" as it isn't broken. Just manually copy the required folders and you should be fine I think. |
| ||
Brucey, have you checked this to see if this works? I Have downloaded the wxwidgets_2.8.9_headers.zip and put the contents into wx.mod/include/wx then using the command "maximus install wx.wxbutton" I get errors about wx/setup.h not found: C:\Documents and Settings\nigelb>maximus install wx.wxbutton The following module(s) will be installed: wx.wxbutton/1.00 Continue with install? [y/n] y fetching: http://maximus.htbaa.com/module/download/wx/wxbutton/1.00 -> tmp/wx.wx button-1.00.zip done [200] Unpacking tmp/wx.wxbutton-1.00.zip... run: bmk makemods wx Compiling:wxglue.cpp Compiling:common.bmx In file included from C:/BlitzMax/mod/wx.mod/include/wx/defs.h:21:0, from C:/BlitzMax/mod/wx.mod/include/wx/wx.h:15, from C:/BlitzMax/mod/wx.mod/wx.mod/wxglue.h:26, from C:/BlitzMax/mod/wx.mod/wx.mod/wxglue.cpp:23: C:/BlitzMax/mod/wx.mod/include/wx/platform.h:196:22: fatal error: wx/setup.h: No such file or directory compilation terminated. Build Error: failed to compile (1) C:/BlitzMax/mod/wx.mod/wx.mod/wxglue.cpp Build Error: failed to compile (1) C:/BlitzMax/mod/wx.mod/wx.mod/wxglue.cpp[ERROR] Failed to build wx |
| ||
Brucey, have you checked this to see if this works? Well, no. I don't have the capacity to check 3rd-party utilities... However, wx/setup.h is usually in the lib dir. As far as the structure is concerned... everything under wx.mod is part of the module structure, including lib and include. If you get it out of SVN, it all just works... Also, a full release includes everything you need as a single package. Whether a 3rd-party utility is able or not to retrieve everything, is not really something I should be concerned about. Last edited 2011 |
| ||
Can you add an option to force and install, I have for example modules already installed but would from now want to use this to keep said mods upto date. Having a force option would help with this, by saying yeah I self installed but I dont care I want you to handle it from now on. know what I mean ? |
| ||
Yeah I think so. You basically want the option to overwrite modules if they already exist but haven't been installed with Maximus, right? |