Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#37 write instructions to build without code::blocks

Next_Release
closed
nobody
None
1
2014-02-16
2014-02-16
Bérenger Morel
No

Currently, the are a Makefile which does not seems to work ( at least, on my Debian ), and instructions which does only mention to unzip stuff, but I downloaded source code from svn, so nothing allows to compile.
Also, there are no informations in COMPILE about which libraries are required.
Finally ( I hope at least ) there are compilation errors when I tried to compile in C::B, for example a try to append an integer to a wxString ( "ch.Append(j)"" somewhere, I replaced it by "ch.Append( std::to_string(j) );" but it's a simple guess, and there are other things which breaks the compilation for now. )

I'll try to fix those problems if I can.

Discussion

  • Death Knight®
    Death Knight®
    2014-02-16

    All you need install wxWidgets development package of your distro and issue make command/
    Current "trunk" might have problems. I am trying to fix issues on OSX version...

    C::B cannot compile wxHexEditor directly. (I think I need to mention this at COMPILE document). You have to build internal udis and mhash libraries before. They are automatically compiled when you run make command.

    Your problem looks like missing wxWidgets libraries on your distro.
    Regards.

     
    • No, I have installed wx2.8 to try to compile wxHexEditor myself.
      To be exact, I have libwxgtk2.8-dev installed ( Debian, version of wx:
      2.8.12.1+dfsg-2 )
      Did not spent lot of time of that appending of an integer to a wxstring
      anyway. Compilation error is not something I worry a lot about when
      trying to dig into a svn or git repo btw.

      About the Makefile, it says that wx-config is not found, but I can run
      it without problem from commandline. In fact, it says that for lot of
      commands, here is exactly what it says for now:
      =============================
      berenger@deskber:~/wxhexeditor-code$ ./Makefile
      ./Makefile: ligne1: WXCONFIG : commande introuvable
      ./Makefile: ligne4: WXCONFIG : commande introuvable
      ./Makefile: ligne4: --cc : commande introuvable
      ./Makefile: ligne4: CC : commande introuvable
      ./Makefile: ligne5: WXCONFIG : commande introuvable
      ./Makefile: ligne5: --cxx : commande introuvable
      ./Makefile: ligne5: CXX : commande introuvable
      ./Makefile: ligne6: LDFLAGS : commande introuvable
      ./Makefile: ligne7: WXCONFIG : commande introuvable
      ./Makefile: ligne7: --cxxflags : commande introuvable
      ./Makefile: ligne7: -Iudis86 : commande introuvable
      ./Makefile: ligne8: WXCONFIG : commande introuvable
      ./Makefile: ligne8: --libs : commande introuvable
      ./Makefile: ligne8: WXLDFLAGS : commande introuvable
      ./Makefile: ligne9: WXCONFIG : commande introuvable
      ./Makefile: ligne9: --rescomp : commande introuvable
      ./Makefile: ligne9: RC : commande introuvable
      ./Makefile: ligne11: WXCONFIG : commande introuvable
      ./Makefile: ligne11: --cxxflags : commande introuvable
      ./Makefile: ligne11: RCFLAGS : commande introuvable
      ./Makefile: ligne12: MSGFMT : commande introuvable
      ./Makefile: ligne15: src/HexEditorGui.cpp: Permission non accordée
      ./Makefile: ligne27: LIBS : commande introuvable
      ./Makefile: ligne28: SOURCES:.cpp=.o : commande introuvable
      ./Makefile: ligne29: OBJECTS:.o=.d : commande introuvable
      ./Makefile: ligne30: ru : commande introuvable
      ./Makefile: ligne32: wildcard : commande introuvable
      ./Makefile: ligne33: resources/resource.rc: Permission non accordée
      ./Makefile: ligne34: RESOURCES:.rc=.o : commande introuvable
      ./Makefile: ligne36: EXECUTABLE : commande introuvable
      ./Makefile: ligne37: EXECUTABLE : commande introuvable
      ./Makefile: ligne39: PREFIX : commande introuvable
      ./Makefile: ligne40: PREFIX : commande introuvable
      ./Makefile: ligne40: BINDIR : commande introuvable
      ./Makefile: ligne41: PREFIX : commande introuvable
      ./Makefile: ligne41: DATADIR : commande introuvable
      ./Makefile: ligne42: DATADIR : commande introuvable
      ./Makefile: ligne42: LOCALEDIR : commande introuvable
      ./Makefile: ligne44: VERSION : commande introuvable
      ./Makefile: ligne46: EXECUTABLE : commande introuvable
      ./Makefile: ligne46: all: : commande introuvable
      ./Makefile: ligne48: OBJECTS : commande introuvable
      ./Makefile: ligne48: LIBS : commande introuvable
      ./Makefile: ligne48: SOURCES : commande introuvable
      ./Makefile: ligne50: LANGUAGES:.po=.mo : commande introuvable
      ./Makefile: ligne52: EXECUTABLE : commande introuvable
      ./Makefile: ligne52: OBJECTS : commande introuvable
      ./Makefile: ligne53: CXX : commande introuvable
      ./Makefile: ligne53: OBJECTS : commande introuvable
      ./Makefile: ligne53: LIBS : commande introuvable
      ./Makefile: ligne53: WXLDFLAGS : commande introuvable
      ./Makefile: ligne53: -o : commande introuvable
      ./Makefile: ligne55: LIBS : commande introuvable
      ./Makefile: ligne55: .cpp.o: : commande introuvable
      ./Makefile: ligne56: CXX : commande introuvable
      ./Makefile: ligne56: WXCXXFLAGS : commande introuvable
      ./Makefile: ligne56: OPTFLAGS : commande introuvable
      ./Makefile: ligne56: CXXFLAGS : commande introuvable
      ./Makefile: ligne56: CPPFLAGS : commande introuvable
      ./Makefile: ligne56: -o: Aucun fichier ou dossier de ce type
      ./Makefile: ligne 58 : fg: pas de contrôle de tâche
      ./Makefile: ligne59: RC : commande introuvable
      ./Makefile: ligne59: RCFLAGS : commande introuvable
      ./Makefile: ligne59: -o: Aucun fichier ou dossier de ce type
      ./Makefile: ligne61: MOBJECTS : commande introuvable
      ./Makefile: ligne61: langs: : commande introuvable
      ./Makefile: ligne 63 : fg: pas de contrôle de tâche
      ./Makefile: ligne64: MSGFMT : commande introuvable
      ./Makefile: ligne64: -o: Aucun fichier ou dossier de ce type
      ./Makefile: ligne66: udis86/libudis86/.libs/libudis86.a:: Aucun fichier
      ou dossier de ce type
      ./autogen.sh: ligne4: autoreconf : commande introuvable
      autogen: autoreconf -i failed.
      ./Makefile: ligne 68 : cd: udis86: Aucun fichier ou dossier de ce type
      ./Makefile: ligne68: HOST : commande introuvable
      ./Makefile: ligne68: CC : commande introuvable
      ./Makefile: ligne68: CXX : commande introuvable
      ./Makefile: ligne68: CFLAGS : commande introuvable
      ./Makefile: ligne68: CXXFLAGS : commande introuvable
      ./Makefile: ligne68: CPPFLAGS : commande introuvable
      ./Makefile: ligne68: ./configure: Aucun fichier ou dossier de ce type
      ./Makefile: ligne 69 : cd: udis86/libudis86: Aucun fichier ou dossier
      de ce type
      ./Makefile: ligne69: MAKE : commande introuvable
      ./Makefile: ligne69: MFLAGS : commande introuvable
      ./Makefile: ligne71: mhash/lib/.libs/libmhash.a:: Aucun fichier ou
      dossier de ce type
      ./Makefile: ligne 72 : cd: mhash: Aucun fichier ou dossier de ce type
      ./Makefile: ligne72: HOST : commande introuvable
      ./Makefile: ligne72: CC : commande introuvable
      ./Makefile: ligne72: CXX : commande introuvable
      ./Makefile: ligne72: CFLAGS : commande introuvable
      ./Makefile: ligne72: CXXFLAGS : commande introuvable
      ./Makefile: ligne72: CPPFLAGS : commande introuvable
      ./Makefile: ligne72: ./configure: Aucun fichier ou dossier de ce type
      ./Makefile: ligne 73 : cd: mhash: Aucun fichier ou dossier de ce type
      ./Makefile: ligne73: MAKE : commande introuvable
      ./Makefile: ligne73: MFLAGS : commande introuvable
      ./Makefile: ligne75: RESOURCES : commande introuvable
      ./Makefile: ligne75: EXECUTABLE_WIN : commande introuvable
      ./Makefile: ligne75: win: : commande introuvable
      ./Makefile: ligne78: EXECUTABLE_WIN : commande introuvable
      ./Makefile: ligne78: OBJECTS : commande introuvable
      ./Makefile: ligne78: RESOURCE_OBJ : commande introuvable
      ./Makefile: ligne79: CXX : commande introuvable
      ./Makefile: ligne79: OBJECTS : commande introuvable
      ./Makefile: ligne79: RESOURCE_OBJ : commande introuvable
      ./Makefile: ligne79: LIBS : commande introuvable
      ./Makefile: ligne79: WXLDFLAGS : commande introuvable
      ./Makefile: ligne79: -static : commande introuvable
      ./Makefile: ligne81: OBJECTS : commande introuvable
      ./Makefile: ligne81: maclink: : commande introuvable
      ./Makefile: ligne82: CXX : commande introuvable
      ./Makefile: ligne82: OBJECTS : commande introuvable
      ./Makefile: ligne82: LIBS : commande introuvable
      ./Makefile: ligne82: WXLDFLAGS : commande introuvable
      ./Makefile: ligne82: EXECUTABLE : commande introuvable
      ./Makefile: ligne82: -lexpat : commande introuvable
      ./Makefile: ligne84: mac: : commande introuvable
      ./Makefile: ligne85: EXECUTABLE_DIR_MAC : commande introuvable
      mkdir: impossible de créer le répertoire « /Contents »: Permission non
      accordée
      ./Makefile: ligne86: EXECUTABLE_DIR_MAC : commande introuvable
      mkdir: impossible de créer le répertoire « /Contents »: Permission non
      accordée
      ./Makefile: ligne87: EXECUTABLE_DIR_MAC : commande introuvable
      mkdir: impossible de créer le répertoire « /Contents »: Permission non
      accordée
      ./Makefile: ligne88: EXECUTABLE_DIR_MAC : commande introuvable
      install: la cible « /Contents/MacOS/ » n'est pas un répertoire: Aucun
      fichier ou dossier de ce type
      ./Makefile: ligne89: EXECUTABLE_DIR_MAC : commande introuvable
      install: la cible « /Contents/Resources/ » n'est pas un répertoire:
      Aucun fichier ou dossier de ce type
      ./Makefile: ligne90: EXECUTABLE_DIR_MAC : commande introuvable
      ./Makefile: ligne90: EXECUTABLE_DIR_MAC : commande introuvable
      ./Makefile: ligne90: /Contents/PkgInfo: Aucun fichier ou dossier de ce
      type
      ./Makefile: ligne142: VERSION : commande introuvable
      ./Makefile: ligne142: VERSION : commande introuvable
      ./Makefile: ligne142: EXECUTABLE_DIR_MAC : commande introuvable
      ./Makefile: ligne142: EXECUTABLE_DIR_MAC : commande introuvable
      ./Makefile: ligne142: /Contents/Info.plist: Aucun fichier ou dossier de
      ce type
      ./Makefile: ligne143: Erreur de syntaxe près du symbole inattendu « do
      »
      ./Makefile: ligne143: ` @for i in $(LANGUAGEDIRS); do \'
      =============================

      I obviously have C++ compilers installed, since I play a lot with this
      language. I wonder if there might be a conflict because I have both
      clang++ and g++ installed. It should not, but I'm not very good at
      writing/reading makefiles. I usually use tools to generate them for me.
      Since I am an extremist when it comes to reduce the number of installed
      packages on my system, it might be because a recommended package is not
      installed, but I'm sure it's not related to wx.

      Le 16.02.2014 23:07, Death Knight® a écrit :

      All you need install wxWidgets development package of your distro and
      issue make command/
      Current "trunk" might have problems. I am trying to fix issues on
      OSX version...

      C::B cannot compile wxHexEditor directly. (I think I need to mention
      this at COMPILE document). You have to build internal udis and mhash
      libraries before. They are automatically compiled when you run make
      command.

      Your problem looks like missing wxWidgets libraries on your distro.
      Regards.


      WRITE INSTRUCTIONS TO BUILD WITHOUT CODE::BLOCKS

      STATUS: accepted
      CREATED: Sun Feb 16, 2014 08:45 PM UTC by Bérenger Morel
      LAST UPDATED: Sun Feb 16, 2014 08:45 PM UTC
      OWNER: nobody

      Currently, the are a Makefile which does not seems to work ( at
      least, on my Debian ), and instructions which does only mention to
      unzip stuff, but I downloaded source code from svn, so nothing allows
      to compile.
      Also, there are no informations in COMPILE about which libraries are
      required.
      Finally ( I hope at least ) there are compilation errors when I
      tried to compile in C::B, for example a try to append an integer to a
      wxString ( "ch.Append(j)"" somewhere, I replaced it by "ch.Append(
      std::to_string(j) );" but it's a simple guess, and there are other
      things which breaks the compilation for now. )

      I'll try to fix those problems if I can.

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/wxhexeditor/feature-requests/37/ [1]

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/ [2]

      [1] https://sourceforge.net/p/wxhexeditor/feature-requests/37/
      [2] https://sourceforge.net/auth/subscriptions/

       
  • Death Knight®
    Death Knight®
    2014-02-16

    • status: open --> accepted
     
  • Death Knight®
    Death Knight®
    2014-02-16

    • status: accepted --> closed
     
  • Death Knight®
    Death Knight®
    2014-02-16

    Added some info to COMPILE file.